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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutInline.cpp

Issue 2622043003: Replaced RefPtr::release with std::move in Source/core. (Closed)
Patch Set: Created 3 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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 ComputedStyle::createAnonymousStyleWithDisplay( 349 ComputedStyle::createAnonymousStyleWithDisplay(
350 containingBlock()->styleRef(), EDisplay::Block); 350 containingBlock()->styleRef(), EDisplay::Block);
351 351
352 // If inside an inline affected by in-flow positioning the block needs to be 352 // If inside an inline affected by in-flow positioning the block needs to be
353 // affected by it too. Giving the block a layer like this allows it to 353 // affected by it too. Giving the block a layer like this allows it to
354 // collect the x/y offsets from inline parents later. 354 // collect the x/y offsets from inline parents later.
355 if (LayoutObject* positionedAncestor = inFlowPositionedInlineAncestor(this)) 355 if (LayoutObject* positionedAncestor = inFlowPositionedInlineAncestor(this))
356 newStyle->setPosition(positionedAncestor->style()->position()); 356 newStyle->setPosition(positionedAncestor->style()->position());
357 357
358 LayoutBlockFlow* newBox = LayoutBlockFlow::createAnonymous(&document()); 358 LayoutBlockFlow* newBox = LayoutBlockFlow::createAnonymous(&document());
359 newBox->setStyle(newStyle.release()); 359 newBox->setStyle(std::move(newStyle));
360 LayoutBoxModelObject* oldContinuation = continuation(); 360 LayoutBoxModelObject* oldContinuation = continuation();
361 setContinuation(newBox); 361 setContinuation(newBox);
362 362
363 splitFlow(beforeChild, newBox, newChild, oldContinuation); 363 splitFlow(beforeChild, newBox, newChild, oldContinuation);
364 return; 364 return;
365 } 365 }
366 366
367 LayoutBoxModelObject::addChild(newChild, beforeChild); 367 LayoutBoxModelObject::addChild(newChild, beforeChild);
368 368
369 newChild->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation( 369 newChild->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(
(...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1514 paintInvalidator.invalidateDisplayItemClient(*box, invalidationReason); 1514 paintInvalidator.invalidateDisplayItemClient(*box, invalidationReason);
1515 } 1515 }
1516 1516
1517 // TODO(lunalu): Not to just dump 0, 0 as the x and y here 1517 // TODO(lunalu): Not to just dump 0, 0 as the x and y here
1518 LayoutRect LayoutInline::debugRect() const { 1518 LayoutRect LayoutInline::debugRect() const {
1519 IntRect linesBox = enclosingIntRect(linesBoundingBox()); 1519 IntRect linesBox = enclosingIntRect(linesBoundingBox());
1520 return LayoutRect(IntRect(0, 0, linesBox.width(), linesBox.height())); 1520 return LayoutRect(IntRect(0, 0, linesBox.width(), linesBox.height()));
1521 } 1521 }
1522 1522
1523 } // namespace blink 1523 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698