| 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 3853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3864 if (frame()->loader()->state() != FrameStateComplete) | 3864 if (frame()->loader()->state() != FrameStateComplete) |
| 3865 return KURL(); | 3865 return KURL(); |
| 3866 | 3866 |
| 3867 if (!head()) | 3867 if (!head()) |
| 3868 return KURL(); | 3868 return KURL(); |
| 3869 | 3869 |
| 3870 RefPtr<HTMLCollection> children = head()->children(); | 3870 RefPtr<HTMLCollection> children = head()->children(); |
| 3871 for (unsigned i = 0; Node* child = children->item(i); i++) { | 3871 for (unsigned i = 0; Node* child = children->item(i); i++) { |
| 3872 if (!child->hasTagName(linkTag)) | 3872 if (!child->hasTagName(linkTag)) |
| 3873 continue; | 3873 continue; |
| 3874 HTMLLinkElement* linkElement = static_cast<HTMLLinkElement*>(child); | 3874 HTMLLinkElement* linkElement = toHTMLLinkElement(child); |
| 3875 if (!equalIgnoringCase(linkElement->type(), openSearchMIMEType) || !equa
lIgnoringCase(linkElement->rel(), openSearchRelation)) | 3875 if (!equalIgnoringCase(linkElement->type(), openSearchMIMEType) || !equa
lIgnoringCase(linkElement->rel(), openSearchRelation)) |
| 3876 continue; | 3876 continue; |
| 3877 if (linkElement->href().isEmpty()) | 3877 if (linkElement->href().isEmpty()) |
| 3878 continue; | 3878 continue; |
| 3879 return linkElement->href(); | 3879 return linkElement->href(); |
| 3880 } | 3880 } |
| 3881 | 3881 |
| 3882 return KURL(); | 3882 return KURL(); |
| 3883 } | 3883 } |
| 3884 | 3884 |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4134 | 4134 |
| 4135 if (!head() || !(head()->children())) | 4135 if (!head() || !(head()->children())) |
| 4136 return m_iconURLs; | 4136 return m_iconURLs; |
| 4137 | 4137 |
| 4138 RefPtr<HTMLCollection> children = head()->children(); | 4138 RefPtr<HTMLCollection> children = head()->children(); |
| 4139 unsigned int length = children->length(); | 4139 unsigned int length = children->length(); |
| 4140 for (unsigned int i = 0; i < length; ++i) { | 4140 for (unsigned int i = 0; i < length; ++i) { |
| 4141 Node* child = children->item(i); | 4141 Node* child = children->item(i); |
| 4142 if (!child->hasTagName(linkTag)) | 4142 if (!child->hasTagName(linkTag)) |
| 4143 continue; | 4143 continue; |
| 4144 HTMLLinkElement* linkElement = static_cast<HTMLLinkElement*>(child); | 4144 HTMLLinkElement* linkElement = toHTMLLinkElement(child); |
| 4145 if (!(linkElement->iconType() & iconTypesMask)) | 4145 if (!(linkElement->iconType() & iconTypesMask)) |
| 4146 continue; | 4146 continue; |
| 4147 if (linkElement->href().isEmpty()) | 4147 if (linkElement->href().isEmpty()) |
| 4148 continue; | 4148 continue; |
| 4149 | 4149 |
| 4150 // Put it at the front to ensure that icons seen later take precedence a
s required by the spec. | 4150 // Put it at the front to ensure that icons seen later take precedence a
s required by the spec. |
| 4151 IconURL newURL(linkElement->href(), linkElement->iconSizes(), linkElemen
t->type(), linkElement->iconType()); | 4151 IconURL newURL(linkElement->href(), linkElement->iconSizes(), linkElemen
t->type(), linkElement->iconType()); |
| 4152 m_iconURLs.prepend(newURL); | 4152 m_iconURLs.prepend(newURL); |
| 4153 } | 4153 } |
| 4154 | 4154 |
| (...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5159 { | 5159 { |
| 5160 return DocumentLifecycleNotifier::create(this); | 5160 return DocumentLifecycleNotifier::create(this); |
| 5161 } | 5161 } |
| 5162 | 5162 |
| 5163 DocumentLifecycleNotifier* Document::lifecycleNotifier() | 5163 DocumentLifecycleNotifier* Document::lifecycleNotifier() |
| 5164 { | 5164 { |
| 5165 return static_cast<DocumentLifecycleNotifier*>(ScriptExecutionContext::lifec
ycleNotifier()); | 5165 return static_cast<DocumentLifecycleNotifier*>(ScriptExecutionContext::lifec
ycleNotifier()); |
| 5166 } | 5166 } |
| 5167 | 5167 |
| 5168 } // namespace WebCore | 5168 } // namespace WebCore |
| OLD | NEW |