Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: Source/core/layout/LayoutObject.cpp

Issue 1142283004: Implement a Hit Test Cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix git cl format mangling Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after
1792 1792
1793 if (diff.transformChanged() && !needsLayout()) { 1793 if (diff.transformChanged() && !needsLayout()) {
1794 if (LayoutBlock* container = containingBlock()) 1794 if (LayoutBlock* container = containingBlock())
1795 container->setNeedsOverflowRecalcAfterStyleChange(); 1795 container->setNeedsOverflowRecalcAfterStyleChange();
1796 } 1796 }
1797 1797
1798 if (updatedDiff.needsPaintInvalidationLayer()) 1798 if (updatedDiff.needsPaintInvalidationLayer())
1799 toLayoutBoxModelObject(this)->layer()->setShouldDoFullPaintInvalidationI ncludingNonCompositingDescendants(); 1799 toLayoutBoxModelObject(this)->layer()->setShouldDoFullPaintInvalidationI ncludingNonCompositingDescendants();
1800 else if (diff.needsPaintInvalidationObject() || updatedDiff.needsPaintInvali dationObject()) 1800 else if (diff.needsPaintInvalidationObject() || updatedDiff.needsPaintInvali dationObject())
1801 setShouldDoFullPaintInvalidation(); 1801 setShouldDoFullPaintInvalidation();
1802
1803 view()->clearHitTestCache();
Rick Byers 2015/06/05 20:48:59 I don't know enough about the style system to say
esprehn 2015/06/06 21:14:30 You don't want to be here, this puts code inside s
dtapuska 2015/06/09 18:21:24 Done.
dtapuska 2015/06/09 18:21:24 Done.
1802 } 1804 }
1803 1805
1804 static inline bool layoutObjectHasBackground(const LayoutObject* layoutObject) 1806 static inline bool layoutObjectHasBackground(const LayoutObject* layoutObject)
1805 { 1807 {
1806 return layoutObject && layoutObject->hasBackground(); 1808 return layoutObject && layoutObject->hasBackground();
1807 } 1809 }
1808 1810
1809 void LayoutObject::styleWillChange(StyleDifference diff, const ComputedStyle& ne wStyle) 1811 void LayoutObject::styleWillChange(StyleDifference diff, const ComputedStyle& ne wStyle)
1810 { 1812 {
1811 if (m_style) { 1813 if (m_style) {
(...skipping 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after
3300 const blink::LayoutObject* root = object1; 3302 const blink::LayoutObject* root = object1;
3301 while (root->parent()) 3303 while (root->parent())
3302 root = root->parent(); 3304 root = root->parent();
3303 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3305 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3304 } else { 3306 } else {
3305 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); 3307 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n");
3306 } 3308 }
3307 } 3309 }
3308 3310
3309 #endif 3311 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698