WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 81492
Use CSSPrimitiveValue::convertToLength() in a few places.
https://bugs.webkit.org/show_bug.cgi?id=81492
Summary
Use CSSPrimitiveValue::convertToLength() in a few places.
Luke Macpherson
Reported
2012-03-18 22:57:20 PDT
Use CSSPrimitiveValue::convertToLength() in a few places.
Attachments
Patch
(4.21 KB, patch)
2012-03-18 23:01 PDT
,
Luke Macpherson
no flags
Details
Formatted Diff
Diff
Patch
(5.83 KB, patch)
2012-03-20 19:43 PDT
,
Luke Macpherson
no flags
Details
Formatted Diff
Diff
Patch for landing
(6.18 KB, patch)
2012-03-21 17:13 PDT
,
Luke Macpherson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Luke Macpherson
Comment 1
2012-03-18 23:01:37 PDT
Created
attachment 132546
[details]
Patch
Eric Seidel (no email)
Comment 2
2012-03-20 16:05:31 PDT
Comment on
attachment 132546
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=132546&action=review
OK. These template functions seem slightly awkward to use. I could easily imagine missing one of the OR bits I should have when writing new code. :(
> Source/WebCore/css/CSSStyleApplyProperty.cpp:1568 > + selector->style()->setVerticalAlignLength(primitiveValue->convertToLength<FixedIntegerConversion | PercentConversion>(selector->style(), selector->rootElementStyle(), selector->style()->effectiveZoom()));
I think having a Length local might help readability here. :)
Luke Macpherson
Comment 3
2012-03-20 19:43:02 PDT
Created
attachment 132949
[details]
Patch
WebKit Review Bot
Comment 4
2012-03-20 19:49:20 PDT
Attachment 132949
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/css/CSSPrimitiveValueMappings.h:34: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 1 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Luke Macpherson
Comment 5
2012-03-20 19:50:42 PDT
Comment on
attachment 132949
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=132949&action=review
>> Source/WebCore/css/CSSPrimitiveValueMappings.h:34 >> +#include "CSSCalculationValue.h" > > Alphabetical sorting problem. [build/include_order] [4]
It lies!
Simon Fraser (smfr)
Comment 6
2012-03-21 16:48:45 PDT
Comment on
attachment 132949
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=132949&action=review
> Source/WebCore/ChangeLog:8 > + > + Reviewed by NOBODY (OOPS!). > + > + No new tests - refactoring only.
Why no description of changes? You at least need to justify the refactoring.
Eric Seidel (no email)
Comment 7
2012-03-21 16:48:57 PDT
Comment on
attachment 132949
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=132949&action=review
Seems reasonable.
>>> Source/WebCore/css/CSSPrimitiveValueMappings.h:34 >>> +#include "CSSCalculationValue.h" >> >> Alphabetical sorting problem. [build/include_order] [4] > > It lies!
It thinks ColorSpace should be after CSS. the capital S is before all lower case letters, I believe.
Luke Macpherson
Comment 8
2012-03-21 17:13:37 PDT
Created
attachment 133146
[details]
Patch for landing
WebKit Review Bot
Comment 9
2012-03-21 17:58:52 PDT
Comment on
attachment 133146
[details]
Patch for landing Clearing flags on attachment: 133146 Committed
r111631
: <
http://trac.webkit.org/changeset/111631
>
WebKit Review Bot
Comment 10
2012-03-21 17:58:57 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug