OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 m_customElementMicrotaskRunQueue = CustomElementMicrotaskRunQueue::creat
e(); | 556 m_customElementMicrotaskRunQueue = CustomElementMicrotaskRunQueue::creat
e(); |
557 return m_customElementMicrotaskRunQueue.get(); | 557 return m_customElementMicrotaskRunQueue.get(); |
558 } | 558 } |
559 | 559 |
560 void Document::setImportsController(HTMLImportsController* controller) | 560 void Document::setImportsController(HTMLImportsController* controller) |
561 { | 561 { |
562 ASSERT(!m_importsController || !controller); | 562 ASSERT(!m_importsController || !controller); |
563 m_importsController = controller; | 563 m_importsController = controller; |
564 } | 564 } |
565 | 565 |
| 566 HTMLImportsController& Document::ensureImportsController() |
| 567 { |
| 568 if (!m_importsController) { |
| 569 ASSERT(frame()); // The document should be the master. |
| 570 HTMLImportsController::provideTo(*this); |
| 571 } |
| 572 return *m_importsController; |
| 573 } |
| 574 |
566 HTMLImportLoader* Document::importLoader() const | 575 HTMLImportLoader* Document::importLoader() const |
567 { | 576 { |
568 if (!m_importsController) | 577 if (!m_importsController) |
569 return 0; | 578 return 0; |
570 return m_importsController->loaderFor(*this); | 579 return m_importsController->loaderFor(*this); |
571 } | 580 } |
572 | 581 |
573 HTMLImport* Document::import() const | 582 HTMLImport* Document::import() const |
574 { | 583 { |
575 if (!m_importsController) | 584 if (!m_importsController) |
(...skipping 2543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3119 using namespace blink; | 3128 using namespace blink; |
3120 void showLiveDocumentInstances() | 3129 void showLiveDocumentInstances() |
3121 { | 3130 { |
3122 WeakDocumentSet& set = liveDocumentSet(); | 3131 WeakDocumentSet& set = liveDocumentSet(); |
3123 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 3132 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
3124 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 3133 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
3125 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 3134 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
3126 } | 3135 } |
3127 } | 3136 } |
3128 #endif | 3137 #endif |
OLD | NEW |