Summary: | Fix the broken viewport tests | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Mark Hahnenberg <mhahnenberg> | ||||||
Component: | JavaScriptCore | Assignee: | Mark Hahnenberg <mhahnenberg> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | joepeck, kenneth | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 68044 | ||||||||
Attachments: |
|
Description
Mark Hahnenberg
2012-02-15 19:34:58 PST
Created attachment 127298 [details]
Patch
Created attachment 127308 [details]
Patch
Comment on attachment 127308 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=127308&action=review > Source/JavaScriptCore/wtf/text/WTFString.h:90 > +WTF_EXPORT_PRIVATE float charactersToFloatWithJunk(const LChar*, size_t, bool* ok = 0, bool* didReadNumber = 0); Maybe charactersToFloatIgnoringJunk would be more descriptive? > Source/JavaScriptCore/wtf/text/WTFString.h:92 > WTF_EXPORT_PRIVATE float charactersToFloat(const UChar*, size_t, bool* ok = 0, bool* didReadNumber = 0); > +WTF_EXPORT_PRIVATE float charactersToFloatWithJunk(const UChar*, size_t, bool* ok = 0, bool* didReadNumber = 0); Btw, does the didReadNumber make sense for the non-junk versions? > Btw, does the didReadNumber make sense for the non-junk versions?
I think it still does in case somebody wants to do some additional parsing based on whether or not the prefix of the string is a number of some sort.
Committed r108001: <http://trac.webkit.org/changeset/108001> |