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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutScrollbar.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) 2008, 2009 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 setNeedsPaintInvalidation(partType); 295 setNeedsPaintInvalidation(partType);
296 } else if (partLayoutObject && !needLayoutObject) { 296 } else if (partLayoutObject && !needLayoutObject) {
297 m_parts.remove(partType); 297 m_parts.remove(partType);
298 partLayoutObject->destroy(); 298 partLayoutObject->destroy();
299 partLayoutObject = nullptr; 299 partLayoutObject = nullptr;
300 if (!destroy) 300 if (!destroy)
301 setNeedsPaintInvalidation(partType); 301 setNeedsPaintInvalidation(partType);
302 } 302 }
303 303
304 if (partLayoutObject) 304 if (partLayoutObject)
305 partLayoutObject->setStyleWithWritingModeOfParent(partStyle.release()); 305 partLayoutObject->setStyleWithWritingModeOfParent(std::move(partStyle));
306 } 306 }
307 307
308 IntRect LayoutScrollbar::buttonRect(ScrollbarPart partType) const { 308 IntRect LayoutScrollbar::buttonRect(ScrollbarPart partType) const {
309 LayoutScrollbarPart* partLayoutObject = m_parts.get(partType); 309 LayoutScrollbarPart* partLayoutObject = m_parts.get(partType);
310 if (!partLayoutObject) 310 if (!partLayoutObject)
311 return IntRect(); 311 return IntRect();
312 312
313 partLayoutObject->layout(); 313 partLayoutObject->layout();
314 314
315 bool isHorizontal = orientation() == HorizontalScrollbar; 315 bool isHorizontal = orientation() == HorizontalScrollbar;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 } 406 }
407 407
408 void LayoutScrollbar::invalidateDisplayItemClientsOfScrollbarParts() { 408 void LayoutScrollbar::invalidateDisplayItemClientsOfScrollbarParts() {
409 for (auto& part : m_parts) 409 for (auto& part : m_parts)
410 ObjectPaintInvalidator(*part.value) 410 ObjectPaintInvalidator(*part.value)
411 .invalidateDisplayItemClientsIncludingNonCompositingDescendants( 411 .invalidateDisplayItemClientsIncludingNonCompositingDescendants(
412 PaintInvalidationScroll); 412 PaintInvalidationScroll);
413 } 413 }
414 414
415 } // namespace blink 415 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698