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 2436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2447 bool usesRemUnits = m_elemSheet->contents()->usesRemUnits(); | 2447 bool usesRemUnits = m_elemSheet->contents()->usesRemUnits(); |
2448 m_elemSheet = CSSStyleSheet::createInline(this, m_baseURL); | 2448 m_elemSheet = CSSStyleSheet::createInline(this, m_baseURL); |
2449 // FIXME: So we are not really the parser. The right fix is to eliminate
the element sheet completely. | 2449 // FIXME: So we are not really the parser. The right fix is to eliminate
the element sheet completely. |
2450 m_elemSheet->contents()->parserSetUsesRemUnits(usesRemUnits); | 2450 m_elemSheet->contents()->parserSetUsesRemUnits(usesRemUnits); |
2451 } | 2451 } |
2452 | 2452 |
2453 if (!equalIgnoringFragmentIdentifier(oldBaseURL, m_baseURL)) { | 2453 if (!equalIgnoringFragmentIdentifier(oldBaseURL, m_baseURL)) { |
2454 // Base URL change changes any relative visited links. | 2454 // Base URL change changes any relative visited links. |
2455 // 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. | 2455 // 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. |
2456 for (Element* element = ElementTraversal::firstWithin(this); element; el
ement = ElementTraversal::next(element)) { | 2456 for (Element* element = ElementTraversal::firstWithin(this); element; el
ement = ElementTraversal::next(element)) { |
2457 if (element->hasTagName(aTag)) | 2457 if (isHTMLAnchorElement(element)) |
2458 static_cast<HTMLAnchorElement*>(element)->invalidateCachedVisite
dLinkHash(); | 2458 toHTMLAnchorElement(element)->invalidateCachedVisitedLinkHash(); |
2459 } | 2459 } |
2460 } | 2460 } |
2461 } | 2461 } |
2462 | 2462 |
2463 void Document::setBaseURLOverride(const KURL& url) | 2463 void Document::setBaseURLOverride(const KURL& url) |
2464 { | 2464 { |
2465 m_baseURLOverride = url; | 2465 m_baseURLOverride = url; |
2466 updateBaseURL(); | 2466 updateBaseURL(); |
2467 } | 2467 } |
2468 | 2468 |
(...skipping 2668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5137 { | 5137 { |
5138 return DocumentLifecycleNotifier::create(this); | 5138 return DocumentLifecycleNotifier::create(this); |
5139 } | 5139 } |
5140 | 5140 |
5141 DocumentLifecycleNotifier* Document::lifecycleNotifier() | 5141 DocumentLifecycleNotifier* Document::lifecycleNotifier() |
5142 { | 5142 { |
5143 return static_cast<DocumentLifecycleNotifier*>(ScriptExecutionContext::lifec
ycleNotifier()); | 5143 return static_cast<DocumentLifecycleNotifier*>(ScriptExecutionContext::lifec
ycleNotifier()); |
5144 } | 5144 } |
5145 | 5145 |
5146 } // namespace WebCore | 5146 } // namespace WebCore |
OLD | NEW |