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

Side by Side Diff: Source/core/svg/SVGSVGElement.cpp

Issue 280633002: Rename RenderObject::setNeedsLayout to setNeedsLayoutAndFullRepaint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGPatternElement.cpp ('k') | no next file » | 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) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2007 Apple Inc. All rights reserved.
5 * Copyright (C) 2014 Google, Inc. 5 * Copyright (C) 2014 Google, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 void SVGSVGElement::setCurrentTranslate(const FloatPoint& point) 201 void SVGSVGElement::setCurrentTranslate(const FloatPoint& point)
202 { 202 {
203 m_translation->setValue(point); 203 m_translation->setValue(point);
204 updateCurrentTranslate(); 204 updateCurrentTranslate();
205 } 205 }
206 206
207 void SVGSVGElement::updateCurrentTranslate() 207 void SVGSVGElement::updateCurrentTranslate()
208 { 208 {
209 if (RenderObject* object = renderer()) 209 if (RenderObject* object = renderer())
210 object->setNeedsLayout(); 210 object->setNeedsLayoutAndFullRepaint();
211 } 211 }
212 212
213 void SVGSVGElement::parseAttribute(const QualifiedName& name, const AtomicString & value) 213 void SVGSVGElement::parseAttribute(const QualifiedName& name, const AtomicString & value)
214 { 214 {
215 SVGParsingError parseError = NoError; 215 SVGParsingError parseError = NoError;
216 216
217 if (!nearestViewportElement()) { 217 if (!nearestViewportElement()) {
218 bool setListener = true; 218 bool setListener = true;
219 219
220 // Only handle events if we're the outermost <svg> element 220 // Only handle events if we're the outermost <svg> element
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 // The outermost SVGSVGElement SVGLoad event is fired through Document::disp atchWindowLoadEvent. 773 // The outermost SVGSVGElement SVGLoad event is fired through Document::disp atchWindowLoadEvent.
774 if (isOutermostSVGSVGElement()) 774 if (isOutermostSVGSVGElement())
775 return; 775 return;
776 776
777 // finishParsingChildren() is called when the close tag is reached for an el ement (e.g. </svg>) 777 // finishParsingChildren() is called when the close tag is reached for an el ement (e.g. </svg>)
778 // we send SVGLoad events here if we can, otherwise they'll be sent when any required loads finish 778 // we send SVGLoad events here if we can, otherwise they'll be sent when any required loads finish
779 sendSVGLoadEventIfPossible(); 779 sendSVGLoadEventIfPossible();
780 } 780 }
781 781
782 } 782 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPatternElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698