Title: [184232] branches/safari-601.1.32-branch

Diff

Modified: branches/safari-601.1.32-branch/LayoutTests/ChangeLog (184231 => 184232)


--- branches/safari-601.1.32-branch/LayoutTests/ChangeLog	2015-05-13 02:01:22 UTC (rev 184231)
+++ branches/safari-601.1.32-branch/LayoutTests/ChangeLog	2015-05-13 03:02:36 UTC (rev 184232)
@@ -1,3 +1,23 @@
+2015-05-12  Dana Burkart
+Dana Burkart  <dburk...@apple.com>
+
+        Merge r183894. rdar://problem/20049088
+
+    2015-05-06  Dean Jackson  <d...@apple.com>
+
+            Handle backdrop views that have to tile
+            https://bugs.webkit.org/show_bug.cgi?id=142317
+            <rdar://problem/20049088>
+
+            Reviewed by Simon Fraser.
+
+            A test that creates some backdrop views, then makes them
+            big enough that it would trigger tiling (which we don't want
+            to happen).
+
+            * compositing/media-controls-bar-appearance-big-expected.txt: Added.
+            * compositing/media-controls-bar-appearance-big.html: Added.
+
 2015-05-06  Brent Fulgham  <bfulg...@apple.com>
 
         Scroll-snap points do not handle margins and padding propertly
@@ -47,21 +67,26 @@
         * platform/mac/fast/text/systemFont.html: Update test to include font weights for -apple-system.
         * platform/mac/fast/text/systemFont-expected.txt: Update expectations.
 
-2015-05-06  Dean Jackson  <d...@apple.com>
+2015-05-12  Dana Burkart
+Dana Burkart  <dburk...@apple.com>
 
-        Handle backdrop views that have to tile
-        https://bugs.webkit.org/show_bug.cgi?id=142317
-        <rdar://problem/20049088>
+        Merge r183894. rdar://problem/20049088
 
-        Reviewed by Simon Fraser.
+    2015-05-06  Dean Jackson  <d...@apple.com>
 
-        A test that creates some backdrop views, then makes them
-        big enough that it would trigger tiling (which we don't want
-        to happen).
+            Handle backdrop views that have to tile
+            https://bugs.webkit.org/show_bug.cgi?id=142317
+            <rdar://problem/20049088>
 
-        * compositing/media-controls-bar-appearance-big-expected.txt: Added.
-        * compositing/media-controls-bar-appearance-big.html: Added.
+            Reviewed by Simon Fraser.
 
+            A test that creates some backdrop views, then makes them
+            big enough that it would trigger tiling (which we don't want
+            to happen).
+
+            * compositing/media-controls-bar-appearance-big-expected.txt: Added.
+            * compositing/media-controls-bar-appearance-big.html: Added.
+
 2015-05-06  Martin Robinson  <mrobin...@igalia.com>
 
         [FreeType] Vertical CJK glyphs should not be rendered with synthetic oblique

Added: branches/safari-601.1.32-branch/LayoutTests/compositing/media-controls-bar-appearance-big-expected.txt (0 => 184232)


--- branches/safari-601.1.32-branch/LayoutTests/compositing/media-controls-bar-appearance-big-expected.txt	                        (rev 0)
+++ branches/safari-601.1.32-branch/LayoutTests/compositing/media-controls-bar-appearance-big-expected.txt	2015-05-13 03:02:36 UTC (rev 184232)
@@ -0,0 +1,23 @@
+(GraphicsLayer
+  (anchor 0.00 0.00)
+  (bounds 2056.00 4117.00)
+  (children 1
+    (GraphicsLayer
+      (bounds 2056.00 4117.00)
+      (contentsOpaque 1)
+      (children 2
+        (GraphicsLayer
+          (position 8.00 8.00)
+          (bounds 2048.00 2048.00)
+          (drawsContent 1)
+        )
+        (GraphicsLayer
+          (position 8.00 2056.00)
+          (bounds 2048.00 2048.00)
+          (drawsContent 1)
+        )
+      )
+    )
+  )
+)
+

Added: branches/safari-601.1.32-branch/LayoutTests/compositing/media-controls-bar-appearance-big.html (0 => 184232)


--- branches/safari-601.1.32-branch/LayoutTests/compositing/media-controls-bar-appearance-big.html	                        (rev 0)
+++ branches/safari-601.1.32-branch/LayoutTests/compositing/media-controls-bar-appearance-big.html	2015-05-13 03:02:36 UTC (rev 184232)
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <style>
+        div {
+            position: relative;
+            height: 100px;
+            width: 100px;
+        }
+        .big {
+            width: 2048px;
+            height: 2048px;
+        }
+        .media-controls {
+            -webkit-transform: translate3d(0, 0, 0); /* The element has to request a layer for the appearance to work */
+        }
+        .dark {
+            -webkit-appearance: media-controls-dark-bar-background;
+        }
+        .light {
+            -webkit-appearance: media-controls-light-bar-background;
+        }
+    </style>
+    <script>
+        if (window.testRunner) {
+            testRunner.dumpAsText();
+            testRunner.waitUntilDone();
+        }
+
+        function change()
+        {
+            var elements = document.querySelectorAll(".media-controls");
+            for (var i = 0; i < elements.length; ++i)
+                elements[i].classList.add("big");
+            setTimeout(dumpLayers, 0);
+        }
+
+        function dumpLayers()
+        {
+            var layersResult = document.getElementById('layers');
+            if (window.testRunner) {
+                layersResult.innerText = window.internals.layerTreeAsText(document);
+                testRunner.notifyDone();
+            }
+        }
+        window.addEventListener('load', change, false)
+    </script>
+</head>
+<body>
+    <div class="media-controls dark">
+    </div>
+    <div class="media-controls light">
+    </div>
+<pre id="layers"></pre>
+</body>
+</html>

