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

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

Issue 2573653003: Remove LayoutSVGViewportContainer's calcViewport and pointIsInsideViewportClip (Closed)
Patch Set: Actually revert SVGSVGElement changes Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGViewportContainer.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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 if (SVGFitToViewBox::isKnownAttribute(attrName)) { 281 if (SVGFitToViewBox::isKnownAttribute(attrName)) {
282 updateRelativeLengthsOrViewBox = true; 282 updateRelativeLengthsOrViewBox = true;
283 invalidateRelativeLengthClients(); 283 invalidateRelativeLengthClients();
284 if (LayoutObject* object = layoutObject()) 284 if (LayoutObject* object = layoutObject())
285 object->setNeedsTransformUpdate(); 285 object->setNeedsTransformUpdate();
286 } 286 }
287 287
288 if (updateRelativeLengthsOrViewBox || 288 if (updateRelativeLengthsOrViewBox ||
289 SVGZoomAndPan::isKnownAttribute(attrName)) { 289 SVGZoomAndPan::isKnownAttribute(attrName)) {
290 SVGElement::InvalidationGuard invalidationGuard(this); 290 SVGElement::InvalidationGuard invalidationGuard(this);
291 if (layoutObject()) 291 if (auto* layoutObject = this->layoutObject())
292 markForLayoutAndParentResourceInvalidation(layoutObject()); 292 markForLayoutAndParentResourceInvalidation(layoutObject);
293 return; 293 return;
294 } 294 }
295 295
296 SVGGraphicsElement::svgAttributeChanged(attrName); 296 SVGGraphicsElement::svgAttributeChanged(attrName);
297 } 297 }
298 298
299 // FloatRect::intersects does not consider horizontal or vertical lines (because 299 // FloatRect::intersects does not consider horizontal or vertical lines (because
300 // of isEmpty()). 300 // of isEmpty()).
301 static bool intersectsAllowingEmpty(const FloatRect& r1, const FloatRect& r2) { 301 static bool intersectsAllowingEmpty(const FloatRect& r1, const FloatRect& r2) {
302 if (r1.width() < 0 || r1.height() < 0 || r2.width() < 0 || r2.height() < 0) 302 if (r1.width() < 0 || r1.height() < 0 || r2.width() < 0 || r2.height() < 0)
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 visitor->trace(m_width); 760 visitor->trace(m_width);
761 visitor->trace(m_height); 761 visitor->trace(m_height);
762 visitor->trace(m_translation); 762 visitor->trace(m_translation);
763 visitor->trace(m_timeContainer); 763 visitor->trace(m_timeContainer);
764 visitor->trace(m_viewSpec); 764 visitor->trace(m_viewSpec);
765 SVGGraphicsElement::trace(visitor); 765 SVGGraphicsElement::trace(visitor);
766 SVGFitToViewBox::trace(visitor); 766 SVGFitToViewBox::trace(visitor);
767 } 767 }
768 768
769 } // namespace blink 769 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGViewportContainer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698