Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: Source/core/rendering/svg/RenderSVGForeignObject.h

Issue 133873003: Convert SVG <foreignObject> to use RenderObject::isChildAllowed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reupload. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/rendering/svg/RenderSVGForeignObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 16 matching lines...) Expand all
27 27
28 class SVGForeignObjectElement; 28 class SVGForeignObjectElement;
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 bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE;
38
37 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; 39 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE;
38 40
39 virtual void layout() OVERRIDE; 41 virtual void layout() OVERRIDE;
40 42
41 virtual FloatRect objectBoundingBox() const OVERRIDE { return FloatRect(Floa tPoint(), m_viewport.size()); } 43 virtual FloatRect objectBoundingBox() const OVERRIDE { return FloatRect(Floa tPoint(), m_viewport.size()); }
42 virtual FloatRect strokeBoundingBox() const OVERRIDE { return FloatRect(Floa tPoint(), m_viewport.size()); } 44 virtual FloatRect strokeBoundingBox() const OVERRIDE { return FloatRect(Floa tPoint(), m_viewport.size()); }
43 virtual FloatRect repaintRectInLocalCoordinates() const OVERRIDE { return Fl oatRect(FloatPoint(), m_viewport.size()); } 45 virtual FloatRect repaintRectInLocalCoordinates() const OVERRIDE { return Fl oatRect(FloatPoint(), m_viewport.size()); }
44 46
45 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F loatPoint& pointInParent, HitTestAction) OVERRIDE; 47 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F loatPoint& pointInParent, HitTestAction) OVERRIDE;
46 virtual bool isSVGForeignObject() const OVERRIDE { return true; } 48 virtual bool isSVGForeignObject() const OVERRIDE { return true; }
47 49
48 virtual void setNeedsTransformUpdate() OVERRIDE { m_needsTransformUpdate = t rue; } 50 virtual void setNeedsTransformUpdate() OVERRIDE { m_needsTransformUpdate = t rue; }
49 51
50 private: 52 private:
51 virtual void updateLogicalWidth() OVERRIDE; 53 virtual void updateLogicalWidth() OVERRIDE;
52 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const OVERRIDE; 54 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const OVERRIDE;
53 55
54 virtual const AffineTransform& localToParentTransform() const OVERRIDE; 56 virtual const AffineTransform& localToParentTransform() const OVERRIDE;
55 57
56 bool m_needsTransformUpdate : 1; 58 bool m_needsTransformUpdate : 1;
57 FloatRect m_viewport; 59 FloatRect m_viewport;
58 mutable AffineTransform m_localToParentTransform; 60 mutable AffineTransform m_localToParentTransform;
59 }; 61 };
60 62
61 } 63 }
62 64
63 #endif 65 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/svg/RenderSVGForeignObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698