| 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 5725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5736 void Document::modifiedStyleSheet(StyleSheet* sheet, StyleResolverUpdateMode upd
ateMode) | 5736 void Document::modifiedStyleSheet(StyleSheet* sheet, StyleResolverUpdateMode upd
ateMode) |
| 5737 { | 5737 { |
| 5738 // If we're in document teardown, then we don't need this notification of ou
r sheet's removal. | 5738 // If we're in document teardown, then we don't need this notification of ou
r sheet's removal. |
| 5739 // resolverChanged() is needed even when the document is inactive so that im
ported documents | 5739 // resolverChanged() is needed even when the document is inactive so that im
ported documents |
| 5740 // (which are inactive) notify the change to the master document. | 5740 // (which are inactive) notify the change to the master document. |
| 5741 if (isActive()) | 5741 if (isActive()) |
| 5742 styleEngine().modifiedStyleSheet(sheet); | 5742 styleEngine().modifiedStyleSheet(sheet); |
| 5743 styleEngine().resolverChanged(updateMode); | 5743 styleEngine().resolverChanged(updateMode); |
| 5744 } | 5744 } |
| 5745 | 5745 |
| 5746 void Document::changedSelectorWatch() | |
| 5747 { | |
| 5748 styleEngine().resolverChanged(FullStyleUpdate); | |
| 5749 } | |
| 5750 | |
| 5751 TextAutosizer* Document::textAutosizer() | 5746 TextAutosizer* Document::textAutosizer() |
| 5752 { | 5747 { |
| 5753 if (!m_textAutosizer) | 5748 if (!m_textAutosizer) |
| 5754 m_textAutosizer = TextAutosizer::create(this); | 5749 m_textAutosizer = TextAutosizer::create(this); |
| 5755 return m_textAutosizer.get(); | 5750 return m_textAutosizer.get(); |
| 5756 } | 5751 } |
| 5757 | 5752 |
| 5758 void Document::setAutofocusElement(Element* element) | 5753 void Document::setAutofocusElement(Element* element) |
| 5759 { | 5754 { |
| 5760 if (!element) { | 5755 if (!element) { |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5995 #ifndef NDEBUG | 5990 #ifndef NDEBUG |
| 5996 using namespace blink; | 5991 using namespace blink; |
| 5997 void showLiveDocumentInstances() | 5992 void showLiveDocumentInstances() |
| 5998 { | 5993 { |
| 5999 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5994 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
| 6000 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5995 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6001 for (Document* document : set) | 5996 for (Document* document : set) |
| 6002 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5997 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
| 6003 } | 5998 } |
| 6004 #endif | 5999 #endif |
| OLD | NEW |