WebKit Bugzilla
Attachment 359371 Details for
Bug 192554
: Rendering artifact on subpixel positions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-192554-20190117152059.patch (text/plain), 4.73 KB, created by
Karl Leplat
on 2019-01-17 06:21:37 PST
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Karl Leplat
Created:
2019-01-17 06:21:37 PST
Size:
4.73 KB
patch
obsolete
>Subversion Revision: 240106 >diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog >index e856254f6b5005505f8a1dd3c3c961e87901d7c1..7f9ccd9b32c41027a8870fe5c10a56f96f09ff20 100644 >--- a/LayoutTests/ChangeLog >+++ b/LayoutTests/ChangeLog >@@ -1,3 +1,13 @@ >+2019-01-17 Karl Leplat <karl.leplat_ext@softathome.com> >+ >+ [GTK][WPE] Rendering artifact on subpixel positions >+ https://bugs.webkit.org/show_bug.cgi?id=192554 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * compositing/repaint/repaint-element-on-subpixel-position-expected.txt: Added. >+ * compositing/repaint/repaint-element-on-subpixel-position.html: Added. >+ > 2019-01-16 Alicia Boya GarcÃa <aboya@igalia.com> > > Unreviewed GTK and WPE test gardening. >diff --git a/LayoutTests/compositing/repaint/repaint-element-on-subpixel-position-expected.txt b/LayoutTests/compositing/repaint/repaint-element-on-subpixel-position-expected.txt >new file mode 100644 >index 0000000000000000000000000000000000000000..453bb27716df88ab8b106bdb89f76fd12251ded8 >--- /dev/null >+++ b/LayoutTests/compositing/repaint/repaint-element-on-subpixel-position-expected.txt >@@ -0,0 +1,42 @@ >+. >+. >+(GraphicsLayer >+ (anchor 0.00 0.00) >+ (bounds 800.00 600.00) >+ (children 1 >+ (GraphicsLayer >+ (bounds 800.00 600.00) >+ (contentsOpaque 1) >+ (children 5 >+ (GraphicsLayer >+ (bounds 800.00 600.00) >+ ) >+ (GraphicsLayer >+ (position 8.00 19.00) >+ (bounds 0.00 1.00) >+ ) >+ (GraphicsLayer >+ (position 8.00 19.00) >+ (bounds 292.00 63.00) >+ ) >+ (GraphicsLayer >+ (position 8.00 19.00) >+ (bounds 292.00 32.00) >+ (drawsContent 1) >+ (repaint rects >+ (rect 0.00 0.00 292.00 32.00) >+ ) >+ ) >+ (GraphicsLayer >+ (position 8.00 50.00) >+ (bounds 292.00 32.00) >+ (drawsContent 1) >+ (repaint rects >+ (rect 0.00 0.00 292.00 32.00) >+ ) >+ ) >+ ) >+ ) >+ ) >+) >+ >diff --git a/LayoutTests/compositing/repaint/repaint-element-on-subpixel-position.html b/LayoutTests/compositing/repaint/repaint-element-on-subpixel-position.html >new file mode 100644 >index 0000000000000000000000000000000000000000..27653a677f16c7038b2a73f23b73e7b7184813e1 >--- /dev/null >+++ b/LayoutTests/compositing/repaint/repaint-element-on-subpixel-position.html >@@ -0,0 +1,84 @@ >+<!DOCTYPE html> >+<html> >+<head> >+ <!-- This test case reproduces a bug that is reported by https://bugs.webkit.org/show_bug.cgi?id=193239 >+ >+ Sometimes the positions seem incorrect, >+ leaving a blank line between two consecutive blocks. >+ This is for example a scrolling list, where two consecutive >+ items may be spaced by a pixel line or not during the transition, >+ showing artifacts (a line of the background behind the items) >+ and/or wobbling (the relative positions of two items varies by 1 pixel). >+ >+ --> >+ >+ <style type="text/css"> >+ >+ .dummyTitle { >+ font-size: 2.0em; >+ margin-bottom: 0.6em; >+ } >+ >+ .list_select { >+ width: 14em; >+ font-size: 1.3em; >+ } >+ >+ .list_select_options { >+ position: relative; >+ } >+ >+ .list_select_options_slider { >+ position: absolute; >+ width: 100%; >+ } >+ >+ .list_option { >+ position: relative; >+ height: 1.5em; >+ width: 86%; >+ background-color: #333; >+ color: white; >+ padding: 0 7%; >+ } >+ >+ .list_option.selected { >+ background-color: #F60; >+ } >+ </style> >+ >+ <script src="../../fast/repaint/resources/repaint.js"></script> >+ <script> >+ if (window.testRunner) >+ testRunner.dumpAsText(); >+ >+ function repaintTest() { >+ if (window.internals) >+ window.internals.startTrackingRepaints(); >+ >+ document.getElementById("listselect").style.top = "0.2px"; >+ >+ if (window.testRunner && window.internals) { >+ document.getElementById('repaintRects').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); >+ window.internals.stopTrackingRepaints(); >+ testRunner.notifyDone(); >+ } >+ } >+ >+ </script> >+</head> >+<body onload="runRepaintTest()"> >+ <div id="forceAcceleratedCompositing" style="position:absolute;left:0;right:0;top:0;bottom:0;-webkit-transform: translate3d(0, 0, 0);"></div> >+ >+ <div class="dummyTitle"></div> >+ <div id="fiCountry" class="list_select"> >+ <div id="fiCountry_options" class="list_select_options"> >+ <div id="listselect" class="list_select_options_slider"> >+ <div id="opt1" class="list_option">.</div> >+ <div id="opt2" class="list_option">.</div> >+ </div> >+ </div> >+ </div> >+ <pre id="repaintRects">Layer tree goes here"</pre> >+</body> >+</html>
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 192554
:
356955
|
356956
|
356957
|
356958
|
356959
|
357048
|
357050
|
357051
|
357056
|
357057
|
357121
|
357124
|
357127
|
357132
|
357134
|
357138
|
357180
|
357566
|
358887
|
358888
|
358914
|
358918
|
358947
|
359367
|
359370
|
359371
|
359372
|
359373
|
359377
|
359378
|
359456
|
359458
|
359488
|
359552
|
363081