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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutFullScreen.cpp

Issue 2282413002: Replaced PassRefPtr copies with moves in Source/core. (Closed)
Patch Set: rebased Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutFullScreen.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutFullScreen.cpp b/third_party/WebKit/Source/core/layout/LayoutFullScreen.cpp
index 6c8312341c8a4a436877606c382e14568a7687e5..5990f80725ec39b791e92c42f6420ab240c74a21 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFullScreen.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutFullScreen.cpp
@@ -200,13 +200,13 @@ void LayoutFullScreen::createPlaceholder(PassRefPtr<ComputedStyle> style, const
if (!m_placeholder) {
m_placeholder = new LayoutFullScreenPlaceholder(this);
- m_placeholder->setStyleWithWritingModeOfParent(style);
+ m_placeholder->setStyleWithWritingModeOfParent(std::move(style));
if (parent()) {
parent()->addChildWithWritingModeOfParent(m_placeholder, this);
parent()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::Fullscreen);
}
} else {
- m_placeholder->setStyle(style);
- m_placeholder->setStyleWithWritingModeOfParent(style);
+ m_placeholder->setStyle(std::move(style));
+ m_placeholder->setStyleWithWritingModeOfParent(std::move(style));
}
}

Powered by Google App Engine
This is Rietveld 408576698