OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> | 3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> |
4 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> | 4 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> |
5 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 5 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
6 * Copyright (C) 2008 Rob Buis <buis@kde.org> | 6 * Copyright (C) 2008 Rob Buis <buis@kde.org> |
7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
8 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. | 8 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. |
9 * Copyright (C) 2012 Google Inc. | 9 * Copyright (C) 2012 Google Inc. |
10 * | 10 * |
(...skipping 10 matching lines...) Expand all Loading... |
21 * You should have received a copy of the GNU Library General Public License | 21 * You should have received a copy of the GNU Library General Public License |
22 * along with this library; see the file COPYING.LIB. If not, write to | 22 * along with this library; see the file COPYING.LIB. If not, write to |
23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
24 * Boston, MA 02110-1301, USA. | 24 * Boston, MA 02110-1301, USA. |
25 */ | 25 */ |
26 | 26 |
27 #include "config.h" | 27 #include "config.h" |
28 | 28 |
29 #include "core/rendering/svg/RenderSVGText.h" | 29 #include "core/rendering/svg/RenderSVGText.h" |
30 | 30 |
31 #include "core/platform/graphics/FontCache.h" | |
32 #include "core/platform/graphics/GraphicsContextStateSaver.h" | |
33 #include "core/platform/graphics/SimpleFontData.h" | |
34 #include "core/rendering/HitTestRequest.h" | 31 #include "core/rendering/HitTestRequest.h" |
35 #include "core/rendering/HitTestResult.h" | 32 #include "core/rendering/HitTestResult.h" |
36 #include "core/rendering/LayoutRectRecorder.h" | 33 #include "core/rendering/LayoutRectRecorder.h" |
37 #include "core/rendering/LayoutRepainter.h" | 34 #include "core/rendering/LayoutRepainter.h" |
38 #include "core/rendering/PointerEventsHitRules.h" | 35 #include "core/rendering/PointerEventsHitRules.h" |
39 #include "core/rendering/style/ShadowList.h" | 36 #include "core/rendering/style/ShadowList.h" |
40 #include "core/rendering/svg/RenderSVGInlineText.h" | 37 #include "core/rendering/svg/RenderSVGInlineText.h" |
41 #include "core/rendering/svg/RenderSVGResource.h" | 38 #include "core/rendering/svg/RenderSVGResource.h" |
42 #include "core/rendering/svg/RenderSVGRoot.h" | 39 #include "core/rendering/svg/RenderSVGRoot.h" |
43 #include "core/rendering/svg/SVGRenderSupport.h" | 40 #include "core/rendering/svg/SVGRenderSupport.h" |
44 #include "core/rendering/svg/SVGResourcesCache.h" | 41 #include "core/rendering/svg/SVGResourcesCache.h" |
45 #include "core/rendering/svg/SVGRootInlineBox.h" | 42 #include "core/rendering/svg/SVGRootInlineBox.h" |
46 #include "core/rendering/svg/SVGTextRunRenderingContext.h" | 43 #include "core/rendering/svg/SVGTextRunRenderingContext.h" |
47 #include "core/svg/SVGLengthList.h" | 44 #include "core/svg/SVGLengthList.h" |
48 #include "core/svg/SVGTextElement.h" | 45 #include "core/svg/SVGTextElement.h" |
49 #include "core/svg/SVGTransformList.h" | 46 #include "core/svg/SVGTransformList.h" |
50 #include "core/svg/SVGURIReference.h" | 47 #include "core/svg/SVGURIReference.h" |
51 #include "platform/FloatConversion.h" | 48 #include "platform/FloatConversion.h" |
| 49 #include "platform/fonts/FontCache.h" |
| 50 #include "platform/fonts/SimpleFontData.h" |
52 #include "platform/geometry/FloatQuad.h" | 51 #include "platform/geometry/FloatQuad.h" |
53 #include "platform/geometry/TransformState.h" | 52 #include "platform/geometry/TransformState.h" |
| 53 #include "platform/graphics/GraphicsContextStateSaver.h" |
54 | 54 |
55 namespace WebCore { | 55 namespace WebCore { |
56 | 56 |
57 RenderSVGText::RenderSVGText(SVGTextElement* node) | 57 RenderSVGText::RenderSVGText(SVGTextElement* node) |
58 : RenderSVGBlock(node) | 58 : RenderSVGBlock(node) |
59 , m_needsReordering(false) | 59 , m_needsReordering(false) |
60 , m_needsPositioningValuesUpdate(false) | 60 , m_needsPositioningValuesUpdate(false) |
61 , m_needsTransformUpdate(true) | 61 , m_needsTransformUpdate(true) |
62 , m_needsTextMetricsUpdate(false) | 62 , m_needsTextMetricsUpdate(false) |
63 { | 63 { |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 return 0; | 552 return 0; |
553 } | 553 } |
554 | 554 |
555 // Fix for <rdar://problem/8048875>. We should not render :first-letter CSS Styl
e | 555 // Fix for <rdar://problem/8048875>. We should not render :first-letter CSS Styl
e |
556 // in a SVG text element context. | 556 // in a SVG text element context. |
557 void RenderSVGText::updateFirstLetter() | 557 void RenderSVGText::updateFirstLetter() |
558 { | 558 { |
559 } | 559 } |
560 | 560 |
561 } | 561 } |
OLD | NEW |