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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.cpp

Issue 1950573003: Improve handling of PaintInvalidationLayer (renamed to PaintInvalidationSubtree) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@LocationChange
Patch Set: Created 4 years, 7 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
Index: third_party/WebKit/Source/core/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index 14e06643001976985b4facba3679160a7a243d33..504259b74d5d9eafac10c6fcd1c2229d6e78cba2 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -479,8 +479,8 @@ StyleDifference ComputedStyle::visualInvalidationDiff(const ComputedStyle& other
diff.setNeedsPositionedMovementLayout();
}
- if (diffNeedsPaintInvalidationLayer(other))
- diff.setNeedsPaintInvalidationLayer();
+ if (diffNeedsPaintInvalidationSubtree(other))
+ diff.setNeedsPaintInvalidationSubtree();
else if (diffNeedsPaintInvalidationObject(other))
diff.setNeedsPaintInvalidationObject();
@@ -703,7 +703,7 @@ bool ComputedStyle::diffNeedsFullLayout(const ComputedStyle& other) const
return false;
}
-bool ComputedStyle::diffNeedsPaintInvalidationLayer(const ComputedStyle& other) const
+bool ComputedStyle::diffNeedsPaintInvalidationSubtree(const ComputedStyle& other) const
{
if (position() != StaticPosition && (visual->clip != other.visual->clip || visual->hasAutoClip != other.visual->hasAutoClip))
return true;
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | third_party/WebKit/Source/core/style/StyleDifference.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698