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 2071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2082 // SecurityOrigin. | 2082 // SecurityOrigin. |
2083 | 2083 |
2084 UpdateStyle(); | 2084 UpdateStyle(); |
2085 | 2085 |
2086 NotifyLayoutTreeOfSubtreeChanges(); | 2086 NotifyLayoutTreeOfSubtreeChanges(); |
2087 | 2087 |
2088 // As a result of the style recalculation, the currently hovered element might | 2088 // As a result of the style recalculation, the currently hovered element might |
2089 // have been detached (for example, by setting display:none in the :hover | 2089 // have been detached (for example, by setting display:none in the :hover |
2090 // style), schedule another mouseMove event to check if any other elements | 2090 // style), schedule another mouseMove event to check if any other elements |
2091 // ended up under the mouse pointer due to re-layout. | 2091 // ended up under the mouse pointer due to re-layout. |
2092 if (HoverElement() && !HoverElement()->GetLayoutObject() && GetFrame()) | 2092 if (HoverElement() && !HoverElement()->GetLayoutObject() && GetFrame()) { |
2093 GetFrame()->GetEventHandler().DispatchFakeMouseMoveEventSoon(); | 2093 GetFrame()->GetEventHandler().DispatchFakeMouseMoveEventSoon( |
| 2094 MouseEventManager::FakeMouseMoveReason::kPerFrame); |
| 2095 } |
2094 | 2096 |
2095 if (focused_element_ && !focused_element_->IsFocusable()) | 2097 if (focused_element_ && !focused_element_->IsFocusable()) |
2096 ClearFocusedElementSoon(); | 2098 ClearFocusedElementSoon(); |
2097 GetLayoutViewItem().ClearHitTestCache(); | 2099 GetLayoutViewItem().ClearHitTestCache(); |
2098 | 2100 |
2099 DCHECK(!DocumentAnimations::NeedsAnimationTimingUpdate(*this)); | 2101 DCHECK(!DocumentAnimations::NeedsAnimationTimingUpdate(*this)); |
2100 | 2102 |
2101 unsigned element_count = | 2103 unsigned element_count = |
2102 GetStyleEngine().StyleForElementCount() - start_element_count; | 2104 GetStyleEngine().StyleForElementCount() - start_element_count; |
2103 | 2105 |
(...skipping 4825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6929 } | 6931 } |
6930 | 6932 |
6931 void showLiveDocumentInstances() { | 6933 void showLiveDocumentInstances() { |
6932 WeakDocumentSet& set = liveDocumentSet(); | 6934 WeakDocumentSet& set = liveDocumentSet(); |
6933 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6935 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6934 for (blink::Document* document : set) | 6936 for (blink::Document* document : set) |
6935 fprintf(stderr, "- Document %p URL: %s\n", document, | 6937 fprintf(stderr, "- Document %p URL: %s\n", document, |
6936 document->Url().GetString().Utf8().data()); | 6938 document->Url().GetString().Utf8().data()); |
6937 } | 6939 } |
6938 #endif | 6940 #endif |
OLD | NEW |