OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
3 * Copyright (C) 2009 Google, Inc. | 3 * Copyright (C) 2009 Google, 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 18 matching lines...) Expand all Loading... |
29 | 29 |
30 class RenderSVGForeignObject FINAL : public RenderSVGBlock { | 30 class RenderSVGForeignObject FINAL : public RenderSVGBlock { |
31 public: | 31 public: |
32 explicit RenderSVGForeignObject(SVGForeignObjectElement*); | 32 explicit RenderSVGForeignObject(SVGForeignObjectElement*); |
33 virtual ~RenderSVGForeignObject(); | 33 virtual ~RenderSVGForeignObject(); |
34 | 34 |
35 virtual const char* renderName() const OVERRIDE { return "RenderSVGForeignOb
ject"; } | 35 virtual const char* renderName() const OVERRIDE { return "RenderSVGForeignOb
ject"; } |
36 | 36 |
37 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; | 37 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; |
38 | 38 |
39 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec
t* repaintContainer) const OVERRIDE; | |
40 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain
tContainer, FloatRect&, bool fixed = false) const OVERRIDE; | |
41 | |
42 virtual LayerType layerTypeRequired() const OVERRIDE { return NoLayer; } | |
43 virtual void layout() OVERRIDE; | 39 virtual void layout() OVERRIDE; |
44 | 40 |
45 virtual FloatRect objectBoundingBox() const OVERRIDE { return FloatRect(Floa
tPoint(), m_viewport.size()); } | 41 virtual FloatRect objectBoundingBox() const OVERRIDE { return FloatRect(Floa
tPoint(), m_viewport.size()); } |
46 virtual FloatRect strokeBoundingBox() const OVERRIDE { return FloatRect(Floa
tPoint(), m_viewport.size()); } | 42 virtual FloatRect strokeBoundingBox() const OVERRIDE { return FloatRect(Floa
tPoint(), m_viewport.size()); } |
47 virtual FloatRect repaintRectInLocalCoordinates() const OVERRIDE { return Fl
oatRect(FloatPoint(), m_viewport.size()); } | 43 virtual FloatRect repaintRectInLocalCoordinates() const OVERRIDE { return Fl
oatRect(FloatPoint(), m_viewport.size()); } |
48 | 44 |
49 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F
loatPoint& pointInParent, HitTestAction) OVERRIDE; | 45 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F
loatPoint& pointInParent, HitTestAction) OVERRIDE; |
50 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE; | |
51 virtual bool isSVGForeignObject() const OVERRIDE { return true; } | 46 virtual bool isSVGForeignObject() const OVERRIDE { return true; } |
52 | 47 |
53 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0) const OVERRIDE; | |
54 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE; | |
55 virtual void setNeedsTransformUpdate() OVERRIDE { m_needsTransformUpdate = t
rue; } | 48 virtual void setNeedsTransformUpdate() OVERRIDE { m_needsTransformUpdate = t
rue; } |
56 | 49 |
57 private: | 50 private: |
58 virtual void updateLogicalWidth() OVERRIDE; | 51 virtual void updateLogicalWidth() OVERRIDE; |
59 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const OVERRIDE; | 52 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const OVERRIDE; |
60 | 53 |
61 virtual const AffineTransform& localToParentTransform() const OVERRIDE; | 54 virtual const AffineTransform& localToParentTransform() const OVERRIDE; |
62 virtual AffineTransform localTransform() const OVERRIDE { return m_localTran
sform; } | |
63 | 55 |
64 bool m_needsTransformUpdate : 1; | 56 bool m_needsTransformUpdate : 1; |
65 FloatRect m_viewport; | 57 FloatRect m_viewport; |
66 AffineTransform m_localTransform; | |
67 mutable AffineTransform m_localToParentTransform; | 58 mutable AffineTransform m_localToParentTransform; |
68 }; | 59 }; |
69 | 60 |
70 } | 61 } |
71 | 62 |
72 #endif | 63 #endif |
OLD | NEW |