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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 2705 matching lines...) Expand 10 before | Expand all | Expand 10 after
2716 LayoutPartItem layoutItem = m_frame->ownerLayoutItem(); 2716 LayoutPartItem layoutItem = m_frame->ownerLayoutItem();
2717 if (!layoutItem.isNull()) 2717 if (!layoutItem.isNull())
2718 cornerStyle = layoutItem.getUncachedPseudoStyle( 2718 cornerStyle = layoutItem.getUncachedPseudoStyle(
2719 PseudoStyleRequest(PseudoIdScrollbarCorner), layoutItem.style()); 2719 PseudoStyleRequest(PseudoIdScrollbarCorner), layoutItem.style());
2720 } 2720 }
2721 } 2721 }
2722 2722
2723 if (cornerStyle) { 2723 if (cornerStyle) {
2724 if (!m_scrollCorner) 2724 if (!m_scrollCorner)
2725 m_scrollCorner = LayoutScrollbarPart::createAnonymous(doc, this); 2725 m_scrollCorner = LayoutScrollbarPart::createAnonymous(doc, this);
2726 m_scrollCorner->setStyleWithWritingModeOfParent(cornerStyle.release()); 2726 m_scrollCorner->setStyleWithWritingModeOfParent(std::move(cornerStyle));
2727 setScrollCornerNeedsPaintInvalidation(); 2727 setScrollCornerNeedsPaintInvalidation();
2728 } else if (m_scrollCorner) { 2728 } else if (m_scrollCorner) {
2729 m_scrollCorner->destroy(); 2729 m_scrollCorner->destroy();
2730 m_scrollCorner = nullptr; 2730 m_scrollCorner = nullptr;
2731 } 2731 }
2732 } 2732 }
2733 2733
2734 Color FrameView::documentBackgroundColor() const { 2734 Color FrameView::documentBackgroundColor() const {
2735 // The LayoutView's background color is set in 2735 // The LayoutView's background color is set in
2736 // Document::inheritHtmlAndBodyElementStyles. Blend this with the base 2736 // Document::inheritHtmlAndBodyElementStyles. Blend this with the base
(...skipping 2165 matching lines...) Expand 10 before | Expand all | Expand 10 after
4902 reason < MainThreadScrollingReason::kMainThreadScrollingReasonCount; 4902 reason < MainThreadScrollingReason::kMainThreadScrollingReasonCount;
4903 ++reason) { 4903 ++reason) {
4904 if (m_mainThreadScrollingReasonsCounter[reason] > 0) { 4904 if (m_mainThreadScrollingReasonsCounter[reason] > 0) {
4905 reasons |= 1 << reason; 4905 reasons |= 1 << reason;
4906 } 4906 }
4907 } 4907 }
4908 return reasons; 4908 return reasons;
4909 } 4909 }
4910 4910
4911 } // namespace blink 4911 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698