| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> | 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> |
| 3 * Copyright (C) 2006 Apple Computer Inc. | 3 * Copyright (C) 2006 Apple Computer Inc. |
| 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 #include "SVGRenderSupport.h" | 27 #include "SVGRenderSupport.h" |
| 28 | 28 |
| 29 namespace WebCore { | 29 namespace WebCore { |
| 30 | 30 |
| 31 class RenderSVGInline : public RenderInline { | 31 class RenderSVGInline : public RenderInline { |
| 32 public: | 32 public: |
| 33 explicit RenderSVGInline(Element*); | 33 explicit RenderSVGInline(Element*); |
| 34 | 34 |
| 35 virtual const char* renderName() const { return "RenderSVGInline"; } | 35 virtual const char* renderName() const { return "RenderSVGInline"; } |
| 36 virtual bool requiresLayer() const { return false; } | 36 virtual bool requiresLayer() const OVERRIDE FINAL { return false; } |
| 37 virtual bool isSVGInline() const { return true; } | 37 virtual bool isSVGInline() const OVERRIDE FINAL { return true; } |
| 38 | 38 |
| 39 // Chapter 10.4 of the SVG Specification say that we should use the | 39 // Chapter 10.4 of the SVG Specification say that we should use the |
| 40 // object bounding box of the parent text element. | 40 // object bounding box of the parent text element. |
| 41 // We search for the root text element and take its bounding box. | 41 // We search for the root text element and take its bounding box. |
| 42 // It is also necessary to take the stroke and repaint rect of | 42 // It is also necessary to take the stroke and repaint rect of |
| 43 // this element, since we need it for filters. | 43 // this element, since we need it for filters. |
| 44 virtual FloatRect objectBoundingBox() const; | 44 virtual FloatRect objectBoundingBox() const OVERRIDE FINAL; |
| 45 virtual FloatRect strokeBoundingBox() const; | 45 virtual FloatRect strokeBoundingBox() const OVERRIDE FINAL; |
| 46 virtual FloatRect repaintRectInLocalCoordinates() const; | 46 virtual FloatRect repaintRectInLocalCoordinates() const OVERRIDE FINAL; |
| 47 | 47 |
| 48 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec
t* repaintContainer) const OVERRIDE; | 48 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec
t* repaintContainer) const OVERRIDE FINAL; |
| 49 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain
tContainer, FloatRect&, bool fixed = false) const OVERRIDE; | 49 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain
tContainer, FloatRect&, bool fixed = false) const OVERRIDE FINAL; |
| 50 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0) const OVERRIDE; | 50 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0) const OVERRIDE FINAL; |
| 51 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE; | 51 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE FINAL; |
| 52 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const; | 52 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const OVERRID
E FINAL; |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 virtual InlineFlowBox* createInlineFlowBox(); | 55 virtual InlineFlowBox* createInlineFlowBox() OVERRIDE FINAL; |
| 56 | 56 |
| 57 virtual void willBeDestroyed(); | 57 virtual void willBeDestroyed() OVERRIDE FINAL; |
| 58 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle); | 58 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle) O
VERRIDE FINAL; |
| 59 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); | 59 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV
ERRIDE FINAL; |
| 60 | 60 |
| 61 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV
ERRIDE; | 61 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV
ERRIDE FINAL; |
| 62 virtual void removeChild(RenderObject*) OVERRIDE; | 62 virtual void removeChild(RenderObject*) OVERRIDE FINAL; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } | 65 } |
| 66 | 66 |
| 67 #endif // ENABLE(SVG) | 67 #endif // ENABLE(SVG) |
| 68 #endif // !RenderSVGTSpan_H | 68 #endif // !RenderSVGTSpan_H |
| OLD | NEW |