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 5630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5641 m_templateDocument = HTMLDocument::create(init); | 5641 m_templateDocument = HTMLDocument::create(init); |
5642 } else { | 5642 } else { |
5643 m_templateDocument = Document::create(DocumentInit(blankURL())); | 5643 m_templateDocument = Document::create(DocumentInit(blankURL())); |
5644 } | 5644 } |
5645 | 5645 |
5646 m_templateDocument->m_templateDocumentHost = this; // balanced in dtor. | 5646 m_templateDocument->m_templateDocumentHost = this; // balanced in dtor. |
5647 | 5647 |
5648 return *m_templateDocument.get(); | 5648 return *m_templateDocument.get(); |
5649 } | 5649 } |
5650 | 5650 |
| 5651 const ComputedStyle* Document::virtualEnsureComputedStyle(PseudoId pseudoElement
Specifier) |
| 5652 { |
| 5653 return m_layoutView ? m_layoutView->style() : nullptr; |
| 5654 } |
| 5655 |
5651 void Document::didAssociateFormControl(Element* element) | 5656 void Document::didAssociateFormControl(Element* element) |
5652 { | 5657 { |
5653 if (!frame() || !frame()->page()) | 5658 if (!frame() || !frame()->page()) |
5654 return; | 5659 return; |
5655 m_associatedFormControls.add(element); | 5660 m_associatedFormControls.add(element); |
5656 if (!m_didAssociateFormControlsTimer.isActive()) | 5661 if (!m_didAssociateFormControlsTimer.isActive()) |
5657 m_didAssociateFormControlsTimer.startOneShot(0, BLINK_FROM_HERE); | 5662 m_didAssociateFormControlsTimer.startOneShot(0, BLINK_FROM_HERE); |
5658 } | 5663 } |
5659 | 5664 |
5660 void Document::removeFormAssociation(Element* element) | 5665 void Document::removeFormAssociation(Element* element) |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5951 #ifndef NDEBUG | 5956 #ifndef NDEBUG |
5952 using namespace blink; | 5957 using namespace blink; |
5953 void showLiveDocumentInstances() | 5958 void showLiveDocumentInstances() |
5954 { | 5959 { |
5955 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5960 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
5956 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5961 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5957 for (Document* document : set) | 5962 for (Document* document : set) |
5958 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5963 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5959 } | 5964 } |
5960 #endif | 5965 #endif |
OLD | NEW |