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 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
943 | 943 |
944 RenderStyle* parentStyle = 0; | 944 RenderStyle* parentStyle = 0; |
945 if (Element* parent = parentOrShadowHostElement()) { | 945 if (Element* parent = parentOrShadowHostElement()) { |
946 if (RenderObject* renderer = parent->renderer()) | 946 if (RenderObject* renderer = parent->renderer()) |
947 parentStyle = renderer->style(); | 947 parentStyle = renderer->style(); |
948 } | 948 } |
949 | 949 |
950 return svgRareData()->overrideComputedStyle(this, parentStyle); | 950 return svgRareData()->overrideComputedStyle(this, parentStyle); |
951 } | 951 } |
952 | 952 |
953 bool SVGElement::hasFocusEventListeners() const | |
954 { | |
955 return hasEventListeners(EventTypeNames::focusin) || hasEventListeners(Event
TypeNames::focusout) | |
956 || hasEventListeners(EventTypeNames::focus) || hasEventListeners(EventTy
peNames::blur); | |
957 } | |
958 | |
959 void SVGElement::markForLayoutAndParentResourceInvalidation(RenderObject* render
er) | 953 void SVGElement::markForLayoutAndParentResourceInvalidation(RenderObject* render
er) |
960 { | 954 { |
961 ASSERT(renderer); | 955 ASSERT(renderer); |
962 RenderSVGResourceContainer::markForLayoutAndParentResourceInvalidation(rende
rer, true); | 956 RenderSVGResourceContainer::markForLayoutAndParentResourceInvalidation(rende
rer, true); |
963 } | 957 } |
964 | 958 |
965 void SVGElement::invalidateInstances() | 959 void SVGElement::invalidateInstances() |
966 { | 960 { |
967 if (!inDocument()) | 961 if (!inDocument()) |
968 return; | 962 return; |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1184 Element::trace(visitor); | 1178 Element::trace(visitor); |
1185 } | 1179 } |
1186 | 1180 |
1187 const AtomicString& SVGElement::eventParameterName() | 1181 const AtomicString& SVGElement::eventParameterName() |
1188 { | 1182 { |
1189 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con
structFromLiteral)); | 1183 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con
structFromLiteral)); |
1190 return evtString; | 1184 return evtString; |
1191 } | 1185 } |
1192 | 1186 |
1193 } // namespace blink | 1187 } // namespace blink |
OLD | NEW |