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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // required by SVG renders need to be declared on RenderObject, but shared | 43 // required by SVG renders need to be declared on RenderObject, but shared |
44 // logic can go in this class or in SVGRenderSupport. | 44 // logic can go in this class or in SVGRenderSupport. |
45 | 45 |
46 class SVGElement; | 46 class SVGElement; |
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 bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; | 52 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; |
| 53 virtual bool canHaveWhitespaceChildren() const OVERRIDE { return false; } |
53 | 54 |
54 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec
t* repaintContainer) const OVERRIDE; | 55 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec
t* repaintContainer) const OVERRIDE; |
55 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain
tContainer, FloatRect&, bool fixed = false) const OVERRIDE FINAL; | 56 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain
tContainer, FloatRect&, bool fixed = false) const OVERRIDE FINAL; |
56 virtual LayoutRect outlineBoundsForRepaint(const RenderLayerModelObject* rep
aintContainer, const RenderGeometryMap*) const OVERRIDE FINAL; | 57 virtual LayoutRect outlineBoundsForRepaint(const RenderLayerModelObject* rep
aintContainer, const RenderGeometryMap*) const OVERRIDE FINAL; |
57 | 58 |
58 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const OVERRIDE FINAL; | 59 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const OVERRIDE FINAL; |
59 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const OVERRID
E; | 60 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const OVERRID
E; |
60 | 61 |
61 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0) const OVERRIDE FINAL; | 62 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0) const OVERRIDE FINAL; |
62 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE FINAL; | 63 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE FINAL; |
(...skipping 17 matching lines...) Expand all Loading... |
80 void node() const WTF_DELETED_FUNCTION; | 81 void node() const WTF_DELETED_FUNCTION; |
81 | 82 |
82 // This method should never be called, SVG uses a different nodeAtPoint meth
od | 83 // This method should never be called, SVG uses a different nodeAtPoint meth
od |
83 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE FINAL; | 84 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE FINAL; |
84 virtual void absoluteFocusRingQuads(Vector<FloatQuad>&) OVERRIDE FINAL; | 85 virtual void absoluteFocusRingQuads(Vector<FloatQuad>&) OVERRIDE FINAL; |
85 }; | 86 }; |
86 | 87 |
87 } | 88 } |
88 | 89 |
89 #endif | 90 #endif |
OLD | NEW |