From 57d2c9fcfcbc8626426694ed8093bf429b1e9240 Mon Sep 17 00:00:00 2001 From: Andrey Fomin Date: Thu, 9 Oct 2014 22:30:25 +0700 Subject: [PATCH] Change types of some methods in Document and Screen - Method Document#elementFromPoint(x, y) takes arguments of type Double http://www.w3.org/TR/cssom-view/#extensions-to-the-document-interface - Width and height properties of Screen has type Double http://www.w3.org/TR/cssom-view/#the-screen-interface --- src/main/scala/org/scalajs/dom/lib.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/scala/org/scalajs/dom/lib.scala b/src/main/scala/org/scalajs/dom/lib.scala index f78b9e3a9..fea5d580f 100644 --- a/src/main/scala/org/scalajs/dom/lib.scala +++ b/src/main/scala/org/scalajs/dom/lib.scala @@ -2577,7 +2577,7 @@ class Document extends Node with NodeSelector with DocumentEvent with ParentNode * * MDN */ - def elementFromPoint(x: Int, y: Int): Element = ??? + def elementFromPoint(x: Double, y: Double): Element = ??? /** * Adopts a node from an external document. The node and its subtree is removed from the @@ -3213,21 +3213,21 @@ class Screen extends js.Object { * * MDN */ - def width: Int = ??? + def width: Double = ??? /** * Returns the amount of vertical space available to the window on the screen. * * MDN */ - def availHeight: Int = ??? + def availHeight: Double = ??? /** * Returns the height of the screen in pixels. * * MDN */ - def height: Int = ??? + def height: Double = ??? /** * Returns the color depth of the screen. @@ -3241,7 +3241,7 @@ class Screen extends js.Object { * * MDN */ - def availWidth: Int = ??? + def availWidth: Double = ??? /** * Returns the bit depth of the screen.