| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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) |
| OLD | NEW |