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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 } | 269 } |
270 | 270 |
271 bool SVGRenderSupport::isOverflowHidden(const RenderObject* object) | 271 bool SVGRenderSupport::isOverflowHidden(const RenderObject* object) |
272 { | 272 { |
273 // RenderSVGRoot should never query for overflow state - it should always cl
ip itself to the initial viewport size. | 273 // RenderSVGRoot should never query for overflow state - it should always cl
ip itself to the initial viewport size. |
274 ASSERT(!object->isDocumentElement()); | 274 ASSERT(!object->isDocumentElement()); |
275 | 275 |
276 return object->style()->overflowX() == OHIDDEN || object->style()->overflowX
() == OSCROLL; | 276 return object->style()->overflowX() == OHIDDEN || object->style()->overflowX
() == OSCROLL; |
277 } | 277 } |
278 | 278 |
279 bool SVGRenderSupport::isRenderingMaskImage(const RenderObject& object) | 279 bool SVGRenderSupport::isRenderingClipPathAsMaskImage(const RenderObject& object
) |
280 { | 280 { |
281 return object.frame() && object.frame()->view() && object.frame()->view()->p
aintBehavior() & PaintBehaviorRenderingSVGMask; | 281 return object.frame() && object.frame()->view() && object.frame()->view()->p
aintBehavior() & PaintBehaviorRenderingClipPathAsMask; |
282 } | 282 } |
283 | 283 |
284 void SVGRenderSupport::intersectPaintInvalidationRectWithResources(const RenderO
bject* renderer, FloatRect& paintInvalidationRect) | 284 void SVGRenderSupport::intersectPaintInvalidationRectWithResources(const RenderO
bject* renderer, FloatRect& paintInvalidationRect) |
285 { | 285 { |
286 ASSERT(renderer); | 286 ASSERT(renderer); |
287 | 287 |
288 SVGResources* resources = SVGResourcesCache::cachedResourcesForRenderObject(
renderer); | 288 SVGResources* resources = SVGResourcesCache::cachedResourcesForRenderObject(
renderer); |
289 if (!resources) | 289 if (!resources) |
290 return; | 290 return; |
291 | 291 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 } | 403 } |
404 | 404 |
405 bool SVGRenderSupport::isRenderableTextNode(const RenderObject* object) | 405 bool SVGRenderSupport::isRenderableTextNode(const RenderObject* object) |
406 { | 406 { |
407 ASSERT(object->isText()); | 407 ASSERT(object->isText()); |
408 // <br> is marked as text, but is not handled by the SVG rendering code-path
. | 408 // <br> is marked as text, but is not handled by the SVG rendering code-path
. |
409 return object->isSVGInlineText() && !toRenderSVGInlineText(object)->hasEmpty
Text(); | 409 return object->isSVGInlineText() && !toRenderSVGInlineText(object)->hasEmpty
Text(); |
410 } | 410 } |
411 | 411 |
412 } | 412 } |
OLD | NEW |