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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 m_attachmentRoot = nullptr; | 369 m_attachmentRoot = nullptr; |
370 } | 370 } |
371 | 371 |
372 void HTMLConstructionSite::setForm(HTMLFormElement* form) | 372 void HTMLConstructionSite::setForm(HTMLFormElement* form) |
373 { | 373 { |
374 // This method should only be needed for HTMLTreeBuilder in the fragment cas
e. | 374 // This method should only be needed for HTMLTreeBuilder in the fragment cas
e. |
375 ASSERT(!m_form); | 375 ASSERT(!m_form); |
376 m_form = form; | 376 m_form = form; |
377 } | 377 } |
378 | 378 |
| 379 HTMLFormElement* HTMLConstructionSite::form() const |
| 380 { |
| 381 return m_form.get(); |
| 382 } |
| 383 |
379 PassRefPtrWillBeRawPtr<HTMLFormElement> HTMLConstructionSite::takeForm() | 384 PassRefPtrWillBeRawPtr<HTMLFormElement> HTMLConstructionSite::takeForm() |
380 { | 385 { |
381 return m_form.release(); | 386 return m_form.release(); |
382 } | 387 } |
383 | 388 |
384 void HTMLConstructionSite::dispatchDocumentElementAvailableIfNeeded() | 389 void HTMLConstructionSite::dispatchDocumentElementAvailableIfNeeded() |
385 { | 390 { |
386 ASSERT(m_document); | 391 ASSERT(m_document); |
387 if (m_document->frame() && !m_isParsingFragment) | 392 if (m_document->frame() && !m_isParsingFragment) |
388 m_document->frame()->loader().dispatchDocumentElementAvailable(); | 393 m_document->frame()->loader().dispatchDocumentElementAvailable(); |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 } | 878 } |
874 | 879 |
875 DEFINE_TRACE(HTMLConstructionSite::PendingText) | 880 DEFINE_TRACE(HTMLConstructionSite::PendingText) |
876 { | 881 { |
877 visitor->trace(parent); | 882 visitor->trace(parent); |
878 visitor->trace(nextChild); | 883 visitor->trace(nextChild); |
879 } | 884 } |
880 | 885 |
881 | 886 |
882 } | 887 } |
OLD | NEW |