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

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

Issue 332543002: Rename Repaint to Paint Invalidation Part 4 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGPatternElement.cpp ('k') | Source/core/svg/graphics/filters/SVGFEImage.cpp » ('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) 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 void SVGSVGElement::setCurrentTranslate(const FloatPoint& point) 202 void SVGSVGElement::setCurrentTranslate(const FloatPoint& point)
203 { 203 {
204 m_translation->setValue(point); 204 m_translation->setValue(point);
205 updateCurrentTranslate(); 205 updateCurrentTranslate();
206 } 206 }
207 207
208 void SVGSVGElement::updateCurrentTranslate() 208 void SVGSVGElement::updateCurrentTranslate()
209 { 209 {
210 if (RenderObject* object = renderer()) 210 if (RenderObject* object = renderer())
211 object->setNeedsLayoutAndFullRepaint(); 211 object->setNeedsLayoutAndFullPaintInvalidation();
212 } 212 }
213 213
214 void SVGSVGElement::parseAttribute(const QualifiedName& name, const AtomicString & value) 214 void SVGSVGElement::parseAttribute(const QualifiedName& name, const AtomicString & value)
215 { 215 {
216 SVGParsingError parseError = NoError; 216 SVGParsingError parseError = NoError;
217 217
218 if (!nearestViewportElement()) { 218 if (!nearestViewportElement()) {
219 bool setListener = true; 219 bool setListener = true;
220 220
221 // Only handle events if we're the outermost <svg> element 221 // Only handle events if we're the outermost <svg> element
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 { 350 {
351 RenderObject* renderer = element.renderer(); 351 RenderObject* renderer = element.renderer();
352 ASSERT(!renderer || renderer->style()); 352 ASSERT(!renderer || renderer->style());
353 if (!renderer || renderer->style()->pointerEvents() == PE_NONE) 353 if (!renderer || renderer->style()->pointerEvents() == PE_NONE)
354 return false; 354 return false;
355 355
356 if (!isIntersectionOrEnclosureTarget(renderer)) 356 if (!isIntersectionOrEnclosureTarget(renderer))
357 return false; 357 return false;
358 358
359 AffineTransform ctm = toSVGGraphicsElement(element).computeCTM(AncestorScope , DisallowStyleUpdate, this); 359 AffineTransform ctm = toSVGGraphicsElement(element).computeCTM(AncestorScope , DisallowStyleUpdate, this);
360 FloatRect mappedRepaintRect = ctm.mapRect(renderer->repaintRectInLocalCoordi nates()); 360 FloatRect mappedRepaintRect = ctm.mapRect(renderer->paintInvalidationRectInL ocalCoordinates());
361 361
362 bool result = false; 362 bool result = false;
363 switch (mode) { 363 switch (mode) {
364 case CheckIntersection: 364 case CheckIntersection:
365 result = intersectsAllowingEmpty(rect, mappedRepaintRect); 365 result = intersectsAllowingEmpty(rect, mappedRepaintRect);
366 break; 366 break;
367 case CheckEnclosure: 367 case CheckEnclosure:
368 result = rect.contains(mappedRepaintRect); 368 result = rect.contains(mappedRepaintRect);
369 break; 369 break;
370 default: 370 default:
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 } 781 }
782 782
783 void SVGSVGElement::trace(Visitor* visitor) 783 void SVGSVGElement::trace(Visitor* visitor)
784 { 784 {
785 visitor->trace(m_timeContainer); 785 visitor->trace(m_timeContainer);
786 visitor->trace(m_viewSpec); 786 visitor->trace(m_viewSpec);
787 SVGGraphicsElement::trace(visitor); 787 SVGGraphicsElement::trace(visitor);
788 } 788 }
789 789
790 } 790 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPatternElement.cpp ('k') | Source/core/svg/graphics/filters/SVGFEImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698