OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ | 3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ |
4 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 4 * Copyright (C) 2010 Google, Inc. All Rights Reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 1579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1590 { | 1590 { |
1591 // FIXME: Add an assert about m_state. | 1591 // FIXME: Add an assert about m_state. |
1592 StringBuilder characters; | 1592 StringBuilder characters; |
1593 characters.reserveCapacity(numberOfBufferedCharacters()); | 1593 characters.reserveCapacity(numberOfBufferedCharacters()); |
1594 characters.append('<'); | 1594 characters.append('<'); |
1595 characters.append('/'); | 1595 characters.append('/'); |
1596 characters.append(m_temporaryBuffer.data(), m_temporaryBuffer.size()); | 1596 characters.append(m_temporaryBuffer.data(), m_temporaryBuffer.size()); |
1597 return characters.toString(); | 1597 return characters.toString(); |
1598 } | 1598 } |
1599 | 1599 |
1600 void HTMLTokenizer::updateStateFor(const AtomicString& tagName) | 1600 void HTMLTokenizer::updateStateFor(const HTMLIdentifier& tagName) |
1601 { | 1601 { |
1602 if (tagName == textareaTag || tagName == titleTag) | 1602 if (tagName == textareaTag || tagName == titleTag) |
1603 setState(HTMLTokenizer::RCDATAState); | 1603 setState(HTMLTokenizer::RCDATAState); |
1604 else if (tagName == plaintextTag) | 1604 else if (tagName == plaintextTag) |
1605 setState(HTMLTokenizer::PLAINTEXTState); | 1605 setState(HTMLTokenizer::PLAINTEXTState); |
1606 else if (tagName == scriptTag) | 1606 else if (tagName == scriptTag) |
1607 setState(HTMLTokenizer::ScriptDataState); | 1607 setState(HTMLTokenizer::ScriptDataState); |
1608 else if (tagName == styleTag | 1608 else if (tagName == styleTag |
1609 || tagName == iframeTag | 1609 || tagName == iframeTag |
1610 || tagName == xmpTag | 1610 || tagName == xmpTag |
(...skipping 28 matching lines...) Expand all Loading... |
1639 | 1639 |
1640 return true; | 1640 return true; |
1641 } | 1641 } |
1642 | 1642 |
1643 inline void HTMLTokenizer::parseError() | 1643 inline void HTMLTokenizer::parseError() |
1644 { | 1644 { |
1645 notImplemented(); | 1645 notImplemented(); |
1646 } | 1646 } |
1647 | 1647 |
1648 } | 1648 } |
OLD | NEW |