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 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 if (m_docType->publicId().startsWith("-//wapforum//dtd xhtml mobile 1.",
/* caseSensitive */ false)) | 707 if (m_docType->publicId().startsWith("-//wapforum//dtd xhtml mobile 1.",
/* caseSensitive */ false)) |
708 m_isMobileDocument = true; | 708 m_isMobileDocument = true; |
709 } | 709 } |
710 // Doctype affects the interpretation of the stylesheets. | 710 // Doctype affects the interpretation of the stylesheets. |
711 clearStyleResolver(); | 711 clearStyleResolver(); |
712 } | 712 } |
713 | 713 |
714 DOMImplementation& Document::implementation() | 714 DOMImplementation& Document::implementation() |
715 { | 715 { |
716 if (!m_implementation) | 716 if (!m_implementation) |
717 m_implementation = DOMImplementation::create(*this); | 717 m_implementation = DOMImplementation::create(this); |
718 return *m_implementation; | 718 return *m_implementation; |
719 } | 719 } |
720 | 720 |
721 bool Document::hasManifest() const | 721 bool Document::hasManifest() const |
722 { | 722 { |
723 return isHTMLHtmlElement(documentElement()) && documentElement()->hasAttribu
te(manifestAttr); | 723 return isHTMLHtmlElement(documentElement()) && documentElement()->hasAttribu
te(manifestAttr); |
724 } | 724 } |
725 | 725 |
726 Location* Document::location() const | 726 Location* Document::location() const |
727 { | 727 { |
(...skipping 4944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5672 deadNodes.append(it->key); | 5672 deadNodes.append(it->key); |
5673 } | 5673 } |
5674 for (unsigned i = 0; i < deadNodes.size(); ++i) | 5674 for (unsigned i = 0; i < deadNodes.size(); ++i) |
5675 didClearTouchEventHandlers(deadNodes[i]); | 5675 didClearTouchEventHandlers(deadNodes[i]); |
5676 } | 5676 } |
5677 } | 5677 } |
5678 | 5678 |
5679 void Document::trace(Visitor* visitor) | 5679 void Document::trace(Visitor* visitor) |
5680 { | 5680 { |
5681 visitor->trace(m_docType); | 5681 visitor->trace(m_docType); |
| 5682 visitor->trace(m_implementation); |
5682 visitor->trace(m_autofocusElement); | 5683 visitor->trace(m_autofocusElement); |
5683 visitor->trace(m_focusedElement); | 5684 visitor->trace(m_focusedElement); |
5684 visitor->trace(m_hoverNode); | 5685 visitor->trace(m_hoverNode); |
5685 visitor->trace(m_activeHoverElement); | 5686 visitor->trace(m_activeHoverElement); |
5686 visitor->trace(m_documentElement); | 5687 visitor->trace(m_documentElement); |
5687 visitor->trace(m_titleElement); | 5688 visitor->trace(m_titleElement); |
5688 visitor->trace(m_currentScriptStack); | 5689 visitor->trace(m_currentScriptStack); |
5689 visitor->trace(m_transformSourceDocument); | 5690 visitor->trace(m_transformSourceDocument); |
5690 visitor->trace(m_cssCanvasElements); | 5691 visitor->trace(m_cssCanvasElements); |
5691 visitor->trace(m_topLayerElements); | 5692 visitor->trace(m_topLayerElements); |
5692 visitor->trace(m_elemSheet); | 5693 visitor->trace(m_elemSheet); |
5693 visitor->trace(m_styleEngine); | 5694 visitor->trace(m_styleEngine); |
5694 visitor->trace(m_fetcher); | 5695 visitor->trace(m_fetcher); |
5695 visitor->trace(m_contextFeatures); | 5696 visitor->trace(m_contextFeatures); |
5696 visitor->trace(m_styleSheetList); | 5697 visitor->trace(m_styleSheetList); |
5697 visitor->trace(m_mediaQueryMatcher); | 5698 visitor->trace(m_mediaQueryMatcher); |
5698 visitor->trace(m_associatedFormControls); | 5699 visitor->trace(m_associatedFormControls); |
5699 visitor->trace(m_templateDocument); | 5700 visitor->trace(m_templateDocument); |
5700 visitor->trace(m_templateDocumentHost); | 5701 visitor->trace(m_templateDocumentHost); |
5701 visitor->trace(m_visibilityObservers); | 5702 visitor->trace(m_visibilityObservers); |
5702 visitor->trace(m_userActionElements); | 5703 visitor->trace(m_userActionElements); |
5703 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); | 5704 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); |
5704 DocumentSupplementable::trace(visitor); | 5705 DocumentSupplementable::trace(visitor); |
5705 TreeScope::trace(visitor); | 5706 TreeScope::trace(visitor); |
5706 ContainerNode::trace(visitor); | 5707 ContainerNode::trace(visitor); |
5707 ExecutionContext::trace(visitor); | 5708 ExecutionContext::trace(visitor); |
5708 } | 5709 } |
5709 | 5710 |
5710 } // namespace WebCore | 5711 } // namespace WebCore |
OLD | NEW |