| 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, 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 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 if (property && property->needsSynchronizeAttribute()) | 909 if (property && property->needsSynchronizeAttribute()) |
| 910 property->synchronizeAttribute(); | 910 property->synchronizeAttribute(); |
| 911 } | 911 } |
| 912 } | 912 } |
| 913 | 913 |
| 914 PassRefPtr<LayoutStyle> SVGElement::customStyleForRenderer() | 914 PassRefPtr<LayoutStyle> SVGElement::customStyleForRenderer() |
| 915 { | 915 { |
| 916 if (!correspondingElement()) | 916 if (!correspondingElement()) |
| 917 return document().ensureStyleResolver().styleForElement(this); | 917 return document().ensureStyleResolver().styleForElement(this); |
| 918 | 918 |
| 919 const LayoutStyle* style = 0; | 919 LayoutStyle* style = 0; |
| 920 if (Element* parent = parentOrShadowHostElement()) { | 920 if (Element* parent = parentOrShadowHostElement()) { |
| 921 if (LayoutObject* renderer = parent->renderer()) | 921 if (LayoutObject* renderer = parent->renderer()) |
| 922 style = renderer->style(); | 922 style = renderer->style(); |
| 923 } | 923 } |
| 924 | 924 |
| 925 return document().ensureStyleResolver().styleForElement(correspondingElement
(), style, DisallowStyleSharing); | 925 return document().ensureStyleResolver().styleForElement(correspondingElement
(), style, DisallowStyleSharing); |
| 926 } | 926 } |
| 927 | 927 |
| 928 MutableStylePropertySet* SVGElement::animatedSMILStyleProperties() const | 928 MutableStylePropertySet* SVGElement::animatedSMILStyleProperties() const |
| 929 { | 929 { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 941 { | 941 { |
| 942 if (hasSVGRareData()) | 942 if (hasSVGRareData()) |
| 943 svgRareData()->setUseOverrideComputedStyle(value); | 943 svgRareData()->setUseOverrideComputedStyle(value); |
| 944 } | 944 } |
| 945 | 945 |
| 946 LayoutStyle* SVGElement::computedStyle(PseudoId pseudoElementSpecifier) | 946 LayoutStyle* SVGElement::computedStyle(PseudoId pseudoElementSpecifier) |
| 947 { | 947 { |
| 948 if (!hasSVGRareData() || !svgRareData()->useOverrideComputedStyle()) | 948 if (!hasSVGRareData() || !svgRareData()->useOverrideComputedStyle()) |
| 949 return Element::computedStyle(pseudoElementSpecifier); | 949 return Element::computedStyle(pseudoElementSpecifier); |
| 950 | 950 |
| 951 const LayoutStyle* parentStyle = 0; | 951 LayoutStyle* parentStyle = 0; |
| 952 if (Element* parent = parentOrShadowHostElement()) { | 952 if (Element* parent = parentOrShadowHostElement()) { |
| 953 if (LayoutObject* renderer = parent->renderer()) | 953 if (LayoutObject* renderer = parent->renderer()) |
| 954 parentStyle = renderer->style(); | 954 parentStyle = renderer->style(); |
| 955 } | 955 } |
| 956 | 956 |
| 957 return svgRareData()->overrideComputedStyle(this, parentStyle); | 957 return svgRareData()->overrideComputedStyle(this, parentStyle); |
| 958 } | 958 } |
| 959 | 959 |
| 960 bool SVGElement::hasFocusEventListeners() const | 960 bool SVGElement::hasFocusEventListeners() const |
| 961 { | 961 { |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1191 Element::trace(visitor); | 1191 Element::trace(visitor); |
| 1192 } | 1192 } |
| 1193 | 1193 |
| 1194 const AtomicString& SVGElement::eventParameterName() | 1194 const AtomicString& SVGElement::eventParameterName() |
| 1195 { | 1195 { |
| 1196 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con
structFromLiteral)); | 1196 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con
structFromLiteral)); |
| 1197 return evtString; | 1197 return evtString; |
| 1198 } | 1198 } |
| 1199 | 1199 |
| 1200 } // namespace blink | 1200 } // namespace blink |
| OLD | NEW |