| 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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 clearStyleResolver(); | 697 clearStyleResolver(); |
| 698 } | 698 } |
| 699 | 699 |
| 700 DOMImplementation& Document::implementation() | 700 DOMImplementation& Document::implementation() |
| 701 { | 701 { |
| 702 if (!m_implementation) | 702 if (!m_implementation) |
| 703 m_implementation = DOMImplementation::create(*this); | 703 m_implementation = DOMImplementation::create(*this); |
| 704 return *m_implementation; | 704 return *m_implementation; |
| 705 } | 705 } |
| 706 | 706 |
| 707 bool Document::hasManifest() const | 707 bool Document::hasAppCacheManifest() const |
| 708 { | 708 { |
| 709 return isHTMLHtmlElement(documentElement()) && documentElement()->hasAttribu
te(manifestAttr); | 709 return isHTMLHtmlElement(documentElement()) && documentElement()->hasAttribu
te(manifestAttr); |
| 710 } | 710 } |
| 711 | 711 |
| 712 Location* Document::location() const | 712 Location* Document::location() const |
| 713 { | 713 { |
| 714 if (!frame()) | 714 if (!frame()) |
| 715 return 0; | 715 return 0; |
| 716 | 716 |
| 717 return &domWindow()->location(); | 717 return &domWindow()->location(); |
| (...skipping 3945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4663 | 4663 |
| 4664 if (firstTouchIcon.m_iconType != InvalidIcon) | 4664 if (firstTouchIcon.m_iconType != InvalidIcon) |
| 4665 iconURLs.append(firstTouchIcon); | 4665 iconURLs.append(firstTouchIcon); |
| 4666 if (firstTouchPrecomposedIcon.m_iconType != InvalidIcon) | 4666 if (firstTouchPrecomposedIcon.m_iconType != InvalidIcon) |
| 4667 iconURLs.append(firstTouchPrecomposedIcon); | 4667 iconURLs.append(firstTouchPrecomposedIcon); |
| 4668 for (int i = secondaryIcons.size() - 1; i >= 0; --i) | 4668 for (int i = secondaryIcons.size() - 1; i >= 0; --i) |
| 4669 iconURLs.append(secondaryIcons[i]); | 4669 iconURLs.append(secondaryIcons[i]); |
| 4670 return iconURLs; | 4670 return iconURLs; |
| 4671 } | 4671 } |
| 4672 | 4672 |
| 4673 KURL Document::manifestURL() |
| 4674 { |
| 4675 // The first link element with a manifest rel must be used. Others are ignor
ed. |
| 4676 for (HTMLLinkElement* linkElement = head() ? Traversal<HTMLLinkElement>::fir
stChild(*head()) : 0; linkElement; linkElement = Traversal<HTMLLinkElement>::nex
tSibling(*linkElement)) { |
| 4677 if (!linkElement->relAttribute().isManifest()) |
| 4678 continue; |
| 4679 return linkElement->href(); |
| 4680 } |
| 4681 |
| 4682 return KURL(); |
| 4683 } |
| 4684 |
| 4673 void Document::setUseSecureKeyboardEntryWhenActive(bool usesSecureKeyboard) | 4685 void Document::setUseSecureKeyboardEntryWhenActive(bool usesSecureKeyboard) |
| 4674 { | 4686 { |
| 4675 if (m_useSecureKeyboardEntryWhenActive == usesSecureKeyboard) | 4687 if (m_useSecureKeyboardEntryWhenActive == usesSecureKeyboard) |
| 4676 return; | 4688 return; |
| 4677 | 4689 |
| 4678 m_useSecureKeyboardEntryWhenActive = usesSecureKeyboard; | 4690 m_useSecureKeyboardEntryWhenActive = usesSecureKeyboard; |
| 4679 m_frame->selection().updateSecureKeyboardEntryIfActive(); | 4691 m_frame->selection().updateSecureKeyboardEntryIfActive(); |
| 4680 } | 4692 } |
| 4681 | 4693 |
| 4682 bool Document::useSecureKeyboardEntryWhenActive() const | 4694 bool Document::useSecureKeyboardEntryWhenActive() const |
| (...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5672 visitor->trace(m_mediaQueryMatcher); | 5684 visitor->trace(m_mediaQueryMatcher); |
| 5673 visitor->trace(m_visibilityObservers); | 5685 visitor->trace(m_visibilityObservers); |
| 5674 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); | 5686 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); |
| 5675 DocumentSupplementable::trace(visitor); | 5687 DocumentSupplementable::trace(visitor); |
| 5676 TreeScope::trace(visitor); | 5688 TreeScope::trace(visitor); |
| 5677 ContainerNode::trace(visitor); | 5689 ContainerNode::trace(visitor); |
| 5678 ExecutionContext::trace(visitor); | 5690 ExecutionContext::trace(visitor); |
| 5679 } | 5691 } |
| 5680 | 5692 |
| 5681 } // namespace WebCore | 5693 } // namespace WebCore |
| OLD | NEW |