| 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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 void HTMLTreeBuilder::processIsindexStartTagForInBody(AtomicHTMLToken& token) | 559 void HTMLTreeBuilder::processIsindexStartTagForInBody(AtomicHTMLToken& token) |
| 560 { | 560 { |
| 561 ASSERT(token.type() == HTMLTokenTypes::StartTag); | 561 ASSERT(token.type() == HTMLTokenTypes::StartTag); |
| 562 ASSERT(token.name() == isindexTag); | 562 ASSERT(token.name() == isindexTag); |
| 563 parseError(token); | 563 parseError(token); |
| 564 if (m_tree.form()) | 564 if (m_tree.form()) |
| 565 return; | 565 return; |
| 566 notImplemented(); // Acknowledge self-closing flag | 566 notImplemented(); // Acknowledge self-closing flag |
| 567 processFakeStartTag(formTag); | 567 processFakeStartTag(formTag); |
| 568 RefPtr<Attribute> actionAttribute = token.getAttributeItem(actionAttr); | 568 RefPtr<Attribute> actionAttribute = token.getAttributeItem(actionAttr); |
| 569 if (actionAttribute) { | 569 if (actionAttribute) |
| 570 ASSERT(m_tree.currentElement()->hasTagName(formTag)); | 570 m_tree.form()->setAttribute(actionAttr, actionAttribute->value()); |
| 571 m_tree.currentElement()->setAttribute(actionAttr, actionAttribute->value
()); | |
| 572 } | |
| 573 processFakeStartTag(hrTag); | 571 processFakeStartTag(hrTag); |
| 574 processFakeStartTag(labelTag); | 572 processFakeStartTag(labelTag); |
| 575 RefPtr<Attribute> promptAttribute = token.getAttributeItem(promptAttr); | 573 RefPtr<Attribute> promptAttribute = token.getAttributeItem(promptAttr); |
| 576 if (promptAttribute) | 574 if (promptAttribute) |
| 577 processFakeCharacters(promptAttribute->value()); | 575 processFakeCharacters(promptAttribute->value()); |
| 578 else | 576 else |
| 579 processFakeCharacters(searchableIndexIntroduction()); | 577 processFakeCharacters(searchableIndexIntroduction()); |
| 580 processFakeStartTag(inputTag, attributesForIsindexInput(token)); | 578 processFakeStartTag(inputTag, attributesForIsindexInput(token)); |
| 581 notImplemented(); // This second set of characters may be needed by non-engl
ish locales. | 579 notImplemented(); // This second set of characters may be needed by non-engl
ish locales. |
| 582 processFakeEndTag(labelTag); | 580 processFakeEndTag(labelTag); |
| (...skipping 2258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2841 } | 2839 } |
| 2842 | 2840 |
| 2843 bool HTMLTreeBuilder::pluginsEnabled(Frame* frame) | 2841 bool HTMLTreeBuilder::pluginsEnabled(Frame* frame) |
| 2844 { | 2842 { |
| 2845 if (!frame) | 2843 if (!frame) |
| 2846 return false; | 2844 return false; |
| 2847 return frame->loader()->subframeLoader()->allowPlugins(NotAboutToInstantiate
Plugin); | 2845 return frame->loader()->subframeLoader()->allowPlugins(NotAboutToInstantiate
Plugin); |
| 2848 } | 2846 } |
| 2849 | 2847 |
| 2850 } | 2848 } |
| OLD | NEW |