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

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

Issue 1331053002: Propagate resource-triggered repaints to text node children of <text> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Name/comment updates. Created 5 years, 3 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) 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 if (!textLayoutObject) { 143 if (!textLayoutObject) {
144 LayoutInline::removeChild(child); 144 LayoutInline::removeChild(child);
145 return; 145 return;
146 } 146 }
147 Vector<SVGTextLayoutAttributes*, 2> affectedAttributes; 147 Vector<SVGTextLayoutAttributes*, 2> affectedAttributes;
148 textLayoutObject->subtreeChildWillBeRemoved(child, affectedAttributes); 148 textLayoutObject->subtreeChildWillBeRemoved(child, affectedAttributes);
149 LayoutInline::removeChild(child); 149 LayoutInline::removeChild(child);
150 textLayoutObject->subtreeChildWasRemoved(affectedAttributes); 150 textLayoutObject->subtreeChildWasRemoved(affectedAttributes);
151 } 151 }
152 152
153 void LayoutSVGInline::invalidateTreeIfNeeded(PaintInvalidationState& paintInvali dationState)
154 {
155 ASSERT(!needsLayout());
156
157 if (!shouldCheckForPaintInvalidation(paintInvalidationState))
158 return;
159
160 PaintInvalidationReason reason = invalidatePaintIfNeeded(paintInvalidationSt ate, paintInvalidationState.paintInvalidationContainer());
161 clearPaintInvalidationState(paintInvalidationState);
162
163 if (reason == PaintInvalidationDelayedFull)
164 paintInvalidationState.pushDelayedPaintInvalidationTarget(*this);
165
166 PaintInvalidationState childTreeWalkState(paintInvalidationState, *this, pai ntInvalidationState.paintInvalidationContainer());
167 if (reason == PaintInvalidationSVGResourceChange)
168 childTreeWalkState.setForceSubtreeInvalidationWithinContainer();
169 invalidatePaintOfSubtreesIfNeeded(childTreeWalkState);
153 } 170 }
171
172 }
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGInline.h ('k') | Source/core/layout/svg/LayoutSVGResourceContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698