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

Unified Diff: Source/core/rendering/shapes/RasterShape.h

Issue 208423003: [CSS Shapes] clamp RasterShape shapeMargin to reference box size (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix sqrt problem Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/shapes/RasterShape.h
diff --git a/Source/core/rendering/shapes/RasterShape.h b/Source/core/rendering/shapes/RasterShape.h
index 5da5442ce4dd86afba95873f31cdd1d82fe2dfb9..ed650a8044a370db8f8e908526a0a20c366ca97f 100644
--- a/Source/core/rendering/shapes/RasterShape.h
+++ b/Source/core/rendering/shapes/RasterShape.h
@@ -92,9 +92,9 @@ private:
class RasterShape FINAL : public Shape {
WTF_MAKE_NONCOPYABLE(RasterShape);
public:
- RasterShape(PassOwnPtr<RasterShapeIntervals> intervals, const IntSize& imageSize)
+ RasterShape(PassOwnPtr<RasterShapeIntervals> intervals, const IntSize& marginRectSize)
: m_intervals(intervals)
- , m_imageSize(imageSize)
+ , m_marginRectSize(marginRectSize)
{
}
@@ -111,7 +111,7 @@ private:
OwnPtr<RasterShapeIntervals> m_intervals;
mutable OwnPtr<RasterShapeIntervals> m_marginIntervals;
- IntSize m_imageSize;
+ IntSize m_marginRectSize;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698