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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 if (!m_implementation) | 672 if (!m_implementation) |
673 m_implementation = DOMImplementation::create(this); | 673 m_implementation = DOMImplementation::create(this); |
674 return m_implementation.get(); | 674 return m_implementation.get(); |
675 } | 675 } |
676 | 676 |
677 bool Document::hasManifest() const | 677 bool Document::hasManifest() const |
678 { | 678 { |
679 return documentElement() && isHTMLHtmlElement(documentElement()) && document
Element()->hasAttribute(manifestAttr); | 679 return documentElement() && isHTMLHtmlElement(documentElement()) && document
Element()->hasAttribute(manifestAttr); |
680 } | 680 } |
681 | 681 |
| 682 Location* Document::location() const |
| 683 { |
| 684 if (!frame()) |
| 685 return 0; |
| 686 |
| 687 return domWindow()->location(); |
| 688 } |
| 689 |
682 void Document::childrenChanged(bool changedByParser, Node* beforeChange, Node* a
fterChange, int childCountDelta) | 690 void Document::childrenChanged(bool changedByParser, Node* beforeChange, Node* a
fterChange, int childCountDelta) |
683 { | 691 { |
684 ContainerNode::childrenChanged(changedByParser, beforeChange, afterChange, c
hildCountDelta); | 692 ContainerNode::childrenChanged(changedByParser, beforeChange, afterChange, c
hildCountDelta); |
685 | 693 |
686 Element* newDocumentElement = ElementTraversal::firstWithin(this); | 694 Element* newDocumentElement = ElementTraversal::firstWithin(this); |
687 if (newDocumentElement == m_documentElement) | 695 if (newDocumentElement == m_documentElement) |
688 return; | 696 return; |
689 m_documentElement = newDocumentElement; | 697 m_documentElement = newDocumentElement; |
690 // The root style used for media query matching depends on the document elem
ent. | 698 // The root style used for media query matching depends on the document elem
ent. |
691 clearStyleResolver(); | 699 clearStyleResolver(); |
(...skipping 4584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5276 { | 5284 { |
5277 return DocumentLifecycleNotifier::create(this); | 5285 return DocumentLifecycleNotifier::create(this); |
5278 } | 5286 } |
5279 | 5287 |
5280 DocumentLifecycleNotifier* Document::lifecycleNotifier() | 5288 DocumentLifecycleNotifier* Document::lifecycleNotifier() |
5281 { | 5289 { |
5282 return static_cast<DocumentLifecycleNotifier*>(ExecutionContext::lifecycleNo
tifier()); | 5290 return static_cast<DocumentLifecycleNotifier*>(ExecutionContext::lifecycleNo
tifier()); |
5283 } | 5291 } |
5284 | 5292 |
5285 } // namespace WebCore | 5293 } // namespace WebCore |
OLD | NEW |