Unreviewed, rolling out r114285.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Apr 2012 00:55:31 +0000 (00:55 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Apr 2012 00:55:31 +0000 (00:55 +0000)
http://trac.webkit.org/changeset/114285
https://bugs.webkit.org/show_bug.cgi?id=84107

broke fast/media/media-query-list-08.html in Mac (Requested by
andersca on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-04-16

Source/WebCore:

* dom/Document.cpp:
(WebCore::Document::styleSelectorChanged):
* dom/Document.h:
(Document):
* page/FrameView.cpp:
(WebCore::FrameView::layout):

LayoutTests:

* fast/media/media-query-list-08-expected.txt: Removed.
* fast/media/media-query-list-08.html: Removed.
* platform/qt/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114330 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/media/media-query-list-08-expected.txt [deleted file]
LayoutTests/fast/media/media-query-list-08.html [deleted file]
LayoutTests/platform/qt/Skipped
Source/WebCore/ChangeLog
Source/WebCore/dom/Document.cpp
Source/WebCore/dom/Document.h
Source/WebCore/page/FrameView.cpp

index 9f2a906..c3ee32d 100644 (file)
@@ -1,3 +1,16 @@
+2012-04-16  Sheriff Bot  <webkit.review.bot@gmail.com>
+
+        Unreviewed, rolling out r114285.
+        http://trac.webkit.org/changeset/114285
+        https://bugs.webkit.org/show_bug.cgi?id=84107
+
+        broke fast/media/media-query-list-08.html in Mac (Requested by
+        andersca on #webkit).
+
+        * fast/media/media-query-list-08-expected.txt: Removed.
+        * fast/media/media-query-list-08.html: Removed.
+        * platform/qt/Skipped:
+
 2012-04-16  Anders Carlsson  <andersca@apple.com>
 
         Add two flaky tests in fast/profiler.
diff --git a/LayoutTests/fast/media/media-query-list-08-expected.txt b/LayoutTests/fast/media/media-query-list-08-expected.txt
deleted file mode 100644 (file)
index d947f9a..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-Test the MediaQueryList interface: http://dev.w3.org/csswg/cssom-view/#the-mediaquerylist-interface.
-
-Testing viewport related callbacks
-
-PASS
-
diff --git a/LayoutTests/fast/media/media-query-list-08.html b/LayoutTests/fast/media/media-query-list-08.html
deleted file mode 100644 (file)
index 9b7c91e..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<html>
-<head>
-<title>Test CSSOM View module: MediaQueryList interface</title>
-<script type="text/javascript" charset="utf-8">
-    if (window.layoutTestController) {
-        layoutTestController.dumpAsText();
-        layoutTestController.waitUntilDone();
-    }
-
-    function log(m) {
-        document.getElementById('results').innerHTML += m + '<br>';
-    }
-
-    function callback(query) {
-        log("PASS");
-        if (window.layoutTestController)
-            layoutTestController.notifyDone();
-    }
-
-    function runTests()
-    {
-        window.matchMedia("(max-width: 250px)").addListener(callback);
-        window.resizeTo(200, 300);
-    }
-
-</script>
-</head>
-<body onload="runTests()">
-    <p>Test the MediaQueryList interface: <a href="http://dev.w3.org/csswg/cssom-view/#the-mediaquerylist-interface" title="CSSOM View Module">http://dev.w3.org/csswg/cssom-view/#the-mediaquerylist-interface</a>.</p>
-    <p>Testing viewport related callbacks</p>
-    <div id="results">
-    </div>
-</body>
-</html>
index e080184..a639f4b 100644 (file)
@@ -1108,9 +1108,6 @@ fast/autoresize
 fast/canvas/2d.backingStorePixelRatio.html
 fast/canvas/2d.imageDataHD.html
 
-# window.resizeTo() does not trigger a relayout in our DumpRenderTree
-fast/media/media-query-list-08.html
-
 # This requires didClearWindowObjectForFrameInIsolatedWorld foo in FrameLoaderClient
 http/tests/security/isolatedWorld/didClearWindowObject.html
 # This needs more investigation
index f337244..3705087 100644 (file)
@@ -1,3 +1,19 @@
+2012-04-16  Sheriff Bot  <webkit.review.bot@gmail.com>
+
+        Unreviewed, rolling out r114285.
+        http://trac.webkit.org/changeset/114285
+        https://bugs.webkit.org/show_bug.cgi?id=84107
+
+        broke fast/media/media-query-list-08.html in Mac (Requested by
+        andersca on #webkit).
+
+        * dom/Document.cpp:
+        (WebCore::Document::styleSelectorChanged):
+        * dom/Document.h:
+        (Document):
+        * page/FrameView.cpp:
+        (WebCore::FrameView::layout):
+
 2012-04-16  Nate Chapin  <japhet@chromium.org>
 
         Remove unused variable CachedResourceLoader::m_loadFinishing
index 81f2524..53b9a70 100644 (file)
@@ -3145,12 +3145,6 @@ void Document::removePendingSheet()
         view()->scrollToFragment(m_url);
 }
 
-void Document::evaluateMediaQueryList()
-{
-    if (m_mediaQueryMatcher)
-        m_mediaQueryMatcher->styleSelectorChanged();
-}
-
 void Document::styleSelectorChanged(StyleSelectorUpdateFlag updateFlag)
 {
     // Don't bother updating, since we haven't loaded all our style info yet
@@ -3200,7 +3194,8 @@ void Document::styleSelectorChanged(StyleSelectorUpdateFlag updateFlag)
             view()->scheduleRelayout();
     }
 
-    evaluateMediaQueryList();
+    if (m_mediaQueryMatcher)
+        m_mediaQueryMatcher->styleSelectorChanged();
 }
 
 void Document::addStyleSheetCandidateNode(Node* node, bool createdByParser)
index 4545c8a..8950de5 100644 (file)
@@ -505,8 +505,6 @@ public:
      */
     void styleSelectorChanged(StyleSelectorUpdateFlag);
 
-    void evaluateMediaQueryList();
-
     bool usesSiblingRules() const { return m_usesSiblingRules || m_usesSiblingRulesOverride; }
     void setUsesSiblingRules(bool b) { m_usesSiblingRulesOverride = b; }
     bool usesFirstLineRules() const { return m_usesFirstLineRules; }
index 472d73b..844de28 100644 (file)
@@ -976,8 +976,7 @@ void FrameView::layout(bool allowSubtree)
         if (document->styleSelector()->affectedByViewportChange()) {
             document->styleSelectorChanged(RecalcStyleImmediately);
             InspectorInstrumentation::mediaQueryResultChanged(document);
-        } else
-            document->evaluateMediaQueryList();
+        }
 
         // Always ensure our style info is up-to-date. This can happen in situations where
         // the layout beats any sort of style recalc update that needs to occur.