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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 return layoutObject->isSVGShape() || layoutObject->isSVGText() || | 322 return layoutObject->isSVGShape() || layoutObject->isSVGText() || |
323 layoutObject->isSVGImage() || isSVGUseElement(*layoutObject->node()); | 323 layoutObject->isSVGImage() || isSVGUseElement(*layoutObject->node()); |
324 } | 324 } |
325 | 325 |
326 bool SVGSVGElement::checkIntersectionOrEnclosure( | 326 bool SVGSVGElement::checkIntersectionOrEnclosure( |
327 const SVGElement& element, | 327 const SVGElement& element, |
328 const FloatRect& rect, | 328 const FloatRect& rect, |
329 CheckIntersectionOrEnclosure mode) const { | 329 CheckIntersectionOrEnclosure mode) const { |
330 LayoutObject* layoutObject = element.layoutObject(); | 330 LayoutObject* layoutObject = element.layoutObject(); |
331 ASSERT(!layoutObject || layoutObject->style()); | 331 ASSERT(!layoutObject || layoutObject->style()); |
332 if (!layoutObject || layoutObject->style()->pointerEvents() == PE_NONE) | 332 if (!layoutObject || |
| 333 layoutObject->style()->pointerEvents() == EPointerEvents::PE_NONE) |
333 return false; | 334 return false; |
334 | 335 |
335 if (!isIntersectionOrEnclosureTarget(layoutObject)) | 336 if (!isIntersectionOrEnclosureTarget(layoutObject)) |
336 return false; | 337 return false; |
337 | 338 |
338 AffineTransform ctm = toSVGGraphicsElement(element).computeCTM( | 339 AffineTransform ctm = toSVGGraphicsElement(element).computeCTM( |
339 AncestorScope, DisallowStyleUpdate, this); | 340 AncestorScope, DisallowStyleUpdate, this); |
340 FloatRect mappedRepaintRect = | 341 FloatRect mappedRepaintRect = |
341 ctm.mapRect(layoutObject->visualRectInLocalSVGCoordinates()); | 342 ctm.mapRect(layoutObject->visualRectInLocalSVGCoordinates()); |
342 | 343 |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 visitor->trace(m_width); | 791 visitor->trace(m_width); |
791 visitor->trace(m_height); | 792 visitor->trace(m_height); |
792 visitor->trace(m_translation); | 793 visitor->trace(m_translation); |
793 visitor->trace(m_timeContainer); | 794 visitor->trace(m_timeContainer); |
794 visitor->trace(m_viewSpec); | 795 visitor->trace(m_viewSpec); |
795 SVGGraphicsElement::trace(visitor); | 796 SVGGraphicsElement::trace(visitor); |
796 SVGFitToViewBox::trace(visitor); | 797 SVGFitToViewBox::trace(visitor); |
797 } | 798 } |
798 | 799 |
799 } // namespace blink | 800 } // namespace blink |
OLD | NEW |