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

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

Issue 2465983002: Rename "paint invalidation rect" etc. to "visual rect". (Closed)
Patch Set: - Created 4 years, 1 month 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, 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 ASSERT(!layoutObject || layoutObject->style()); 332 ASSERT(!layoutObject || layoutObject->style());
333 if (!layoutObject || layoutObject->style()->pointerEvents() == PE_NONE) 333 if (!layoutObject || layoutObject->style()->pointerEvents() == PE_NONE)
334 return false; 334 return false;
335 335
336 if (!isIntersectionOrEnclosureTarget(layoutObject)) 336 if (!isIntersectionOrEnclosureTarget(layoutObject))
337 return false; 337 return false;
338 338
339 AffineTransform ctm = toSVGGraphicsElement(element).computeCTM( 339 AffineTransform ctm = toSVGGraphicsElement(element).computeCTM(
340 AncestorScope, DisallowStyleUpdate, this); 340 AncestorScope, DisallowStyleUpdate, this);
341 FloatRect mappedRepaintRect = 341 FloatRect mappedRepaintRect =
342 ctm.mapRect(layoutObject->paintInvalidationRectInLocalSVGCoordinates()); 342 ctm.mapRect(layoutObject->visualRectInLocalSVGCoordinates());
343 343
344 bool result = false; 344 bool result = false;
345 switch (mode) { 345 switch (mode) {
346 case CheckIntersection: 346 case CheckIntersection:
347 result = intersectsAllowingEmpty(rect, mappedRepaintRect); 347 result = intersectsAllowingEmpty(rect, mappedRepaintRect);
348 break; 348 break;
349 case CheckEnclosure: 349 case CheckEnclosure:
350 result = rect.contains(mappedRepaintRect); 350 result = rect.contains(mappedRepaintRect);
351 break; 351 break;
352 default: 352 default:
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 visitor->trace(m_width); 792 visitor->trace(m_width);
793 visitor->trace(m_height); 793 visitor->trace(m_height);
794 visitor->trace(m_translation); 794 visitor->trace(m_translation);
795 visitor->trace(m_timeContainer); 795 visitor->trace(m_timeContainer);
796 visitor->trace(m_viewSpec); 796 visitor->trace(m_viewSpec);
797 SVGGraphicsElement::trace(visitor); 797 SVGGraphicsElement::trace(visitor);
798 SVGFitToViewBox::trace(visitor); 798 SVGFitToViewBox::trace(visitor);
799 } 799 }
800 800
801 } // namespace blink 801 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698