| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 this->IsDocumentElement(); | 227 this->IsDocumentElement(); |
| 228 } | 228 } |
| 229 | 229 |
| 230 LayoutRect LayoutSVGRoot::VisualOverflowRect() const { | 230 LayoutRect LayoutSVGRoot::VisualOverflowRect() const { |
| 231 LayoutRect rect = LayoutReplaced::SelfVisualOverflowRect(); | 231 LayoutRect rect = LayoutReplaced::SelfVisualOverflowRect(); |
| 232 if (!ShouldApplyViewportClip()) | 232 if (!ShouldApplyViewportClip()) |
| 233 rect.Unite(ContentsVisualOverflowRect()); | 233 rect.Unite(ContentsVisualOverflowRect()); |
| 234 return rect; | 234 return rect; |
| 235 } | 235 } |
| 236 | 236 |
| 237 LayoutRect LayoutSVGRoot::OverflowClipRect(const LayoutPoint& location, | |
| 238 OverlayScrollbarClipBehavior) const { | |
| 239 return LayoutRect(PixelSnappedIntRect(LayoutReplaced::OverflowClipRect( | |
| 240 location, kIgnorePlatformOverlayScrollbarSize))); | |
| 241 } | |
| 242 | |
| 243 void LayoutSVGRoot::PaintReplaced(const PaintInfo& paint_info, | 237 void LayoutSVGRoot::PaintReplaced(const PaintInfo& paint_info, |
| 244 const LayoutPoint& paint_offset) const { | 238 const LayoutPoint& paint_offset) const { |
| 245 SVGRootPainter(*this).PaintReplaced(paint_info, paint_offset); | 239 SVGRootPainter(*this).PaintReplaced(paint_info, paint_offset); |
| 246 } | 240 } |
| 247 | 241 |
| 248 void LayoutSVGRoot::WillBeDestroyed() { | 242 void LayoutSVGRoot::WillBeDestroyed() { |
| 249 SVGResourcesCache::ClientDestroyed(this); | 243 SVGResourcesCache::ClientDestroyed(this); |
| 250 LayoutReplaced::WillBeDestroyed(); | 244 LayoutReplaced::WillBeDestroyed(); |
| 251 } | 245 } |
| 252 | 246 |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 if (result.AddNodeToListBasedTestResult(GetNode(), location_in_container, | 486 if (result.AddNodeToListBasedTestResult(GetNode(), location_in_container, |
| 493 bounds_rect) == kStopHitTesting) | 487 bounds_rect) == kStopHitTesting) |
| 494 return true; | 488 return true; |
| 495 } | 489 } |
| 496 } | 490 } |
| 497 | 491 |
| 498 return false; | 492 return false; |
| 499 } | 493 } |
| 500 | 494 |
| 501 } // namespace blink | 495 } // namespace blink |
| OLD | NEW |