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

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

Issue 138023007: Renamed :host to :ancestor and made :host to match only shadow host. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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
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 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 return true; 726 return true;
727 } 727 }
728 CASE("calc") { 728 CASE("calc") {
729 m_token = CALCFUNCTION; 729 m_token = CALCFUNCTION;
730 return true; 730 return true;
731 } 731 }
732 CASE("host") { 732 CASE("host") {
733 m_token = HOSTFUNCTION; 733 m_token = HOSTFUNCTION;
734 return true; 734 return true;
735 } 735 }
736 CASE("ancestor") {
737 m_token = ANCESTORFUNCTION;
738 return true;
739 }
736 CASE("nth-child") { 740 CASE("nth-child") {
737 m_parsingMode = NthChildMode; 741 m_parsingMode = NthChildMode;
738 return true; 742 return true;
739 } 743 }
740 CASE("nth-of-type") { 744 CASE("nth-of-type") {
741 m_parsingMode = NthChildMode; 745 m_parsingMode = NthChildMode;
742 return true; 746 return true;
743 } 747 }
744 CASE("nth-last-child") { 748 CASE("nth-last-child") {
745 m_parsingMode = NthChildMode; 749 m_parsingMode = NthChildMode;
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
1546 m_dataStart16[length - 1] = 0; 1550 m_dataStart16[length - 1] = 0;
1547 1551
1548 m_is8BitSource = false; 1552 m_is8BitSource = false;
1549 m_currentCharacter8 = 0; 1553 m_currentCharacter8 = 0;
1550 m_currentCharacter16 = m_dataStart16.get(); 1554 m_currentCharacter16 = m_dataStart16.get();
1551 setTokenStart<UChar>(m_currentCharacter16); 1555 setTokenStart<UChar>(m_currentCharacter16);
1552 m_lexFunc = &CSSTokenizer::realLex<UChar>; 1556 m_lexFunc = &CSSTokenizer::realLex<UChar>;
1553 } 1557 }
1554 1558
1555 } // namespace WebCore 1559 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698