Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(489)

Side by Side Diff: Source/core/css/CSSParser.cpp

Issue 17112022: Remove source line tracking from MediaList and related DevTools code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSParser.h ('k') | Source/core/css/MediaList.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. 8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
9 * Copyright (C) 2012 Intel Corporation. All rights reserved. 9 * Copyright (C) 2012 Intel Corporation. All rights reserved.
10 * 10 *
(...skipping 11380 matching lines...) Expand 10 before | Expand all | Expand 10 after
11391 { 11391 {
11392 if (m_styleSheet && !m_hadSyntacticallyValidCSSRule) 11392 if (m_styleSheet && !m_hadSyntacticallyValidCSSRule)
11393 m_styleSheet->setHasSyntacticallyValidCSSHeader(false); 11393 m_styleSheet->setHasSyntacticallyValidCSSHeader(false);
11394 } 11394 }
11395 11395
11396 void CSSParser::updateLastSelectorLineAndPosition() 11396 void CSSParser::updateLastSelectorLineAndPosition()
11397 { 11397 {
11398 m_lastSelectorLineNumber = m_lineNumber; 11398 m_lastSelectorLineNumber = m_lineNumber;
11399 } 11399 }
11400 11400
11401 void CSSParser::updateLastMediaLine(MediaQuerySet* media)
11402 {
11403 media->setLastLine(m_lineNumber);
11404 }
11405
11406 void CSSParser::startRuleHeader(CSSRuleSourceData::Type ruleType) 11401 void CSSParser::startRuleHeader(CSSRuleSourceData::Type ruleType)
11407 { 11402 {
11408 resumeErrorLogging(); 11403 resumeErrorLogging();
11409 m_ruleHeaderType = ruleType; 11404 m_ruleHeaderType = ruleType;
11410 m_ruleHeaderStartOffset = safeUserStringTokenOffset(); 11405 m_ruleHeaderStartOffset = safeUserStringTokenOffset();
11411 m_ruleHeaderStartLineNumber = m_tokenStartLineNumber; 11406 m_ruleHeaderStartLineNumber = m_tokenStartLineNumber;
11412 if (m_sourceDataHandler) 11407 if (m_sourceDataHandler)
11413 m_sourceDataHandler->startRuleHeader(ruleType, m_ruleHeaderStartOffset); 11408 m_sourceDataHandler->startRuleHeader(ruleType, m_ruleHeaderStartOffset);
11414 } 11409 }
11415 11410
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
11808 { 11803 {
11809 // The tokenizer checks for the construct of an+b. 11804 // The tokenizer checks for the construct of an+b.
11810 // However, since the {ident} rule precedes the {nth} rule, some of those 11805 // However, since the {ident} rule precedes the {nth} rule, some of those
11811 // tokens are identified as string literal. Furthermore we need to accept 11806 // tokens are identified as string literal. Furthermore we need to accept
11812 // "odd" and "even" which does not match to an+b. 11807 // "odd" and "even" which does not match to an+b.
11813 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") 11808 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even")
11814 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); 11809 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n");
11815 } 11810 }
11816 11811
11817 } 11812 }
OLDNEW
« no previous file with comments | « Source/core/css/CSSParser.h ('k') | Source/core/css/MediaList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698