| OLD | NEW |
| 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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 ASSERT_NOT_REACHED(); | 370 ASSERT_NOT_REACHED(); |
| 371 break; | 371 break; |
| 372 } | 372 } |
| 373 | 373 |
| 374 return result; | 374 return result; |
| 375 } | 375 } |
| 376 | 376 |
| 377 PassRefPtrWillBeRawPtr<StaticNodeList> SVGSVGElement::collectIntersectionOrEnclo
sureList(const FloatRect& rect, | 377 PassRefPtrWillBeRawPtr<StaticNodeList> SVGSVGElement::collectIntersectionOrEnclo
sureList(const FloatRect& rect, |
| 378 SVGElement* referenceElement, CheckIntersectionOrEnclosure mode) const | 378 SVGElement* referenceElement, CheckIntersectionOrEnclosure mode) const |
| 379 { | 379 { |
| 380 WillBeHeapVector<RefPtrWillBeMember<Node> > nodes; | 380 WillBeHeapVector<RefPtrWillBeMember<Node>> nodes; |
| 381 | 381 |
| 382 const SVGElement* root = this; | 382 const SVGElement* root = this; |
| 383 if (referenceElement) { | 383 if (referenceElement) { |
| 384 // Only the common subtree needs to be traversed. | 384 // Only the common subtree needs to be traversed. |
| 385 if (contains(referenceElement)) { | 385 if (contains(referenceElement)) { |
| 386 root = referenceElement; | 386 root = referenceElement; |
| 387 } else if (!isDescendantOf(referenceElement)) { | 387 } else if (!isDescendantOf(referenceElement)) { |
| 388 // No common subtree. | 388 // No common subtree. |
| 389 return StaticNodeList::adopt(nodes); | 389 return StaticNodeList::adopt(nodes); |
| 390 } | 390 } |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 visitor->trace(m_width); | 785 visitor->trace(m_width); |
| 786 visitor->trace(m_height); | 786 visitor->trace(m_height); |
| 787 visitor->trace(m_translation); | 787 visitor->trace(m_translation); |
| 788 visitor->trace(m_timeContainer); | 788 visitor->trace(m_timeContainer); |
| 789 visitor->trace(m_viewSpec); | 789 visitor->trace(m_viewSpec); |
| 790 SVGGraphicsElement::trace(visitor); | 790 SVGGraphicsElement::trace(visitor); |
| 791 SVGFitToViewBox::trace(visitor); | 791 SVGFitToViewBox::trace(visitor); |
| 792 } | 792 } |
| 793 | 793 |
| 794 } // namespace blink | 794 } // namespace blink |
| OLD | NEW |