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

Unified Diff: Source/core/layout/LayoutBox.h

Issue 1145993002: Refactor root element background painting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: make invalidation more robust. also improve incremental invalidation for some common cases Created 5 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: Source/core/layout/LayoutBox.h
diff --git a/Source/core/layout/LayoutBox.h b/Source/core/layout/LayoutBox.h
index 6e83511d3d3fff7b20d96cecb002bf14e111c9d5..1d8c2f7ef1c1da5612a1a911952c0f187395bfee 100644
--- a/Source/core/layout/LayoutBox.h
+++ b/Source/core/layout/LayoutBox.h
@@ -772,10 +772,11 @@ protected:
virtual bool hasNonCompositedScrollbars() const override final;
+ bool mustInvalidateFillLayersPaintOnWidthChange(const FillLayer&) const;
+
private:
bool mustInvalidateBackgroundOrBorderPaintOnHeightChange() const;
bool mustInvalidateBackgroundOrBorderPaintOnWidthChange() const;
- inline bool mustInvalidateFillLayersPaintOnWidthChange(const FillLayer&) const;
void invalidatePaintRectClippedByOldAndNewBounds(const LayoutBoxModelObject& paintInvalidationContainer, const LayoutRect&, const LayoutRect& oldBounds, const LayoutRect& newBounds);
@@ -786,7 +787,7 @@ private:
LayoutUnit shrinkToFitLogicalWidth(LayoutUnit availableLogicalWidth, LayoutUnit bordersPlusPadding) const;
// Returns true if we queued up a paint invalidation.
- bool paintInvalidationLayerRectsForImage(WrappedImagePtr, const FillLayer&, bool drawingBackground);
+ bool invalidatePaintOfLayerRectsForImage(WrappedImagePtr, const FillLayer&, bool drawingBackground);
bool skipContainingBlockForPercentHeightCalculation(const LayoutBox* containingBlock) const;

Powered by Google App Engine
This is Rietveld 408576698