| 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 4917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4928 iconURLs.append(firstTouchPrecomposedIcon); | 4928 iconURLs.append(firstTouchPrecomposedIcon); |
| 4929 for (int i = secondaryIcons.size() - 1; i >= 0; --i) | 4929 for (int i = secondaryIcons.size() - 1; i >= 0; --i) |
| 4930 iconURLs.append(secondaryIcons[i]); | 4930 iconURLs.append(secondaryIcons[i]); |
| 4931 return iconURLs; | 4931 return iconURLs; |
| 4932 } | 4932 } |
| 4933 | 4933 |
| 4934 Color Document::themeColor() const | 4934 Color Document::themeColor() const |
| 4935 { | 4935 { |
| 4936 for (HTMLMetaElement* metaElement = head() ? Traversal<HTMLMetaElement>::fir
stChild(*head()) : 0; metaElement; metaElement = Traversal<HTMLMetaElement>::nex
tSibling(*metaElement)) { | 4936 for (HTMLMetaElement* metaElement = head() ? Traversal<HTMLMetaElement>::fir
stChild(*head()) : 0; metaElement; metaElement = Traversal<HTMLMetaElement>::nex
tSibling(*metaElement)) { |
| 4937 Color color = Color::transparent; | 4937 Color color = Color::transparent; |
| 4938 if (equalIgnoringCase(metaElement->name(), "theme-color") && CSSParser::
parseColor(color, metaElement->content().getString().stripWhiteSpace(), true)) | 4938 if (equalIgnoringCase(metaElement->name(), "theme-color") && CSSParser::
parseColor(color, metaElement->content().getString().stripWhiteSpace(), nullptr,
true)) |
| 4939 return color; | 4939 return color; |
| 4940 } | 4940 } |
| 4941 return Color(); | 4941 return Color(); |
| 4942 } | 4942 } |
| 4943 | 4943 |
| 4944 HTMLLinkElement* Document::linkManifest() const | 4944 HTMLLinkElement* Document::linkManifest() const |
| 4945 { | 4945 { |
| 4946 HTMLHeadElement* head = this->head(); | 4946 HTMLHeadElement* head = this->head(); |
| 4947 if (!head) | 4947 if (!head) |
| 4948 return 0; | 4948 return 0; |
| (...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6045 #ifndef NDEBUG | 6045 #ifndef NDEBUG |
| 6046 using namespace blink; | 6046 using namespace blink; |
| 6047 void showLiveDocumentInstances() | 6047 void showLiveDocumentInstances() |
| 6048 { | 6048 { |
| 6049 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 6049 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
| 6050 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6050 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6051 for (Document* document : set) | 6051 for (Document* document : set) |
| 6052 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6052 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
| 6053 } | 6053 } |
| 6054 #endif | 6054 #endif |
| OLD | NEW |