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 3285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3296 } | 3296 } |
3297 | 3297 |
3298 EventTarget* Document::errorEventTarget() { | 3298 EventTarget* Document::errorEventTarget() { |
3299 return domWindow(); | 3299 return domWindow(); |
3300 } | 3300 } |
3301 | 3301 |
3302 void Document::exceptionThrown(ErrorEvent* event) { | 3302 void Document::exceptionThrown(ErrorEvent* event) { |
3303 MainThreadDebugger::instance()->exceptionThrown(this, event); | 3303 MainThreadDebugger::instance()->exceptionThrown(this, event); |
3304 } | 3304 } |
3305 | 3305 |
| 3306 KURL Document::urlForBinding() { |
| 3307 if (!url().isNull()) { |
| 3308 return url(); |
| 3309 } |
| 3310 return blankURL(); |
| 3311 } |
| 3312 |
3306 void Document::setURL(const KURL& url) { | 3313 void Document::setURL(const KURL& url) { |
3307 const KURL& newURL = url.isEmpty() ? blankURL() : url; | 3314 const KURL& newURL = url.isEmpty() ? blankURL() : url; |
3308 if (newURL == m_url) | 3315 if (newURL == m_url) |
3309 return; | 3316 return; |
3310 | 3317 |
3311 m_url = newURL; | 3318 m_url = newURL; |
3312 m_accessEntryFromURL = nullptr; | 3319 m_accessEntryFromURL = nullptr; |
3313 updateBaseURL(); | 3320 updateBaseURL(); |
3314 contextFeatures().urlDidChange(this); | 3321 contextFeatures().urlDidChange(this); |
3315 } | 3322 } |
(...skipping 3338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6654 } | 6661 } |
6655 | 6662 |
6656 void showLiveDocumentInstances() { | 6663 void showLiveDocumentInstances() { |
6657 WeakDocumentSet& set = liveDocumentSet(); | 6664 WeakDocumentSet& set = liveDocumentSet(); |
6658 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6665 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6659 for (blink::Document* document : set) | 6666 for (blink::Document* document : set) |
6660 fprintf(stderr, "- Document %p URL: %s\n", document, | 6667 fprintf(stderr, "- Document %p URL: %s\n", document, |
6661 document->url().getString().utf8().data()); | 6668 document->url().getString().utf8().data()); |
6662 } | 6669 } |
6663 #endif | 6670 #endif |
OLD | NEW |