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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGInline.cpp

Issue 2000763003: Check subtree paint invalidation when overflow clip status changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz>
3 * Copyright (C) 2006 Apple Inc. All rights reserved. 3 * Copyright (C) 2006 Apple Inc. All rights reserved.
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 void LayoutSVGInline::removeChild(LayoutObject* child) 137 void LayoutSVGInline::removeChild(LayoutObject* child)
138 { 138 {
139 SVGResourcesCache::clientWillBeRemovedFromTree(child); 139 SVGResourcesCache::clientWillBeRemovedFromTree(child);
140 140
141 if (LayoutSVGText* textLayoutObject = LayoutSVGText::locateLayoutSVGTextAnce stor(this)) 141 if (LayoutSVGText* textLayoutObject = LayoutSVGText::locateLayoutSVGTextAnce stor(this))
142 textLayoutObject->subtreeChildWillBeRemoved(); 142 textLayoutObject->subtreeChildWillBeRemoved();
143 LayoutInline::removeChild(child); 143 LayoutInline::removeChild(child);
144 } 144 }
145 145
146 void LayoutSVGInline::invalidateTreeIfNeeded(const PaintInvalidationState& paint InvalidationState)
chrishtr 2016/05/23 20:10:32 This looks different than LayoutBoxModelObject::in
Xianzhu 2016/05/23 21:35:49 I noticed this but thought LayoutBoxModelObject::i
147 {
148 ASSERT(!needsLayout());
149
150 if (!shouldCheckForPaintInvalidation(paintInvalidationState))
151 return;
152
153 PaintInvalidationState newPaintInvalidationState(paintInvalidationState, *th is);
154 PaintInvalidationReason reason = invalidatePaintIfNeeded(newPaintInvalidatio nState);
155 clearPaintInvalidationFlags(newPaintInvalidationState);
156
157 newPaintInvalidationState.updateForChildren(reason);
158 invalidatePaintOfSubtreesIfNeeded(newPaintInvalidationState);
159 }
160
161 } // namespace blink 146 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698