| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "core/animation/AnimationTimeline.h" | 47 #include "core/animation/AnimationTimeline.h" |
| 48 #include "core/animation/DocumentAnimations.h" | 48 #include "core/animation/DocumentAnimations.h" |
| 49 #include "core/css/CSSFontSelector.h" | 49 #include "core/css/CSSFontSelector.h" |
| 50 #include "core/css/CSSStyleDeclaration.h" | 50 #include "core/css/CSSStyleDeclaration.h" |
| 51 #include "core/css/CSSStyleSheet.h" | 51 #include "core/css/CSSStyleSheet.h" |
| 52 #include "core/css/MediaQueryMatcher.h" | 52 #include "core/css/MediaQueryMatcher.h" |
| 53 #include "core/css/StylePropertySet.h" | 53 #include "core/css/StylePropertySet.h" |
| 54 #include "core/css/StyleSheetContents.h" | 54 #include "core/css/StyleSheetContents.h" |
| 55 #include "core/css/StyleSheetList.h" | 55 #include "core/css/StyleSheetList.h" |
| 56 #include "core/css/invalidation/StyleInvalidator.h" | 56 #include "core/css/invalidation/StyleInvalidator.h" |
| 57 #include "core/css/parser/BisonCSSParser.h" | 57 #include "core/css/parser/CSSParser.h" |
| 58 #include "core/css/resolver/FontBuilder.h" | 58 #include "core/css/resolver/FontBuilder.h" |
| 59 #include "core/css/resolver/StyleResolver.h" | 59 #include "core/css/resolver/StyleResolver.h" |
| 60 #include "core/css/resolver/StyleResolverStats.h" | 60 #include "core/css/resolver/StyleResolverStats.h" |
| 61 #include "core/dom/AddConsoleMessageTask.h" | 61 #include "core/dom/AddConsoleMessageTask.h" |
| 62 #include "core/dom/Attr.h" | 62 #include "core/dom/Attr.h" |
| 63 #include "core/dom/CDATASection.h" | 63 #include "core/dom/CDATASection.h" |
| 64 #include "core/dom/Comment.h" | 64 #include "core/dom/Comment.h" |
| 65 #include "core/dom/ContextFeatures.h" | 65 #include "core/dom/ContextFeatures.h" |
| 66 #include "core/dom/DOMImplementation.h" | 66 #include "core/dom/DOMImplementation.h" |
| 67 #include "core/dom/DocumentFragment.h" | 67 #include "core/dom/DocumentFragment.h" |
| (...skipping 4656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4724 return iconURLs; | 4724 return iconURLs; |
| 4725 } | 4725 } |
| 4726 | 4726 |
| 4727 Color Document::themeColor() const | 4727 Color Document::themeColor() const |
| 4728 { | 4728 { |
| 4729 if (!RuntimeEnabledFeatures::themeColorEnabled()) | 4729 if (!RuntimeEnabledFeatures::themeColorEnabled()) |
| 4730 return Color(); | 4730 return Color(); |
| 4731 | 4731 |
| 4732 for (HTMLMetaElement* metaElement = head() ? Traversal<HTMLMetaElement>::fir
stChild(*head()) : 0; metaElement; metaElement = Traversal<HTMLMetaElement>::nex
tSibling(*metaElement)) { | 4732 for (HTMLMetaElement* metaElement = head() ? Traversal<HTMLMetaElement>::fir
stChild(*head()) : 0; metaElement; metaElement = Traversal<HTMLMetaElement>::nex
tSibling(*metaElement)) { |
| 4733 RGBA32 rgb = Color::transparent; | 4733 RGBA32 rgb = Color::transparent; |
| 4734 if (equalIgnoringCase(metaElement->name(), "theme-color") && BisonCSSPar
ser::parseColor(rgb, metaElement->content().string().stripWhiteSpace(), true)) | 4734 if (equalIgnoringCase(metaElement->name(), "theme-color") && CSSParser::
parseColor(rgb, metaElement->content().string().stripWhiteSpace(), true)) |
| 4735 return Color(rgb); | 4735 return Color(rgb); |
| 4736 } | 4736 } |
| 4737 return Color(); | 4737 return Color(); |
| 4738 } | 4738 } |
| 4739 | 4739 |
| 4740 HTMLLinkElement* Document::linkManifest() const | 4740 HTMLLinkElement* Document::linkManifest() const |
| 4741 { | 4741 { |
| 4742 HTMLHeadElement* head = this->head(); | 4742 HTMLHeadElement* head = this->head(); |
| 4743 if (!head) | 4743 if (!head) |
| 4744 return 0; | 4744 return 0; |
| (...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5829 using namespace blink; | 5829 using namespace blink; |
| 5830 void showLiveDocumentInstances() | 5830 void showLiveDocumentInstances() |
| 5831 { | 5831 { |
| 5832 WeakDocumentSet& set = liveDocumentSet(); | 5832 WeakDocumentSet& set = liveDocumentSet(); |
| 5833 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5833 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5834 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 5834 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
| 5835 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 5835 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
| 5836 } | 5836 } |
| 5837 } | 5837 } |
| 5838 #endif | 5838 #endif |
| OLD | NEW |