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

Unified Diff: third_party/WebKit/Source/core/paint/PaintInvalidator.h

Issue 2707063003: Don't invalidate rect if it's covered by fully invalidated parent's visual rect (Closed)
Patch Set: - Created 3 years, 10 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 | « third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintInvalidator.h
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.h b/third_party/WebKit/Source/core/paint/PaintInvalidator.h
index d97b3ff445f2b6a61b5cc96479354e6c03b683d5..ad68294cba09f153a524460a35d2ebc09990c55b 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.h
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.h
@@ -20,12 +20,13 @@ struct PaintPropertyTreeBuilderContext;
struct PaintInvalidatorContext {
PaintInvalidatorContext(
const PaintPropertyTreeBuilderContext& treeBuilderContext)
- : treeBuilderContext(treeBuilderContext) {}
+ : treeBuilderContext(treeBuilderContext), parentContext(nullptr) {}
PaintInvalidatorContext(
const PaintPropertyTreeBuilderContext& treeBuilderContext,
const PaintInvalidatorContext& parentContext)
: treeBuilderContext(treeBuilderContext),
+ parentContext(&parentContext),
forcedSubtreeInvalidationFlags(
parentContext.forcedSubtreeInvalidationFlags),
paintInvalidationContainer(parentContext.paintInvalidationContainer),
@@ -39,6 +40,7 @@ struct PaintInvalidatorContext {
LayoutRect&) const;
const PaintPropertyTreeBuilderContext& treeBuilderContext;
+ const PaintInvalidatorContext* parentContext;
enum ForcedSubtreeInvalidationFlag {
ForcedSubtreeInvalidationChecking = 1 << 0,
« no previous file with comments | « third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698