Changeset 166800 in webkit
- Timestamp:
- Apr 4, 2014 1:34:23 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r166793 r166800 1 2014-04-04 Ion Rosca <rosca@adobe.com> 2 3 [CSS Blending] Add compositing reason for isolation. 4 https://bugs.webkit.org/show_bug.cgi?id=131153 5 6 Reviewed by Joseph Pecoraro. 7 8 * inspector-protocol/layers/layers-blending-compositing-reasons-expected.txt: Added. 9 * inspector-protocol/layers/layers-blending-compositing-reasons.html: Added. 10 1 11 2014-04-04 Alexey Proskuryakov <ap@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r166797 r166800 1 2014-04-04 Ion Rosca <rosca@adobe.com> 2 3 [CSS Blending] Add compositing reason for isolation. 4 https://bugs.webkit.org/show_bug.cgi?id=131153 5 6 Reviewed by Joseph Pecoraro. 7 8 There are 2 reasons involving blend modes for a layer to be composited: 9 1) the layer has blend mode and has composited descendants: CompositingReasonBlendingWithCompositedDescendants. 10 2) the layer has to isolate composited blending descendants: CompositingReasonIsolatesCompositedBlendingDescendants 11 12 Test: inspector-protocol/layers/layers-blending-compositing-reasons.html 13 14 * inspector/InspectorLayerTreeAgent.cpp: 15 (WebCore::InspectorLayerTreeAgent::reasonsForCompositingLayer): 16 * inspector/protocol/LayerTree.json: 17 * rendering/RenderLayerCompositor.cpp: 18 (WebCore::RenderLayerCompositor::reasonsForCompositing): 19 (WebCore::RenderLayerCompositor::logReasonsForCompositing): 20 * rendering/RenderLayerCompositor.h: adding CompositingReasonIsolatesCompositedBlendingDescendants. 21 1 22 2014-04-04 Bem Jones-Bey <bjonesbe@adobe.com> 2 23 -
trunk/Source/WebCore/inspector/InspectorLayerTreeAgent.cpp
r163955 r166800 299 299 compositingReasons->setBlendingWithCompositedDescendants(true); 300 300 301 if (reasonsBitmask & CompositingReasonIsolatesCompositedBlendingDescendants) 302 compositingReasons->setIsolatesCompositedBlendingDescendants(true); 303 301 304 if (reasonsBitmask & CompositingReasonPerspective) 302 305 compositingReasons->setPerspective(true); -
trunk/Source/WebCore/inspector/protocol/LayerTree.json
r161673 r166800 68 68 { "name": "filterWithCompositedDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with an element with CSS filters applied and composited descendants." }, 69 69 { "name": "blendingWithCompositedDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with an element with CSS blending applied and composited descendants." }, 70 { "name": "isolatesCompositedBlendingDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with an element isolating compositing descendants having CSS blending applied." }, 70 71 { "name": "perspective", "type": "boolean", "optional": true, "description": "Composition due to association with an element with perspective applied." }, 71 72 { "name": "preserve3D", "type": "boolean", "optional": true, "description": "Composition due to association with an element with a \"transform-style: preserve-3d\" style." }, -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r166739 r166800 2128 2128 #if ENABLE(CSS_COMPOSITING) 2129 2129 if (layer.isolatesCompositedBlending()) 2130 reasons |= CompositingReasonIsolatesCompositedBlendingDescendants; 2131 2132 if (layer.hasBlendMode()) 2130 2133 reasons |= CompositingReasonBlendingWithCompositedDescendants; 2131 2134 #endif … … 2203 2206 if (reasons & CompositingReasonFilterWithCompositedDescendants) 2204 2207 return "filter with composited descendants"; 2205 2208 2209 #if ENABLE(CSS_COMPOSITING) 2206 2210 if (reasons & CompositingReasonBlendingWithCompositedDescendants) 2207 2211 return "blending with composited descendants"; 2212 2213 if (reasons & CompositingReasonIsolatesCompositedBlendingDescendants) 2214 return "isolates composited blending descendants"; 2215 #endif 2208 2216 2209 2217 if (reasons & CompositingReasonPerspective) -
trunk/Source/WebCore/rendering/RenderLayerCompositor.h
r166634 r166800 81 81 CompositingReasonPerspective = 1 << 21, 82 82 CompositingReasonPreserve3D = 1 << 22, 83 CompositingReasonRoot = 1 << 23 83 CompositingReasonRoot = 1 << 23, 84 CompositingReasonIsolatesCompositedBlendingDescendants = 1 << 24, 84 85 }; 85 86 typedef unsigned CompositingReasons; -
trunk/Source/WebInspectorUI/ChangeLog
r166657 r166800 1 2014-04-04 Ion Rosca <rosca@adobe.com> 2 3 [CSS Blending] Add compositing reason for isolation. 4 https://bugs.webkit.org/show_bug.cgi?id=131153 5 6 Reviewed by Joseph Pecoraro. 7 8 * Localizations/en.lproj/localizedStrings.js: 9 * UserInterface/Views/LayerTreeSidebarPanel.js: 10 (WebInspector.LayerTreeSidebarPanel.prototype._populateListOfCompositingReasons): 11 1 12 2014-04-02 Timothy Hatcher <timothy@apple.com> 2 13 -
trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js
r166449 r166800 151 151 localizedStrings["Element establishes a stacking context"] = "Element establishes a stacking context"; 152 152 localizedStrings["Element has CSS blending applied and composited descendants"] = "Element has CSS blending applied and composited descendants"; 153 localizedStrings["Element is a stacking context and has composited descendants with CSS blending applied"] = "Element is a stacking context and has composited descendants with CSS blending applied"; 153 154 localizedStrings["Element has CSS filters applied"] = "Element has CSS filters applied"; 154 155 localizedStrings["Element has CSS filters applied and composited descendants"] = "Element has CSS filters applied and composited descendants"; -
trunk/Source/WebInspectorUI/UserInterface/Views/LayerTreeSidebarPanel.js
r165487 r166800 433 433 if (compositingReasons.blendingWithCompositedDescendants) 434 434 addReason(WebInspector.UIString("Element has CSS blending applied and composited descendants")); 435 if (compositingReasons.isolatesCompositedBlendingDescendants) 436 addReason(WebInspector.UIString("Element is a stacking context and has composited descendants with CSS blending applied")); 435 437 if (compositingReasons.perspective) 436 438 addReason(WebInspector.UIString("Element has perspective applied"));
Note: See TracChangeset
for help on using the changeset viewer.