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

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

Issue 2776583003: Remove setMayNeedPaintInvalidation call from setNeedsOverflowRecalcAfterStyleChange() (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2009 Google Inc. All rights reserved. 8 * Copyright (C) 2009 Google Inc. All rights reserved.
9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
10 * (http://www.torchmobile.com/) 10 * (http://www.torchmobile.com/)
(...skipping 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1629 ? object->parent() 1629 ? object->parent()
1630 : object->containingBlock(); 1630 : object->containingBlock();
1631 if (object) 1631 if (object)
1632 object->setChildNeedsOverflowRecalcAfterStyleChange(); 1632 object->setChildNeedsOverflowRecalcAfterStyleChange();
1633 } while (object); 1633 } while (object);
1634 } 1634 }
1635 1635
1636 void LayoutObject::setNeedsOverflowRecalcAfterStyleChange() { 1636 void LayoutObject::setNeedsOverflowRecalcAfterStyleChange() {
1637 bool neededRecalc = needsOverflowRecalcAfterStyleChange(); 1637 bool neededRecalc = needsOverflowRecalcAfterStyleChange();
1638 setSelfNeedsOverflowRecalcAfterStyleChange(); 1638 setSelfNeedsOverflowRecalcAfterStyleChange();
1639 setMayNeedPaintInvalidation();
1640 if (!neededRecalc) 1639 if (!neededRecalc)
1641 markAncestorsForOverflowRecalcIfNeeded(); 1640 markAncestorsForOverflowRecalcIfNeeded();
1642 } 1641 }
1643 1642
1644 DISABLE_CFI_PERF 1643 DISABLE_CFI_PERF
1645 void LayoutObject::setStyle(PassRefPtr<ComputedStyle> style) { 1644 void LayoutObject::setStyle(PassRefPtr<ComputedStyle> style) {
1646 ASSERT(style); 1645 ASSERT(style);
1647 1646
1648 if (m_style == style) { 1647 if (m_style == style) {
1649 // We need to run through adjustStyleDifference() for iframes, plugins, and 1648 // We need to run through adjustStyleDifference() for iframes, plugins, and
(...skipping 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after
3654 const blink::LayoutObject* root = object1; 3653 const blink::LayoutObject* root = object1;
3655 while (root->parent()) 3654 while (root->parent())
3656 root = root->parent(); 3655 root = root->parent();
3657 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3656 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3658 } else { 3657 } else {
3659 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); 3658 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)");
3660 } 3659 }
3661 } 3660 }
3662 3661
3663 #endif 3662 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698