WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
164673
Handle filter() image type in new CSS Parser
https://bugs.webkit.org/show_bug.cgi?id=164673
Summary
Handle filter() image type in new CSS Parser
Dean Jackson
Reported
2016-11-11 19:16:46 PST
Handle filter() image type in new CSS Parser
Attachments
Patch
(20.55 KB, patch)
2016-11-11 19:20 PST
,
Dean Jackson
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Dean Jackson
Comment 1
2016-11-11 19:17:19 PST
<
rdar://problem/29231376
>
Dean Jackson
Comment 2
2016-11-11 19:20:28 PST
Created
attachment 294582
[details]
Patch
Darin Adler
Comment 3
2016-11-12 21:22:18 PST
Comment on
attachment 294582
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=294582&action=review
> Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:1093 > + RefPtr<CSSValue> imageValue = consumeImageOrNone(args, context);
I prefer auto in cases like this.
> Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:1097 > + RefPtr<CSSValue> filterValue = consumeFilter(args, context);
Ditto.
> Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:1102 > + return CSSFilterImageValue::create(imageValue.releaseNonNull(), filterValue.releaseNonNull());
What guarantees filterValue is non-null?
> Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:1189 > + RefPtr<CSSFunctionValue> filterValue = CSSFunctionValue::create(filterType);
I prefer auto in a case like this.
> Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:1198 > + // FIXME (crbug.com/397061): Support calc expressions like calc(10% + 0.5)
Do we really need this crbug URL?
> Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:1207 > + // FIXME (crbug.com/397061): Support calc expressions like calc(10% + 0.5)
Ditto.
> Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:1230 > + RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
I prefer auto in a case like this.
> Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:1232 > + RefPtr<CSSValue> filterValue = consumeUrl(range);
Ditto.
> Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:1258 > + RefPtr<CSSPrimitiveValue> horizontalOffset = consumeLength(range, cssParserMode, ValueRangeAll);
I prefer auto.
> Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:1262 > + RefPtr<CSSPrimitiveValue> verticalOffset = consumeLength(range, cssParserMode, ValueRangeAll);
Ditto.
> Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:1266 > + RefPtr<CSSPrimitiveValue> blurRadius = consumeLength(range, cssParserMode, ValueRangeAll);
Ditto.
> Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:1286 > + // We pass RefPtrs, since they can actually be null.
I don’t think we need this comment.
Dean Jackson
Comment 4
2016-11-14 11:55:44 PST
Comment on
attachment 294582
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=294582&action=review
>> Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:1232 >> + RefPtr<CSSValue> filterValue = consumeUrl(range); > > Ditto.
I couldn't do this one, because auto thought it was a CSSPrimitiveValue, and then got angry when it tried to assign a CSSFunctionValue below.
Dean Jackson
Comment 5
2016-11-14 12:02:47 PST
Committed
r208700
: <
http://trac.webkit.org/changeset/208700
>
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