Bug 129656

Summary: Subpixel rendering: Wrong cliprect on absolute positioned elements.
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, commit-queue, d-r, esprehn+autocc, fmalita, glenn, gyuyoung.kim, kondapallykalyan, pdr, rniwa, schenney, sergio, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 129712    
Bug Blocks:    
Attachments:
Description Flags
test
none
Patch
simon.fraser: review-
Patch
buildbot: commit-queue-
Archive of layout-test-results from webkit-ews-02 for mac-mountainlion
none
Archive of layout-test-results from webkit-ews-07 for mac-mountainlion
none
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2
none
Patch
none
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion
none
Archive of layout-test-results from webkit-ews-15 for mac-mountainlion-wk2
none
Patch none

Description zalan 2014-03-03 20:47:12 PST
<html>
<head>
<style>
 div { 
   position: absolute;
   border: red solid 1px;
   width: 20px;
   height: 20px; 
   left: 0.1px;
   top: 0px;
   }
</style>
</head>
<body>
<div id=foo></div>
<script>
pos = 0.3;

function move() {
  document.getElementById("foo").style.left = pos;
}
setTimeout(move,500);
</script>
</body>
</html>
Comment 1 zalan 2014-03-03 20:47:34 PST
Created attachment 225736 [details]
test
Comment 2 zalan 2014-03-04 12:02:37 PST
Created attachment 225802 [details]
Patch
Comment 3 Simon Fraser (smfr) 2014-03-04 12:09:29 PST
Comment on attachment 225802 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=225802&action=review

> LayoutTests/fast/repaint/hidpi-absolute-positioned-element-wrong-cliprect-after-move.html:39
> +  setTimeout(move, 100);

100ms per test is way too much.
Comment 4 zalan 2014-03-04 19:03:15 PST
Created attachment 225842 [details]
Patch
Comment 5 Build Bot 2014-03-04 20:06:03 PST
Comment on attachment 225842 [details]
Patch

Attachment 225842 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/5533610027253760

New failing tests:
fast/repaint/hidpi-absolute-positioned-element-wrong-cliprect-after-move.html
Comment 6 Build Bot 2014-03-04 20:06:06 PST
Created attachment 225847 [details]
Archive of layout-test-results from webkit-ews-02 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-02  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 7 zalan 2014-03-04 20:09:06 PST
(In reply to comment #5)
> (From update of attachment 225842 [details])
> Attachment 225842 [details] did not pass mac-ews (mac):
> Output: http://webkit-queues.appspot.com/results/5533610027253760
> 
> New failing tests:
> fast/repaint/hidpi-absolute-positioned-element-wrong-cliprect-after-move.html

It needs bug 129712 to be able to print non-integral positions.
Comment 8 Build Bot 2014-03-04 20:39:20 PST
Comment on attachment 225842 [details]
Patch

Attachment 225842 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/4994223438823424

New failing tests:
fast/repaint/hidpi-absolute-positioned-element-wrong-cliprect-after-move.html
Comment 9 Build Bot 2014-03-04 20:39:24 PST
Created attachment 225849 [details]
Archive of layout-test-results from webkit-ews-07 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-07  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 10 Build Bot 2014-03-04 21:10:49 PST
Comment on attachment 225842 [details]
Patch

Attachment 225842 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/5766389033861120

New failing tests:
fast/repaint/hidpi-absolute-positioned-element-wrong-cliprect-after-move.html
Comment 11 Build Bot 2014-03-04 21:10:54 PST
Created attachment 225852 [details]
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-10  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 12 zalan 2014-03-04 21:58:00 PST
Created attachment 225855 [details]
Patch

resubmit to test against trunk with the dependency added.
Comment 13 Build Bot 2014-03-04 22:33:28 PST
Comment on attachment 225855 [details]
Patch

Attachment 225855 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/5928469556887552

New failing tests:
fast/repaint/hidpi-absolute-positioned-element-wrong-cliprect-after-move.html
Comment 14 Build Bot 2014-03-04 22:33:31 PST
Created attachment 225857 [details]
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-08  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 15 Build Bot 2014-03-05 00:55:28 PST
Comment on attachment 225855 [details]
Patch

Attachment 225855 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/6114152166719488

New failing tests:
fast/repaint/hidpi-absolute-positioned-element-wrong-cliprect-after-move.html
Comment 16 Build Bot 2014-03-05 00:55:32 PST
Created attachment 225869 [details]
Archive of layout-test-results from webkit-ews-15 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-15  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 17 zalan 2014-03-05 08:03:26 PST
Created attachment 225885 [details]
Patch
Comment 18 WebKit Commit Bot 2014-03-05 10:06:09 PST
Comment on attachment 225885 [details]
Patch

Clearing flags on attachment: 225885

Committed r165113: <http://trac.webkit.org/changeset/165113>
Comment 19 WebKit Commit Bot 2014-03-05 10:06:14 PST
All reviewed patches have been landed.  Closing bug.