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

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

Issue 2893443002: Ignore visual rect/paint offset change under LayoutSVGHiddenContainer (Closed)
Patch Set: Created 3 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
« no previous file with comments | « third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h ('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.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
index f37495ddf1aeb21d40622aff79435c18e642f371..1b56dda2e7fb08a6ca1074b17d5260709f5093e7 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
@@ -475,6 +475,11 @@ void PaintInvalidator::InvalidatePaint(
UpdatePaintInvalidationContainer(object, context);
UpdateVisualRectIfNeeded(object, tree_builder_context, context);
+ if (object.IsSVGHiddenContainer()) {
+ context.forced_subtree_invalidation_flags |=
+ PaintInvalidatorContext::kForcedSubtreeNoRasterInvalidation;
+ }
+
if (!object.ShouldCheckForPaintInvalidation() &&
!(context.forced_subtree_invalidation_flags &
~PaintInvalidatorContext::kForcedSubtreeVisualRectUpdate)) {
@@ -483,11 +488,6 @@ void PaintInvalidator::InvalidatePaint(
return;
}
- if (object.IsSVGHiddenContainer()) {
- context.forced_subtree_invalidation_flags |=
- PaintInvalidatorContext::kForcedSubtreeNoRasterInvalidation;
- }
-
PaintInvalidationReason reason = object.InvalidatePaint(context);
switch (reason) {
case PaintInvalidationReason::kDelayedFull:
« no previous file with comments | « third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698