OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 } | 486 } |
487 | 487 |
488 attributes.append(Attribute(nameAttr, isindexTag.localName())); | 488 attributes.append(Attribute(nameAttr, isindexTag.localName())); |
489 return attributes; | 489 return attributes; |
490 } | 490 } |
491 | 491 |
492 void HTMLTreeBuilder::processIsindexStartTagForInBody(AtomicHTMLToken* token) | 492 void HTMLTreeBuilder::processIsindexStartTagForInBody(AtomicHTMLToken* token) |
493 { | 493 { |
494 ASSERT(token->type() == HTMLToken::StartTag); | 494 ASSERT(token->type() == HTMLToken::StartTag); |
495 ASSERT(token->name() == isindexTag); | 495 ASSERT(token->name() == isindexTag); |
| 496 |
| 497 if (m_parser->useCounter()) |
| 498 m_parser->useCounter()->count(UseCounter::IsIndexElement); |
| 499 |
496 parseError(token); | 500 parseError(token); |
497 if (m_tree.form()) | 501 if (m_tree.form()) |
498 return; | 502 return; |
499 notImplemented(); // Acknowledge self-closing flag | 503 notImplemented(); // Acknowledge self-closing flag |
500 processFakeStartTag(formTag); | 504 processFakeStartTag(formTag); |
501 Attribute* actionAttribute = token->getAttributeItem(actionAttr); | 505 Attribute* actionAttribute = token->getAttributeItem(actionAttr); |
502 if (actionAttribute) | 506 if (actionAttribute) |
503 m_tree.form()->setAttribute(actionAttr, actionAttribute->value()); | 507 m_tree.form()->setAttribute(actionAttr, actionAttribute->value()); |
504 processFakeStartTag(hrTag); | 508 processFakeStartTag(hrTag); |
505 processFakeStartTag(labelTag); | 509 processFakeStartTag(labelTag); |
(...skipping 2338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2844 ASSERT(m_isAttached); | 2848 ASSERT(m_isAttached); |
2845 // Warning, this may detach the parser. Do not do anything else after this. | 2849 // Warning, this may detach the parser. Do not do anything else after this. |
2846 m_tree.finishedParsing(); | 2850 m_tree.finishedParsing(); |
2847 } | 2851 } |
2848 | 2852 |
2849 void HTMLTreeBuilder::parseError(AtomicHTMLToken*) | 2853 void HTMLTreeBuilder::parseError(AtomicHTMLToken*) |
2850 { | 2854 { |
2851 } | 2855 } |
2852 | 2856 |
2853 } // namespace WebCore | 2857 } // namespace WebCore |
OLD | NEW |