WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
123358
Parsing support for -webkit-text-decoration-skip: ink
https://bugs.webkit.org/show_bug.cgi?id=123358
Summary
Parsing support for -webkit-text-decoration-skip: ink
Myles C. Maxfield
Reported
2013-10-25 13:58:02 PDT
-webkit-text-decoration-skip: ink; isn't parsed in CSS
Attachments
Patch
(50.41 KB, patch)
2013-10-25 14:18 PDT
,
Myles C. Maxfield
no flags
Details
Formatted Diff
Diff
Patch
(50.64 KB, patch)
2013-10-25 15:01 PDT
,
Myles C. Maxfield
no flags
Details
Formatted Diff
Diff
Patch
(50.69 KB, patch)
2013-10-25 16:23 PDT
,
Myles C. Maxfield
no flags
Details
Formatted Diff
Diff
Patch
(51.18 KB, patch)
2013-10-28 13:30 PDT
,
Myles C. Maxfield
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Myles C. Maxfield
Comment 1
2013-10-25 14:18:04 PDT
Created
attachment 215210
[details]
Patch
Radar WebKit Bug Importer
Comment 2
2013-10-25 14:19:09 PDT
<
rdar://problem/15323293
>
Myles C. Maxfield
Comment 3
2013-10-25 15:01:59 PDT
Created
attachment 215220
[details]
Patch
kov's GTK+ EWS bot
Comment 4
2013-10-25 16:13:52 PDT
Comment on
attachment 215220
[details]
Patch
Attachment 215220
[details]
did not pass gtk-ews (gtk): Output:
http://webkit-queues.appspot.com/results/12698041
Myles C. Maxfield
Comment 5
2013-10-25 16:23:35 PDT
Created
attachment 215228
[details]
Patch
Dean Jackson
Comment 6
2013-10-28 11:49:21 PDT
Comment on
attachment 215228
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=215228&action=review
> Source/JavaScriptCore/ChangeLog:4 > + -webkit-text-decoration-skip: ink; isn't parsed in CSS > +
https://bugs.webkit.org/show_bug.cgi?id=123358
I think this title should be what you're doing, not what is broken before this patch.
> Source/WebCore/ChangeLog:9 > + -webkit-text-decoration-skip: ink; isn't parsed in CSS > +
https://bugs.webkit.org/show_bug.cgi?id=123358
> + > + Reviewed by NOBODY (OOPS!). > + > + Adds initial parsing support for parsing -webkit-text-decoration-skip with > + values of "none" and "skip". This work is behind the new
I'm confused. The title says "ink" and here you're saying "none" and "skip".
> Source/WebCore/css/DeprecatedStyleBuilder.cpp:1272 > + static TextDecorationSkip valueToDecorationSkip(CSSPrimitiveValue& primitiveValue)
Please move this below public: into a new private: section, or just make it a standalone file static function.
> Source/WebCore/css/DeprecatedStyleBuilder.cpp:1298 > + for (CSSValueListIterator i(value); i.hasMore(); i.advance()) { > + CSSValue* item = i.value();
I believe both of these cases could use "auto". Not worth changing though.
> Source/WebCore/rendering/style/RenderStyleConstants.h:386 > + TextDecorationSkipNone = 0x0, TextDecorationSkipInk = 1 << 0
Separate lines for these. And I think we tend to just use 0 rather than 0x0.
> LayoutTests/fast/css3-text/css3-text-decoration/text-decoration-skip/text-decoration-skip-roundtrip.html:60 > + stylesheet.insertRule(".p { -webkit-text-decoration-skip: none; }", 0); > + testNoneIsValid(stylesheet);
One more test: stylesheet.insertRule(".p { -webkit-text-decoration-skip: ; }", 0);
Tim Horton
Comment 7
2013-10-28 11:49:54 PDT
Comment on
attachment 215228
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=215228&action=review
> Source/WebCore/ChangeLog:36 > + * Configurations/FeatureDefines.xcconfig: > + * css/CSSComputedStyleDeclaration.cpp: > + (WebCore::renderTextDecorationSkipFlagsToCSSValue): > + (WebCore::ComputedStyleExtractor::propertyValue): > + * css/CSSParser.cpp: > + (WebCore::CSSParser::parseValue): > + (WebCore::CSSParser::parseTextDecorationSkip): > + * css/CSSParser.h: > + * css/CSSPropertyNames.in: > + * css/CSSValueKeywords.in: > + * css/DeprecatedStyleBuilder.cpp: > + (WebCore::ApplyPropertyTextDecorationSkip::valueToDecorationSkip): > + (WebCore::ApplyPropertyTextDecorationSkip::applyValue): > + (WebCore::ApplyPropertyTextDecorationSkip::createHandler): > + (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): > + * css/StyleResolver.cpp: > + (WebCore::StyleResolver::applyProperty): > + * rendering/style/RenderStyle.h: > + * rendering/style/RenderStyleConstants.h: > + * rendering/style/StyleRareInheritedData.cpp: > + (WebCore::StyleRareInheritedData::StyleRareInheritedData): > + (WebCore::StyleRareInheritedData::operator==): > + * rendering/style/StyleRareInheritedData.h:
Could always use more words here.
> Source/WebCore/css/DeprecatedStyleBuilder.cpp:1298 > + CSSValue* item = i.value();
no real need for this local
> Source/WebCore/rendering/style/RenderStyleConstants.h:386 > + TextDecorationSkipNone = 0x0, TextDecorationSkipInk = 1 << 0
Oddly, this file uses hex for masks, but I like the shift thing better. That said, it feels odd to use both in one line. Maybe TextDecorationSkipNone = 0?
Myles C. Maxfield
Comment 8
2013-10-28 13:29:16 PDT
Comment on
attachment 215228
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=215228&action=review
>> Source/JavaScriptCore/ChangeLog:4 >> +
https://bugs.webkit.org/show_bug.cgi?id=123358
> > I think this title should be what you're doing, not what is broken before this patch.
Done.
>> Source/WebCore/ChangeLog:9 >> + values of "none" and "skip". This work is behind the new > > I'm confused. The title says "ink" and here you're saying "none" and "skip".
Typo. Done.
>> Source/WebCore/ChangeLog:36 >> + * rendering/style/StyleRareInheritedData.h: > > Could always use more words here.
Done.
>> Source/WebCore/css/DeprecatedStyleBuilder.cpp:1272 >> + static TextDecorationSkip valueToDecorationSkip(CSSPrimitiveValue& primitiveValue) > > Please move this below public: into a new private: section, or just make it a standalone file static function.
Done.
>>> Source/WebCore/css/DeprecatedStyleBuilder.cpp:1298 >>> + CSSValue* item = i.value(); >> >> I believe both of these cases could use "auto". Not worth changing though. > > no real need for this local
Is there a reason to use auto instead of the explicit type? I'd prefer to use the actual type because the type is short and straightforward (and easily known) Done.
>>> Source/WebCore/rendering/style/RenderStyleConstants.h:386 >>> + TextDecorationSkipNone = 0x0, TextDecorationSkipInk = 1 << 0 >> >> Separate lines for these. And I think we tend to just use 0 rather than 0x0. > > Oddly, this file uses hex for masks, but I like the shift thing better. That said, it feels odd to use both in one line. Maybe TextDecorationSkipNone = 0?
Done.
>> LayoutTests/fast/css3-text/css3-text-decoration/text-decoration-skip/text-decoration-skip-roundtrip.html:60 >> + testNoneIsValid(stylesheet); > > One more test: stylesheet.insertRule(".p { -webkit-text-decoration-skip: ; }", 0);
Done.
Myles C. Maxfield
Comment 9
2013-10-28 13:30:05 PDT
Created
attachment 215327
[details]
Patch
WebKit Commit Bot
Comment 10
2013-10-28 14:03:51 PDT
Comment on
attachment 215327
[details]
Patch Clearing flags on attachment: 215327 Committed
r158127
: <
http://trac.webkit.org/changeset/158127
>
WebKit Commit Bot
Comment 11
2013-10-28 14:03:56 PDT
All reviewed patches have been landed. Closing bug.
Bruno Abinader
Comment 12
2014-05-30 13:47:01 PDT
***
Bug 92801
has been marked as a duplicate of this 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