| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> |
| 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@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 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 } | 276 } |
| 277 | 277 |
| 278 bool SVGRenderSupport::isOverflowHidden(const RenderObject* object) | 278 bool SVGRenderSupport::isOverflowHidden(const RenderObject* object) |
| 279 { | 279 { |
| 280 // SVG doesn't support independent x/y overflow | 280 // SVG doesn't support independent x/y overflow |
| 281 ASSERT(object->style()->overflowX() == object->style()->overflowY()); | 281 ASSERT(object->style()->overflowX() == object->style()->overflowY()); |
| 282 | 282 |
| 283 // OSCROLL is never set for SVG - see StyleResolver::adjustRenderStyle | 283 // OSCROLL is never set for SVG - see StyleResolver::adjustRenderStyle |
| 284 ASSERT(object->style()->overflowX() != OSCROLL); | 284 ASSERT(object->style()->overflowX() != OSCROLL); |
| 285 | 285 |
| 286 // RenderSVGRoot should never query for overflow state - it should always cl
ip itself to the initial viewport size. | 286 // RenderSVGRoot should never query for overflow state - it has special hand
ling of 'auto' |
| 287 ASSERT(!object->isRoot()); | 287 ASSERT(!object->isRoot()); |
| 288 | 288 |
| 289 return object->style()->overflowX() == OHIDDEN; | 289 return object->style()->overflowX() == OHIDDEN; |
| 290 } | 290 } |
| 291 | 291 |
| 292 void SVGRenderSupport::intersectRepaintRectWithResources(const RenderObject* ren
derer, FloatRect& repaintRect) | 292 void SVGRenderSupport::intersectRepaintRectWithResources(const RenderObject* ren
derer, FloatRect& repaintRect) |
| 293 { | 293 { |
| 294 ASSERT(renderer); | 294 ASSERT(renderer); |
| 295 | 295 |
| 296 SVGResources* resources = SVGResourcesCache::cachedResourcesForRenderObject(
renderer); | 296 SVGResources* resources = SVGResourcesCache::cachedResourcesForRenderObject(
renderer); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 } | 397 } |
| 398 | 398 |
| 399 bool SVGRenderSupport::isRenderableTextNode(const RenderObject* object) | 399 bool SVGRenderSupport::isRenderableTextNode(const RenderObject* object) |
| 400 { | 400 { |
| 401 ASSERT(object->isText()); | 401 ASSERT(object->isText()); |
| 402 // <br> is marked as text, but is not handled by the SVG rendering code-path
. | 402 // <br> is marked as text, but is not handled by the SVG rendering code-path
. |
| 403 return object->isSVGInlineText() && !toRenderSVGInlineText(object)->hasEmpty
Text(); | 403 return object->isSVGInlineText() && !toRenderSVGInlineText(object)->hasEmpty
Text(); |
| 404 } | 404 } |
| 405 | 405 |
| 406 } | 406 } |
| OLD | NEW |