Modified: branches/safari-601.1.32-branch/Source/WebCore/ChangeLog (184231 => 184232)


--- branches/safari-601.1.32-branch/Source/WebCore/ChangeLog	2015-05-13 02:01:22 UTC (rev 184231)
+++ branches/safari-601.1.32-branch/Source/WebCore/ChangeLog	2015-05-13 03:02:36 UTC (rev 184232)
@@ -1,3 +1,29 @@
+2015-05-12  Dana Burkart
+Dana Burkart  <dburk...@apple.com>
+
+        Merge r183894. rdar://problem/20049088
+
+    2015-05-06  Dean Jackson  <d...@apple.com>
+
+            Handle backdrop views that have to tile
+            https://bugs.webkit.org/show_bug.cgi?id=142317
+            <rdar://problem/20049088>
+
+            Reviewed by Simon Fraser.
+
+            Make sure backdrop layers don't tile. If they are big
+            enough, we'll leave it to the platform compositor to handle.
+
+            This also fixes a bug where if a layer changed from a backdrop
+            type to a tiled type, it would still retain its custom appearance
+            and we'd try to add children to the wrong layer.
+
+            Test: compositing/media-controls-bar-appearance-big.html
+
+            * platform/graphics/ca/GraphicsLayerCA.cpp:
+            (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): Check if
+            a layer needs a backdrop before checking if it needs to tile.
+
 2015-05-06  Brent Fulgham  <bfulg...@apple.com>
 
         Scroll-snap points do not handle margins and padding propertly
@@ -138,27 +164,32 @@
         * platform/spi/mac/NSFontSPI.h: Add [NSFont systemFontWithSize:weight:], and the proper NSFontWeight
         constants.
 
-2015-05-06  Dean Jackson  <d...@apple.com>
+2015-05-12  Dana Burkart
+Dana Burkart  <dburk...@apple.com>
 
-        Handle backdrop views that have to tile
-        https://bugs.webkit.org/show_bug.cgi?id=142317
-        <rdar://problem/20049088>
+        Merge r183894. rdar://problem/20049088
 
-        Reviewed by Simon Fraser.
+    2015-05-06  Dean Jackson  <d...@apple.com>
 
-        Make sure backdrop layers don't tile. If they are big
-        enough, we'll leave it to the platform compositor to handle.
+            Handle backdrop views that have to tile
+            https://bugs.webkit.org/show_bug.cgi?id=142317
+            <rdar://problem/20049088>
 
-        This also fixes a bug where if a layer changed from a backdrop
-        type to a tiled type, it would still retain its custom appearance
-        and we'd try to add children to the wrong layer.
+            Reviewed by Simon Fraser.
 
-        Test: compositing/media-controls-bar-appearance-big.html
+            Make sure backdrop layers don't tile. If they are big
+            enough, we'll leave it to the platform compositor to handle.
 
-        * platform/graphics/ca/GraphicsLayerCA.cpp:
-        (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): Check if
-        a layer needs a backdrop before checking if it needs to tile.
+            This also fixes a bug where if a layer changed from a backdrop
+            type to a tiled type, it would still retain its custom appearance
+            and we'd try to add children to the wrong layer.
 
+            Test: compositing/media-controls-bar-appearance-big.html
+
+            * platform/graphics/ca/GraphicsLayerCA.cpp:
+            (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): Check if
+            a layer needs a backdrop before checking if it needs to tile.
+
 2015-05-06  Carlos Garcia Campos  <cgar...@igalia.com> and Per Arne Vollan  <pe...@outlook.com>
 
         [WinCairo] Compile error due to undefined symbols after r183868

Modified: branches/safari-601.1.32-branch/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp (184231 => 184232)


--- branches/safari-601.1.32-branch/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp	2015-05-13 02:01:22 UTC (rev 184231)
+++ branches/safari-601.1.32-branch/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp	2015-05-13 03:02:36 UTC (rev 184232)
@@ -1438,10 +1438,10 @@
     bool needBackdropLayerType = (customAppearance() == LightBackdropAppearance || customAppearance() == DarkBackdropAppearance);
     PlatformCALayer::LayerType neededLayerType = m_layer->layerType();
 
-    if (needTiledLayer)
+    if (needBackdropLayerType)
+        neededLayerType = layerTypeForCustomBackdropAppearance(customAppearance());
+    else if (needTiledLayer)
         neededLayerType = PlatformCALayer::LayerTypeTiledBackingLayer;
