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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
(...skipping 3287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3298 } | 3298 } |
3299 | 3299 |
3300 EventTarget* Document::errorEventTarget() { | 3300 EventTarget* Document::errorEventTarget() { |
3301 return domWindow(); | 3301 return domWindow(); |
3302 } | 3302 } |
3303 | 3303 |
3304 void Document::exceptionThrown(ErrorEvent* event) { | 3304 void Document::exceptionThrown(ErrorEvent* event) { |
3305 MainThreadDebugger::instance()->exceptionThrown(this, event); | 3305 MainThreadDebugger::instance()->exceptionThrown(this, event); |
3306 } | 3306 } |
3307 | 3307 |
| 3308 KURL Document::urlForBinding() { |
| 3309 if (!url().isNull()) { |
| 3310 return url(); |
| 3311 } |
| 3312 return blankURL(); |
| 3313 } |
| 3314 |
3308 void Document::setURL(const KURL& url) { | 3315 void Document::setURL(const KURL& url) { |
3309 const KURL& newURL = url.isEmpty() ? blankURL() : url; | 3316 const KURL& newURL = url.isEmpty() ? blankURL() : url; |
3310 if (newURL == m_url) | 3317 if (newURL == m_url) |
3311 return; | 3318 return; |
3312 | 3319 |
3313 m_url = newURL; | 3320 m_url = newURL; |
3314 m_accessEntryFromURL = nullptr; | 3321 m_accessEntryFromURL = nullptr; |
3315 updateBaseURL(); | 3322 updateBaseURL(); |
3316 contextFeatures().urlDidChange(this); | 3323 contextFeatures().urlDidChange(this); |
3317 } | 3324 } |
(...skipping 3338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6656 } | 6663 } |
6657 | 6664 |
6658 void showLiveDocumentInstances() { | 6665 void showLiveDocumentInstances() { |
6659 WeakDocumentSet& set = liveDocumentSet(); | 6666 WeakDocumentSet& set = liveDocumentSet(); |
6660 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6667 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6661 for (blink::Document* document : set) | 6668 for (blink::Document* document : set) |
6662 fprintf(stderr, "- Document %p URL: %s\n", document, | 6669 fprintf(stderr, "- Document %p URL: %s\n", document, |
6663 document->url().getString().utf8().data()); | 6670 document->url().getString().utf8().data()); |
6664 } | 6671 } |
6665 #endif | 6672 #endif |
OLD | NEW |