| 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 * |
| 11 * This library is free software; you can redistribute it and/or | 11 * This library is free software; you can redistribute it and/or |
| 12 * modify it under the terms of the GNU Library General Public | 12 * modify it under the terms of the GNU Library General Public |
| 13 * License as published by the Free Software Foundation; either | 13 * License as published by the Free Software Foundation; either |
| 14 * version 2 of the License, or (at your option) any later version. | 14 * version 2 of the License, or (at your option) any later version. |
| 15 * | 15 * |
| 16 * This library is distributed in the hope that it will be useful, | 16 * This library is distributed in the hope that it will be useful, |
| 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 19 * Library General Public License for more details. | 19 * Library General Public License for more details. |
| 20 * | 20 * |
| 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 #if ENABLE(SVG) | 29 #if ENABLE(SVG) |
| 30 #include "RenderSVGText.h" | 30 #include "core/rendering/svg/RenderSVGText.h" |
| 31 | 31 |
| 32 #include "HitTestRequest.h" | 32 #include "HitTestRequest.h" |
| 33 #include "HitTestResult.h" | 33 #include "HitTestResult.h" |
| 34 #include "LayoutRepainter.h" | 34 #include "LayoutRepainter.h" |
| 35 #include "PointerEventsHitRules.h" | 35 #include "PointerEventsHitRules.h" |
| 36 #include "RenderSVGInlineText.h" | |
| 37 #include "RenderSVGResource.h" | |
| 38 #include "RenderSVGRoot.h" | |
| 39 #include "SVGLengthList.h" | 36 #include "SVGLengthList.h" |
| 40 #include "SVGRenderSupport.h" | |
| 41 #include "SVGResourcesCache.h" | |
| 42 #include "SVGRootInlineBox.h" | |
| 43 #include "SVGTextElement.h" | 37 #include "SVGTextElement.h" |
| 44 #include "SVGTextLayoutAttributesBuilder.h" | |
| 45 #include "SVGTextRunRenderingContext.h" | |
| 46 #include "SVGTransformList.h" | 38 #include "SVGTransformList.h" |
| 47 #include "SVGURIReference.h" | 39 #include "SVGURIReference.h" |
| 48 #include "VisiblePosition.h" | 40 #include "VisiblePosition.h" |
| 49 #include "core/platform/FloatConversion.h" | 41 #include "core/platform/FloatConversion.h" |
| 50 #include "core/platform/graphics/FloatQuad.h" | 42 #include "core/platform/graphics/FloatQuad.h" |
| 51 #include "core/platform/graphics/FontCache.h" | 43 #include "core/platform/graphics/FontCache.h" |
| 52 #include "core/platform/graphics/GraphicsContext.h" | 44 #include "core/platform/graphics/GraphicsContext.h" |
| 53 #include "core/platform/graphics/SimpleFontData.h" | 45 #include "core/platform/graphics/SimpleFontData.h" |
| 54 #include "core/platform/graphics/transforms/TransformState.h" | 46 #include "core/platform/graphics/transforms/TransformState.h" |
| 47 #include "core/rendering/svg/RenderSVGInlineText.h" |
| 48 #include "core/rendering/svg/RenderSVGResource.h" |
| 49 #include "core/rendering/svg/RenderSVGRoot.h" |
| 50 #include "core/rendering/svg/SVGRenderSupport.h" |
| 51 #include "core/rendering/svg/SVGResourcesCache.h" |
| 52 #include "core/rendering/svg/SVGRootInlineBox.h" |
| 53 #include "core/rendering/svg/SVGTextLayoutAttributesBuilder.h" |
| 54 #include "core/rendering/svg/SVGTextRunRenderingContext.h" |
| 55 | 55 |
| 56 namespace WebCore { | 56 namespace WebCore { |
| 57 | 57 |
| 58 RenderSVGText::RenderSVGText(SVGTextElement* node) | 58 RenderSVGText::RenderSVGText(SVGTextElement* node) |
| 59 : RenderSVGBlock(node) | 59 : RenderSVGBlock(node) |
| 60 , m_needsReordering(false) | 60 , m_needsReordering(false) |
| 61 , m_needsPositioningValuesUpdate(false) | 61 , m_needsPositioningValuesUpdate(false) |
| 62 , m_needsTransformUpdate(true) | 62 , m_needsTransformUpdate(true) |
| 63 , m_needsTextMetricsUpdate(false) | 63 , m_needsTextMetricsUpdate(false) |
| 64 { | 64 { |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 | 557 |
| 558 // Fix for <rdar://problem/8048875>. We should not render :first-letter CSS Styl
e | 558 // Fix for <rdar://problem/8048875>. We should not render :first-letter CSS Styl
e |
| 559 // in a SVG text element context. | 559 // in a SVG text element context. |
| 560 void RenderSVGText::updateFirstLetter() | 560 void RenderSVGText::updateFirstLetter() |
| 561 { | 561 { |
| 562 } | 562 } |
| 563 | 563 |
| 564 } | 564 } |
| 565 | 565 |
| 566 #endif // ENABLE(SVG) | 566 #endif // ENABLE(SVG) |
| OLD | NEW |