| 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 4534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4545 | 4545 |
| 4546 KURL cookieURL = this->cookieURL(); | 4546 KURL cookieURL = this->cookieURL(); |
| 4547 if (cookieURL.isEmpty()) | 4547 if (cookieURL.isEmpty()) |
| 4548 return; | 4548 return; |
| 4549 | 4549 |
| 4550 setCookies(this, cookieURL, value); | 4550 setCookies(this, cookieURL, value); |
| 4551 } | 4551 } |
| 4552 | 4552 |
| 4553 const AtomicString& Document::referrer() const { | 4553 const AtomicString& Document::referrer() const { |
| 4554 if (loader()) | 4554 if (loader()) |
| 4555 return loader()->request().httpReferrer(); | 4555 return loader()->getRequest().httpReferrer(); |
| 4556 return nullAtom; | 4556 return nullAtom; |
| 4557 } | 4557 } |
| 4558 | 4558 |
| 4559 String Document::domain() const { | 4559 String Document::domain() const { |
| 4560 return getSecurityOrigin()->domain(); | 4560 return getSecurityOrigin()->domain(); |
| 4561 } | 4561 } |
| 4562 | 4562 |
| 4563 void Document::setDomain(const String& rawDomain, | 4563 void Document::setDomain(const String& rawDomain, |
| 4564 ExceptionState& exceptionState) { | 4564 ExceptionState& exceptionState) { |
| 4565 UseCounter::count(*this, UseCounter::DocumentSetDomain); | 4565 UseCounter::count(*this, UseCounter::DocumentSetDomain); |
| (...skipping 2006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6572 } | 6572 } |
| 6573 | 6573 |
| 6574 void showLiveDocumentInstances() { | 6574 void showLiveDocumentInstances() { |
| 6575 WeakDocumentSet& set = liveDocumentSet(); | 6575 WeakDocumentSet& set = liveDocumentSet(); |
| 6576 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6576 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6577 for (Document* document : set) | 6577 for (Document* document : set) |
| 6578 fprintf(stderr, "- Document %p URL: %s\n", document, | 6578 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 6579 document->url().getString().utf8().data()); | 6579 document->url().getString().utf8().data()); |
| 6580 } | 6580 } |
| 6581 #endif | 6581 #endif |
| OLD | NEW |