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 3345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3356 frame = toLocalFrame(frame->tree().parent()); | 3356 frame = toLocalFrame(frame->tree().parent()); |
3357 // Srcdoc documents cannot be top-level documents, by definition, | 3357 // Srcdoc documents cannot be top-level documents, by definition, |
3358 // because they need to be contained in iframes with the srcdoc. | 3358 // because they need to be contained in iframes with the srcdoc. |
3359 DCHECK(frame); | 3359 DCHECK(frame); |
3360 } | 3360 } |
3361 referrerDocument = frame->document(); | 3361 referrerDocument = frame->document(); |
3362 } | 3362 } |
3363 return referrerDocument->m_url.strippedForUseAsReferrer(); | 3363 return referrerDocument->m_url.strippedForUseAsReferrer(); |
3364 } | 3364 } |
3365 | 3365 |
3366 MouseEventWithHitTestResults Document::prepareMouseEvent( | 3366 MouseEventWithHitTestResults Document::performMouseEventHitTest( |
3367 const HitTestRequest& request, | 3367 const HitTestRequest& request, |
3368 const LayoutPoint& documentPoint, | 3368 const LayoutPoint& documentPoint, |
3369 const PlatformMouseEvent& event) { | 3369 const PlatformMouseEvent& event) { |
3370 DCHECK(layoutViewItem().isNull() || layoutViewItem().isLayoutView()); | 3370 DCHECK(layoutViewItem().isNull() || layoutViewItem().isLayoutView()); |
3371 | 3371 |
3372 // LayoutView::hitTest causes a layout, and we don't want to hit that until | 3372 // LayoutView::hitTest causes a layout, and we don't want to hit that until |
3373 // the first layout because until then, there is nothing shown on the screen - | 3373 // the first layout because until then, there is nothing shown on the screen - |
3374 // the user can't have intentionally clicked on something belonging to this | 3374 // the user can't have intentionally clicked on something belonging to this |
3375 // page. Furthermore, mousemove events before the first layout should not | 3375 // page. Furthermore, mousemove events before the first layout should not |
3376 // lead to a premature layout() happening, which could show a flash of white. | 3376 // lead to a premature layout() happening, which could show a flash of white. |
(...skipping 2992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6369 } | 6369 } |
6370 | 6370 |
6371 void showLiveDocumentInstances() { | 6371 void showLiveDocumentInstances() { |
6372 WeakDocumentSet& set = liveDocumentSet(); | 6372 WeakDocumentSet& set = liveDocumentSet(); |
6373 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6373 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6374 for (Document* document : set) | 6374 for (Document* document : set) |
6375 fprintf(stderr, "- Document %p URL: %s\n", document, | 6375 fprintf(stderr, "- Document %p URL: %s\n", document, |
6376 document->url().getString().utf8().data()); | 6376 document->url().getString().utf8().data()); |
6377 } | 6377 } |
6378 #endif | 6378 #endif |
OLD | NEW |