| 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 | 348 |
| 349 void HTMLConstructionSite::trace(Visitor* visitor) | 349 void HTMLConstructionSite::trace(Visitor* visitor) |
| 350 { | 350 { |
| 351 visitor->trace(m_document); | 351 visitor->trace(m_document); |
| 352 visitor->trace(m_attachmentRoot); | 352 visitor->trace(m_attachmentRoot); |
| 353 visitor->trace(m_head); | 353 visitor->trace(m_head); |
| 354 visitor->trace(m_form); | 354 visitor->trace(m_form); |
| 355 visitor->trace(m_openElements); | 355 visitor->trace(m_openElements); |
| 356 visitor->trace(m_activeFormattingElements); | 356 visitor->trace(m_activeFormattingElements); |
| 357 visitor->trace(m_taskQueue); | 357 visitor->trace(m_taskQueue); |
| 358 visitor->trace(m_pendingText); |
| 358 } | 359 } |
| 359 | 360 |
| 360 void HTMLConstructionSite::detach() | 361 void HTMLConstructionSite::detach() |
| 361 { | 362 { |
| 362 // FIXME: We'd like to ASSERT here that we're canceling and not just discard
ing | 363 // FIXME: We'd like to ASSERT here that we're canceling and not just discard
ing |
| 363 // text that really should have made it into the DOM earlier, but there | 364 // text that really should have made it into the DOM earlier, but there |
| 364 // doesn't seem to be a nice way to do that. | 365 // doesn't seem to be a nice way to do that. |
| 365 m_pendingText.discard(); | 366 m_pendingText.discard(); |
| 366 m_document = nullptr; | 367 m_document = nullptr; |
| 367 m_attachmentRoot = nullptr; | 368 m_attachmentRoot = nullptr; |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 | 862 |
| 862 void HTMLConstructionSite::fosterParent(PassRefPtrWillBeRawPtr<Node> node) | 863 void HTMLConstructionSite::fosterParent(PassRefPtrWillBeRawPtr<Node> node) |
| 863 { | 864 { |
| 864 HTMLConstructionSiteTask task(HTMLConstructionSiteTask::Insert); | 865 HTMLConstructionSiteTask task(HTMLConstructionSiteTask::Insert); |
| 865 findFosterSite(task); | 866 findFosterSite(task); |
| 866 task.child = node; | 867 task.child = node; |
| 867 ASSERT(task.parent); | 868 ASSERT(task.parent); |
| 868 queueTask(task); | 869 queueTask(task); |
| 869 } | 870 } |
| 870 | 871 |
| 872 void HTMLConstructionSite::PendingText::trace(Visitor* visitor) |
| 873 { |
| 874 visitor->trace(parent); |
| 875 visitor->trace(nextChild); |
| 871 } | 876 } |
| 877 |
| 878 |
| 879 } |
| OLD | NEW |