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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 2063543002: LayoutObject::paintInvalidationParent() to fix multicol spanner invalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: LayoutObject::paintInvalidationParent() to fix multicol spanner invalidation Created 4 years, 6 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/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index 41ca9c6c3a2321d73710d7baa0dae848ded8de17..f417cda7e924dfa9a6c8d8b82ffda4a83e200ad5 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1667,7 +1667,11 @@ private:
// The passed rect is mutated into the coordinate space of the paint invalidation container.
const LayoutBoxModelObject* invalidatePaintRectangleInternal(const LayoutRect&) const;
- LayoutObject* parentCrossingFrameBoundaries() const;
+ // Returns the parent for paint invalidation.
+ // - For LayoutView, returns the owner layout object in the containing frame if any or nullptr;
+ // - For multi-column spanner, returns the spanner placeholder;
+ // - Otherwise returns parent().
+ LayoutObject* paintInvalidationParent() const;
static LayoutPoint uninitializedPaintOffset() { return LayoutPoint(LayoutUnit::max(), LayoutUnit::max()); }

Powered by Google App Engine
This is Rietveld 408576698