OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2009, Google Inc. All rights reserved. | 2 * Copyright (c) 2009, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 class RenderSVGModelObject : public RenderObject { | 48 class RenderSVGModelObject : public RenderObject { |
49 public: | 49 public: |
50 explicit RenderSVGModelObject(SVGElement*); | 50 explicit RenderSVGModelObject(SVGElement*); |
51 | 51 |
52 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec
t* repaintContainer) const OVERRIDE; | 52 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec
t* repaintContainer) const OVERRIDE; |
53 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain
tContainer, FloatRect&, bool fixed = false) const OVERRIDE FINAL; | 53 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain
tContainer, FloatRect&, bool fixed = false) const OVERRIDE FINAL; |
54 virtual LayoutRect outlineBoundsForRepaint(const RenderLayerModelObject* rep
aintContainer, const RenderGeometryMap*) const OVERRIDE FINAL; | 54 virtual LayoutRect outlineBoundsForRepaint(const RenderLayerModelObject* rep
aintContainer, const RenderGeometryMap*) const OVERRIDE FINAL; |
55 | 55 |
56 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const OVERRIDE FINAL; | 56 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const OVERRIDE FINAL; |
57 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const; | 57 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const OVERRID
E; |
58 | 58 |
59 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0) const OVERRIDE FINAL; | 59 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0) const OVERRIDE FINAL; |
60 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE FINAL; | 60 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE FINAL; |
61 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); | 61 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV
ERRIDE; |
62 | 62 |
63 static bool checkIntersection(RenderObject*, const SVGRect&); | 63 static bool checkIntersection(RenderObject*, const SVGRect&); |
64 static bool checkEnclosure(RenderObject*, const SVGRect&); | 64 static bool checkEnclosure(RenderObject*, const SVGRect&); |
65 | 65 |
66 virtual void computeLayerHitTestRects(LayerHitTestRects&) const OVERRIDE; | 66 virtual void computeLayerHitTestRects(LayerHitTestRects&) const OVERRIDE FIN
AL; |
67 | 67 |
68 SVGElement* element() const { return toSVGElement(RenderObject::node()); } | 68 SVGElement* element() const { return toSVGElement(RenderObject::node()); } |
69 | 69 |
70 virtual bool isSVG() const OVERRIDE FINAL { return true; } | 70 virtual bool isSVG() const OVERRIDE FINAL { return true; } |
71 | 71 |
72 protected: | 72 protected: |
73 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur
rentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& container
Rect) const OVERRIDE; | 73 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur
rentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& container
Rect) const OVERRIDE FINAL; |
74 virtual void willBeDestroyed(); | 74 virtual void willBeDestroyed() OVERRIDE; |
75 | 75 |
76 private: | 76 private: |
77 // RenderSVGModelObject subclasses should use element() instead. | 77 // RenderSVGModelObject subclasses should use element() instead. |
78 void node() const WTF_DELETED_FUNCTION; | 78 void node() const WTF_DELETED_FUNCTION; |
79 | 79 |
80 // This method should never be called, SVG uses a different nodeAtPoint meth
od | 80 // This method should never be called, SVG uses a different nodeAtPoint meth
od |
81 bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocatio
n& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) OVE
RRIDE; | 81 bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocatio
n& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) OVE
RRIDE FINAL; |
82 virtual void absoluteFocusRingQuads(Vector<FloatQuad>&) OVERRIDE FINAL; | 82 virtual void absoluteFocusRingQuads(Vector<FloatQuad>&) OVERRIDE FINAL; |
83 }; | 83 }; |
84 | 84 |
85 } | 85 } |
86 | 86 |
87 #endif | 87 #endif |
OLD | NEW |