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 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1474 currentCharacter<SrcCharacterType>() += 3; | 1474 currentCharacter<SrcCharacterType>() += 3; |
1475 m_token = SGML_CD; | 1475 m_token = SGML_CD; |
1476 } | 1476 } |
1477 break; | 1477 break; |
1478 | 1478 |
1479 case CharacterAt: | 1479 case CharacterAt: |
1480 if (isIdentifierStart<SrcCharacterType>()) { | 1480 if (isIdentifierStart<SrcCharacterType>()) { |
1481 m_token = ATKEYWORD; | 1481 m_token = ATKEYWORD; |
1482 ++result; | 1482 ++result; |
1483 parseIdentifier(result, resultString, hasEscape); | 1483 parseIdentifier(result, resultString, hasEscape); |
1484 detectAtToken<SrcCharacterType>(result - tokenStart<SrcCharacterType >(), hasEscape); | 1484 detectAtToken<SrcCharacterType>(resultString.length() + 1, hasEscape ); |
Julien - ping for review
2014/05/08 15:26:29
This seems like a big footgun that you are neuteri
reni
2014/05/22 22:04:38
This is (was) the only place where the pointer ari
Julien - ping for review
2014/05/23 10:42:09
OK, it seems worth a comment here so that people a
| |
1485 } | 1485 } |
1486 break; | 1486 break; |
1487 | 1487 |
1488 case CharacterBackSlash: | 1488 case CharacterBackSlash: |
1489 if (isCSSEscape(*currentCharacter<SrcCharacterType>())) { | 1489 if (isCSSEscape(*currentCharacter<SrcCharacterType>())) { |
1490 --currentCharacter<SrcCharacterType>(); | 1490 --currentCharacter<SrcCharacterType>(); |
1491 parseIdentifier(result, yylval->string, hasEscape); | 1491 parseIdentifier(result, yylval->string, hasEscape); |
1492 m_token = IDENT; | 1492 m_token = IDENT; |
1493 } | 1493 } |
1494 break; | 1494 break; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1580 m_dataStart16[length - 1] = 0; | 1580 m_dataStart16[length - 1] = 0; |
1581 | 1581 |
1582 m_is8BitSource = false; | 1582 m_is8BitSource = false; |
1583 m_currentCharacter8 = 0; | 1583 m_currentCharacter8 = 0; |
1584 m_currentCharacter16 = m_dataStart16.get(); | 1584 m_currentCharacter16 = m_dataStart16.get(); |
1585 setTokenStart<UChar>(m_currentCharacter16); | 1585 setTokenStart<UChar>(m_currentCharacter16); |
1586 m_lexFunc = &CSSTokenizer::realLex<UChar>; | 1586 m_lexFunc = &CSSTokenizer::realLex<UChar>; |
1587 } | 1587 } |
1588 | 1588 |
1589 } // namespace WebCore | 1589 } // namespace WebCore |
OLD | NEW |