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

Side by Side Diff: Source/core/css/CSSTokenizer-in.cpp

Issue 210813003: Rename :ancestor to :host-context. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 6 years, 9 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/CSSSelector.cpp ('k') | Source/core/css/SelectorChecker.cpp » ('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 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 return true; 720 return true;
721 } 721 }
722 CASE("calc") { 722 CASE("calc") {
723 m_token = CALCFUNCTION; 723 m_token = CALCFUNCTION;
724 return true; 724 return true;
725 } 725 }
726 CASE("host") { 726 CASE("host") {
727 m_token = HOSTFUNCTION; 727 m_token = HOSTFUNCTION;
728 return true; 728 return true;
729 } 729 }
730 CASE("ancestor") { 730 CASE("host-context") {
731 m_token = ANCESTORFUNCTION; 731 m_token = HOSTCONTEXTFUNCTION;
732 return true; 732 return true;
733 } 733 }
734 CASE("nth-child") { 734 CASE("nth-child") {
735 m_parsingMode = NthChildMode; 735 m_parsingMode = NthChildMode;
736 return true; 736 return true;
737 } 737 }
738 CASE("nth-of-type") { 738 CASE("nth-of-type") {
739 m_parsingMode = NthChildMode; 739 m_parsingMode = NthChildMode;
740 return true; 740 return true;
741 } 741 }
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
1526 m_dataStart16[length - 1] = 0; 1526 m_dataStart16[length - 1] = 0;
1527 1527
1528 m_is8BitSource = false; 1528 m_is8BitSource = false;
1529 m_currentCharacter8 = 0; 1529 m_currentCharacter8 = 0;
1530 m_currentCharacter16 = m_dataStart16.get(); 1530 m_currentCharacter16 = m_dataStart16.get();
1531 setTokenStart<UChar>(m_currentCharacter16); 1531 setTokenStart<UChar>(m_currentCharacter16);
1532 m_lexFunc = &CSSTokenizer::realLex<UChar>; 1532 m_lexFunc = &CSSTokenizer::realLex<UChar>;
1533 } 1533 }
1534 1534
1535 } // namespace WebCore 1535 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/CSSSelector.cpp ('k') | Source/core/css/SelectorChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698