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 2885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2896 | 2896 |
2897 void Document::executeScriptsWaitingForResourcesIfNeeded() | 2897 void Document::executeScriptsWaitingForResourcesIfNeeded() |
2898 { | 2898 { |
2899 if (!haveStylesheetsAndImportsLoaded()) | 2899 if (!haveStylesheetsAndImportsLoaded()) |
2900 return; | 2900 return; |
2901 if (ScriptableDocumentParser* parser = scriptableDocumentParser()) | 2901 if (ScriptableDocumentParser* parser = scriptableDocumentParser()) |
2902 parser->executeScriptsWaitingForResources(); | 2902 parser->executeScriptsWaitingForResources(); |
2903 } | 2903 } |
2904 | 2904 |
2905 | 2905 |
2906 CSSStyleSheet* Document::elementSheet() | 2906 CSSStyleSheet& Document::elementSheet() |
2907 { | 2907 { |
2908 if (!m_elemSheet) | 2908 if (!m_elemSheet) |
2909 m_elemSheet = CSSStyleSheet::createInline(this, m_baseURL); | 2909 m_elemSheet = CSSStyleSheet::createInline(this, m_baseURL); |
2910 return m_elemSheet.get(); | 2910 return *m_elemSheet; |
2911 } | 2911 } |
2912 | 2912 |
2913 void Document::processHttpEquiv(const AtomicString& equiv, const AtomicString& c
ontent, bool inDocumentHeadElement) | 2913 void Document::processHttpEquiv(const AtomicString& equiv, const AtomicString& c
ontent, bool inDocumentHeadElement) |
2914 { | 2914 { |
2915 ASSERT(!equiv.isNull() && !content.isNull()); | 2915 ASSERT(!equiv.isNull() && !content.isNull()); |
2916 | 2916 |
2917 if (equalIgnoringCase(equiv, "default-style")) { | 2917 if (equalIgnoringCase(equiv, "default-style")) { |
2918 processHttpEquivDefaultStyle(content); | 2918 processHttpEquivDefaultStyle(content); |
2919 } else if (equalIgnoringCase(equiv, "refresh")) { | 2919 } else if (equalIgnoringCase(equiv, "refresh")) { |
2920 processHttpEquivRefresh(content); | 2920 processHttpEquivRefresh(content); |
(...skipping 2517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5438 void Document::defaultEventHandler(Event* event) | 5438 void Document::defaultEventHandler(Event* event) |
5439 { | 5439 { |
5440 if (frame() && frame()->remotePlatformLayer()) { | 5440 if (frame() && frame()->remotePlatformLayer()) { |
5441 frame()->chromeClient().forwardInputEvent(this, event); | 5441 frame()->chromeClient().forwardInputEvent(this, event); |
5442 return; | 5442 return; |
5443 } | 5443 } |
5444 Node::defaultEventHandler(event); | 5444 Node::defaultEventHandler(event); |
5445 } | 5445 } |
5446 | 5446 |
5447 } // namespace WebCore | 5447 } // namespace WebCore |
OLD | NEW |