Consider the frame structure in Matches()

Review: http://codereview.adblockplus.org/23127017/