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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp

Issue 1980893002: Remove OwnPtr::release() calls in core/ (part 4). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/paint/PaintPropertyTreeBuilder.h" 5 #include "core/paint/PaintPropertyTreeBuilder.h"
6 6
7 #include "core/frame/FrameView.h" 7 #include "core/frame/FrameView.h"
8 #include "core/frame/Settings.h" 8 #include "core/frame/Settings.h"
9 #include "core/layout/LayoutPart.h" 9 #include "core/layout/LayoutPart.h"
10 #include "core/layout/LayoutView.h" 10 #include "core/layout/LayoutView.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // This condition may be loosened with no adverse effects beside memory use. 206 // This condition may be loosened with no adverse effects beside memory use.
207 if (!object.hasLayer()) 207 if (!object.hasLayer())
208 return; 208 return;
209 209
210 OwnPtr<ObjectPaintProperties::LocalBorderBoxProperties> borderBoxContext = 210 OwnPtr<ObjectPaintProperties::LocalBorderBoxProperties> borderBoxContext =
211 adoptPtr(new ObjectPaintProperties::LocalBorderBoxProperties); 211 adoptPtr(new ObjectPaintProperties::LocalBorderBoxProperties);
212 borderBoxContext->paintOffset = context.paintOffset; 212 borderBoxContext->paintOffset = context.paintOffset;
213 borderBoxContext->transform = context.currentTransform; 213 borderBoxContext->transform = context.currentTransform;
214 borderBoxContext->clip = context.currentClip; 214 borderBoxContext->clip = context.currentClip;
215 borderBoxContext->effect = context.currentEffect; 215 borderBoxContext->effect = context.currentEffect;
216 object.ensureObjectPaintProperties().setLocalBorderBoxProperties(borderBoxCo ntext.release()); 216 object.ensureObjectPaintProperties().setLocalBorderBoxProperties(std::move(b orderBoxContext));
217 } 217 }
218 218
219 // TODO(trchen): Remove this once we bake the paint offset into frameRect. 219 // TODO(trchen): Remove this once we bake the paint offset into frameRect.
220 void PaintPropertyTreeBuilder::updateScrollbarPaintOffset(LayoutObject& object, const PaintPropertyTreeBuilderContext& context) 220 void PaintPropertyTreeBuilder::updateScrollbarPaintOffset(LayoutObject& object, const PaintPropertyTreeBuilderContext& context)
221 { 221 {
222 IntPoint roundedPaintOffset = roundedIntPoint(context.paintOffset); 222 IntPoint roundedPaintOffset = roundedIntPoint(context.paintOffset);
223 if (roundedPaintOffset == IntPoint()) 223 if (roundedPaintOffset == IntPoint())
224 return; 224 return;
225 225
226 if (!object.isBoxModelObject()) 226 if (!object.isBoxModelObject())
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 436
437 if (object.isLayoutPart()) { 437 if (object.isLayoutPart()) {
438 Widget* widget = toLayoutPart(object).widget(); 438 Widget* widget = toLayoutPart(object).widget();
439 if (widget && widget->isFrameView()) 439 if (widget && widget->isFrameView())
440 walk(*toFrameView(widget), localContext); 440 walk(*toFrameView(widget), localContext);
441 // TODO(pdr): Investigate RemoteFrameView (crbug.com/579281). 441 // TODO(pdr): Investigate RemoteFrameView (crbug.com/579281).
442 } 442 }
443 } 443 }
444 444
445 } // namespace blink 445 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/FilterPainter.cpp ('k') | third_party/WebKit/Source/core/style/ContentData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698