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

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

Issue 2014483003: Rename OwnPtr::clear() to reset() in core/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2007, 2008, 2009 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007, 2008, 2009 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. 5 * Copyright (C) 2009 Google, Inc.
6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // (hence no one is interested in viewport size changes). 158 // (hence no one is interested in viewport size changes).
159 bool layoutSizeChanged = m_isLayoutSizeChanged && svg->hasRelativeLengths(); 159 bool layoutSizeChanged = m_isLayoutSizeChanged && svg->hasRelativeLengths();
160 160
161 SVGLayoutSupport::layoutChildren(firstChild(), false, m_didScreenScaleFactor Change, layoutSizeChanged); 161 SVGLayoutSupport::layoutChildren(firstChild(), false, m_didScreenScaleFactor Change, layoutSizeChanged);
162 162
163 if (m_needsBoundariesOrTransformUpdate) { 163 if (m_needsBoundariesOrTransformUpdate) {
164 updateCachedBoundaries(); 164 updateCachedBoundaries();
165 m_needsBoundariesOrTransformUpdate = false; 165 m_needsBoundariesOrTransformUpdate = false;
166 } 166 }
167 167
168 m_overflow.clear(); 168 m_overflow.reset();
169 addVisualEffectOverflow(); 169 addVisualEffectOverflow();
170 170
171 if (!shouldApplyViewportClip()) { 171 if (!shouldApplyViewportClip()) {
172 FloatRect contentPaintInvalidationRect = paintInvalidationRectInLocalSVG Coordinates(); 172 FloatRect contentPaintInvalidationRect = paintInvalidationRectInLocalSVG Coordinates();
173 contentPaintInvalidationRect = m_localToBorderBoxTransform.mapRect(conte ntPaintInvalidationRect); 173 contentPaintInvalidationRect = m_localToBorderBoxTransform.mapRect(conte ntPaintInvalidationRect);
174 addContentsVisualOverflow(enclosingLayoutRect(contentPaintInvalidationRe ct)); 174 addContentsVisualOverflow(enclosingLayoutRect(contentPaintInvalidationRe ct));
175 } 175 }
176 176
177 updateLayerTransformAfterLayout(); 177 updateLayerTransformAfterLayout();
178 m_hasBoxDecorationBackground = isDocumentElement() ? calculateHasBoxDecorati ons() : hasBoxDecorationBackground(); 178 m_hasBoxDecorationBackground = isDocumentElement() ? calculateHasBoxDecorati ons() : hasBoxDecorationBackground();
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 updateHitTestResult(result, pointInBorderBox); 419 updateHitTestResult(result, pointInBorderBox);
420 if (result.addNodeToListBasedTestResult(node(), locationInContainer, boundsRect) == StopHitTesting) 420 if (result.addNodeToListBasedTestResult(node(), locationInContainer, boundsRect) == StopHitTesting)
421 return true; 421 return true;
422 } 422 }
423 } 423 }
424 424
425 return false; 425 return false;
426 } 426 }
427 427
428 } // namespace blink 428 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698