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

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

Issue 64543003: Remove unused SVGElement::isSupported (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix title/description Created 7 years, 1 month 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/SVGElement.h ('k') | no next file » | 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, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com>
6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 14 matching lines...) Expand all
25 25
26 #include "core/svg/SVGElement.h" 26 #include "core/svg/SVGElement.h"
27 27
28 #include "HTMLNames.h" 28 #include "HTMLNames.h"
29 #include "SVGNames.h" 29 #include "SVGNames.h"
30 #include "XLinkNames.h" 30 #include "XLinkNames.h"
31 #include "XMLNames.h" 31 #include "XMLNames.h"
32 #include "bindings/v8/ScriptEventListener.h" 32 #include "bindings/v8/ScriptEventListener.h"
33 #include "core/css/CSSCursorImageValue.h" 33 #include "core/css/CSSCursorImageValue.h"
34 #include "core/css/CSSParser.h" 34 #include "core/css/CSSParser.h"
35 #include "core/dom/DOMImplementation.h"
36 #include "core/dom/Document.h" 35 #include "core/dom/Document.h"
37 #include "core/dom/ElementTraversal.h" 36 #include "core/dom/ElementTraversal.h"
38 #include "core/events/Event.h" 37 #include "core/events/Event.h"
39 #include "core/dom/shadow/ShadowRoot.h" 38 #include "core/dom/shadow/ShadowRoot.h"
40 #include "core/rendering/RenderObject.h" 39 #include "core/rendering/RenderObject.h"
41 #include "core/rendering/svg/RenderSVGResourceContainer.h" 40 #include "core/rendering/svg/RenderSVGResourceContainer.h"
42 #include "core/svg/SVGCursorElement.h" 41 #include "core/svg/SVGCursorElement.h"
43 #include "core/svg/SVGDocumentExtensions.h" 42 #include "core/svg/SVGDocumentExtensions.h"
44 #include "core/svg/SVGElementInstance.h" 43 #include "core/svg/SVGElementInstance.h"
45 #include "core/svg/SVGElementRareData.h" 44 #include "core/svg/SVGElementRareData.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 } 230 }
232 231
233 if (error == ParsingAttributeFailedError) { 232 if (error == ParsingAttributeFailedError) {
234 extensions->reportError("Invalid value for " + errorString); 233 extensions->reportError("Invalid value for " + errorString);
235 return; 234 return;
236 } 235 }
237 236
238 ASSERT_NOT_REACHED(); 237 ASSERT_NOT_REACHED();
239 } 238 }
240 239
241
242 bool SVGElement::isSupported(StringImpl* feature, StringImpl* version) const
243 {
244 return DOMImplementation::hasFeature(feature, version);
245 }
246
247 String SVGElement::title() const 240 String SVGElement::title() const
248 { 241 {
249 // According to spec, we should not return titles when hovering over root <s vg> elements (those 242 // According to spec, we should not return titles when hovering over root <s vg> elements (those
250 // <title> elements are the title of the document, not a tooltip) so we inst antly return. 243 // <title> elements are the title of the document, not a tooltip) so we inst antly return.
251 if (isOutermostSVGSVGElement()) 244 if (isOutermostSVGSVGElement())
252 return String(); 245 return String();
253 246
254 // Walk up the tree, to find out whether we're inside a <use> shadow tree, t o find the right title. 247 // Walk up the tree, to find out whether we're inside a <use> shadow tree, t o find the right title.
255 if (isInShadowTree()) { 248 if (isInShadowTree()) {
256 Element* shadowHostElement = toShadowRoot(treeScope().rootNode())->host( ); 249 Element* shadowHostElement = toShadowRoot(treeScope().rootNode())->host( );
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 } 1184 }
1192 1185
1193 if (name == classAttr) 1186 if (name == classAttr)
1194 return true; 1187 return true;
1195 1188
1196 return animatableAttributes.contains(name); 1189 return animatableAttributes.contains(name);
1197 } 1190 }
1198 #endif 1191 #endif
1199 1192
1200 } 1193 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698