Bug 147982

Summary: Remove pixelSnapped* functions from RenderBoxModelObject/RenderBox.
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, commit-queue, rniwa, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
buildbot: commit-queue-
Archive of layout-test-results from ews102 for mac-mavericks
none
Archive of layout-test-results from ews105 for mac-mavericks-wk2
none
Patch
none
Patch
none
Patch
none
Patch none

Description zalan 2015-08-13 10:39:51 PDT
They are highly misleading. (integral vs. device pixel snapping)
Comment 1 zalan 2015-08-13 11:21:13 PDT
Created attachment 258903 [details]
Patch
Comment 2 Build Bot 2015-08-13 12:02:07 PDT
Comment on attachment 258903 [details]
Patch

Attachment 258903 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/53734

New failing tests:
fast/dom/HTMLImageElement/image-without-renderer-width.html
js/dom/custom-constructors.html
Comment 3 Build Bot 2015-08-13 12:02:10 PDT
Created attachment 258909 [details]
Archive of layout-test-results from ews102 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 4 Build Bot 2015-08-13 12:14:23 PDT
Comment on attachment 258903 [details]
Patch

Attachment 258903 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/53781

New failing tests:
fast/dom/HTMLImageElement/image-without-renderer-width.html
js/dom/custom-constructors.html
Comment 5 Build Bot 2015-08-13 12:14:26 PDT
Created attachment 258913 [details]
Archive of layout-test-results from ews105 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 6 zalan 2015-08-13 12:25:08 PDT
Created attachment 258914 [details]
Patch
Comment 7 zalan 2015-08-13 13:17:22 PDT
Created attachment 258921 [details]
Patch
Comment 8 zalan 2015-08-13 13:37:35 PDT
Created attachment 258926 [details]
Patch
Comment 9 Simon Fraser (smfr) 2015-08-13 16:30:32 PDT
Comment on attachment 258926 [details]
Patch

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

> Source/WebCore/html/shadow/SpinButtonElement.cpp:92
> +        if (box->borderBoxRect().contains(local)) {

In theory event handling should match painting, but in practice it doesn't matter.

> Source/WebCore/rendering/RenderBox.h:156
> +    virtual IntRect borderBoundingBox() const override final { return snappedIntRect(borderBoxRect()); }

Maybe put "snapped" in the name? Maybe remove this entirely.
Comment 10 zalan 2015-08-13 20:08:41 PDT
Created attachment 258972 [details]
Patch
Comment 11 WebKit Commit Bot 2015-08-13 21:34:55 PDT
Comment on attachment 258972 [details]
Patch

Clearing flags on attachment: 258972

Committed r188433: <http://trac.webkit.org/changeset/188433>
Comment 12 WebKit Commit Bot 2015-08-13 21:34:58 PDT
All reviewed patches have been landed.  Closing bug.