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, 2009 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007, 2008, 2009 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. | 5 * Copyright (C) 2009 Google, Inc. |
6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 } | 192 } |
193 | 193 |
194 LayoutRect LayoutSVGRoot::visualOverflowRect() const | 194 LayoutRect LayoutSVGRoot::visualOverflowRect() const |
195 { | 195 { |
196 LayoutRect rect = LayoutReplaced::selfVisualOverflowRect(); | 196 LayoutRect rect = LayoutReplaced::selfVisualOverflowRect(); |
197 if (!shouldApplyViewportClip()) | 197 if (!shouldApplyViewportClip()) |
198 rect.unite(contentsVisualOverflowRect()); | 198 rect.unite(contentsVisualOverflowRect()); |
199 return rect; | 199 return rect; |
200 } | 200 } |
201 | 201 |
| 202 LayoutRect LayoutSVGRoot::overflowClipRect(const LayoutPoint& location, OverlayS
crollbarClipBehavior) const |
| 203 { |
| 204 return LayoutRect(pixelSnappedIntRect(LayoutReplaced::overflowClipRect(locat
ion, IgnoreOverlayScrollbarSize))); |
| 205 } |
| 206 |
202 void LayoutSVGRoot::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint&
paintOffset) const | 207 void LayoutSVGRoot::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint&
paintOffset) const |
203 { | 208 { |
204 SVGRootPainter(*this).paint(paintInfo, paintOffset); | 209 SVGRootPainter(*this).paintReplaced(paintInfo, paintOffset); |
205 } | 210 } |
206 | 211 |
207 void LayoutSVGRoot::willBeDestroyed() | 212 void LayoutSVGRoot::willBeDestroyed() |
208 { | 213 { |
209 SVGResourcesCache::clientDestroyed(this); | 214 SVGResourcesCache::clientDestroyed(this); |
210 LayoutReplaced::willBeDestroyed(); | 215 LayoutReplaced::willBeDestroyed(); |
211 } | 216 } |
212 | 217 |
213 void LayoutSVGRoot::styleDidChange(StyleDifference diff, const ComputedStyle* ol
dStyle) | 218 void LayoutSVGRoot::styleDidChange(StyleDifference diff, const ComputedStyle* ol
dStyle) |
214 { | 219 { |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 updateHitTestResult(result, pointInBorderBox); | 423 updateHitTestResult(result, pointInBorderBox); |
419 if (result.addNodeToListBasedTestResult(node(), locationInContainer,
boundsRect) == StopHitTesting) | 424 if (result.addNodeToListBasedTestResult(node(), locationInContainer,
boundsRect) == StopHitTesting) |
420 return true; | 425 return true; |
421 } | 426 } |
422 } | 427 } |
423 | 428 |
424 return false; | 429 return false; |
425 } | 430 } |
426 | 431 |
427 } // namespace blink | 432 } // namespace blink |
OLD | NEW |