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

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

Issue 18808004: Refactoring: Extract DocumentInit for capture Document construction parameter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed webkit_unit_tests build failure. Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGDocument.h ('k') | Source/core/xml/XMLHttpRequest.cpp » ('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/page/FrameView.h" 28 #include "core/page/FrameView.h"
29 #include "core/rendering/RenderView.h" 29 #include "core/rendering/RenderView.h"
30 #include "core/svg/SVGElement.h" 30 #include "core/svg/SVGElement.h"
31 #include "core/svg/SVGSVGElement.h" 31 #include "core/svg/SVGSVGElement.h"
32 #include "core/svg/SVGViewSpec.h" 32 #include "core/svg/SVGViewSpec.h"
33 #include "core/svg/SVGZoomAndPan.h" 33 #include "core/svg/SVGZoomAndPan.h"
34 #include "core/svg/SVGZoomEvent.h" 34 #include "core/svg/SVGZoomEvent.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 SVGDocument::SVGDocument(Frame* frame, const KURL& url) 38 SVGDocument::SVGDocument(const DocumentInit& initializer)
39 : Document(frame, url, SVGDocumentClass) 39 : Document(initializer, SVGDocumentClass)
40 { 40 {
41 ScriptWrappable::init(this); 41 ScriptWrappable::init(this);
42 } 42 }
43 43
44 SVGSVGElement* SVGDocument::rootElement() const 44 SVGSVGElement* SVGDocument::rootElement() const
45 { 45 {
46 Element* elem = documentElement(); 46 Element* elem = documentElement();
47 if (elem && elem->hasTagName(SVGNames::svgTag)) 47 if (elem && elem->hasTagName(SVGNames::svgTag))
48 return toSVGSVGElement(elem); 48 return toSVGSVGElement(elem);
49 49
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 95 }
96 96
97 bool SVGDocument::childShouldCreateRenderer(const NodeRenderingContext& childCon text) const 97 bool SVGDocument::childShouldCreateRenderer(const NodeRenderingContext& childCon text) const
98 { 98 {
99 if (childContext.node()->hasTagName(SVGNames::svgTag)) 99 if (childContext.node()->hasTagName(SVGNames::svgTag))
100 return toSVGSVGElement(childContext.node())->isValid(); 100 return toSVGSVGElement(childContext.node())->isValid();
101 return true; 101 return true;
102 } 102 }
103 103
104 } 104 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGDocument.h ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698