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 5718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5729 | 5729 |
5730 return false; | 5730 return false; |
5731 } | 5731 } |
5732 | 5732 |
5733 void Document::invalidateNodeListCaches(const QualifiedName* attrName) | 5733 void Document::invalidateNodeListCaches(const QualifiedName* attrName) |
5734 { | 5734 { |
5735 for (const LiveNodeListBase* list : m_listsInvalidatedAtDocument) | 5735 for (const LiveNodeListBase* list : m_listsInvalidatedAtDocument) |
5736 list->invalidateCacheForAttribute(attrName); | 5736 list->invalidateCacheForAttribute(attrName); |
5737 } | 5737 } |
5738 | 5738 |
| 5739 void Document::platformColorsChanged() |
| 5740 { |
| 5741 if (!isActive()) |
| 5742 return; |
| 5743 |
| 5744 styleEngine()->platformColorsChanged(); |
| 5745 } |
| 5746 |
5739 void Document::clearWeakMembers(Visitor* visitor) | 5747 void Document::clearWeakMembers(Visitor* visitor) |
5740 { | 5748 { |
5741 if (m_axObjectCache) | 5749 if (m_axObjectCache) |
5742 m_axObjectCache->clearWeakMembers(visitor); | 5750 m_axObjectCache->clearWeakMembers(visitor); |
5743 } | 5751 } |
5744 | 5752 |
5745 v8::Handle<v8::Object> Document::wrap(v8::Handle<v8::Object> creationContext, v8
::Isolate* isolate) | 5753 v8::Handle<v8::Object> Document::wrap(v8::Handle<v8::Object> creationContext, v8
::Isolate* isolate) |
5746 { | 5754 { |
5747 // It's possible that no one except for the new wrapper owns this object at | 5755 // It's possible that no one except for the new wrapper owns this object at |
5748 // this moment, so we have to prevent GC to collect this object until the | 5756 // this moment, so we have to prevent GC to collect this object until the |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5841 #ifndef NDEBUG | 5849 #ifndef NDEBUG |
5842 using namespace blink; | 5850 using namespace blink; |
5843 void showLiveDocumentInstances() | 5851 void showLiveDocumentInstances() |
5844 { | 5852 { |
5845 WeakDocumentSet& set = liveDocumentSet(); | 5853 WeakDocumentSet& set = liveDocumentSet(); |
5846 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5854 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5847 for (Document* document : set) | 5855 for (Document* document : set) |
5848 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5856 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5849 } | 5857 } |
5850 #endif | 5858 #endif |
OLD | NEW |