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

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

Issue 462133002: Remove custom style building functions for 'clip'. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased. Created 6 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 unified diff | Download patch
« no previous file with comments | « Source/core/css/resolver/StyleBuilderCustom.cpp ('k') | Source/core/rendering/RenderObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 destroyLayer(); 86 destroyLayer();
87 } 87 }
88 88
89 void RenderLayerModelObject::styleWillChange(StyleDifference diff, const RenderS tyle& newStyle) 89 void RenderLayerModelObject::styleWillChange(StyleDifference diff, const RenderS tyle& newStyle)
90 { 90 {
91 s_wasFloating = isFloating(); 91 s_wasFloating = isFloating();
92 92
93 if (RenderStyle* oldStyle = style()) { 93 if (RenderStyle* oldStyle = style()) {
94 if (parent() && diff.needsPaintInvalidationLayer()) { 94 if (parent() && diff.needsPaintInvalidationLayer()) {
95 if (oldStyle->hasClip() != newStyle.hasClip() 95 if (oldStyle->hasAutoClip() != newStyle.hasAutoClip()
96 || oldStyle->clip() != newStyle.clip()) 96 || oldStyle->clip() != newStyle.clip())
97 layer()->clipper().clearClipRectsIncludingDescendants(); 97 layer()->clipper().clearClipRectsIncludingDescendants();
98 } 98 }
99 } 99 }
100 100
101 RenderObject::styleWillChange(diff, newStyle); 101 RenderObject::styleWillChange(diff, newStyle);
102 } 102 }
103 103
104 void RenderLayerModelObject::styleDidChange(StyleDifference diff, const RenderSt yle* oldStyle) 104 void RenderLayerModelObject::styleDidChange(StyleDifference diff, const RenderSt yle* oldStyle)
105 { 105 {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 InvalidationReason reason = invalidatePaintIfNeeded(paintInvalidationState, newPaintInvalidationContainer); 200 InvalidationReason reason = invalidatePaintIfNeeded(paintInvalidationState, newPaintInvalidationContainer);
201 201
202 PaintInvalidationState childTreeWalkState(paintInvalidationState, *this, new PaintInvalidationContainer); 202 PaintInvalidationState childTreeWalkState(paintInvalidationState, *this, new PaintInvalidationContainer);
203 if (reason == InvalidationLocationChange || reason == InvalidationFull) 203 if (reason == InvalidationLocationChange || reason == InvalidationFull)
204 childTreeWalkState.setForceCheckForPaintInvalidation(); 204 childTreeWalkState.setForceCheckForPaintInvalidation();
205 RenderObject::invalidateTreeIfNeeded(childTreeWalkState); 205 RenderObject::invalidateTreeIfNeeded(childTreeWalkState);
206 } 206 }
207 207
208 } // namespace blink 208 } // namespace blink
209 209
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleBuilderCustom.cpp ('k') | Source/core/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698