Partly remove @149879 (WebKit cherry-pick)

This apparently causes regressions:
  http://trac.webkit.org/changeset/152568

"This changed caused more harm than good. setFrameRect() is not the only path
 in FrameView that can cause media queries to need invalidation."

Also incorporate follow patch:
  http://trac.webkit.org/changeset/153595

"We can't tell if viewport-dependent media queries have been invalidated at
 layout, unless we have a StyleResolver to ask about this.
 In case there isn't one, take the same path as we would with an invalidated
 query instead of relying on ensureStyleResolver() to build it."

Review URL: https://chromiumcodereview.appspot.com/22488009

git-svn-id: svn://svn.chromium.org/blink/trunk@155882 bbb929c8-8fbe-4397-9dbb-9b2b20218538