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

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

Issue 698743002: [WIP] Adding support for <iframe>s to slimming paint. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
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 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 } 1145 }
1146 1146
1147 LayoutRect RenderObject::computePaintInvalidationRect(const RenderLayerModelObje ct* paintInvalidationContainer, const PaintInvalidationState* paintInvalidationS tate) const 1147 LayoutRect RenderObject::computePaintInvalidationRect(const RenderLayerModelObje ct* paintInvalidationContainer, const PaintInvalidationState* paintInvalidationS tate) const
1148 { 1148 {
1149 return clippedOverflowRectForPaintInvalidation(paintInvalidationContainer, p aintInvalidationState); 1149 return clippedOverflowRectForPaintInvalidation(paintInvalidationContainer, p aintInvalidationState);
1150 } 1150 }
1151 1151
1152 void RenderObject::invalidatePaintUsingContainer(const RenderLayerModelObject* p aintInvalidationContainer, const LayoutRect& r, PaintInvalidationReason invalida tionReason) const 1152 void RenderObject::invalidatePaintUsingContainer(const RenderLayerModelObject* p aintInvalidationContainer, const LayoutRect& r, PaintInvalidationReason invalida tionReason) const
1153 { 1153 {
1154 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) 1154 if (RuntimeEnabledFeatures::slimmingPaintEnabled())
1155 view()->viewDisplayList().invalidate(this); 1155 ViewDisplayList::fromRenderObject(this).invalidate(this);
1156 1156
1157 if (r.isEmpty()) 1157 if (r.isEmpty())
1158 return; 1158 return;
1159 1159
1160 RELEASE_ASSERT(isRooted()); 1160 RELEASE_ASSERT(isRooted());
1161 1161
1162 // FIXME: Unify "devtools.timeline.invalidationTracking" and "blink.invalida tion". crbug.com/413527. 1162 // FIXME: Unify "devtools.timeline.invalidationTracking" and "blink.invalida tion". crbug.com/413527.
1163 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidati onTracking"), 1163 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidati onTracking"),
1164 "PaintInvalidationTracking", 1164 "PaintInvalidationTracking",
1165 "data", InspectorPaintInvalidationTrackingEvent::data(this, paintInvalid ationContainer)); 1165 "data", InspectorPaintInvalidationTrackingEvent::data(this, paintInvalid ationContainer));
(...skipping 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after
3153 { 3153 {
3154 if (object1) { 3154 if (object1) {
3155 const blink::RenderObject* root = object1; 3155 const blink::RenderObject* root = object1;
3156 while (root->parent()) 3156 while (root->parent())
3157 root = root->parent(); 3157 root = root->parent();
3158 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 3158 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
3159 } 3159 }
3160 } 3160 }
3161 3161
3162 #endif 3162 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698