Bug 78032

Summary: Rename Decimal::ceiling() to Decimal::ceil()
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: Web Template FrameworkAssignee: Anne van Kesteren <annevk>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, ahmad.saleem792, annevk, darin, jamesr, leviw, mal, sam, webkit-bug-importer, webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch abarth: review-

Eric Seidel (no email)
Reported 2012-02-07 13:49:38 PST
Remove wtf_ceil helper http://trac.webkit.org/changeset/37498 Mac OS X must have been fixed by now?
Attachments
Patch (1.36 KB, patch)
2012-02-07 14:11 PST, Eric Seidel (no email)
no flags
Patch (1.37 KB, patch)
2012-02-07 15:12 PST, Eric Seidel (no email)
no flags
Patch (2.42 KB, patch)
2012-02-07 17:55 PST, Eric Seidel (no email)
no flags
Patch (2.53 KB, patch)
2012-02-27 15:38 PST, Eric Seidel (no email)
abarth: review-
Eric Seidel (no email)
Comment 1 2012-02-07 14:11:38 PST
Eric Seidel (no email)
Comment 2 2012-02-07 14:12:37 PST
This came up when reviewing one of Levi's patches where he happened to type the word "ciel" and had to use and #ifdef to make it wtf_ceil on Darwin. (obviously there were other solutions to that problem, but it seemed we could likely remove this now anyway).
WebKit Review Bot
Comment 3 2012-02-07 14:14:14 PST
Attachment 125925 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source..." exit_code: 1 Source/JavaScriptCore/ChangeLog:9: Line contains tab character. [whitespace/tab] [5] Total errors found: 1 in 1 files If any of these errors are false positives, please file a bug against check-webkit-style.
Eric Seidel (no email)
Comment 4 2012-02-07 15:12:55 PST
Darin Adler
Comment 5 2012-02-07 17:09:03 PST
How can you decide it’s fixed without testing?
Eric Seidel (no email)
Comment 6 2012-02-07 17:12:14 PST
(In reply to comment #5) > How can you decide it’s fixed without testing? Well, the original change added tests (which still seem to pass after this change). The original change also said: "The math functions are heavily tested by fast/js/math.html." I have reasonable confidence that this is covered by existing testing. The larger question is what version of Mac OS X this was fixed in. Presumably our bot coverage would answer that.
Eric Seidel (no email)
Comment 7 2012-02-07 17:13:44 PST
http://trac.webkit.org/browser/trunk/LayoutTests/fast/js/script-tests/math.js#L85 are relevant tests from fast/math. I'm happy to add an additional one for ceil(-0.1). Do you happen to know anything about this history of this bug? I was landed w/o a radar or b.w.o reference.
Darin Adler
Comment 8 2012-02-07 17:28:15 PST
(In reply to comment #7) > Do you happen to know anything about this history of this bug? I was landed w/o a radar or b.w.o reference. I found the bug, <rdar://problem/6286405>. Broken in Leopard, fixed in Snow Leopard.
Eric Seidel (no email)
Comment 9 2012-02-07 17:30:06 PST
I'm adding an explicit test for ceil(-0.1) just to be safe. Will post an updated patch momentarily.
Eric Seidel (no email)
Comment 10 2012-02-07 17:55:09 PST
Eric Seidel (no email)
Comment 11 2012-02-07 17:59:28 PST
I don't remember if Chrome still supports leopard or not. webkit.org seems to have dropped official support for Leopard long ago.
Eric Seidel (no email)
Comment 12 2012-02-07 18:00:21 PST
I'm in no rush to land this patch. But no sense in keeping this macro around if it's not needed. :)
James Robinson
Comment 13 2012-02-07 18:03:19 PST
Chromium still supports Leopard.
Eric Seidel (no email)
Comment 14 2012-02-27 15:11:09 PST
I will update this patch to make it leopard-only.
Eric Seidel (no email)
Comment 15 2012-02-27 15:11:09 PST
I will update this patch to make it leopard-only.
Eric Seidel (no email)
Comment 16 2012-02-27 15:38:08 PST
Eric Seidel (no email)
Comment 17 2012-04-02 13:43:22 PDT
/Volumes/Data/WebKit/Source/WebCore/platform/graphics/FractionalLayoutPoint.h: In function 'WebCore::IntPoint WebCore::ceiledIntPoint(const WebCore::FractionalLayoutPoint&)': /Volumes/Data/WebKit/Source/WebCore/platform/graphics/FractionalLayoutPoint.h:157: error: 'class WebCore::FractionalLayoutUnit' has no member named 'ceil' /Volumes/Data/WebKit/Source/WebCore/platform/graphics/FractionalLayoutPoint.h:157: error: 'class WebCore::FractionalLayoutUnit' has no member named 'ceil' is the EWS error. I'll have to update the patch a little.
Adam Barth
Comment 18 2012-07-27 01:48:03 PDT
Comment on attachment 129113 [details] Patch This patch need to be updated because we changed the targeting macros.
Radar WebKit Bug Importer
Comment 20 2023-05-22 01:00:53 PDT
Anne van Kesteren
Comment 21 2023-05-22 01:31:21 PDT
EWS
Comment 22 2023-05-22 08:22:49 PDT
Committed 264323@main (bdf217f5a3d3): <https://commits.webkit.org/264323@main> Reviewed commits have been landed. Closing PR #14170 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.