WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
[patch]
Patch
bug-121876-20130925183405.patch (text/plain), 24.99 KB, created by
gur.trio
on 2013-09-25 06:02:38 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
gur.trio
Created:
2013-09-25 06:02:38 PDT
Size:
24.99 KB
patch
obsolete
>Index: Source/WebCore/ChangeLog >=================================================================== >--- Source/WebCore/ChangeLog (revision 156386) >+++ Source/WebCore/ChangeLog (working copy) >@@ -1,3 +1,35 @@ >+2013-09-25 Gurpreet Kaur <k.gurpreet@samsung.com> >+ >+ REGRESSION (r154614): Setting the document scroll position isn't symmetric; can successfully set document.body.scrollTop, but can only read from document.documentElement.scrollTop >+ https://bugs.webkit.org/show_bug.cgi?id=121876 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ Non-Quirks mode should set/get scrolltop/scrollleft through >+ document.documentElement.scrollTop/document.documentElement.scrollLeft >+ Quirks mode should set/get scrolltop/scrollleft through >+ document.body.scrollTop/document.body.scrollLeft. >+ >+ Tests: fast/dom/Element/body-scrollLeft-Quirks.html >+ fast/dom/Element/body-scrollLeft.html >+ fast/dom/Element/body-scrollTop-Quirks.html >+ fast/dom/Element/body-scrollTop.html >+ fast/dom/Element/documentElement-scrollLeft-Quirks.html >+ fast/dom/Element/documentElement-scrollLeft.html >+ fast/dom/Element/documentElement-scrollTop-Quirks.html >+ fast/dom/Element/documentElement-scrollTop.html >+ >+ * dom/Element.cpp: >+ (WebCore::Element::setScrollLeft): >+ (WebCore::Element::setScrollTop): >+ * html/HTMLBodyElement.cpp: >+ (WebCore::HTMLBodyElement::setScrollLeft): >+ (WebCore::HTMLBodyElement::setScrollTop): >+ Need to set the scrollTop and scrollLeft after checking if document >+ is in quirks or non-quirks mode. Incase it is body.scrollLeft/ >+ body.scrollTop set only if document is in quirks mode. If document is >+ non-quirks mode set documentElement.scrollLeft/documentElement.scrollTop. >+ > 2013-09-25 Krzysztof Czech <k.czech@samsung.com> > > [EFL] accessibility/loading-iframe-sends-notification.html is failing >Index: Source/WebCore/dom/Element.cpp >=================================================================== >--- Source/WebCore/dom/Element.cpp (revision 156382) >+++ Source/WebCore/dom/Element.cpp (working copy) >@@ -797,14 +797,40 @@ int Element::scrollTop() > > void Element::setScrollLeft(int newLeft) > { >+ if (document().documentElement() == this && document().inQuirksMode()) >+ return; >+ > document().updateLayoutIgnorePendingStylesheets(); >+ >+ if (!document().hasLivingRenderTree()) >+ return 0; >+ RenderView& renderView = *document().renderView(); >+ >+ if (document().documentElement() == this) { >+ int zoom = renderView.style()->effectiveZoom(); >+ renderView.frameView().setScrollPosition(IntPoint(newLeft * zoom, view->scrollY() * zoom)); >+ } >+ > if (RenderBox* rend = renderBox()) > rend->setScrollLeft(static_cast<int>(newLeft * rend->style()->effectiveZoom())); > } > > void Element::setScrollTop(int newTop) > { >+ if (document().documentElement() == this && document().inQuirksMode()) >+ return; >+ > document().updateLayoutIgnorePendingStylesheets(); >+ >+ if (!document().hasLivingRenderTree()) >+ return 0; >+ RenderView& renderView = *document().renderView(); >+ >+ if (document().documentElement() == this) { >+ int zoom = renderView.style()->effectiveZoom(); >+ renderView.frameView().setScrollPosition(IntPoint(view->scrollX() * zoom, newTop * zoom)); >+ } >+ > if (RenderBox* rend = renderBox()) > rend->setScrollTop(static_cast<int>(newTop * rend->style()->effectiveZoom())); > } >Index: Source/WebCore/html/HTMLBodyElement.cpp >=================================================================== >--- Source/WebCore/html/HTMLBodyElement.cpp (revision 156382) >+++ Source/WebCore/html/HTMLBodyElement.cpp (working copy) >@@ -261,6 +261,9 @@ int HTMLBodyElement::scrollLeft() > > void HTMLBodyElement::setScrollLeft(int scrollLeft) > { >+ if (!document().inQuirksMode()) >+ return; >+ > document().updateLayoutIgnorePendingStylesheets(); > Frame* frame = document().frame(); > if (!frame) >@@ -282,6 +285,9 @@ int HTMLBodyElement::scrollTop() > > void HTMLBodyElement::setScrollTop(int scrollTop) > { >+ if (!document().inQuirksMode()) >+ return; >+ > document().updateLayoutIgnorePendingStylesheets(); > Frame* frame = document().frame(); > if (!frame) >Index: LayoutTests/ChangeLog >=================================================================== >--- LayoutTests/ChangeLog (revision 156386) >+++ LayoutTests/ChangeLog (working copy) >@@ -1,3 +1,31 @@ >+2013-09-25 Gurpreet Kaur <k.gurpreet@samsung.com> >+ >+ REGRESSION (r154614): Setting the document scroll position isn't symmetric; can successfully set document.body.scrollTop, but can only read from document.documentElement.scrollTop >+ https://bugs.webkit.org/show_bug.cgi?id=121876 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * fast/dom/Element/body-scrollLeft-Quirks-expected.txt: Added. >+ * fast/dom/Element/body-scrollLeft-Quirks.html: Added. >+ * fast/dom/Element/body-scrollLeft-expected.txt: Added. >+ * fast/dom/Element/body-scrollLeft.html: Added. >+ * fast/dom/Element/body-scrollTop-Quirks-expected.txt: Added. >+ * fast/dom/Element/body-scrollTop-Quirks.html: Added. >+ * fast/dom/Element/body-scrollTop-expected.txt: Added. >+ * fast/dom/Element/body-scrollTop.html: Added. >+ * fast/dom/Element/documentElement-scrollLeft-Quirks-expected.txt: Added. >+ * fast/dom/Element/documentElement-scrollLeft-Quirks.html: Added. >+ * fast/dom/Element/documentElement-scrollLeft-expected.txt: Added. >+ * fast/dom/Element/documentElement-scrollLeft.html: Added. >+ * fast/dom/Element/documentElement-scrollTop-Quirks-expected.txt: Added. >+ * fast/dom/Element/documentElement-scrollTop-Quirks.html: Added. >+ * fast/dom/Element/documentElement-scrollTop-expected.txt: Added. >+ * fast/dom/Element/documentElement-scrollTop.html: Added. >+ Added test cases for verifying that Non-Quirks mode should set >+ scrolltop/scrollleft through document.documentElement.scrollTop/ >+ document.documentElement.scrollLeft and Quirks mode should set/get >+ scrolltop/scrollleft through document.body.scrollTop/document.body.scrollLeft. >+ > 2013-09-25 Krzysztof Czech <k.czech@samsung.com> > > [EFL] accessibility/loading-iframe-sends-notification.html is failing >Index: LayoutTests/fast/dom/Element/body-scrollLeft-Quirks-expected.txt >=================================================================== >--- LayoutTests/fast/dom/Element/body-scrollLeft-Quirks-expected.txt (revision 0) >+++ LayoutTests/fast/dom/Element/body-scrollLeft-Quirks-expected.txt (working copy) >@@ -0,0 +1,13 @@ >+Tests that for non-standard mode document.body.scrollLeft returns the scroll left value >+ >+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". >+ >+ >+PASS successfullyParsed is true >+ >+TEST COMPLETE >+PASS document.body.scrollLeft is 500 >+PASS successfullyParsed is true >+ >+TEST COMPLETE >+ > >Property changes on: LayoutTests/fast/dom/Element/body-scrollLeft-Quirks-expected.txt >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:executable >## -0,0 +1 ## >+* >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+Author Date Id Rev URL >\ No newline at end of property >Index: LayoutTests/fast/dom/Element/body-scrollLeft-Quirks.html >=================================================================== >--- LayoutTests/fast/dom/Element/body-scrollLeft-Quirks.html (revision 0) >+++ LayoutTests/fast/dom/Element/body-scrollLeft-Quirks.html (working copy) >@@ -0,0 +1,24 @@ >+<html> >+ <head> >+ <style> >+ div { >+ height: 9999px; >+ width:9999px; >+ } >+ </style> >+ <script src="../../../resources/js-test-pre.js"></script> >+ <script> >+ function runTest() { >+ description('Tests that for non-standard mode document.body.scrollLeft returns the scroll left value'); >+ >+ document.body.scrollLeft = 500; >+ shouldBe("document.body.scrollLeft","500"); >+ isSuccessfullyParsed(); >+ } >+ </script> >+ </head> >+ <body onload="runTest()"> >+ <div></div> >+ <script src="../../../resources/js-test-post.js"></script> >+ </body> >+</html> > >Property changes on: LayoutTests/fast/dom/Element/body-scrollLeft-Quirks.html >___________________________________________________________________ >Added: svn:executable >## -0,0 +1 ## >+* >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Index: LayoutTests/fast/dom/Element/body-scrollLeft-expected.txt >=================================================================== >--- LayoutTests/fast/dom/Element/body-scrollLeft-expected.txt (revision 0) >+++ LayoutTests/fast/dom/Element/body-scrollLeft-expected.txt (working copy) >@@ -0,0 +1,13 @@ >+Tests that for non-standard mode document.body.scrollLeft returns the scroll left value as 0 >+ >+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". >+ >+ >+PASS successfullyParsed is true >+ >+TEST COMPLETE >+PASS document.body.scrollLeft is 0 >+PASS successfullyParsed is true >+ >+TEST COMPLETE >+ > >Property changes on: LayoutTests/fast/dom/Element/body-scrollLeft-expected.txt >___________________________________________________________________ >Added: svn:executable >## -0,0 +1 ## >+* >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+Author Date Id Rev URL >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Index: LayoutTests/fast/dom/Element/body-scrollLeft.html >=================================================================== >--- LayoutTests/fast/dom/Element/body-scrollLeft.html (revision 0) >+++ LayoutTests/fast/dom/Element/body-scrollLeft.html (working copy) >@@ -0,0 +1,25 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <style> >+ div { >+ height: 9999px; >+ width:9999px; >+ } >+ </style> >+ <script src="../../../resources/js-test-pre.js"></script> >+ <script> >+ function runTest() { >+ description('Tests that for non-standard mode document.body.scrollLeft returns the scroll left value as 0'); >+ >+ document.body.scrollLeft = 500; >+ shouldBe("document.body.scrollLeft","0"); >+ isSuccessfullyParsed(); >+ } >+ </script> >+ </head> >+ <body onload="runTest()"> >+ <div></div> >+ <script src="../../../resources/js-test-post.js"></script> >+ </body> >+</html> > >Property changes on: LayoutTests/fast/dom/Element/body-scrollLeft.html >___________________________________________________________________ >Added: svn:executable >## -0,0 +1 ## >+* >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Index: LayoutTests/fast/dom/Element/body-scrollTop-Quirks-expected.txt >=================================================================== >--- LayoutTests/fast/dom/Element/body-scrollTop-Quirks-expected.txt (revision 0) >+++ LayoutTests/fast/dom/Element/body-scrollTop-Quirks-expected.txt (working copy) >@@ -0,0 +1,13 @@ >+Tests that for non-standard mode document.body.scrollTop returns the scroll top value >+ >+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". >+ >+ >+PASS successfullyParsed is true >+ >+TEST COMPLETE >+PASS document.body.scrollTop is 500 >+PASS successfullyParsed is true >+ >+TEST COMPLETE >+ > >Property changes on: LayoutTests/fast/dom/Element/body-scrollTop-Quirks-expected.txt >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:executable >## -0,0 +1 ## >+* >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+Author Date Id Rev URL >\ No newline at end of property >Index: LayoutTests/fast/dom/Element/body-scrollTop-Quirks.html >=================================================================== >--- LayoutTests/fast/dom/Element/body-scrollTop-Quirks.html (revision 0) >+++ LayoutTests/fast/dom/Element/body-scrollTop-Quirks.html (working copy) >@@ -0,0 +1,24 @@ >+<html> >+ <head> >+ <style> >+ div { >+ height: 9999px; >+ width:9999px; >+ } >+ </style> >+ <script src="../../../resources/js-test-pre.js"></script> >+ <script> >+ function runTest() { >+ description('Tests that for non-standard mode document.body.scrollTop returns the scroll top value'); >+ >+ document.body.scrollTop = 500; >+ shouldBe("document.body.scrollTop","500"); >+ isSuccessfullyParsed(); >+ } >+ </script> >+ </head> >+ <body onload="runTest()"> >+ <div></div> >+ <script src="../../../resources/js-test-post.js"></script> >+ </body> >+</html> > >Property changes on: LayoutTests/fast/dom/Element/body-scrollTop-Quirks.html >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:executable >## -0,0 +1 ## >+* >\ No newline at end of property >Index: LayoutTests/fast/dom/Element/body-scrollTop-expected.txt >=================================================================== >--- LayoutTests/fast/dom/Element/body-scrollTop-expected.txt (revision 0) >+++ LayoutTests/fast/dom/Element/body-scrollTop-expected.txt (working copy) >@@ -0,0 +1,13 @@ >+Tests that for non-standard mode document.body.scrollTop returns the scroll top value as 0 >+ >+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". >+ >+ >+PASS successfullyParsed is true >+ >+TEST COMPLETE >+PASS document.body.scrollTop is 0 >+PASS successfullyParsed is true >+ >+TEST COMPLETE >+ > >Property changes on: LayoutTests/fast/dom/Element/body-scrollTop-expected.txt >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:executable >## -0,0 +1 ## >+* >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+Author Date Id Rev URL >\ No newline at end of property >Index: LayoutTests/fast/dom/Element/body-scrollTop.html >=================================================================== >--- LayoutTests/fast/dom/Element/body-scrollTop.html (revision 0) >+++ LayoutTests/fast/dom/Element/body-scrollTop.html (working copy) >@@ -0,0 +1,25 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <style> >+ div { >+ height: 9999px; >+ width:9999px; >+ } >+ </style> >+ <script src="../../../resources/js-test-pre.js"></script> >+ <script> >+ function runTest() { >+ description('Tests that for non-standard mode document.body.scrollTop returns the scroll top value as 0'); >+ >+ document.body.scrollTop = 500; >+ shouldBe("document.body.scrollTop","0"); >+ isSuccessfullyParsed(); >+ } >+ </script> >+ </head> >+ <body onload="runTest()"> >+ <div></div> >+ <script src="../../../resources/js-test-post.js"></script> >+ </body> >+</html> > >Property changes on: LayoutTests/fast/dom/Element/body-scrollTop.html >___________________________________________________________________ >Added: svn:executable >## -0,0 +1 ## >+* >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Index: LayoutTests/fast/dom/Element/documentElement-scrollLeft-Quirks-expected.txt >=================================================================== >--- LayoutTests/fast/dom/Element/documentElement-scrollLeft-Quirks-expected.txt (revision 0) >+++ LayoutTests/fast/dom/Element/documentElement-scrollLeft-Quirks-expected.txt (working copy) >@@ -0,0 +1,13 @@ >+Tests that for non-standard mode document.documentElement.scrollLeft returns the scroll left value as 0 >+ >+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". >+ >+ >+PASS successfullyParsed is true >+ >+TEST COMPLETE >+PASS document.documentElement.scrollLeft is 0 >+PASS successfullyParsed is true >+ >+TEST COMPLETE >+ > >Property changes on: LayoutTests/fast/dom/Element/documentElement-scrollLeft-Quirks-expected.txt >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:executable >## -0,0 +1 ## >+* >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+Author Date Id Rev URL >\ No newline at end of property >Index: LayoutTests/fast/dom/Element/documentElement-scrollLeft-Quirks.html >=================================================================== >--- LayoutTests/fast/dom/Element/documentElement-scrollLeft-Quirks.html (revision 0) >+++ LayoutTests/fast/dom/Element/documentElement-scrollLeft-Quirks.html (working copy) >@@ -0,0 +1,24 @@ >+<html> >+ <head> >+ <style> >+ div { >+ height: 9999px; >+ width:9999px; >+ } >+ </style> >+ <script src="../../../resources/js-test-pre.js"></script> >+ <script> >+ function runTest() { >+ description('Tests that for non-standard mode document.documentElement.scrollLeft returns the scroll left value as 0'); >+ >+ document.documentElement.scrollLeft = 500; >+ shouldBe("document.documentElement.scrollLeft","0"); >+ isSuccessfullyParsed(); >+ } >+ </script> >+ </head> >+ <body onload="runTest()"> >+ <div></div> >+ <script src="../../../resources/js-test-post.js"></script> >+ </body> >+</html> > >Property changes on: LayoutTests/fast/dom/Element/documentElement-scrollLeft-Quirks.html >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:executable >## -0,0 +1 ## >+* >\ No newline at end of property >Index: LayoutTests/fast/dom/Element/documentElement-scrollLeft-expected.txt >=================================================================== >--- LayoutTests/fast/dom/Element/documentElement-scrollLeft-expected.txt (revision 0) >+++ LayoutTests/fast/dom/Element/documentElement-scrollLeft-expected.txt (working copy) >@@ -0,0 +1,13 @@ >+Tests that for standard mode document.documentElement.scrollLeft returns the scroll left value >+ >+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". >+ >+ >+PASS successfullyParsed is true >+ >+TEST COMPLETE >+PASS document.documentElement.scrollLeft is 500 >+PASS successfullyParsed is true >+ >+TEST COMPLETE >+ > >Property changes on: LayoutTests/fast/dom/Element/documentElement-scrollLeft-expected.txt >___________________________________________________________________ >Added: svn:executable >## -0,0 +1 ## >+* >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+Author Date Id Rev URL >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Index: LayoutTests/fast/dom/Element/documentElement-scrollLeft.html >=================================================================== >--- LayoutTests/fast/dom/Element/documentElement-scrollLeft.html (revision 0) >+++ LayoutTests/fast/dom/Element/documentElement-scrollLeft.html (working copy) >@@ -0,0 +1,25 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <style> >+ div { >+ height: 9999px; >+ width:9999px; >+ } >+ </style> >+ <script src="../../../resources/js-test-pre.js"></script> >+ <script> >+ function runTest() { >+ description('Tests that for standard mode document.documentElement.scrollLeft returns the scroll left value'); >+ >+ document.documentElement.scrollLeft = 500; >+ shouldBe("document.documentElement.scrollLeft","500"); >+ isSuccessfullyParsed(); >+ } >+ </script> >+ </head> >+ <body onload="runTest()"> >+ <div></div> >+ <script src="../../../resources/js-test-post.js"></script> >+ </body> >+</html> > >Property changes on: LayoutTests/fast/dom/Element/documentElement-scrollLeft.html >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:executable >## -0,0 +1 ## >+* >\ No newline at end of property >Index: LayoutTests/fast/dom/Element/documentElement-scrollTop-Quirks-expected.txt >=================================================================== >--- LayoutTests/fast/dom/Element/documentElement-scrollTop-Quirks-expected.txt (revision 0) >+++ LayoutTests/fast/dom/Element/documentElement-scrollTop-Quirks-expected.txt (working copy) >@@ -0,0 +1,13 @@ >+Tests that for non-standard mode document.documentElement.scrollTop returns the scroll top as 0 >+ >+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". >+ >+ >+PASS successfullyParsed is true >+ >+TEST COMPLETE >+PASS document.documentElement.scrollTop is 0 >+PASS successfullyParsed is true >+ >+TEST COMPLETE >+ > >Property changes on: LayoutTests/fast/dom/Element/documentElement-scrollTop-Quirks-expected.txt >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:executable >## -0,0 +1 ## >+* >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+Author Date Id Rev URL >\ No newline at end of property >Index: LayoutTests/fast/dom/Element/documentElement-scrollTop-Quirks.html >=================================================================== >--- LayoutTests/fast/dom/Element/documentElement-scrollTop-Quirks.html (revision 0) >+++ LayoutTests/fast/dom/Element/documentElement-scrollTop-Quirks.html (working copy) >@@ -0,0 +1,24 @@ >+<html> >+ <head> >+ <style> >+ div { >+ height: 9999px; >+ width:9999px; >+ } >+ </style> >+ <script src="../../../resources/js-test-pre.js"></script> >+ <script> >+ function runTest() { >+ description('Tests that for non-standard mode document.documentElement.scrollTop returns the scroll top as 0'); >+ >+ document.documentElement.scrollTop = 500; >+ shouldBe("document.documentElement.scrollTop","0"); >+ isSuccessfullyParsed(); >+ } >+ </script> >+ </head> >+ <body onload="runTest()"> >+ <div></div> >+ <script src="../../../resources/js-test-post.js"></script> >+ </body> >+</html> > >Property changes on: LayoutTests/fast/dom/Element/documentElement-scrollTop-Quirks.html >___________________________________________________________________ >Added: svn:executable >## -0,0 +1 ## >+* >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Index: LayoutTests/fast/dom/Element/documentElement-scrollTop-expected.txt >=================================================================== >--- LayoutTests/fast/dom/Element/documentElement-scrollTop-expected.txt (revision 0) >+++ LayoutTests/fast/dom/Element/documentElement-scrollTop-expected.txt (working copy) >@@ -0,0 +1,10 @@ >+Tests that for standard mode document.documentElement.scrollTop returns the scroll top value >+ >+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". >+ >+ >+PASS document.documentElement.scrollTop is 500 >+PASS successfullyParsed is true >+ >+TEST COMPLETE >+ > >Property changes on: LayoutTests/fast/dom/Element/documentElement-scrollTop-expected.txt >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:executable >## -0,0 +1 ## >+* >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+Author Date Id Rev URL >\ No newline at end of property >Index: LayoutTests/fast/dom/Element/documentElement-scrollTop.html >=================================================================== >--- LayoutTests/fast/dom/Element/documentElement-scrollTop.html (revision 0) >+++ LayoutTests/fast/dom/Element/documentElement-scrollTop.html (working copy) >@@ -0,0 +1,24 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <style> >+ div { >+ height: 9999px; >+ width:9999px; >+ } >+ </style> >+ <script src="../../../resources/js-test-pre.js"></script> >+ <script> >+ function runTest() { >+ description('Tests that for standard mode document.documentElement.scrollTop returns the scroll top value'); >+ >+ document.documentElement.scrollTop = 500; >+ shouldBe("document.documentElement.scrollTop","500"); >+ isSuccessfullyParsed(); >+ } >+ </script> >+ </head> >+ <body onload="runTest()"> >+ <div></div> >+ </body> >+</html> > >Property changes on: LayoutTests/fast/dom/Element/documentElement-scrollTop.html >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:executable >## -0,0 +1 ## >+* >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 121876
:
212564
|
212568
|
212576
|
212578
|
212580
|
212583
|
212606
|
212675
|
212678
|
212681
|
212795