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

Side by Side Diff: sky/engine/core/rendering/RenderObject.cpp

Issue 899753003: Walk render tree instead of render layers for paint. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: address review comments Created 5 years, 10 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 | « sky/engine/core/rendering/RenderObject.h ('k') | sky/engine/core/rendering/RenderParagraph.h » ('j') | 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. 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 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 } 1017 }
1018 1018
1019 void RenderObject::addAbsoluteRectForLayer(LayoutRect& result) 1019 void RenderObject::addAbsoluteRectForLayer(LayoutRect& result)
1020 { 1020 {
1021 if (hasLayer()) 1021 if (hasLayer())
1022 result.unite(absoluteBoundingBoxRect()); 1022 result.unite(absoluteBoundingBoxRect());
1023 for (RenderObject* current = slowFirstChild(); current; current = current->n extSibling()) 1023 for (RenderObject* current = slowFirstChild(); current; current = current->n extSibling())
1024 current->addAbsoluteRectForLayer(result); 1024 current->addAbsoluteRectForLayer(result);
1025 } 1025 }
1026 1026
1027 void RenderObject::paint(PaintInfo&, const LayoutPoint&) 1027 void RenderObject::paint(PaintInfo&, const LayoutPoint&, Vector<RenderBox*>& lay ers)
1028 { 1028 {
1029 } 1029 }
1030 1030
1031 const RenderLayerModelObject* RenderObject::containerForPaintInvalidation() cons t 1031 const RenderLayerModelObject* RenderObject::containerForPaintInvalidation() cons t
1032 { 1032 {
1033 return isRooted() ? view() : 0; 1033 return isRooted() ? view() : 0;
1034 } 1034 }
1035 1035
1036 const RenderLayerModelObject* RenderObject::adjustCompositedContainerForSpecialA ncestors(const RenderLayerModelObject* paintInvalidationContainer) const 1036 const RenderLayerModelObject* RenderObject::adjustCompositedContainerForSpecialA ncestors(const RenderLayerModelObject* paintInvalidationContainer) const
1037 { 1037 {
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
1987 { 1987 {
1988 if (object1) { 1988 if (object1) {
1989 const blink::RenderObject* root = object1; 1989 const blink::RenderObject* root = object1;
1990 while (root->parent()) 1990 while (root->parent())
1991 root = root->parent(); 1991 root = root->parent();
1992 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 1992 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
1993 } 1993 }
1994 } 1994 }
1995 1995
1996 #endif 1996 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderObject.h ('k') | sky/engine/core/rendering/RenderParagraph.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698