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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 void LayoutSVGContainer::addOutlineRects(Vector<LayoutRect>& rects, const Layout
Point&, IncludeBlockVisualOverflowOrNot) const | 160 void LayoutSVGContainer::addOutlineRects(Vector<LayoutRect>& rects, const Layout
Point&, IncludeBlockVisualOverflowOrNot) const |
161 { | 161 { |
162 rects.append(LayoutRect(paintInvalidationRectInLocalSVGCoordinates())); | 162 rects.append(LayoutRect(paintInvalidationRectInLocalSVGCoordinates())); |
163 } | 163 } |
164 | 164 |
165 void LayoutSVGContainer::updateCachedBoundaries() | 165 void LayoutSVGContainer::updateCachedBoundaries() |
166 { | 166 { |
167 SVGLayoutSupport::computeContainerBoundingBoxes(this, m_objectBoundingBox, m
_objectBoundingBoxValid, m_strokeBoundingBox, m_paintInvalidationBoundingBox); | 167 SVGLayoutSupport::computeContainerBoundingBoxes(this, m_objectBoundingBox, m
_objectBoundingBoxValid, m_strokeBoundingBox, m_paintInvalidationBoundingBox); |
168 SVGLayoutSupport::intersectPaintInvalidationRectWithResources(this, m_paintI
nvalidationBoundingBox); | 168 SVGLayoutSupport::intersectPaintInvalidationRectWithResources(this, m_paintI
nvalidationBoundingBox); |
169 if (element()) | |
170 element()->setNeedsResizeObserverUpdate(); | |
171 } | 169 } |
172 | 170 |
173 bool LayoutSVGContainer::nodeAtFloatPoint(HitTestResult& result, const FloatPoin
t& pointInParent, HitTestAction hitTestAction) | 171 bool LayoutSVGContainer::nodeAtFloatPoint(HitTestResult& result, const FloatPoin
t& pointInParent, HitTestAction hitTestAction) |
174 { | 172 { |
175 // Give LayoutSVGViewportContainer a chance to apply its viewport clip | 173 // Give LayoutSVGViewportContainer a chance to apply its viewport clip |
176 if (!pointIsInsideViewportClip(pointInParent)) | 174 if (!pointIsInsideViewportClip(pointInParent)) |
177 return false; | 175 return false; |
178 | 176 |
179 FloatPoint localPoint; | 177 FloatPoint localPoint; |
180 if (!SVGLayoutSupport::transformToUserSpaceAndCheckClipping(this, localToSVG
ParentTransform(), pointInParent, localPoint)) | 178 if (!SVGLayoutSupport::transformToUserSpaceAndCheckClipping(this, localToSVG
ParentTransform(), pointInParent, localPoint)) |
(...skipping 21 matching lines...) Expand all Loading... |
202 // 16.4: "If there are no graphics elements whose relevant graphics content
is under the pointer (i.e., there is no target element), the event is not dispat
ched." | 200 // 16.4: "If there are no graphics elements whose relevant graphics content
is under the pointer (i.e., there is no target element), the event is not dispat
ched." |
203 return false; | 201 return false; |
204 } | 202 } |
205 | 203 |
206 SVGTransformChange LayoutSVGContainer::calculateLocalTransform() | 204 SVGTransformChange LayoutSVGContainer::calculateLocalTransform() |
207 { | 205 { |
208 return SVGTransformChange::None; | 206 return SVGTransformChange::None; |
209 } | 207 } |
210 | 208 |
211 } // namespace blink | 209 } // namespace blink |
OLD | NEW |