| 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 root = referenceElement; | 361 root = referenceElement; |
| 362 } else if (!isDescendantOf(referenceElement)) { | 362 } else if (!isDescendantOf(referenceElement)) { |
| 363 // No common subtree. | 363 // No common subtree. |
| 364 return StaticNodeList::adopt(nodes); | 364 return StaticNodeList::adopt(nodes); |
| 365 } | 365 } |
| 366 } | 366 } |
| 367 | 367 |
| 368 for (SVGGraphicsElement& element : | 368 for (SVGGraphicsElement& element : |
| 369 Traversal<SVGGraphicsElement>::descendantsOf(*root)) { | 369 Traversal<SVGGraphicsElement>::descendantsOf(*root)) { |
| 370 if (checkIntersectionOrEnclosure(element, rect, mode)) | 370 if (checkIntersectionOrEnclosure(element, rect, mode)) |
| 371 nodes.append(&element); | 371 nodes.push_back(&element); |
| 372 } | 372 } |
| 373 | 373 |
| 374 return StaticNodeList::adopt(nodes); | 374 return StaticNodeList::adopt(nodes); |
| 375 } | 375 } |
| 376 | 376 |
| 377 StaticNodeList* SVGSVGElement::getIntersectionList( | 377 StaticNodeList* SVGSVGElement::getIntersectionList( |
| 378 SVGRectTearOff* rect, | 378 SVGRectTearOff* rect, |
| 379 SVGElement* referenceElement) const { | 379 SVGElement* referenceElement) const { |
| 380 document().updateStyleAndLayoutIgnorePendingStylesheets(); | 380 document().updateStyleAndLayoutIgnorePendingStylesheets(); |
| 381 | 381 |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |