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 3089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3100 { | 3100 { |
3101 ASSERT(!layoutView() || layoutView()->isLayoutView()); | 3101 ASSERT(!layoutView() || layoutView()->isLayoutView()); |
3102 | 3102 |
3103 // LayoutView::hitTest causes a layout, and we don't want to hit that until
the first | 3103 // LayoutView::hitTest causes a layout, and we don't want to hit that until
the first |
3104 // layout because until then, there is nothing shown on the screen - the use
r can't | 3104 // layout because until then, there is nothing shown on the screen - the use
r can't |
3105 // have intentionally clicked on something belonging to this page. Furthermo
re, | 3105 // have intentionally clicked on something belonging to this page. Furthermo
re, |
3106 // mousemove events before the first layout should not lead to a premature l
ayout() | 3106 // mousemove events before the first layout should not lead to a premature l
ayout() |
3107 // happening, which could show a flash of white. | 3107 // happening, which could show a flash of white. |
3108 // See also the similar code in EventHandler::hitTestResultAtPoint. | 3108 // See also the similar code in EventHandler::hitTestResultAtPoint. |
3109 if (!layoutView() || !view() || !view()->didFirstLayout()) | 3109 if (!layoutView() || !view() || !view()->didFirstLayout()) |
3110 return MouseEventWithHitTestResults(event, HitTestResult(LayoutPoint()))
; | 3110 return MouseEventWithHitTestResults(event, HitTestResult(request, Layout
Point())); |
3111 | 3111 |
3112 HitTestResult result(documentPoint); | 3112 HitTestResult result(request, documentPoint); |
3113 layoutView()->hitTest(request, result); | 3113 layoutView()->hitTest(result); |
3114 | 3114 |
3115 if (!request.readOnly()) | 3115 if (!request.readOnly()) |
3116 updateHoverActiveState(request, result.innerElement(), &event); | 3116 updateHoverActiveState(request, result.innerElement(), &event); |
3117 | 3117 |
3118 return MouseEventWithHitTestResults(event, result); | 3118 return MouseEventWithHitTestResults(event, result); |
3119 } | 3119 } |
3120 | 3120 |
3121 // DOM Section 1.1.1 | 3121 // DOM Section 1.1.1 |
3122 bool Document::childTypeAllowed(NodeType type) const | 3122 bool Document::childTypeAllowed(NodeType type) const |
3123 { | 3123 { |
(...skipping 2627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5751 #ifndef NDEBUG | 5751 #ifndef NDEBUG |
5752 using namespace blink; | 5752 using namespace blink; |
5753 void showLiveDocumentInstances() | 5753 void showLiveDocumentInstances() |
5754 { | 5754 { |
5755 WeakDocumentSet& set = liveDocumentSet(); | 5755 WeakDocumentSet& set = liveDocumentSet(); |
5756 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5756 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5757 for (Document* document : set) | 5757 for (Document* document : set) |
5758 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5758 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5759 } | 5759 } |
5760 #endif | 5760 #endif |
OLD | NEW |