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

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

Issue 597753002: Move paint code from RenderSVGForeignObject to SVGForeignObjectPainter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add SVGForeignObjectPainter Created 6 years, 3 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 | Annotate | Revision Log
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 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()); }
44 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()); }
45 virtual FloatRect paintInvalidationRectInLocalCoordinates() const OVERRIDE { return FloatRect(FloatPoint(), m_viewport.size()); } 45 virtual FloatRect paintInvalidationRectInLocalCoordinates() const OVERRIDE { return FloatRect(FloatPoint(), m_viewport.size()); }
46 46
47 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const O VERRIDE; 47 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const O VERRIDE;
48 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F loatPoint& pointInParent, HitTestAction) OVERRIDE; 48 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F loatPoint& pointInParent, HitTestAction) OVERRIDE;
49 virtual bool isSVGForeignObject() const OVERRIDE { return true; } 49 virtual bool isSVGForeignObject() const OVERRIDE { return true; }
50 50
51 virtual void setNeedsTransformUpdate() OVERRIDE { m_needsTransformUpdate = t rue; } 51 virtual void setNeedsTransformUpdate() OVERRIDE { m_needsTransformUpdate = t rue; }
52 52
53 FloatRect viewportRect() { return m_viewport; }
54
53 private: 55 private:
54 virtual void updateLogicalWidth() OVERRIDE; 56 virtual void updateLogicalWidth() OVERRIDE;
55 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const OVERRIDE; 57 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const OVERRIDE;
56 58
57 virtual const AffineTransform& localToParentTransform() const OVERRIDE; 59 virtual const AffineTransform& localToParentTransform() const OVERRIDE;
58 60
59 bool m_needsTransformUpdate : 1; 61 bool m_needsTransformUpdate : 1;
60 FloatRect m_viewport; 62 FloatRect m_viewport;
61 mutable AffineTransform m_localToParentTransform; 63 mutable AffineTransform m_localToParentTransform;
62 }; 64 };
63 65
64 } 66 }
65 67
66 #endif 68 #endif
OLDNEW
« no previous file with comments | « Source/core/paint/SVGForeignObjectPainter.cpp ('k') | Source/core/rendering/svg/RenderSVGForeignObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698