<rdar://problem/10923294> REGRESSION (r100847): Entries are clipped out in Day One
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Mar 2012 17:38:56 +0000 (17:38 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Mar 2012 17:38:56 +0000 (17:38 +0000)
https://bugs.webkit.org/show_bug.cgi?id=80494

Reviewed by Sam Weinig.

Source/WebCore:

Test: fast/dom/HTMLDocument/width-and-height.html

* html/HTMLDocument.idl: Reverted r100847 by re-enabling the width and height properties
in the JavaScript bindings.

LayoutTests:

* fast/dom/HTMLDocument/width-and-height-expected.txt: Added.
* fast/dom/HTMLDocument/width-and-height.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110065 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/dom/HTMLDocument/width-and-height-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/HTMLDocument/width-and-height.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLDocument.idl

index d36251d6845d95c27e3aa52b93609c744b873c30..87a385bc3e0c19284f2823d4727c2e8757b81e10 100644 (file)
@@ -1,3 +1,13 @@
+2012-03-07  Dan Bernstein  <mitz@apple.com>
+
+        <rdar://problem/10923294> REGRESSION (r100847): Entries are clipped out in Day One
+        https://bugs.webkit.org/show_bug.cgi?id=80494
+
+        Reviewed by Sam Weinig.
+
+        * fast/dom/HTMLDocument/width-and-height-expected.txt: Added.
+        * fast/dom/HTMLDocument/width-and-height.html: Added.
+
 2012-03-07  Philippe Normand  <pnormand@igalia.com>
 
         [GTK] media/audio-garbage-collect.html is flaky
diff --git a/LayoutTests/fast/dom/HTMLDocument/width-and-height-expected.txt b/LayoutTests/fast/dom/HTMLDocument/width-and-height-expected.txt
new file mode 100644 (file)
index 0000000..6a8862a
--- /dev/null
@@ -0,0 +1 @@
+PASS. The document.width and document.height properties are accessible from JavaScript.
diff --git a/LayoutTests/fast/dom/HTMLDocument/width-and-height.html b/LayoutTests/fast/dom/HTMLDocument/width-and-height.html
new file mode 100644 (file)
index 0000000..67af7a5
--- /dev/null
@@ -0,0 +1,9 @@
+<script>
+    if (window.layoutTestController)
+        layoutTestController.dumpAsText();
+
+    if ('width' in document && 'height' in document)
+        document.write("PASS. The document.width and document.height properties are accessible from JavaScript.");
+    else
+        document.write("FAIL. document.width or document.height are not accessible from JavaScript.");
+</script>
index bde8a876b3c25c2dcef24bd1d8e8eb5737723cdb..b672e7d173b297b5d9b6285e54428d2cf2899d39 100644 (file)
@@ -1,3 +1,15 @@
+2012-03-07  Dan Bernstein  <mitz@apple.com>
+
+        <rdar://problem/10923294> REGRESSION (r100847): Entries are clipped out in Day One
+        https://bugs.webkit.org/show_bug.cgi?id=80494
+
+        Reviewed by Sam Weinig.
+
+        Test: fast/dom/HTMLDocument/width-and-height.html
+
+        * html/HTMLDocument.idl: Reverted r100847 by re-enabling the width and height properties
+        in the JavaScript bindings.
+
 2012-03-07  Philippe Normand  <pnormand@igalia.com>
 
         [GTK] media/audio-garbage-collect.html is flaky
index 19420ee3d4ab9d04177a9bcad6b46df13b682a2f..de9b51d84f7ced0dccc0b32488f66f28dcc75377 100644 (file)
@@ -45,10 +45,8 @@ module html {
         void captureEvents();
         void releaseEvents();
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
         readonly attribute long width;
         readonly attribute long height;
-#endif
                  attribute [TreatNullAs=NullString] DOMString dir;
                  attribute [TreatNullAs=NullString] DOMString designMode;
         readonly attribute DOMString compatMode;