Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(518)

Side by Side Diff: Source/core/svg/SVGDocument.cpp

Issue 144063004: Add support for DOM4's XMLDocument interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove FIXME about XMLDocument.load() Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/svg/SVGDocument.h ('k') | Source/core/svg/SVGDocument.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 17 matching lines...) Expand all
28 #include "core/rendering/RenderView.h" 28 #include "core/rendering/RenderView.h"
29 #include "core/svg/SVGElement.h" 29 #include "core/svg/SVGElement.h"
30 #include "core/svg/SVGSVGElement.h" 30 #include "core/svg/SVGSVGElement.h"
31 #include "core/svg/SVGViewSpec.h" 31 #include "core/svg/SVGViewSpec.h"
32 #include "core/svg/SVGZoomAndPan.h" 32 #include "core/svg/SVGZoomAndPan.h"
33 #include "core/svg/SVGZoomEvent.h" 33 #include "core/svg/SVGZoomEvent.h"
34 34
35 namespace WebCore { 35 namespace WebCore {
36 36
37 SVGDocument::SVGDocument(const DocumentInit& initializer) 37 SVGDocument::SVGDocument(const DocumentInit& initializer)
38 : Document(initializer, SVGDocumentClass) 38 : XMLDocument(initializer, XMLDocumentClass | SVGDocumentClass)
39 { 39 {
40 ScriptWrappable::init(this); 40 ScriptWrappable::init(this);
41 } 41 }
42 42
43 SVGSVGElement* SVGDocument::rootElement() const 43 SVGSVGElement* SVGDocument::rootElement() const
44 { 44 {
45 Element* elem = documentElement(); 45 Element* elem = documentElement();
46 if (elem && elem->hasTagName(SVGNames::svgTag)) 46 if (elem && elem->hasTagName(SVGNames::svgTag))
47 return toSVGSVGElement(elem); 47 return toSVGSVGElement(elem);
48 48
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 return toSVGSVGElement(&child)->isValid(); 100 return toSVGSVGElement(&child)->isValid();
101 return true; 101 return true;
102 } 102 }
103 103
104 PassRefPtr<Document> SVGDocument::cloneDocumentWithoutChildren() 104 PassRefPtr<Document> SVGDocument::cloneDocumentWithoutChildren()
105 { 105 {
106 return create(DocumentInit(url())); 106 return create(DocumentInit(url()));
107 } 107 }
108 108
109 } 109 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGDocument.h ('k') | Source/core/svg/SVGDocument.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698