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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObjectChildList.cpp

Issue 2872423002: Tweak PaintInvalidationReasons (Closed)
Patch Set: Rebaseline-cl 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
Index: third_party/WebKit/Source/core/layout/LayoutObjectChildList.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObjectChildList.cpp b/third_party/WebKit/Source/core/layout/LayoutObjectChildList.cpp
index 709c36612d2a691f662bc146a8a421a0646155da..211b6f723f564dccc91e9f08875e8147a1bedef8 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObjectChildList.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObjectChildList.cpp
@@ -185,7 +185,7 @@ void LayoutObjectChildList::InsertChildNode(LayoutObject* owner,
new_child->SetNeedsLayoutAndPrefWidthsRecalc(
LayoutInvalidationReason::kAddedToLayout);
new_child->SetShouldDoFullPaintInvalidation(
- kPaintInvalidationLayoutObjectInsertion);
+ PaintInvalidationReason::kAppeared);
new_child->SetSubtreeNeedsPaintPropertyUpdate();
if (!owner->NormalChildNeedsLayout())
owner->SetChildNeedsLayout(); // We may supply the static position for an
@@ -207,7 +207,7 @@ void LayoutObjectChildList::InvalidatePaintOnRemoval(LayoutObject& old_child) {
paint_invalidator.SlowSetPaintingLayerNeedsRepaint();
paint_invalidator.InvalidatePaintOfPreviousVisualRect(
old_child.ContainerForPaintInvalidation(),
- kPaintInvalidationLayoutObjectRemoval);
+ PaintInvalidationReason::kDisappeared);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698