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

Side by Side Diff: Source/core/rendering/RenderLayerModelObject.cpp

Issue 337593002: Remove call to setMayNeedPaintInvalidation in RenderLayer::updateLayerPositionRecursive (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: MOre cleanup Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
7 * Copyright (C) 2010, 2012 Google Inc. All rights reserved. 7 * Copyright (C) 2010, 2012 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // FIXME: This invalidation is overly broad. We should update to 135 // FIXME: This invalidation is overly broad. We should update to
136 // do the correct invalidation at RenderStyle::diff time. crbug. com/349061 136 // do the correct invalidation at RenderStyle::diff time. crbug. com/349061
137 if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) 137 if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled())
138 layer()->renderer()->setShouldDoFullPaintInvalidationAfterLa yout(true); 138 layer()->renderer()->setShouldDoFullPaintInvalidationAfterLa yout(true);
139 else 139 else
140 layer()->repainter().setRepaintStatus(NeedsFullRepaint); 140 layer()->repainter().setRepaintStatus(NeedsFullRepaint);
141 // Hit in animations/interpolation/perspective-interpolation.htm l 141 // Hit in animations/interpolation/perspective-interpolation.htm l
142 DisableCompositingQueryAsserts disabler; 142 DisableCompositingQueryAsserts disabler;
143 // There is only one layer to update, it is not worth using |cac hedOffset| since 143 // There is only one layer to update, it is not worth using |cac hedOffset| since
144 // we are not sure the value will be used. 144 // we are not sure the value will be used.
145 layer()->updateLayerPositionRecursive(0, 0); 145 layer()->updateLayerPositionRecursive(0);
146 } 146 }
147 } 147 }
148 } else if (layer() && layer()->parent()) { 148 } else if (layer() && layer()->parent()) {
149 setHasTransform(false); // Either a transform wasn't specified or the ob ject doesn't support transforms, so just null out the bit. 149 setHasTransform(false); // Either a transform wasn't specified or the ob ject doesn't support transforms, so just null out the bit.
150 setHasReflection(false); 150 setHasReflection(false);
151 layer()->removeOnlyThisLayer(); // calls destroyLayer() which clears m_l ayer 151 layer()->removeOnlyThisLayer(); // calls destroyLayer() which clears m_l ayer
152 if (s_wasFloating && isFloating()) 152 if (s_wasFloating && isFloating())
153 setChildNeedsLayout(); 153 setChildNeedsLayout();
154 if (hadTransform) 154 if (hadTransform)
155 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(); 155 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 return m_layer ? m_layer->hasCompositedLayerMapping() : false; 202 return m_layer ? m_layer->hasCompositedLayerMapping() : false;
203 } 203 }
204 204
205 CompositedLayerMapping* RenderLayerModelObject::groupedMapping() const 205 CompositedLayerMapping* RenderLayerModelObject::groupedMapping() const
206 { 206 {
207 return m_layer ? m_layer->groupedMapping() : 0; 207 return m_layer ? m_layer->groupedMapping() : 0;
208 } 208 }
209 209
210 } // namespace WebCore 210 } // namespace WebCore
211 211
OLDNEW
« LayoutTests/TestExpectations ('K') | « Source/core/rendering/RenderLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698