OLD | NEW |
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 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 return true; | 742 return true; |
743 } | 743 } |
744 CASE("nth-last-child") { | 744 CASE("nth-last-child") { |
745 m_parsingMode = NthChildMode; | 745 m_parsingMode = NthChildMode; |
746 return true; | 746 return true; |
747 } | 747 } |
748 CASE("nth-last-of-type") { | 748 CASE("nth-last-of-type") { |
749 m_parsingMode = NthChildMode; | 749 m_parsingMode = NthChildMode; |
750 return true; | 750 return true; |
751 } | 751 } |
752 CASE("part") { | |
753 m_token = PARTFUNCTION; | |
754 return true; | |
755 } | |
756 } | 752 } |
757 return false; | 753 return false; |
758 } | 754 } |
759 | 755 |
760 template <typename CharacterType> | 756 template <typename CharacterType> |
761 inline void CSSTokenizer::detectMediaQueryToken(int length) | 757 inline void CSSTokenizer::detectMediaQueryToken(int length) |
762 { | 758 { |
763 ASSERT(m_parsingMode == MediaQueryMode); | 759 ASSERT(m_parsingMode == MediaQueryMode); |
764 CharacterType* name = tokenStart<CharacterType>(); | 760 CharacterType* name = tokenStart<CharacterType>(); |
765 | 761 |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1564 m_dataStart16[length - 1] = 0; | 1560 m_dataStart16[length - 1] = 0; |
1565 | 1561 |
1566 m_is8BitSource = false; | 1562 m_is8BitSource = false; |
1567 m_currentCharacter8 = 0; | 1563 m_currentCharacter8 = 0; |
1568 m_currentCharacter16 = m_dataStart16.get(); | 1564 m_currentCharacter16 = m_dataStart16.get(); |
1569 setTokenStart<UChar>(m_currentCharacter16); | 1565 setTokenStart<UChar>(m_currentCharacter16); |
1570 m_lexFunc = &CSSTokenizer::realLex<UChar>; | 1566 m_lexFunc = &CSSTokenizer::realLex<UChar>; |
1571 } | 1567 } |
1572 | 1568 |
1573 } // namespace WebCore | 1569 } // namespace WebCore |
OLD | NEW |