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

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

Issue 1145993002: Refactor root element background painting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 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: Source/core/layout/LayoutObject.cpp
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
index ea3e8a38731fcb5579ab27e653bd98016a5963d9..29359f1ab3f57a73d2056df4d4c4a39c5f08efa9 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -3173,15 +3173,6 @@ void LayoutObject::setShouldDoFullPaintInvalidation(PaintInvalidationReason reas
if (reason == PaintInvalidationFull)
reason = documentLifecycleBasedPaintInvalidationReason(document().lifecycle());
m_bitfields.setFullPaintInvalidationReason(reason);
-
- if (RuntimeEnabledFeatures::slimmingPaintEnabled() && isBody()) {
- // The rootObject paints view's background. We need to invalidate it when
- // view's background changes because of change of body's style.
- // FIXME: The condition is broader than needed for simplicity.
- // Might remove this when fixing crbug.com/475115.
- if (LayoutObject* rootObject = document().documentElement()->layoutObject())
- rootObject->setShouldDoFullPaintInvalidation();
- }
}
if (!isUpgradingDelayedFullToFull) {

Powered by Google App Engine
This is Rietveld 408576698