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 2798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2809 ASSERT(!m_elemSheet->contents()->ruleCount()); | 2809 ASSERT(!m_elemSheet->contents()->ruleCount()); |
2810 bool usesRemUnits = m_elemSheet->contents()->usesRemUnits(); | 2810 bool usesRemUnits = m_elemSheet->contents()->usesRemUnits(); |
2811 m_elemSheet = CSSStyleSheet::createInline(this, m_baseURL); | 2811 m_elemSheet = CSSStyleSheet::createInline(this, m_baseURL); |
2812 // FIXME: So we are not really the parser. The right fix is to eliminate
the element sheet completely. | 2812 // FIXME: So we are not really the parser. The right fix is to eliminate
the element sheet completely. |
2813 m_elemSheet->contents()->parserSetUsesRemUnits(usesRemUnits); | 2813 m_elemSheet->contents()->parserSetUsesRemUnits(usesRemUnits); |
2814 } | 2814 } |
2815 | 2815 |
2816 if (!equalIgnoringFragmentIdentifier(oldBaseURL, m_baseURL)) { | 2816 if (!equalIgnoringFragmentIdentifier(oldBaseURL, m_baseURL)) { |
2817 // Base URL change changes any relative visited links. | 2817 // Base URL change changes any relative visited links. |
2818 // 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. | 2818 // 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. |
2819 for (HTMLAnchorElement& anchor : Traversal<HTMLAnchorElement>::fromNext(
*this)) | 2819 for (HTMLAnchorElement& anchor : Traversal<HTMLAnchorElement>::startsAft
er(*this)) |
2820 anchor.invalidateCachedVisitedLinkHash(); | 2820 anchor.invalidateCachedVisitedLinkHash(); |
2821 } | 2821 } |
2822 } | 2822 } |
2823 | 2823 |
2824 void Document::setBaseURLOverride(const KURL& url) | 2824 void Document::setBaseURLOverride(const KURL& url) |
2825 { | 2825 { |
2826 m_baseURLOverride = url; | 2826 m_baseURLOverride = url; |
2827 updateBaseURL(); | 2827 updateBaseURL(); |
2828 } | 2828 } |
2829 | 2829 |
(...skipping 2993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5823 #ifndef NDEBUG | 5823 #ifndef NDEBUG |
5824 using namespace blink; | 5824 using namespace blink; |
5825 void showLiveDocumentInstances() | 5825 void showLiveDocumentInstances() |
5826 { | 5826 { |
5827 WeakDocumentSet& set = liveDocumentSet(); | 5827 WeakDocumentSet& set = liveDocumentSet(); |
5828 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5828 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5829 for (Document* document : set) | 5829 for (Document* document : set) |
5830 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5830 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5831 } | 5831 } |
5832 #endif | 5832 #endif |
OLD | NEW |