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

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

Issue 1818963003: Pass nullptr for paintInvalidationState if it can't be used to map geometry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after
1650 if (LayoutObject* parent = this->parent()) { 1650 if (LayoutObject* parent = this->parent()) {
1651 if (parent->hasOverflowClip()) { 1651 if (parent->hasOverflowClip()) {
1652 LayoutBox* parentBox = toLayoutBox(parent); 1652 LayoutBox* parentBox = toLayoutBox(parent);
1653 parentBox->mapScrollingContentsRectToBoxSpace(rect); 1653 parentBox->mapScrollingContentsRectToBoxSpace(rect);
1654 if (parent != ancestor) 1654 if (parent != ancestor)
1655 parentBox->applyOverflowClip(rect); 1655 parentBox->applyOverflowClip(rect);
1656 if (rect.isEmpty()) 1656 if (rect.isEmpty())
1657 return; 1657 return;
1658 } 1658 }
1659 1659
1660 parent->mapToVisibleRectInAncestorSpace(ancestor, rect, paintInvalidatio nState); 1660 parent->mapToVisibleRectInAncestorSpace(ancestor, rect, nullptr);
1661 } 1661 }
1662 } 1662 }
1663 1663
1664 void LayoutObject::dirtyLinesFromChangedChild(LayoutObject*) 1664 void LayoutObject::dirtyLinesFromChangedChild(LayoutObject*)
1665 { 1665 {
1666 } 1666 }
1667 1667
1668 #ifndef NDEBUG 1668 #ifndef NDEBUG
1669 1669
1670 void LayoutObject::showTreeForThis() const 1670 void LayoutObject::showTreeForThis() const
(...skipping 2056 matching lines...) Expand 10 before | Expand all | Expand 10 after
3727 const blink::LayoutObject* root = object1; 3727 const blink::LayoutObject* root = object1;
3728 while (root->parent()) 3728 while (root->parent())
3729 root = root->parent(); 3729 root = root->parent();
3730 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3730 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3731 } else { 3731 } else {
3732 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); 3732 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n");
3733 } 3733 }
3734 } 3734 }
3735 3735
3736 #endif 3736 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutInline.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698