| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2007, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007, 2008 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2009 Google, Inc. All rights reserved. | 5 * Copyright (C) 2009 Google, Inc. All rights reserved. |
| 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 void LayoutSVGContainer::paint(const PaintInfo& paintInfo, | 162 void LayoutSVGContainer::paint(const PaintInfo& paintInfo, |
| 163 const LayoutPoint&) const { | 163 const LayoutPoint&) const { |
| 164 SVGContainerPainter(*this).paint(paintInfo); | 164 SVGContainerPainter(*this).paint(paintInfo); |
| 165 } | 165 } |
| 166 | 166 |
| 167 void LayoutSVGContainer::addOutlineRects( | 167 void LayoutSVGContainer::addOutlineRects( |
| 168 Vector<LayoutRect>& rects, | 168 Vector<LayoutRect>& rects, |
| 169 const LayoutPoint&, | 169 const LayoutPoint&, |
| 170 IncludeBlockVisualOverflowOrNot) const { | 170 IncludeBlockVisualOverflowOrNot) const { |
| 171 rects.append(LayoutRect(paintInvalidationRectInLocalSVGCoordinates())); | 171 rects.append(LayoutRect(visualRectInLocalSVGCoordinates())); |
| 172 } | 172 } |
| 173 | 173 |
| 174 void LayoutSVGContainer::updateCachedBoundaries() { | 174 void LayoutSVGContainer::updateCachedBoundaries() { |
| 175 SVGLayoutSupport::computeContainerBoundingBoxes( | 175 SVGLayoutSupport::computeContainerBoundingBoxes( |
| 176 this, m_objectBoundingBox, m_objectBoundingBoxValid, m_strokeBoundingBox, | 176 this, m_objectBoundingBox, m_objectBoundingBoxValid, m_strokeBoundingBox, |
| 177 m_paintInvalidationBoundingBox); | 177 m_localVisualRect); |
| 178 SVGLayoutSupport::intersectPaintInvalidationRectWithResources( | |
| 179 this, m_paintInvalidationBoundingBox); | |
| 180 if (element()) | 178 if (element()) |
| 181 element()->setNeedsResizeObserverUpdate(); | 179 element()->setNeedsResizeObserverUpdate(); |
| 182 } | 180 } |
| 183 | 181 |
| 184 bool LayoutSVGContainer::nodeAtFloatPoint(HitTestResult& result, | 182 bool LayoutSVGContainer::nodeAtFloatPoint(HitTestResult& result, |
| 185 const FloatPoint& pointInParent, | 183 const FloatPoint& pointInParent, |
| 186 HitTestAction hitTestAction) { | 184 HitTestAction hitTestAction) { |
| 187 // Give LayoutSVGViewportContainer a chance to apply its viewport clip | 185 // Give LayoutSVGViewportContainer a chance to apply its viewport clip |
| 188 if (!pointIsInsideViewportClip(pointInParent)) | 186 if (!pointIsInsideViewportClip(pointInParent)) |
| 189 return false; | 187 return false; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 // under the pointer (i.e., there is no target element), the event is not | 220 // under the pointer (i.e., there is no target element), the event is not |
| 223 // dispatched." | 221 // dispatched." |
| 224 return false; | 222 return false; |
| 225 } | 223 } |
| 226 | 224 |
| 227 SVGTransformChange LayoutSVGContainer::calculateLocalTransform() { | 225 SVGTransformChange LayoutSVGContainer::calculateLocalTransform() { |
| 228 return SVGTransformChange::None; | 226 return SVGTransformChange::None; |
| 229 } | 227 } |
| 230 | 228 |
| 231 } // namespace blink | 229 } // namespace blink |
| OLD | NEW |