Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1482)

Unified Diff: Source/core/rendering/RenderLayerModelObject.cpp

Issue 448793002: Unified invalidation for repaint-only style change of layers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update requestAnimation-translation-leave-traces-expected.txt Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayerModelObject.cpp
diff --git a/Source/core/rendering/RenderLayerModelObject.cpp b/Source/core/rendering/RenderLayerModelObject.cpp
index 2e49acea7d3ef35cd33eee25c1b64418ab63469b..ec0eabf7e6c936d353f52704861cf837f8be798f 100644
--- a/Source/core/rendering/RenderLayerModelObject.cpp
+++ b/Source/core/rendering/RenderLayerModelObject.cpp
@@ -90,16 +90,8 @@ void RenderLayerModelObject::styleWillChange(StyleDifference diff, const RenderS
{
s_wasFloating = isFloating();
- // If our z-index changes value or our visibility changes,
- // we need to dirty our stacking context's z-order list.
- RenderStyle* oldStyle = style();
- if (oldStyle) {
- // Do a repaint with the old style first through RenderLayerRepainter.
- // RenderObject::styleWillChange takes care of repainting objects without RenderLayers.
+ if (RenderStyle* oldStyle = style()) {
if (parent() && diff.needsRepaintLayer()) {
- // This is currently need to make non-layout-requiring updates work that impact descendant layers,
- // such as changes to opacity or transform.
- layer()->repainter().repaintIncludingNonCompositingDescendants();
if (oldStyle->hasClip() != newStyle.hasClip()
|| oldStyle->clip() != newStyle.clip())
layer()->clipper().clearClipRectsIncludingDescendants();
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698