| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2009 Google, Inc. All rights reserved. | 4 * Copyright (C) 2009 Google, Inc. All rights reserved. |
| 5 * Copyright (C) 2009 Apple Inc. All rights reserved. | 5 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "core/rendering/svg/RenderSVGModelObject.h" | 26 #include "core/rendering/svg/RenderSVGModelObject.h" |
| 27 | 27 |
| 28 namespace blink { | 28 namespace blink { |
| 29 | 29 |
| 30 class SVGElement; | 30 class SVGElement; |
| 31 | 31 |
| 32 class RenderSVGContainer : public RenderSVGModelObject { | 32 class RenderSVGContainer : public RenderSVGModelObject { |
| 33 public: | 33 public: |
| 34 explicit RenderSVGContainer(SVGElement*); | 34 explicit RenderSVGContainer(SVGElement*); |
| 35 virtual ~RenderSVGContainer(); | 35 virtual ~RenderSVGContainer(); |
| 36 virtual void trace(Visitor*) OVERRIDE; | 36 virtual void trace(Visitor*) override; |
| 37 | 37 |
| 38 // If you have a RenderSVGContainer, use firstChild or lastChild instead. | 38 // If you have a RenderSVGContainer, use firstChild or lastChild instead. |
| 39 void slowFirstChild() const WTF_DELETED_FUNCTION; | 39 void slowFirstChild() const WTF_DELETED_FUNCTION; |
| 40 void slowLastChild() const WTF_DELETED_FUNCTION; | 40 void slowLastChild() const WTF_DELETED_FUNCTION; |
| 41 | 41 |
| 42 | 42 |
| 43 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; | 43 virtual void paint(PaintInfo&, const LayoutPoint&) override; |
| 44 virtual void setNeedsBoundariesUpdate() OVERRIDE FINAL { m_needsBoundariesUp
date = true; } | 44 virtual void setNeedsBoundariesUpdate() override final { m_needsBoundariesUp
date = true; } |
| 45 virtual bool didTransformToRootUpdate() { return false; } | 45 virtual bool didTransformToRootUpdate() { return false; } |
| 46 bool isObjectBoundingBoxValid() const { return m_objectBoundingBoxValid; } | 46 bool isObjectBoundingBoxValid() const { return m_objectBoundingBoxValid; } |
| 47 | 47 |
| 48 protected: | 48 protected: |
| 49 virtual RenderObjectChildList* virtualChildren() OVERRIDE FINAL { return chi
ldren(); } | 49 virtual RenderObjectChildList* virtualChildren() override final { return chi
ldren(); } |
| 50 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE FINAL
{ return children(); } | 50 virtual const RenderObjectChildList* virtualChildren() const override final
{ return children(); } |
| 51 | 51 |
| 52 virtual bool isSVGContainer() const OVERRIDE FINAL { return true; } | 52 virtual bool isSVGContainer() const override final { return true; } |
| 53 virtual const char* renderName() const OVERRIDE { return "RenderSVGContainer
"; } | 53 virtual const char* renderName() const override { return "RenderSVGContainer
"; } |
| 54 | 54 |
| 55 virtual void layout() OVERRIDE; | 55 virtual void layout() override; |
| 56 | 56 |
| 57 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV
ERRIDE FINAL; | 57 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) ov
erride final; |
| 58 virtual void removeChild(RenderObject*) OVERRIDE FINAL; | 58 virtual void removeChild(RenderObject*) override final; |
| 59 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit
ionalOffset, const RenderLayerModelObject* paintContainer) const OVERRIDE FINAL; | 59 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit
ionalOffset, const RenderLayerModelObject* paintContainer) const override final; |
| 60 | 60 |
| 61 virtual FloatRect objectBoundingBox() const OVERRIDE FINAL { return m_object
BoundingBox; } | 61 virtual FloatRect objectBoundingBox() const override final { return m_object
BoundingBox; } |
| 62 virtual FloatRect strokeBoundingBox() const OVERRIDE FINAL { return m_stroke
BoundingBox; } | 62 virtual FloatRect strokeBoundingBox() const override final { return m_stroke
BoundingBox; } |
| 63 virtual FloatRect paintInvalidationRectInLocalCoordinates() const OVERRIDE F
INAL { return m_paintInvalidationBoundingBox; } | 63 virtual FloatRect paintInvalidationRectInLocalCoordinates() const override f
inal { return m_paintInvalidationBoundingBox; } |
| 64 | 64 |
| 65 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F
loatPoint& pointInParent, HitTestAction) OVERRIDE; | 65 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F
loatPoint& pointInParent, HitTestAction) override; |
| 66 | 66 |
| 67 // Allow RenderSVGTransformableContainer to hook in at the right time in lay
out() | 67 // Allow RenderSVGTransformableContainer to hook in at the right time in lay
out() |
| 68 virtual bool calculateLocalTransform() { return false; } | 68 virtual bool calculateLocalTransform() { return false; } |
| 69 | 69 |
| 70 // Allow RenderSVGViewportContainer to hook in at the right times in layout(
), paint() and nodeAtFloatPoint() | 70 // Allow RenderSVGViewportContainer to hook in at the right times in layout(
), paint() and nodeAtFloatPoint() |
| 71 virtual void calcViewport() { } | 71 virtual void calcViewport() { } |
| 72 virtual void applyViewportClip(PaintInfo&) { } | 72 virtual void applyViewportClip(PaintInfo&) { } |
| 73 virtual bool pointIsInsideViewportClip(const FloatPoint& /*pointInParent*/)
{ return true; } | 73 virtual bool pointIsInsideViewportClip(const FloatPoint& /*pointInParent*/)
{ return true; } |
| 74 | 74 |
| 75 virtual void determineIfLayoutSizeChanged() { } | 75 virtual void determineIfLayoutSizeChanged() { } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 90 FloatRect m_strokeBoundingBox; | 90 FloatRect m_strokeBoundingBox; |
| 91 FloatRect m_paintInvalidationBoundingBox; | 91 FloatRect m_paintInvalidationBoundingBox; |
| 92 bool m_needsBoundariesUpdate : 1; | 92 bool m_needsBoundariesUpdate : 1; |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGContainer, isSVGContainer()); | 95 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGContainer, isSVGContainer()); |
| 96 | 96 |
| 97 } // namespace blink | 97 } // namespace blink |
| 98 | 98 |
| 99 #endif // RenderSVGContainer_h | 99 #endif // RenderSVGContainer_h |
| OLD | NEW |