WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
164075
[CSS Parser] Implement CSS variables
https://bugs.webkit.org/show_bug.cgi?id=164075
Summary
[CSS Parser] Implement CSS variables
Dave Hyatt
Reported
2016-10-27 13:40:56 PDT
[CSS Parser] Implement CSS variables
Attachments
Patch
(58.32 KB, patch)
2016-10-27 13:54 PDT
,
Dave Hyatt
no flags
Details
Formatted Diff
Diff
Patch
(58.32 KB, patch)
2016-10-27 13:57 PDT
,
Dave Hyatt
dino
: review+
Details
Formatted Diff
Diff
Patch
(60.24 KB, patch)
2016-10-27 14:12 PDT
,
Dave Hyatt
dino
: review+
Details
Formatted Diff
Diff
Patch
(60.35 KB, patch)
2016-10-27 14:46 PDT
,
Dave Hyatt
dino
: review+
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Dave Hyatt
Comment 1
2016-10-27 13:54:32 PDT
Created
attachment 293052
[details]
Patch
WebKit Commit Bot
Comment 2
2016-10-27 13:55:48 PDT
Attachment 293052
[details]
did not pass style-queue: ERROR: Source/WebCore/css/CSSVariableData.h:63: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 1 in 24 files If any of these errors are false positives, please file a bug against check-webkit-style.
Dave Hyatt
Comment 3
2016-10-27 13:57:08 PDT
Created
attachment 293053
[details]
Patch
Dean Jackson
Comment 4
2016-10-27 14:08:47 PDT
Comment on
attachment 293053
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=293053&action=review
> Source/WebCore/WebCore.xcodeproj/project.pbxproj:3425 > - 9444CBE81D8861C20073A074 /* CSSVariableData.h in Headers */ = {isa = PBXBuildFile; fileRef = 9444CBDD1D8861580073A074 /* CSSVariableData.h */; }; > + 9444CBE81D8861C20073A074 /* CSSVariableData.h in Headers */ = {isa = PBXBuildFile; fileRef = 9444CBDD1D8861580073A074 /* CSSVariableData.h */; settings = {ATTRIBUTES = (Private, ); }; };
Was this intentional?
> Source/WebCore/css/CSSVariableData.cpp:109 > + AtomicString variableName = > + block.consumeIncludingWhitespace().value().toAtomicString();
Typo. Accidental newline.
> Source/WebCore/css/parser/CSSParser.cpp:1809 > + const CSSVariableDependentValue& dependentValue = downcast<CSSVariableDependentValue>(value);
You could probably auto this.
> Source/WebCore/css/parser/CSSParser.cpp:1814 > + CSSPropertyID dependentValuePropertyID = dependentValue.propertyID();
And this. etc.
> Source/WebCore/css/parser/CSSParser.cpp:1858 > + const CSSVariableReferenceValue& valueWithReferences = downcast<CSSVariableReferenceValue>(value); > + const CSSVariableData* variableData = valueWithReferences.variableDataValue();
More autos.
> Source/WebCore/css/parser/CSSParserImpl.cpp:95 > - CSSCustomPropertyValue* customValue = downcast<CSSCustomPropertyValue>(property.value()); > - const AtomicString& name = customValue->name(); > - if (seenCustomProperties.contains(name)) > + auto& name = downcast<CSSCustomPropertyValue>(*property.value()).name(); > + if (!seenCustomProperties.add(name).isNewEntry) > continue; > - seenCustomProperties.add(name); > + output[--unusedEntries] = property; > continue; > }
I don't understand this change.
Dave Hyatt
Comment 5
2016-10-27 14:12:07 PDT
Created
attachment 293054
[details]
Patch
Dean Jackson
Comment 6
2016-10-27 14:31:39 PDT
Comment on
attachment 293054
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=293054&action=review
> Source/WebCore/css/CSSVariableData.cpp:108 > + AtomicString variableName =
This still needs fixing.
Dave Hyatt
Comment 7
2016-10-27 14:46:03 PDT
Created
attachment 293062
[details]
Patch
Dave Hyatt
Comment 8
2016-10-27 15:08:11 PDT
Landed in
r208006
.
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