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

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

Issue 2225033003: Separate backgroundObscurationStatus and hasBoxDecorationBackground (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - Created 4 years, 4 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.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 41dba4ef9b60ad6c8700410bd6eb1b2720df4d7f..ba5f5295b2175d1fa3d7ba2b08e9dcd418d032c1 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1388,10 +1388,10 @@ PaintInvalidationReason LayoutObject::invalidatePaintIfNeeded(const PaintInvalid
"object", this->debugName().ascii(),
"info", jsonObjectForOldAndNewRects(oldBounds, oldLocation, newBounds, newLocation));
- bool boxDecorationBackgroundObscured = boxDecorationBackgroundIsKnownToBeObscured();
- if (!isFullPaintInvalidationReason(invalidationReason) && boxDecorationBackgroundObscured != m_bitfields.lastBoxDecorationBackgroundObscured())
+ bool backgroundObscured = backgroundIsKnownToBeObscured();
+ if (!isFullPaintInvalidationReason(invalidationReason) && backgroundObscured != m_bitfields.previousBackgroundObscured())
invalidationReason = PaintInvalidationBackgroundObscurationChange;
- m_bitfields.setLastBoxDecorationBackgroundObscured(boxDecorationBackgroundObscured);
+ m_bitfields.setPreviousBackgroundObscured(backgroundObscured);
if (invalidationReason == PaintInvalidationNone) {
// TODO(trchen): Currently we don't keep track of paint offset of layout objects.

Powered by Google App Engine
This is Rietveld 408576698