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 2961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2972 m_baseURL = m_url; | 2972 m_baseURL = m_url; |
2973 | 2973 |
2974 selectorQueryCache().invalidate(); | 2974 selectorQueryCache().invalidate(); |
2975 | 2975 |
2976 if (!m_baseURL.isValid()) | 2976 if (!m_baseURL.isValid()) |
2977 m_baseURL = KURL(); | 2977 m_baseURL = KURL(); |
2978 | 2978 |
2979 if (m_elemSheet) { | 2979 if (m_elemSheet) { |
2980 // Element sheet is silly. It never contains anything. | 2980 // Element sheet is silly. It never contains anything. |
2981 DCHECK(!m_elemSheet->contents()->ruleCount()); | 2981 DCHECK(!m_elemSheet->contents()->ruleCount()); |
2982 m_elemSheet = CSSStyleSheet::createInline(this, m_baseURL); | 2982 m_elemSheet = CSSStyleSheet::createInline(*this, m_baseURL); |
2983 } | 2983 } |
2984 | 2984 |
2985 if (!equalIgnoringFragmentIdentifier(oldBaseURL, m_baseURL)) { | 2985 if (!equalIgnoringFragmentIdentifier(oldBaseURL, m_baseURL)) { |
2986 // Base URL change changes any relative visited links. | 2986 // Base URL change changes any relative visited links. |
2987 // FIXME: There are other URLs in the tree that would need to be re-eval
uated on dynamic base URL change. Style should be invalidated too. | 2987 // FIXME: There are other URLs in the tree that would need to be re-eval
uated on dynamic base URL change. Style should be invalidated too. |
2988 for (HTMLAnchorElement& anchor : Traversal<HTMLAnchorElement>::startsAft
er(*this)) | 2988 for (HTMLAnchorElement& anchor : Traversal<HTMLAnchorElement>::startsAft
er(*this)) |
2989 anchor.invalidateCachedVisitedLinkHash(); | 2989 anchor.invalidateCachedVisitedLinkHash(); |
2990 } | 2990 } |
2991 } | 2991 } |
2992 | 2992 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3087 { | 3087 { |
3088 if (!isScriptExecutionReady()) | 3088 if (!isScriptExecutionReady()) |
3089 return; | 3089 return; |
3090 if (ScriptableDocumentParser* parser = scriptableDocumentParser()) | 3090 if (ScriptableDocumentParser* parser = scriptableDocumentParser()) |
3091 parser->executeScriptsWaitingForResources(); | 3091 parser->executeScriptsWaitingForResources(); |
3092 } | 3092 } |
3093 | 3093 |
3094 CSSStyleSheet& Document::elementSheet() | 3094 CSSStyleSheet& Document::elementSheet() |
3095 { | 3095 { |
3096 if (!m_elemSheet) | 3096 if (!m_elemSheet) |
3097 m_elemSheet = CSSStyleSheet::createInline(this, m_baseURL); | 3097 m_elemSheet = CSSStyleSheet::createInline(*this, m_baseURL); |
3098 return *m_elemSheet; | 3098 return *m_elemSheet; |
3099 } | 3099 } |
3100 | 3100 |
3101 void Document::maybeHandleHttpRefresh(const String& content, HttpRefreshType htt
pRefreshType) | 3101 void Document::maybeHandleHttpRefresh(const String& content, HttpRefreshType htt
pRefreshType) |
3102 { | 3102 { |
3103 if (m_isViewSource || !m_frame) | 3103 if (m_isViewSource || !m_frame) |
3104 return; | 3104 return; |
3105 | 3105 |
3106 double delay; | 3106 double delay; |
3107 String refreshURL; | 3107 String refreshURL; |
(...skipping 2979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6087 } | 6087 } |
6088 | 6088 |
6089 void showLiveDocumentInstances() | 6089 void showLiveDocumentInstances() |
6090 { | 6090 { |
6091 WeakDocumentSet& set = liveDocumentSet(); | 6091 WeakDocumentSet& set = liveDocumentSet(); |
6092 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6092 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6093 for (Document* document : set) | 6093 for (Document* document : set) |
6094 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6094 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
6095 } | 6095 } |
6096 #endif | 6096 #endif |
OLD | NEW |