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

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

Issue 847303003: Delete selection paint invalidation code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 } 1098 }
1099 1099
1100 const RenderLayerModelObject* RenderObject::adjustCompositedContainerForSpecialA ncestors(const RenderLayerModelObject* paintInvalidationContainer) const 1100 const RenderLayerModelObject* RenderObject::adjustCompositedContainerForSpecialA ncestors(const RenderLayerModelObject* paintInvalidationContainer) const
1101 { 1101 {
1102 // FIXME(sky): We shouldn't have any special ancestors and we don't have com posited containers 1102 // FIXME(sky): We shouldn't have any special ancestors and we don't have com posited containers
1103 if (paintInvalidationContainer) 1103 if (paintInvalidationContainer)
1104 return paintInvalidationContainer; 1104 return paintInvalidationContainer;
1105 return view(); 1105 return view();
1106 } 1106 }
1107 1107
1108 void RenderObject::mapRectToPaintInvalidationBacking(const RenderLayerModelObjec t* paintInvalidationContainer, LayoutRect& rect, const PaintInvalidationState* p aintInvalidationState) const
1109 {
1110 if (paintInvalidationContainer == this)
1111 return;
1112
1113 if (RenderObject* o = parent()) {
1114 if (o->hasOverflowClip()) {
1115 RenderBox* boxParent = toRenderBox(o);
1116 boxParent->applyCachedClipAndScrollOffsetForPaintInvalidation(rect);
1117 if (rect.isEmpty())
1118 return;
1119 }
1120
1121 o->mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, p aintInvalidationState);
1122 }
1123 }
1124
1125 void RenderObject::dirtyLinesFromChangedChild(RenderObject*) 1108 void RenderObject::dirtyLinesFromChangedChild(RenderObject*)
1126 { 1109 {
1127 } 1110 }
1128 1111
1129 #ifndef NDEBUG 1112 #ifndef NDEBUG
1130 1113
1131 void RenderObject::showTreeForThis() const 1114 void RenderObject::showTreeForThis() const
1132 { 1115 {
1133 if (node()) 1116 if (node())
1134 node()->showTreeForThis(); 1117 node()->showTreeForThis();
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
2149 { 2132 {
2150 if (object1) { 2133 if (object1) {
2151 const blink::RenderObject* root = object1; 2134 const blink::RenderObject* root = object1;
2152 while (root->parent()) 2135 while (root->parent())
2153 root = root->parent(); 2136 root = root->parent();
2154 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 2137 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
2155 } 2138 }
2156 } 2139 }
2157 2140
2158 #endif 2141 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698