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 4672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4683 if (firstTouchPrecomposedIcon.m_iconType != InvalidIcon) | 4683 if (firstTouchPrecomposedIcon.m_iconType != InvalidIcon) |
4684 iconURLs.append(firstTouchPrecomposedIcon); | 4684 iconURLs.append(firstTouchPrecomposedIcon); |
4685 for (int i = secondaryIcons.size() - 1; i >= 0; --i) | 4685 for (int i = secondaryIcons.size() - 1; i >= 0; --i) |
4686 iconURLs.append(secondaryIcons[i]); | 4686 iconURLs.append(secondaryIcons[i]); |
4687 return iconURLs; | 4687 return iconURLs; |
4688 } | 4688 } |
4689 | 4689 |
4690 Color Document::themeColor() const | 4690 Color Document::themeColor() const |
4691 { | 4691 { |
4692 for (HTMLMetaElement* metaElement = head() ? Traversal<HTMLMetaElement>::fir
stChild(*head()) : 0; metaElement; metaElement = Traversal<HTMLMetaElement>::nex
tSibling(*metaElement)) { | 4692 for (HTMLMetaElement* metaElement = head() ? Traversal<HTMLMetaElement>::fir
stChild(*head()) : 0; metaElement; metaElement = Traversal<HTMLMetaElement>::nex
tSibling(*metaElement)) { |
4693 RGBA32 rgb = Color::transparent; | 4693 Color color = Color::transparent; |
4694 if (equalIgnoringCase(metaElement->name(), "theme-color") && CSSParser::
parseColor(rgb, metaElement->content().string().stripWhiteSpace(), true)) | 4694 if (equalIgnoringCase(metaElement->name(), "theme-color") && CSSParser::
parseColor(color, metaElement->content().string().stripWhiteSpace(), true)) |
4695 return Color(rgb); | 4695 return color; |
4696 } | 4696 } |
4697 return Color(); | 4697 return Color(); |
4698 } | 4698 } |
4699 | 4699 |
4700 HTMLLinkElement* Document::linkManifest() const | 4700 HTMLLinkElement* Document::linkManifest() const |
4701 { | 4701 { |
4702 HTMLHeadElement* head = this->head(); | 4702 HTMLHeadElement* head = this->head(); |
4703 if (!head) | 4703 if (!head) |
4704 return 0; | 4704 return 0; |
4705 | 4705 |
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5812 #ifndef NDEBUG | 5812 #ifndef NDEBUG |
5813 using namespace blink; | 5813 using namespace blink; |
5814 void showLiveDocumentInstances() | 5814 void showLiveDocumentInstances() |
5815 { | 5815 { |
5816 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5816 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
5817 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5817 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5818 for (Document* document : set) | 5818 for (Document* document : set) |
5819 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5819 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5820 } | 5820 } |
5821 #endif | 5821 #endif |
OLD | NEW |