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

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

Issue 1110063006: Revert "Correct fixed-position recording for Slimming Paint" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/layout/LayoutObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutBoxModelObject.cpp
diff --git a/Source/core/layout/LayoutBoxModelObject.cpp b/Source/core/layout/LayoutBoxModelObject.cpp
index 48a415ded7c8b04f594978afad79e1280d33e9e1..cdc399c9623a430f0a88540820ec488b5db762e7 100644
--- a/Source/core/layout/LayoutBoxModelObject.cpp
+++ b/Source/core/layout/LayoutBoxModelObject.cpp
@@ -224,17 +224,6 @@ void LayoutBoxModelObject::styleDidChange(StyleDifference diff, const ComputedSt
setChildNeedsLayout();
}
- // Fixed-position is painted using transform. In the case that the object
- // gets the same layout after changing position property, although no
- // re-raster (rect-based invalidation) is needed, display items should
- // still update their paint offset.
- if (RuntimeEnabledFeatures::slimmingPaintEnabled() && oldStyle) {
- bool newStyleIsFixedPosition = style()->position() == FixedPosition;
- bool oldStyleIsFixedPosition = oldStyle->position() == FixedPosition;
- if (newStyleIsFixedPosition != oldStyleIsFixedPosition)
- invalidateDisplayItemClientForNonCompositingDescendants();
- }
-
if (FrameView *frameView = view()->frameView()) {
bool newStyleIsViewportConstained = style()->hasViewportConstrainedPosition();
bool oldStyleIsViewportConstrained = oldStyle && oldStyle->hasViewportConstrainedPosition();
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698