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 4884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4895 iconURLs.append(firstTouchPrecomposedIcon); | 4895 iconURLs.append(firstTouchPrecomposedIcon); |
4896 for (int i = secondaryIcons.size() - 1; i >= 0; --i) | 4896 for (int i = secondaryIcons.size() - 1; i >= 0; --i) |
4897 iconURLs.append(secondaryIcons[i]); | 4897 iconURLs.append(secondaryIcons[i]); |
4898 return iconURLs; | 4898 return iconURLs; |
4899 } | 4899 } |
4900 | 4900 |
4901 Color Document::themeColor() const | 4901 Color Document::themeColor() const |
4902 { | 4902 { |
4903 for (HTMLMetaElement* metaElement = head() ? Traversal<HTMLMetaElement>::fir
stChild(*head()) : 0; metaElement; metaElement = Traversal<HTMLMetaElement>::nex
tSibling(*metaElement)) { | 4903 for (HTMLMetaElement* metaElement = head() ? Traversal<HTMLMetaElement>::fir
stChild(*head()) : 0; metaElement; metaElement = Traversal<HTMLMetaElement>::nex
tSibling(*metaElement)) { |
4904 Color color = Color::transparent; | 4904 Color color = Color::transparent; |
4905 if (equalIgnoringCase(metaElement->name(), "theme-color") && CSSParser::
parseColor(color, metaElement->content().string().stripWhiteSpace(), true)) | 4905 if (equalIgnoringCase(metaElement->name(), "theme-color") && CSSParser::
parseColor(color, metaElement->content().getString().stripWhiteSpace(), true)) |
4906 return color; | 4906 return color; |
4907 } | 4907 } |
4908 return Color(); | 4908 return Color(); |
4909 } | 4909 } |
4910 | 4910 |
4911 HTMLLinkElement* Document::linkManifest() const | 4911 HTMLLinkElement* Document::linkManifest() const |
4912 { | 4912 { |
4913 HTMLHeadElement* head = this->head(); | 4913 HTMLHeadElement* head = this->head(); |
4914 if (!head) | 4914 if (!head) |
4915 return 0; | 4915 return 0; |
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6034 #ifndef NDEBUG | 6034 #ifndef NDEBUG |
6035 using namespace blink; | 6035 using namespace blink; |
6036 void showLiveDocumentInstances() | 6036 void showLiveDocumentInstances() |
6037 { | 6037 { |
6038 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 6038 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
6039 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6039 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6040 for (Document* document : set) | 6040 for (Document* document : set) |
6041 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6041 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
6042 } | 6042 } |
6043 #endif | 6043 #endif |
OLD | NEW |