| 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 5664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5675 void Document::removedStyleSheet(StyleSheet* sheet, StyleResolverUpdateMode upda
teMode) | 5675 void Document::removedStyleSheet(StyleSheet* sheet, StyleResolverUpdateMode upda
teMode) |
| 5676 { | 5676 { |
| 5677 // If we're in document teardown, then we don't need this notification of ou
r sheet's removal. | 5677 // If we're in document teardown, then we don't need this notification of ou
r sheet's removal. |
| 5678 // resolverChanged() is needed even when the document is inactive so that im
ported documents | 5678 // resolverChanged() is needed even when the document is inactive so that im
ported documents |
| 5679 // (which are inactive) notify the change to the master document. | 5679 // (which are inactive) notify the change to the master document. |
| 5680 if (isActive()) | 5680 if (isActive()) |
| 5681 styleEngine().modifiedStyleSheet(sheet); | 5681 styleEngine().modifiedStyleSheet(sheet); |
| 5682 styleEngine().resolverChanged(updateMode); | 5682 styleEngine().resolverChanged(updateMode); |
| 5683 } | 5683 } |
| 5684 | 5684 |
| 5685 void Document::addedStyleSheet(StyleSheet*) | |
| 5686 { | |
| 5687 styleEngine().resolverChanged(FullStyleUpdate); | |
| 5688 } | |
| 5689 | |
| 5690 void Document::modifiedStyleSheet(StyleSheet* sheet, StyleResolverUpdateMode upd
ateMode) | 5685 void Document::modifiedStyleSheet(StyleSheet* sheet, StyleResolverUpdateMode upd
ateMode) |
| 5691 { | 5686 { |
| 5692 // If we're in document teardown, then we don't need this notification of ou
r sheet's removal. | 5687 // If we're in document teardown, then we don't need this notification of ou
r sheet's removal. |
| 5693 // resolverChanged() is needed even when the document is inactive so that im
ported documents | 5688 // resolverChanged() is needed even when the document is inactive so that im
ported documents |
| 5694 // (which are inactive) notify the change to the master document. | 5689 // (which are inactive) notify the change to the master document. |
| 5695 if (isActive()) | 5690 if (isActive()) |
| 5696 styleEngine().modifiedStyleSheet(sheet); | 5691 styleEngine().modifiedStyleSheet(sheet); |
| 5697 styleEngine().resolverChanged(updateMode); | 5692 styleEngine().resolverChanged(updateMode); |
| 5698 } | 5693 } |
| 5699 | 5694 |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5948 #ifndef NDEBUG | 5943 #ifndef NDEBUG |
| 5949 using namespace blink; | 5944 using namespace blink; |
| 5950 void showLiveDocumentInstances() | 5945 void showLiveDocumentInstances() |
| 5951 { | 5946 { |
| 5952 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5947 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
| 5953 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5948 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5954 for (Document* document : set) | 5949 for (Document* document : set) |
| 5955 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5950 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
| 5956 } | 5951 } |
| 5957 #endif | 5952 #endif |
| OLD | NEW |