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 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1547 | 1547 |
1548 void HTMLTokenizer::updateStateFor(const String& tagName) | 1548 void HTMLTokenizer::updateStateFor(const String& tagName) |
1549 { | 1549 { |
1550 if (threadSafeMatch(tagName, textareaTag) || threadSafeMatch(tagName, titleT
ag)) | 1550 if (threadSafeMatch(tagName, textareaTag) || threadSafeMatch(tagName, titleT
ag)) |
1551 setState(HTMLTokenizer::RCDATAState); | 1551 setState(HTMLTokenizer::RCDATAState); |
1552 else if (threadSafeMatch(tagName, plaintextTag)) | 1552 else if (threadSafeMatch(tagName, plaintextTag)) |
1553 setState(HTMLTokenizer::PLAINTEXTState); | 1553 setState(HTMLTokenizer::PLAINTEXTState); |
1554 else if (threadSafeMatch(tagName, scriptTag)) | 1554 else if (threadSafeMatch(tagName, scriptTag)) |
1555 setState(HTMLTokenizer::ScriptDataState); | 1555 setState(HTMLTokenizer::ScriptDataState); |
1556 else if (threadSafeMatch(tagName, styleTag) | 1556 else if (threadSafeMatch(tagName, styleTag) |
| 1557 || threadSafeMatch(tagName, frameletTag) |
1557 || threadSafeMatch(tagName, iframeTag) | 1558 || threadSafeMatch(tagName, iframeTag) |
1558 || threadSafeMatch(tagName, xmpTag) | 1559 || threadSafeMatch(tagName, xmpTag) |
1559 || (threadSafeMatch(tagName, noembedTag) && m_options.pluginsEnabled) | 1560 || (threadSafeMatch(tagName, noembedTag) && m_options.pluginsEnabled) |
1560 || threadSafeMatch(tagName, noframesTag) | 1561 || threadSafeMatch(tagName, noframesTag) |
1561 || (threadSafeMatch(tagName, noscriptTag) && m_options.scriptEnabled)) | 1562 || (threadSafeMatch(tagName, noscriptTag) && m_options.scriptEnabled)) |
1562 setState(HTMLTokenizer::RAWTEXTState); | 1563 setState(HTMLTokenizer::RAWTEXTState); |
1563 } | 1564 } |
1564 | 1565 |
1565 inline bool HTMLTokenizer::temporaryBufferIs(const String& expectedString) | 1566 inline bool HTMLTokenizer::temporaryBufferIs(const String& expectedString) |
1566 { | 1567 { |
(...skipping 20 matching lines...) Expand all Loading... |
1587 | 1588 |
1588 return true; | 1589 return true; |
1589 } | 1590 } |
1590 | 1591 |
1591 inline void HTMLTokenizer::parseError() | 1592 inline void HTMLTokenizer::parseError() |
1592 { | 1593 { |
1593 notImplemented(); | 1594 notImplemented(); |
1594 } | 1595 } |
1595 | 1596 |
1596 } // namespace blink | 1597 } // namespace blink |
OLD | NEW |