OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2007 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 // they should instead depend on the RenderView. | 472 // they should instead depend on the RenderView. |
473 // https://bugs.webkit.org/show_bug.cgi?id=103493 | 473 // https://bugs.webkit.org/show_bug.cgi?id=103493 |
474 if (document()->documentElement() == this) | 474 if (document()->documentElement() == this) |
475 return true; | 475 return true; |
476 return Element::rendererIsNeeded(context); | 476 return Element::rendererIsNeeded(context); |
477 } | 477 } |
478 | 478 |
479 RenderObject* SVGSVGElement::createRenderer(RenderStyle*) | 479 RenderObject* SVGSVGElement::createRenderer(RenderStyle*) |
480 { | 480 { |
481 if (isOutermostSVGSVGElement()) | 481 if (isOutermostSVGSVGElement()) |
482 return new (document()->renderArena()) RenderSVGRoot(this); | 482 return new RenderSVGRoot(this); |
483 | 483 |
484 return new (document()->renderArena()) RenderSVGViewportContainer(this); | 484 return new RenderSVGViewportContainer(this); |
485 } | 485 } |
486 | 486 |
487 Node::InsertionNotificationRequest SVGSVGElement::insertedInto(ContainerNode* ro
otParent) | 487 Node::InsertionNotificationRequest SVGSVGElement::insertedInto(ContainerNode* ro
otParent) |
488 { | 488 { |
489 if (rootParent->inDocument()) { | 489 if (rootParent->inDocument()) { |
490 document()->accessSVGExtensions()->addTimeContainer(this); | 490 document()->accessSVGExtensions()->addTimeContainer(this); |
491 | 491 |
492 // Animations are started at the end of document parsing and after firin
g the load event, | 492 // Animations are started at the end of document parsing and after firin
g the load event, |
493 // but if we miss that train (deferred programmatic element insertion fo
r example) we need | 493 // but if we miss that train (deferred programmatic element insertion fo
r example) we need |
494 // to initialize the time container here. | 494 // to initialize the time container here. |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 continue; | 768 continue; |
769 | 769 |
770 Element* element = toElement(node); | 770 Element* element = toElement(node); |
771 if (element->getIdAttribute() == id) | 771 if (element->getIdAttribute() == id) |
772 return element; | 772 return element; |
773 } | 773 } |
774 return 0; | 774 return 0; |
775 } | 775 } |
776 | 776 |
777 } | 777 } |
OLD | NEW |