| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 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 12 matching lines...) Expand all Loading... |
| 23 #include "bindings/core/v8/ExceptionMessages.h" | 23 #include "bindings/core/v8/ExceptionMessages.h" |
| 24 #include "bindings/core/v8/ExceptionState.h" | 24 #include "bindings/core/v8/ExceptionState.h" |
| 25 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 25 #include "bindings/core/v8/ExceptionStatePlaceholder.h" |
| 26 #include "core/CSSPropertyNames.h" | 26 #include "core/CSSPropertyNames.h" |
| 27 #include "core/CSSValueKeywords.h" | 27 #include "core/CSSValueKeywords.h" |
| 28 #include "core/SVGNames.h" | 28 #include "core/SVGNames.h" |
| 29 #include "core/XMLNames.h" | 29 #include "core/XMLNames.h" |
| 30 #include "core/editing/FrameSelection.h" | 30 #include "core/editing/FrameSelection.h" |
| 31 #include "core/frame/LocalFrame.h" | 31 #include "core/frame/LocalFrame.h" |
| 32 #include "core/frame/UseCounter.h" | 32 #include "core/frame/UseCounter.h" |
| 33 #include "core/layout/LayoutObject.h" | |
| 34 #include "core/layout/api/LineLayoutAPIShim.h" | |
| 35 #include "core/layout/svg/SVGTextQuery.h" | 33 #include "core/layout/svg/SVGTextQuery.h" |
| 36 | 34 |
| 37 namespace blink { | 35 namespace blink { |
| 38 | 36 |
| 39 template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGLengthAd
justType>() | 37 template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGLengthAd
justType>() |
| 40 { | 38 { |
| 41 DEFINE_STATIC_LOCAL(SVGEnumerationStringEntries, entries, ()); | 39 DEFINE_STATIC_LOCAL(SVGEnumerationStringEntries, entries, ()); |
| 42 if (entries.isEmpty()) { | 40 if (entries.isEmpty()) { |
| 43 entries.append(std::make_pair(SVGLengthAdjustSpacing, "spacing")); | 41 entries.append(std::make_pair(SVGLengthAdjustSpacing, "spacing")); |
| 44 entries.append(std::make_pair(SVGLengthAdjustSpacingAndGlyphs, "spacingA
ndGlyphs")); | 42 entries.append(std::make_pair(SVGLengthAdjustSpacingAndGlyphs, "spacingA
ndGlyphs")); |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 { | 253 { |
| 256 if (!lineLayoutItem || (!lineLayoutItem.isSVGText() && !lineLayoutItem.isSVG
Inline())) | 254 if (!lineLayoutItem || (!lineLayoutItem.isSVGText() && !lineLayoutItem.isSVG
Inline())) |
| 257 return nullptr; | 255 return nullptr; |
| 258 | 256 |
| 259 SVGElement* element = toSVGElement(lineLayoutItem.node()); | 257 SVGElement* element = toSVGElement(lineLayoutItem.node()); |
| 260 ASSERT(element); | 258 ASSERT(element); |
| 261 return isSVGTextContentElement(*element) ? toSVGTextContentElement(element)
: 0; | 259 return isSVGTextContentElement(*element) ? toSVGTextContentElement(element)
: 0; |
| 262 } | 260 } |
| 263 | 261 |
| 264 } // namespace blink | 262 } // namespace blink |
| OLD | NEW |