Changeset 72687 in webkit
- Timestamp:
- Nov 24, 2010 10:45:53 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r72685 r72687 1 2010-11-24 Alexander Pavlov <apavlov@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: Crash when inspecting http://alphaarnhem.nl/beta/ 6 https://bugs.webkit.org/show_bug.cgi?id=50025 7 8 * inspector/resources/styles-new-API-1.css: 9 (@font-face): 10 1 11 2010-11-24 Cris Neckar <cdn@chromium.org> 2 12 -
trunk/LayoutTests/inspector/resources/styles-new-API-1.css
r72540 r72687 10 10 } 11 11 12 @font-face { 13 font-family: 'TheFont'; 14 src: url('font.url'); 15 font-weight: normal; 16 font-style: normal; 17 } 18 12 19 body { 13 20 property: imported-media-screen-stylesheet; -
trunk/WebCore/ChangeLog
r72685 r72687 1 2010-11-24 Alexander Pavlov <apavlov@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: Crash when inspecting http://alphaarnhem.nl/beta/ 6 https://bugs.webkit.org/show_bug.cgi?id=50025 7 8 @font-face rules were improperly handled by source data extractor. 9 10 * css/CSSParser.cpp: 11 (WebCore::CSSParser::CSSParser): 12 (WebCore::CSSParser::parseDeclaration): 13 (WebCore::CSSParser::createStyleRule): 14 (WebCore::CSSParser::markRuleBodyStart): 15 (WebCore::CSSParser::markPropertyStart): 16 (WebCore::CSSParser::markPropertyEnd): 17 * css/CSSParser.h: 18 1 19 2010-11-24 Cris Neckar <cdn@chromium.org> 2 20 -
trunk/WebCore/css/CSSParser.cpp
r72685 r72687 142 142 , m_hadSyntacticallyValidCSSRule(false) 143 143 , m_defaultNamespace(starAtom) 144 , m_inStyleRuleOrDeclaration(false) 144 145 , m_selectorListRange(0, 0) 145 146 , m_ruleBodyRange(0, 0) … … 342 343 m_currentRuleData = CSSRuleSourceData::create(); 343 344 m_currentRuleData->styleSourceData = CSSStyleSourceData::create(); 345 m_inStyleRuleOrDeclaration = true; 344 346 } 345 347 … … 369 371 *styleSourceData = m_currentRuleData->styleSourceData.release(); 370 372 m_currentRuleData = 0; 373 m_inStyleRuleOrDeclaration = false; 371 374 } 372 375 return ok; … … 5475 5478 m_currentRuleData = CSSRuleSourceData::create(); 5476 5479 m_currentRuleData->styleSourceData = CSSStyleSourceData::create(); 5480 m_inStyleRuleOrDeclaration = false; 5477 5481 } 5478 5482 } … … 5628 5632 if (offset > m_ruleBodyRange.start) 5629 5633 m_ruleBodyRange.start = offset; 5634 m_inStyleRuleOrDeclaration = true; 5630 5635 } 5631 5636 … … 5639 5644 void CSSParser::markPropertyStart() 5640 5645 { 5646 if (!m_inStyleRuleOrDeclaration) 5647 return; 5641 5648 m_propertyRange.start = yytext - m_data; 5642 5649 } … … 5644 5651 void CSSParser::markPropertyEnd(bool isImportantFound, bool isPropertyParsed) 5645 5652 { 5653 if (!m_inStyleRuleOrDeclaration) 5654 return; 5646 5655 unsigned offset = yytext - m_data; 5647 5656 if (*yytext == ';') // Include semicolon into the property text. -
trunk/WebCore/css/CSSParser.h
r72116 r72687 231 231 232 232 // tokenizer methods and data 233 bool m_inStyleRuleOrDeclaration; 233 234 SourceRange m_selectorListRange; 234 235 SourceRange m_ruleBodyRange;
Note: See TracChangeset
for help on using the changeset viewer.