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

Side by Side Diff: Source/WebCore/svg/SVGStyledElement.cpp

Issue 13814002: First part of work to move V8 binding integrity off of vtables. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/WebCore/svg/SVGStyleElement.cpp ('k') | Source/WebCore/svg/SVGSwitchElement.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, 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, 2007, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007, 2008 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 CSSPropertyID propertyId = cssPropertyID(attrName.localName()); 65 CSSPropertyID propertyId = cssPropertyID(attrName.localName());
66 if (!propertyId && attrName == transform_originAttr) 66 if (!propertyId && attrName == transform_originAttr)
67 propertyId = CSSPropertyWebkitTransformOrigin; // cssPropertyID("-webkit -transform-origin") 67 propertyId = CSSPropertyWebkitTransformOrigin; // cssPropertyID("-webkit -transform-origin")
68 ASSERT(propertyId > 0); 68 ASSERT(propertyId > 0);
69 propertyNameToIdMap->set(attrName.localName().impl(), propertyId); 69 propertyNameToIdMap->set(attrName.localName().impl(), propertyId);
70 } 70 }
71 71
72 SVGStyledElement::SVGStyledElement(const QualifiedName& tagName, Document* docum ent, ConstructionType constructionType) 72 SVGStyledElement::SVGStyledElement(const QualifiedName& tagName, Document* docum ent, ConstructionType constructionType)
73 : SVGElement(tagName, document, constructionType) 73 : SVGElement(tagName, document, constructionType)
74 { 74 {
75 ScriptWrappable::init(this);
75 registerAnimatedPropertiesForSVGStyledElement(); 76 registerAnimatedPropertiesForSVGStyledElement();
76 } 77 }
77 78
78 String SVGStyledElement::title() const 79 String SVGStyledElement::title() const
79 { 80 {
80 // According to spec, we should not return titles when hovering over root <s vg> elements (those 81 // According to spec, we should not return titles when hovering over root <s vg> elements (those
81 // <title> elements are the title of the document, not a tooltip) so we inst antly return. 82 // <title> elements are the title of the document, not a tooltip) so we inst antly return.
82 if (isOutermostSVGSVGElement()) 83 if (isOutermostSVGSVGElement())
83 return String(); 84 return String();
84 85
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 } 479 }
479 480
480 bool SVGStyledElement::isKeyboardFocusable(KeyboardEvent*) const 481 bool SVGStyledElement::isKeyboardFocusable(KeyboardEvent*) const
481 { 482 {
482 return isMouseFocusable(); 483 return isMouseFocusable();
483 } 484 }
484 485
485 } 486 }
486 487
487 #endif // ENABLE(SVG) 488 #endif // ENABLE(SVG)
OLDNEW
« no previous file with comments | « Source/WebCore/svg/SVGStyleElement.cpp ('k') | Source/WebCore/svg/SVGSwitchElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698