| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 invalidateBackgroundObscurationStatus(); | 172 invalidateBackgroundObscurationStatus(); |
| 173 | 173 |
| 174 clearNeedsLayout(); | 174 clearNeedsLayout(); |
| 175 } | 175 } |
| 176 | 176 |
| 177 bool LayoutSVGRoot::shouldApplyViewportClip() const | 177 bool LayoutSVGRoot::shouldApplyViewportClip() const |
| 178 { | 178 { |
| 179 // the outermost svg is clipped if auto, and svg document roots are always c
lipped | 179 // the outermost svg is clipped if auto, and svg document roots are always c
lipped |
| 180 // When the svg is stand-alone (isDocumentElement() == true) the viewport cl
ipping should always | 180 // When the svg is stand-alone (isDocumentElement() == true) the viewport cl
ipping should always |
| 181 // be applied, noting that the window scrollbars should be hidden if overflo
w=hidden. | 181 // be applied, noting that the window scrollbars should be hidden if overflo
w=hidden. |
| 182 return style()->overflowX() == OHIDDEN | 182 return style()->overflowX() == OverflowHidden |
| 183 || style()->overflowX() == OAUTO | 183 || style()->overflowX() == OverflowAuto |
| 184 || style()->overflowX() == OSCROLL | 184 || style()->overflowX() == OverflowScroll |
| 185 || this->isDocumentElement(); | 185 || this->isDocumentElement(); |
| 186 } | 186 } |
| 187 | 187 |
| 188 void LayoutSVGRoot::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint&
paintOffset) const | 188 void LayoutSVGRoot::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint&
paintOffset) const |
| 189 { | 189 { |
| 190 SVGRootPainter(*this).paint(paintInfo, paintOffset); | 190 SVGRootPainter(*this).paint(paintInfo, paintOffset); |
| 191 } | 191 } |
| 192 | 192 |
| 193 void LayoutSVGRoot::willBeDestroyed() | 193 void LayoutSVGRoot::willBeDestroyed() |
| 194 { | 194 { |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 updateHitTestResult(result, pointInBorderBox); | 420 updateHitTestResult(result, pointInBorderBox); |
| 421 if (result.addNodeToListBasedTestResult(node(), locationInContainer,
boundsRect) == StopHitTesting) | 421 if (result.addNodeToListBasedTestResult(node(), locationInContainer,
boundsRect) == StopHitTesting) |
| 422 return true; | 422 return true; |
| 423 } | 423 } |
| 424 } | 424 } |
| 425 | 425 |
| 426 return false; | 426 return false; |
| 427 } | 427 } |
| 428 | 428 |
| 429 } // namespace blink | 429 } // namespace blink |
| OLD | NEW |