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

Side by Side Diff: sky/engine/core/rendering/RenderLayerModelObject.cpp

Issue 840483004: Get rid of the *AndFullPaintInvalidation methods. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 createLayer(type); 99 createLayer(type);
100 if (parent() && !needsLayout()) { 100 if (parent() && !needsLayout()) {
101 // FIXME: We should call a specialized version of this function. 101 // FIXME: We should call a specialized version of this function.
102 layer()->updateLayerPositionsAfterLayout(); 102 layer()->updateLayerPositionsAfterLayout();
103 } 103 }
104 } 104 }
105 } else if (layer() && layer()->parent()) { 105 } else if (layer() && layer()->parent()) {
106 setHasTransform(false); // Either a transform wasn't specified or the ob ject doesn't support transforms, so just null out the bit. 106 setHasTransform(false); // Either a transform wasn't specified or the ob ject doesn't support transforms, so just null out the bit.
107 layer()->removeOnlyThisLayer(); // calls destroyLayer() which clears m_l ayer 107 layer()->removeOnlyThisLayer(); // calls destroyLayer() which clears m_l ayer
108 if (hadTransform) 108 if (hadTransform)
109 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(); 109 setNeedsLayoutAndPrefWidthsRecalc();
110 } 110 }
111 111
112 if (layer()) { 112 if (layer()) {
113 // FIXME: Ideally we shouldn't need this setter but we can't easily infe r an overflow-only layer 113 // FIXME: Ideally we shouldn't need this setter but we can't easily infe r an overflow-only layer
114 // from the style. 114 // from the style.
115 layer()->setLayerType(type); 115 layer()->setLayerType(type);
116 layer()->styleChanged(diff, oldStyle); 116 layer()->styleChanged(diff, oldStyle);
117 } 117 }
118 } 118 }
119 119
120 } // namespace blink 120 } // namespace blink
121 121
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderInline.cpp ('k') | sky/engine/core/rendering/RenderLayerScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698