diff options
author | miletus@chromium.org <miletus@chromium.org> | 2014-12-09 02:04:18 +0000 |
---|---|---|
committer | miletus@chromium.org <miletus@chromium.org> | 2014-12-09 02:04:18 +0000 |
commit | 484f0e6977476fe2242248d729d51295e7afd94b (patch) | |
tree | 894b38e23107bcece6d6e60a2c9ccfe847647002 /third_party/WebKit/LayoutTests/fast/scrolling/fractional-scroll-offset-iframe-fixed-position-expected.html | |
parent | 260d6e5b5419f9858595d1a50238d38f67c06a14 (diff) | |
download | chromium_src-484f0e6977476fe2242248d729d51295e7afd94b.zip chromium_src-484f0e6977476fe2242248d729d51295e7afd94b.tar.gz chromium_src-484f0e6977476fe2242248d729d51295e7afd94b.tar.bz2 |
Make FrameView::scrollX/Y() return int
I overdid the conversion of scroll offset from int type to double type.
The guideline is that fractional scroll offset should be used only
when it is meant to be used in chromium compositor. For positioning
in Blink, int type should be used.
The caller of FrameView::scrollX/Y() is using the offset for repaint
and we should use the int type here.
BUG=414283
TEST=On chrome linux, go to about://settings, drag the scrollbar and
the header should be fixed even with fractional scrolling enabled.
Review URL: https://codereview.chromium.org/770903002
git-svn-id: svn://svn.chromium.org/blink/trunk@186749 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/scrolling/fractional-scroll-offset-iframe-fixed-position-expected.html')
-rw-r--r-- | third_party/WebKit/LayoutTests/fast/scrolling/fractional-scroll-offset-iframe-fixed-position-expected.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/scrolling/fractional-scroll-offset-iframe-fixed-position-expected.html b/third_party/WebKit/LayoutTests/fast/scrolling/fractional-scroll-offset-iframe-fixed-position-expected.html new file mode 100644 index 0000000..0e8a51e --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/scrolling/fractional-scroll-offset-iframe-fixed-position-expected.html @@ -0,0 +1,13 @@ +<html> This test scrolls the iframe body by fractional scroll offset but the fixed position element should stay fixed +<body style='height:2000px'> + <iframe srcdoc=" + <body style='width:1000px;height:2000px;background-color:green'> + <div style='position:fixed; background-color:red; width: 100px; height: 100px; top: 0px; left: 0px;'> </div> + <input type='checkbox' style='margin-top:100px'> the checkbox should not be blurred + </body> + <script> + window.scrollTo(0, 0.0) + </script> + "</iframe> +</body> +</html> |