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

Unified Diff: third_party/WebKit/Source/platform/graphics/GeneratedImage.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/platform/graphics/GeneratedImage.h
diff --git a/third_party/WebKit/Source/platform/graphics/GeneratedImage.h b/third_party/WebKit/Source/platform/graphics/GeneratedImage.h
index c0a7cc9fa9bac9031308826ccf73362bc56531fb..99c18382d5d525b90ef19d6b64c3e585faa1655d 100644
--- a/third_party/WebKit/Source/platform/graphics/GeneratedImage.h
+++ b/third_party/WebKit/Source/platform/graphics/GeneratedImage.h
@@ -27,6 +27,7 @@
#define GeneratedImage_h
#include "platform/geometry/IntSize.h"
+#include "platform/geometry/LayoutSize.h"
#include "platform/graphics/Image.h"
#include "wtf/RefPtr.h"
@@ -36,7 +37,7 @@ class PLATFORM_EXPORT GeneratedImage : public Image {
public:
bool currentFrameHasSingleSecurityOrigin() const override { return true; }
- void setContainerSize(const IntSize& size) override { m_size = size; }
+ void setContainerSize(const LayoutSize& size) override { m_size = roundedIntSize(size); }
bool usesContainerSize() const override { return true; }
bool hasRelativeWidth() const override { return true; }
bool hasRelativeHeight() const override { return true; }

Powered by Google App Engine
This is Rietveld 408576698