| 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 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1415 return m_frame ? m_frame->page() : nullptr; | 1415 return m_frame ? m_frame->page() : nullptr; |
| 1416 } | 1416 } |
| 1417 | 1417 |
| 1418 FrameHost* Document::frameHost() const | 1418 FrameHost* Document::frameHost() const |
| 1419 { | 1419 { |
| 1420 return m_frame ? m_frame->host() : nullptr; | 1420 return m_frame ? m_frame->host() : nullptr; |
| 1421 } | 1421 } |
| 1422 | 1422 |
| 1423 Settings* Document::settings() const | 1423 Settings* Document::settings() const |
| 1424 { | 1424 { |
| 1425 return m_frame ? m_frame->settings() : nullptr; | 1425 if (m_frame) |
| 1426 return m_frame->settings(); |
| 1427 if (!m_defaultSettings) |
| 1428 m_defaultSettings = Settings::create(); |
| 1429 return m_defaultSettings.get(); |
| 1426 } | 1430 } |
| 1427 | 1431 |
| 1428 Range* Document::createRange() | 1432 Range* Document::createRange() |
| 1429 { | 1433 { |
| 1430 return Range::create(*this); | 1434 return Range::create(*this); |
| 1431 } | 1435 } |
| 1432 | 1436 |
| 1433 NodeIterator* Document::createNodeIterator(Node* root, unsigned whatToShow, Node
Filter* filter) | 1437 NodeIterator* Document::createNodeIterator(Node* root, unsigned whatToShow, Node
Filter* filter) |
| 1434 { | 1438 { |
| 1435 DCHECK(root); | 1439 DCHECK(root); |
| (...skipping 4653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6089 } | 6093 } |
| 6090 | 6094 |
| 6091 void showLiveDocumentInstances() | 6095 void showLiveDocumentInstances() |
| 6092 { | 6096 { |
| 6093 WeakDocumentSet& set = liveDocumentSet(); | 6097 WeakDocumentSet& set = liveDocumentSet(); |
| 6094 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6098 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6095 for (Document* document : set) | 6099 for (Document* document : set) |
| 6096 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6100 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
| 6097 } | 6101 } |
| 6098 #endif | 6102 #endif |
| OLD | NEW |