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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 } | 179 } |
180 | 180 |
181 String SVGElement::title() const | 181 String SVGElement::title() const |
182 { | 182 { |
183 // According to spec, we should not return titles when hovering over root <s
vg> elements (those | 183 // According to spec, we should not return titles when hovering over root <s
vg> elements (those |
184 // <title> elements are the title of the document, not a tooltip) so we inst
antly return. | 184 // <title> elements are the title of the document, not a tooltip) so we inst
antly return. |
185 if (isOutermostSVGSVGElement()) | 185 if (isOutermostSVGSVGElement()) |
186 return String(); | 186 return String(); |
187 | 187 |
188 if (inUseShadowTree()) { | 188 if (inUseShadowTree()) { |
189 String useTitle(shadowHost()->title()); | 189 String useTitle(ownerShadowHost()->title()); |
190 if (!useTitle.isEmpty()) | 190 if (!useTitle.isEmpty()) |
191 return useTitle; | 191 return useTitle; |
192 } | 192 } |
193 | 193 |
194 // If we aren't an instance in a <use> or the <use> title was not found, the
n find the first | 194 // If we aren't an instance in a <use> or the <use> title was not found, the
n find the first |
195 // <title> child of this element. | 195 // <title> child of this element. |
196 // If a title child was found, return the text contents. | 196 // If a title child was found, return the text contents. |
197 if (Element* titleElement = Traversal<SVGTitleElement>::firstChild(*this)) | 197 if (Element* titleElement = Traversal<SVGTitleElement>::firstChild(*this)) |
198 return titleElement->innerText(); | 198 return titleElement->innerText(); |
199 | 199 |
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1208 Element::trace(visitor); | 1208 Element::trace(visitor); |
1209 } | 1209 } |
1210 | 1210 |
1211 const AtomicString& SVGElement::eventParameterName() | 1211 const AtomicString& SVGElement::eventParameterName() |
1212 { | 1212 { |
1213 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); | 1213 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); |
1214 return evtString; | 1214 return evtString; |
1215 } | 1215 } |
1216 | 1216 |
1217 } // namespace blink | 1217 } // namespace blink |
OLD | NEW |