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

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

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 | « no previous file | third_party/WebKit/Source/core/paint/PaintInvalidator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h
diff --git a/third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h b/third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h
index cae7bc76c31ed1c4725b60fa46434ca1a7d01fad..a2d4595e3e552b35e29a5b78bd5da21fc579f68d 100644
--- a/third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h
+++ b/third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h
@@ -91,6 +91,10 @@ class FindVisualRectNeedingUpdateScopeBase {
void CheckVisualRect(const LayoutRect& new_visual_rect) {
if (needed_visual_rect_update_)
return;
+ if (context_.forced_subtree_invalidation_flags &
+ PaintInvalidatorContext::kForcedSubtreeNoRasterInvalidation)
+ return;
+
DCHECK((old_visual_rect_.IsEmpty() && new_visual_rect.IsEmpty()) ||
object_.EnclosingLayer()->SubtreeIsInvisible() ||
old_visual_rect_ == new_visual_rect ||
@@ -158,6 +162,10 @@ class FindObjectVisualRectNeedingUpdateScope
void CheckLocation() {
if (needed_visual_rect_update_)
return;
+ if (context_.forced_subtree_invalidation_flags &
+ PaintInvalidatorContext::kForcedSubtreeNoRasterInvalidation)
+ return;
+
LayoutPoint new_location =
ObjectPaintInvalidator(object_).LocationInBacking();
// Location of LayoutText and non-root SVG is location of the visual rect
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintInvalidator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698