-    else if (needBackdropLayerType)
-        neededLayerType = layerTypeForCustomBackdropAppearance(customAppearance());
     else if (isCustomBackdropLayerType(m_layer->layerType()) || m_usingTiledBacking)
         neededLayerType = PlatformCALayer::LayerTypeWebLayer;
 

Modified: branches/safari-601.1.32-branch/Source/WebKit2/ChangeLog (184231 => 184232)


--- branches/safari-601.1.32-branch/Source/WebKit2/ChangeLog	2015-05-13 02:01:22 UTC (rev 184231)
+++ branches/safari-601.1.32-branch/Source/WebKit2/ChangeLog	2015-05-13 03:02:36 UTC (rev 184232)
@@ -1,3 +1,21 @@
+2015-05-12  Dana Burkart
+Dana Burkart  <dburk...@apple.com>
+
+        Merge r183894. rdar://problem/20049088
+
+    2015-05-06  Dean Jackson  <d...@apple.com>
+
+            Handle backdrop views that have to tile
+            https://bugs.webkit.org/show_bug.cgi?id=142317
+            <rdar://problem/20049088>
+
+            Reviewed by Simon Fraser.
+
+            Add some better logging for custom appearance.
+
+            * Shared/mac/RemoteLayerTreeTransaction.mm:
+            (WebKit::RemoteLayerTreeTextStream::operator<<):
+
 2015-05-11  Babak Shafiei  <bshaf...@apple.com>
 
         Merge r184004.
@@ -96,19 +114,24 @@
         (WebKit::UniqueIDBDatabase::countInBackingStore): Return after dispatching the error callback.
         (WebKit::UniqueIDBDatabase::deleteRangeInBackingStore): Ditto.
 
-2015-05-06  Dean Jackson  <d...@apple.com>
+2015-05-12  Dana Burkart
+Dana Burkart  <dburk...@apple.com>
 
-        Handle backdrop views that have to tile
-        https://bugs.webkit.org/show_bug.cgi?id=142317
-        <rdar://problem/20049088>
+        Merge r183894. rdar://problem/20049088
 
-        Reviewed by Simon Fraser.
+    2015-05-06  Dean Jackson  <d...@apple.com>
 
-        Add some better logging for custom appearance.
+            Handle backdrop views that have to tile
+            https://bugs.webkit.org/show_bug.cgi?id=142317
+            <rdar://problem/20049088>
 
-        * Shared/mac/RemoteLayerTreeTransaction.mm:
-        (WebKit::RemoteLayerTreeTextStream::operator<<):
+            Reviewed by Simon Fraser.
 
+            Add some better logging for custom appearance.
+
+            * Shared/mac/RemoteLayerTreeTransaction.mm:
+            (WebKit::RemoteLayerTreeTextStream::operator<<):
+
 2015-05-06  Chris Dumez  <cdu...@apple.com>
 
         Disable network cache efficacy logging

Modified: branches/safari-601.1.32-branch/Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm (184231 => 184232)


--- branches/safari-601.1.32-branch/Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm	2015-05-13 02:01:22 UTC (rev 184231)
+++ branches/safari-601.1.32-branch/Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm	2015-05-13 03:02:36 UTC (rev 184232)
@@ -666,6 +666,7 @@
     RemoteLayerTreeTextStream& operator<<(const FilterOperations&);
     RemoteLayerTreeTextStream& operator<<(const PlatformCAAnimationRemote::Properties&);
     RemoteLayerTreeTextStream& operator<<(const RemoteLayerBackingStore&);
+    RemoteLayerTreeTextStream& operator<<(const WebCore::GraphicsLayer::CustomAppearance&);
     RemoteLayerTreeTextStream& operator<<(BlendMode);
     RemoteLayerTreeTextStream& operator<<(PlatformCAAnimation::AnimationType);
     RemoteLayerTreeTextStream& operator<<(PlatformCAAnimation::FillModeType);
@@ -837,6 +838,19 @@
     return ts;
 }
 
+RemoteLayerTreeTextStream& RemoteLayerTreeTextStream::operator<<(const WebCore::GraphicsLayer::CustomAppearance& customAppearance)
+{
+    RemoteLayerTreeTextStream& ts = *this;
+    switch (customAppearance) {
+    case WebCore::GraphicsLayer::CustomAppearance::NoCustomAppearance: ts << "none"; break;
+    case WebCore::GraphicsLayer::CustomAppearance::ScrollingOverhang: ts << "scrolling-overhang"; break;
+    case WebCore::GraphicsLayer::CustomAppearance::ScrollingShadow: ts << "scrolling-shadow"; break;
+    case WebCore::GraphicsLayer::CustomAppearance::LightBackdropAppearance: ts << "light-backdrop"; break;
+    case WebCore::GraphicsLayer::CustomAppearance::DarkBackdropAppearance: ts << "dark-backdrop"; break;
+    }
+    return ts;
+}
+
 RemoteLayerTreeTextStream& RemoteLayerTreeTextStream::operator<<(BlendMode blendMode)
 {
     RemoteLayerTreeTextStream& ts = *this;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to