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

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

Issue 1610233002: [Reland] Remove PaintInfo's paintingRoot (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 } 1053 }
1054 1054
1055 void LayoutObject::addAbsoluteRectForLayer(IntRect& result) 1055 void LayoutObject::addAbsoluteRectForLayer(IntRect& result)
1056 { 1056 {
1057 if (hasLayer()) 1057 if (hasLayer())
1058 result.unite(absoluteBoundingBoxRect()); 1058 result.unite(absoluteBoundingBoxRect());
1059 for (LayoutObject* current = slowFirstChild(); current; current = current->n extSibling()) 1059 for (LayoutObject* current = slowFirstChild(); current; current = current->n extSibling())
1060 current->addAbsoluteRectForLayer(result); 1060 current->addAbsoluteRectForLayer(result);
1061 } 1061 }
1062 1062
1063 IntRect LayoutObject::paintingRootRect(IntRect& topLevelRect) 1063 IntRect LayoutObject::absoluteBoundingBoxRectIncludingDescendants() const
1064 { 1064 {
1065 IntRect result = absoluteBoundingBoxRect(); 1065 IntRect result = absoluteBoundingBoxRect();
1066 for (LayoutObject* current = slowFirstChild(); current; current = current->n extSibling()) 1066 for (LayoutObject* current = slowFirstChild(); current; current = current->n extSibling())
1067 current->addAbsoluteRectForLayer(result); 1067 current->addAbsoluteRectForLayer(result);
1068 return result; 1068 return result;
1069 } 1069 }
1070 1070
1071 void LayoutObject::paint(const PaintInfo&, const LayoutPoint&) const 1071 void LayoutObject::paint(const PaintInfo&, const LayoutPoint&) const
1072 { 1072 {
1073 } 1073 }
(...skipping 2465 matching lines...) Expand 10 before | Expand all | Expand 10 after
3539 const blink::LayoutObject* root = object1; 3539 const blink::LayoutObject* root = object1;
3540 while (root->parent()) 3540 while (root->parent())
3541 root = root->parent(); 3541 root = root->parent();
3542 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3542 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3543 } else { 3543 } else {
3544 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); 3544 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n");
3545 } 3545 }
3546 } 3546 }
3547 3547
3548 #endif 3548 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/layout/LayoutReplaced.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698