WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
164886
[CSS Parser] Hook up InspectorStyleSheet to the new CSS parser.
https://bugs.webkit.org/show_bug.cgi?id=164886
Summary
[CSS Parser] Hook up InspectorStyleSheet to the new CSS parser.
Dave Hyatt
Reported
2016-11-17 14:01:49 PST
[CSS Parser] Hook up InspectorStyleSheet to the new CSS parser.
Attachments
Patch
(31.53 KB, patch)
2016-11-17 14:40 PST
,
Dave Hyatt
dino
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Dave Hyatt
Comment 1
2016-11-17 14:40:00 PST
Created
attachment 295087
[details]
Patch
Dean Jackson
Comment 2
2016-11-17 14:53:08 PST
Comment on
attachment 295087
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=295087&action=review
> Source/WebCore/inspector/InspectorStyleSheet.cpp:199 > + m_currentRuleDataStack.last()->ruleHeaderRange.end = listEndOffset; > + if (!m_currentRuleDataStack.last()->selectorRanges.isEmpty()) > + m_currentRuleDataStack.last()->selectorRanges.last().end = listEndOffset;
Can m_currentRuleDataStack ever be empty?
> Source/WebCore/inspector/InspectorStyleSheet.cpp:225 > + // Skip the rule body opening brace. > + if (m_parsedText[offset] == '{') > + ++offset;
Should we skip any spaces as well?
> Source/WebCore/inspector/InspectorStyleSheet.cpp:371 > + bool parsedOk = propertyData.parsedOk || propertyData.name.startsWith("-moz-") || propertyData.name.startsWith("-o-") || propertyData.name.startsWith("-webkit-") || propertyData.name.startsWith("-ms-");
I don't understand this. All -moz- properties are ok? Shouldn't they be marked as not OK?
> Source/WebCore/inspector/InspectorStyleSheet.cpp:378 > + m_currentRuleDataStack.last()->styleSourceData->propertyData.append(CSSPropertySourceData(propertyData.name, propertyData.value, false, true, true, SourceRange(startOffset - topRuleBodyRange.start, endOffset - topRuleBodyRange.start)));
Is this the place where we set disabled to true?
Dave Hyatt
Comment 3
2016-11-18 11:09:30 PST
Fixed in
r208886
.
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