| OLD | NEW |
| 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 * Copyright (C) 2006 Apple Inc. All rights reserved. | 4 * Copyright (C) 2006 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 5 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 } | 64 } |
| 65 | 65 |
| 66 void SVGStyleElement::setDisabled(bool setDisabled) | 66 void SVGStyleElement::setDisabled(bool setDisabled) |
| 67 { | 67 { |
| 68 if (CSSStyleSheet* styleSheet = sheet()) | 68 if (CSSStyleSheet* styleSheet = sheet()) |
| 69 styleSheet->setDisabled(setDisabled); | 69 styleSheet->setDisabled(setDisabled); |
| 70 } | 70 } |
| 71 | 71 |
| 72 const AtomicString& SVGStyleElement::type() const | 72 const AtomicString& SVGStyleElement::type() const |
| 73 { | 73 { |
| 74 DEFINE_STATIC_LOCAL(const AtomicString, defaultValue, ("text/css", AtomicStr
ing::ConstructFromLiteral)); | 74 DEFINE_STATIC_LOCAL(const AtomicString, defaultValue, ("text/css")); |
| 75 const AtomicString& n = getAttribute(SVGNames::typeAttr); | 75 const AtomicString& n = getAttribute(SVGNames::typeAttr); |
| 76 return n.isNull() ? defaultValue : n; | 76 return n.isNull() ? defaultValue : n; |
| 77 } | 77 } |
| 78 | 78 |
| 79 void SVGStyleElement::setType(const AtomicString& type) | 79 void SVGStyleElement::setType(const AtomicString& type) |
| 80 { | 80 { |
| 81 setAttribute(SVGNames::typeAttr, type); | 81 setAttribute(SVGNames::typeAttr, type); |
| 82 } | 82 } |
| 83 | 83 |
| 84 const AtomicString& SVGStyleElement::media() const | 84 const AtomicString& SVGStyleElement::media() const |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 dispatchEvent(Event::create(EventTypeNames::error)); | 160 dispatchEvent(Event::create(EventTypeNames::error)); |
| 161 } | 161 } |
| 162 | 162 |
| 163 DEFINE_TRACE(SVGStyleElement) | 163 DEFINE_TRACE(SVGStyleElement) |
| 164 { | 164 { |
| 165 StyleElement::trace(visitor); | 165 StyleElement::trace(visitor); |
| 166 SVGElement::trace(visitor); | 166 SVGElement::trace(visitor); |
| 167 } | 167 } |
| 168 | 168 |
| 169 } // namespace blink | 169 } // namespace blink |
| OLD | NEW |