Chromium Code Reviews| 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 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1724 updateStyle(); | 1724 updateStyle(); |
| 1725 | 1725 |
| 1726 notifyLayoutTreeOfSubtreeChanges(); | 1726 notifyLayoutTreeOfSubtreeChanges(); |
| 1727 | 1727 |
| 1728 // As a result of the style recalculation, the currently hovered element mig ht have been | 1728 // As a result of the style recalculation, the currently hovered element mig ht have been |
| 1729 // detached (for example, by setting display:none in the :hover style), sche dule another mouseMove event | 1729 // detached (for example, by setting display:none in the :hover style), sche dule another mouseMove event |
| 1730 // to check if any other elements ended up under the mouse pointer due to re -layout. | 1730 // to check if any other elements ended up under the mouse pointer due to re -layout. |
| 1731 if (hoverNode() && !hoverNode()->layoutObject() && frame()) | 1731 if (hoverNode() && !hoverNode()->layoutObject() && frame()) |
| 1732 frame()->eventHandler().dispatchFakeMouseMoveEventSoon(); | 1732 frame()->eventHandler().dispatchFakeMouseMoveEventSoon(); |
| 1733 | 1733 |
| 1734 if (m_focusedElement && !m_focusedElement->isFocusable()) | 1734 if (m_focusedElement) |
|
tkent
2016/07/21 00:38:50
At this line, we already updated style and layout
kochi
2016/07/21 01:32:49
Hmm, yes.
Yesterday I saw another case that needsU
|
esprehn
2016/07/23 08:37:25
Note that we can't land this change anyway, since
|
| 1735 clearFocusedElementSoon(); | 1735 clearFocusedElementSoon(); |
| 1736 layoutViewItem().clearHitTestCache(); | 1736 layoutViewItem().clearHitTestCache(); |
| 1737 | 1737 |
| 1738 DCHECK(!DocumentAnimations::needsAnimationTimingUpdate(*this)); | 1738 DCHECK(!DocumentAnimations::needsAnimationTimingUpdate(*this)); |
| 1739 | 1739 |
| 1740 unsigned elementCount = styleEngine().styleForElementCount() - startElementC ount; | 1740 unsigned elementCount = styleEngine().styleForElementCount() - startElementC ount; |
| 1741 | 1741 |
| 1742 TRACE_EVENT_END1("blink,devtools.timeline", "UpdateLayoutTree", "elementCoun t", elementCount); | 1742 TRACE_EVENT_END1("blink,devtools.timeline", "UpdateLayoutTree", "elementCoun t", elementCount); |
| 1743 | 1743 |
| 1744 #if DCHECK_IS_ON() | 1744 #if DCHECK_IS_ON() |
| (...skipping 4294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6039 } | 6039 } |
| 6040 | 6040 |
| 6041 void showLiveDocumentInstances() | 6041 void showLiveDocumentInstances() |
| 6042 { | 6042 { |
| 6043 WeakDocumentSet& set = liveDocumentSet(); | 6043 WeakDocumentSet& set = liveDocumentSet(); |
| 6044 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6044 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6045 for (Document* document : set) | 6045 for (Document* document : set) |
| 6046 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data()); | 6046 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data()); |
| 6047 } | 6047 } |
| 6048 #endif | 6048 #endif |
| OLD | NEW |