| 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 3181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3192 frame = toLocalFrame(frame->tree().parent()); | 3192 frame = toLocalFrame(frame->tree().parent()); |
| 3193 // Srcdoc documents cannot be top-level documents, by definition, | 3193 // Srcdoc documents cannot be top-level documents, by definition, |
| 3194 // because they need to be contained in iframes with the srcdoc. | 3194 // because they need to be contained in iframes with the srcdoc. |
| 3195 ASSERT(frame); | 3195 ASSERT(frame); |
| 3196 } | 3196 } |
| 3197 referrerDocument = frame->document(); | 3197 referrerDocument = frame->document(); |
| 3198 } | 3198 } |
| 3199 return referrerDocument->m_url.strippedForUseAsReferrer(); | 3199 return referrerDocument->m_url.strippedForUseAsReferrer(); |
| 3200 } | 3200 } |
| 3201 | 3201 |
| 3202 String Document::outgoingOrigin() const | |
| 3203 { | |
| 3204 return securityOrigin()->toString(); | |
| 3205 } | |
| 3206 | |
| 3207 MouseEventWithHitTestResults Document::prepareMouseEvent(const HitTestRequest& r
equest, const LayoutPoint& documentPoint, const PlatformMouseEvent& event) | 3202 MouseEventWithHitTestResults Document::prepareMouseEvent(const HitTestRequest& r
equest, const LayoutPoint& documentPoint, const PlatformMouseEvent& event) |
| 3208 { | 3203 { |
| 3209 ASSERT(!layoutView() || layoutView()->isLayoutView()); | 3204 ASSERT(!layoutView() || layoutView()->isLayoutView()); |
| 3210 | 3205 |
| 3211 // LayoutView::hitTest causes a layout, and we don't want to hit that until
the first | 3206 // LayoutView::hitTest causes a layout, and we don't want to hit that until
the first |
| 3212 // layout because until then, there is nothing shown on the screen - the use
r can't | 3207 // layout because until then, there is nothing shown on the screen - the use
r can't |
| 3213 // have intentionally clicked on something belonging to this page. Furthermo
re, | 3208 // have intentionally clicked on something belonging to this page. Furthermo
re, |
| 3214 // mousemove events before the first layout should not lead to a premature l
ayout() | 3209 // mousemove events before the first layout should not lead to a premature l
ayout() |
| 3215 // happening, which could show a flash of white. | 3210 // happening, which could show a flash of white. |
| 3216 // See also the similar code in EventHandler::hitTestResultAtPoint. | 3211 // See also the similar code in EventHandler::hitTestResultAtPoint. |
| (...skipping 2783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6000 #ifndef NDEBUG | 5995 #ifndef NDEBUG |
| 6001 using namespace blink; | 5996 using namespace blink; |
| 6002 void showLiveDocumentInstances() | 5997 void showLiveDocumentInstances() |
| 6003 { | 5998 { |
| 6004 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5999 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
| 6005 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6000 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6006 for (Document* document : set) | 6001 for (Document* document : set) |
| 6007 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 6002 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
| 6008 } | 6003 } |
| 6009 #endif | 6004 #endif |
| OLD | NEW |