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 2782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2793 else if (equalIgnoringCase(policy, "always")) | 2793 else if (equalIgnoringCase(policy, "always")) |
2794 m_referrerPolicy = ReferrerPolicyAlways; | 2794 m_referrerPolicy = ReferrerPolicyAlways; |
2795 else if (equalIgnoringCase(policy, "origin")) | 2795 else if (equalIgnoringCase(policy, "origin")) |
2796 m_referrerPolicy = ReferrerPolicyOrigin; | 2796 m_referrerPolicy = ReferrerPolicyOrigin; |
2797 } | 2797 } |
2798 | 2798 |
2799 MouseEventWithHitTestResults Document::prepareMouseEvent(const HitTestRequest& r
equest, const LayoutPoint& documentPoint, const PlatformMouseEvent& event) | 2799 MouseEventWithHitTestResults Document::prepareMouseEvent(const HitTestRequest& r
equest, const LayoutPoint& documentPoint, const PlatformMouseEvent& event) |
2800 { | 2800 { |
2801 ASSERT(!renderer() || renderer()->isRenderView()); | 2801 ASSERT(!renderer() || renderer()->isRenderView()); |
2802 | 2802 |
2803 if (!renderer()) | 2803 // RenderView::hitTest causes a layout, and we don't want to hit that until
the first |
| 2804 // layout because until then, there is nothing shown on the screen - the use
r can't |
| 2805 // have intentionally clicked on something belonging to this page. Furthermo
re, |
| 2806 // mousemove events before the first layout should not lead to a premature l
ayout() |
| 2807 // happening, which could show a flash of white. |
| 2808 // See also the similar code in EventHandler::hitTestResultAtPoint. |
| 2809 if (!renderer() || !view() || !view()->didFirstLayout()) |
2804 return MouseEventWithHitTestResults(event, HitTestResult(LayoutPoint()))
; | 2810 return MouseEventWithHitTestResults(event, HitTestResult(LayoutPoint()))
; |
2805 | 2811 |
2806 HitTestResult result(documentPoint); | 2812 HitTestResult result(documentPoint); |
2807 renderView()->hitTest(request, result); | 2813 renderView()->hitTest(request, result); |
2808 | 2814 |
2809 if (!request.readOnly()) | 2815 if (!request.readOnly()) |
2810 updateHoverActiveState(request, result.innerElement()); | 2816 updateHoverActiveState(request, result.innerElement()); |
2811 | 2817 |
2812 return MouseEventWithHitTestResults(event, result); | 2818 return MouseEventWithHitTestResults(event, result); |
2813 } | 2819 } |
(...skipping 2786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5600 return; | 5606 return; |
5601 | 5607 |
5602 Vector<RefPtr<Element> > associatedFormControls; | 5608 Vector<RefPtr<Element> > associatedFormControls; |
5603 copyToVector(m_associatedFormControls, associatedFormControls); | 5609 copyToVector(m_associatedFormControls, associatedFormControls); |
5604 | 5610 |
5605 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm
Controls); | 5611 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm
Controls); |
5606 m_associatedFormControls.clear(); | 5612 m_associatedFormControls.clear(); |
5607 } | 5613 } |
5608 | 5614 |
5609 } // namespace WebCore | 5615 } // namespace WebCore |
OLD | NEW |