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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h

Issue 1477433004: Use LayoutUnit for SVG container size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h
index 5197a2b41bbecda2579c078ad4e8706ef9d3e025..c1d23d0e82789e2387774b66fdce9011933e8055 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h
@@ -51,8 +51,8 @@ public:
void setNeedsBoundariesUpdate() override { m_needsBoundariesOrTransformUpdate = true; }
void setNeedsTransformUpdate() override { m_needsBoundariesOrTransformUpdate = true; }
- IntSize containerSize() const { return m_containerSize; }
- void setContainerSize(const IntSize& containerSize)
+ LayoutSize containerSize() const { return m_containerSize; }
+ void setContainerSize(const LayoutSize& containerSize)
{
// SVGImage::draw() does a view layout prior to painting,
// and we need that layout to know of the new size otherwise
@@ -115,7 +115,7 @@ private:
void buildLocalToBorderBoxTransform();
LayoutObjectChildList m_children;
- IntSize m_containerSize;
+ LayoutSize m_containerSize;
FloatRect m_objectBoundingBox;
bool m_objectBoundingBoxValid;
FloatRect m_strokeBoundingBox;
« no previous file with comments | « third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.cpp ('k') | third_party/WebKit/Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698