| 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 5744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5755 | 5755 |
| 5756 frame()->page()->chromeClient().didAssociateFormControls(associatedFormContr
ols, frame()); | 5756 frame()->page()->chromeClient().didAssociateFormControls(associatedFormContr
ols, frame()); |
| 5757 m_associatedFormControls.clear(); | 5757 m_associatedFormControls.clear(); |
| 5758 } | 5758 } |
| 5759 | 5759 |
| 5760 float Document::devicePixelRatio() const | 5760 float Document::devicePixelRatio() const |
| 5761 { | 5761 { |
| 5762 return m_frame ? m_frame->devicePixelRatio() : 1.0; | 5762 return m_frame ? m_frame->devicePixelRatio() : 1.0; |
| 5763 } | 5763 } |
| 5764 | 5764 |
| 5765 void Document::removedStyleSheet(StyleSheet* sheet, StyleResolverUpdateMode upda
teMode) | |
| 5766 { | |
| 5767 // If we're in document teardown, then we don't need this notification of ou
r sheet's removal. | |
| 5768 // resolverChanged() is needed even when the document is inactive so that im
ported documents | |
| 5769 // (which are inactive) notify the change to the master document. | |
| 5770 if (isActive()) | |
| 5771 styleEngine().modifiedStyleSheet(sheet); | |
| 5772 styleEngine().resolverChanged(updateMode); | |
| 5773 } | |
| 5774 | |
| 5775 void Document::modifiedStyleSheet(StyleSheet* sheet, StyleResolverUpdateMode upd
ateMode) | |
| 5776 { | |
| 5777 // If we're in document teardown, then we don't need this notification of ou
r sheet's removal. | |
| 5778 // resolverChanged() is needed even when the document is inactive so that im
ported documents | |
| 5779 // (which are inactive) notify the change to the master document. | |
| 5780 if (isActive()) | |
| 5781 styleEngine().modifiedStyleSheet(sheet); | |
| 5782 styleEngine().resolverChanged(updateMode); | |
| 5783 } | |
| 5784 | |
| 5785 TextAutosizer* Document::textAutosizer() | 5765 TextAutosizer* Document::textAutosizer() |
| 5786 { | 5766 { |
| 5787 if (!m_textAutosizer) | 5767 if (!m_textAutosizer) |
| 5788 m_textAutosizer = TextAutosizer::create(this); | 5768 m_textAutosizer = TextAutosizer::create(this); |
| 5789 return m_textAutosizer.get(); | 5769 return m_textAutosizer.get(); |
| 5790 } | 5770 } |
| 5791 | 5771 |
| 5792 void Document::setAutofocusElement(Element* element) | 5772 void Document::setAutofocusElement(Element* element) |
| 5793 { | 5773 { |
| 5794 if (!element) { | 5774 if (!element) { |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6034 #ifndef NDEBUG | 6014 #ifndef NDEBUG |
| 6035 using namespace blink; | 6015 using namespace blink; |
| 6036 void showLiveDocumentInstances() | 6016 void showLiveDocumentInstances() |
| 6037 { | 6017 { |
| 6038 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 6018 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
| 6039 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6019 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6040 for (Document* document : set) | 6020 for (Document* document : set) |
| 6041 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6021 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
| 6042 } | 6022 } |
| 6043 #endif | 6023 #endif |
| OLD | NEW |