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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 attachLater(currentNode(), m_head->element()); | 597 attachLater(currentNode(), m_head->element()); |
598 m_openElements.pushHTMLHeadElement(m_head); | 598 m_openElements.pushHTMLHeadElement(m_head); |
599 } | 599 } |
600 | 600 |
601 void HTMLConstructionSite::insertHTMLBodyElement(AtomicHTMLToken* token) | 601 void HTMLConstructionSite::insertHTMLBodyElement(AtomicHTMLToken* token) |
602 { | 602 { |
603 ASSERT(!shouldFosterParent()); | 603 ASSERT(!shouldFosterParent()); |
604 HTMLElement* body = createHTMLElement(token); | 604 HTMLElement* body = createHTMLElement(token); |
605 attachLater(currentNode(), body); | 605 attachLater(currentNode(), body); |
606 m_openElements.pushHTMLBodyElement(HTMLStackItem::create(body, token)); | 606 m_openElements.pushHTMLBodyElement(HTMLStackItem::create(body, token)); |
607 if (m_document && m_document->frame()) | 607 if (m_document) |
608 m_document->frame()->loader().client()->dispatchWillInsertBody(); | 608 m_document->willInsertBody(); |
609 } | 609 } |
610 | 610 |
611 void HTMLConstructionSite::insertHTMLFormElement(AtomicHTMLToken* token, bool is
Demoted) | 611 void HTMLConstructionSite::insertHTMLFormElement(AtomicHTMLToken* token, bool is
Demoted) |
612 { | 612 { |
613 HTMLElement* element = createHTMLElement(token); | 613 HTMLElement* element = createHTMLElement(token); |
614 ASSERT(isHTMLFormElement(element)); | 614 ASSERT(isHTMLFormElement(element)); |
615 m_form = toHTMLFormElement(element); | 615 m_form = toHTMLFormElement(element); |
616 m_form->setDemoted(isDemoted); | 616 m_form->setDemoted(isDemoted); |
617 attachLater(currentNode(), m_form.get()); | 617 attachLater(currentNode(), m_form.get()); |
618 m_openElements.push(HTMLStackItem::create(m_form.get(), token)); | 618 m_openElements.push(HTMLStackItem::create(m_form.get(), token)); |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 queueTask(task); | 881 queueTask(task); |
882 } | 882 } |
883 | 883 |
884 DEFINE_TRACE(HTMLConstructionSite::PendingText) | 884 DEFINE_TRACE(HTMLConstructionSite::PendingText) |
885 { | 885 { |
886 visitor->trace(parent); | 886 visitor->trace(parent); |
887 visitor->trace(nextChild); | 887 visitor->trace(nextChild); |
888 } | 888 } |
889 | 889 |
890 } // namespace blink | 890 } // namespace blink |
OLD | NEW |