Index: Source/core/frame/DOMWindow.h |
diff --git a/Source/core/frame/DOMWindow.h b/Source/core/frame/DOMWindow.h |
index b14d7822b705b55fbc9b3202f1ad8bbb6d84c372..ed475d7d5985026387aeb059959e394e42dc2af5 100644 |
--- a/Source/core/frame/DOMWindow.h |
+++ b/Source/core/frame/DOMWindow.h |
@@ -148,11 +148,15 @@ public: |
virtual void scrollTo(const ScrollToOptions&) const = 0; |
void scroll(double x, double y) const { scrollTo(x, y); } |
void scroll(const ScrollToOptions& scrollToOptions) const { scrollTo(scrollToOptions); } |
- virtual void moveBy(float x, float y) const = 0; |
- virtual void moveTo(float x, float y) const = 0; |
- |
- virtual void resizeBy(float x, float y) const = 0; |
- virtual void resizeTo(float width, float height) const = 0; |
+ virtual void moveBy(int x, int y) const = 0; |
+ void moveTo() const { moveTo(0, 0, false, false); } |
+ void moveTo(int x) const { moveTo(x, 0, true, false); } |
+ virtual void moveTo(int x, int y, bool hasX = true, bool hasY = true) const = 0; |
+ |
+ virtual void resizeBy(int x, int y) const = 0; |
+ void resizeTo() const { resizeTo(0, 0, false, false); } |
+ void resizeTo(int x) const { resizeTo(x, 0, true, false); } |
+ virtual void resizeTo(int width, int height, bool hasWidth = true, bool hasHeight = true) const = 0; |
virtual PassRefPtrWillBeRawPtr<MediaQueryList> matchMedia(const String&) = 0; |