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

Side by Side Diff: Source/core/rendering/RenderObject.cpp

Issue 734203002: Remove unused code. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 | « Source/core/rendering/RenderObject.h ('k') | 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. 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 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 if (view()->document().printing()) 1167 if (view()->document().printing())
1168 return; // Don't invalidate paints if we're printing. 1168 return; // Don't invalidate paints if we're printing.
1169 1169
1170 LayoutRect dirtyRect(r); 1170 LayoutRect dirtyRect(r);
1171 1171
1172 const RenderLayerModelObject* paintInvalidationContainer = containerForPaint Invalidation(); 1172 const RenderLayerModelObject* paintInvalidationContainer = containerForPaint Invalidation();
1173 RenderLayer::mapRectToPaintInvalidationBacking(this, paintInvalidationContai ner, dirtyRect); 1173 RenderLayer::mapRectToPaintInvalidationBacking(this, paintInvalidationContai ner, dirtyRect);
1174 invalidatePaintUsingContainer(paintInvalidationContainer, dirtyRect, PaintIn validationRectangle); 1174 invalidatePaintUsingContainer(paintInvalidationContainer, dirtyRect, PaintIn validationRectangle);
1175 } 1175 }
1176 1176
1177 IntRect RenderObject::pixelSnappedAbsoluteClippedOverflowRect() const
1178 {
1179 return pixelSnappedIntRect(absoluteClippedOverflowRect());
1180 }
1181
1182 void RenderObject::invalidateTreeIfNeeded(const PaintInvalidationState& paintInv alidationState) 1177 void RenderObject::invalidateTreeIfNeeded(const PaintInvalidationState& paintInv alidationState)
1183 { 1178 {
1184 ASSERT(!needsLayout()); 1179 ASSERT(!needsLayout());
1185 1180
1186 // If we didn't need paint invalidation then our children don't need as well . 1181 // If we didn't need paint invalidation then our children don't need as well .
1187 // Skip walking down the tree as everything should be fine below us. 1182 // Skip walking down the tree as everything should be fine below us.
1188 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) 1183 if (!shouldCheckForPaintInvalidation(paintInvalidationState))
1189 return; 1184 return;
1190 1185
1191 invalidatePaintIfNeeded(paintInvalidationState, paintInvalidationState.paint InvalidationContainer()); 1186 invalidatePaintIfNeeded(paintInvalidationState, paintInvalidationState.paint InvalidationContainer());
(...skipping 1958 matching lines...) Expand 10 before | Expand all | Expand 10 after
3150 { 3145 {
3151 if (object1) { 3146 if (object1) {
3152 const blink::RenderObject* root = object1; 3147 const blink::RenderObject* root = object1;
3153 while (root->parent()) 3148 while (root->parent())
3154 root = root->parent(); 3149 root = root->parent();
3155 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 3150 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
3156 } 3151 }
3157 } 3152 }
3158 3153
3159 #endif 3154 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698