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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXInlineTextBox.cpp

Issue 2761693002: Wrapped PassRefPtrs in move where passed to RefPtr constructor. (Closed)
Patch Set: Added move wraps for multiple instances in 1 line. Created 3 years, 9 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) 2013, Google Inc. All rights reserved. 2 * Copyright (C) 2013, Google 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 23 matching lines...) Expand all
34 #include "modules/accessibility/AXObjectCacheImpl.h" 34 #include "modules/accessibility/AXObjectCacheImpl.h"
35 #include "platform/LayoutUnit.h" 35 #include "platform/LayoutUnit.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 using namespace HTMLNames; 39 using namespace HTMLNames;
40 40
41 AXInlineTextBox::AXInlineTextBox( 41 AXInlineTextBox::AXInlineTextBox(
42 PassRefPtr<AbstractInlineTextBox> inlineTextBox, 42 PassRefPtr<AbstractInlineTextBox> inlineTextBox,
43 AXObjectCacheImpl& axObjectCache) 43 AXObjectCacheImpl& axObjectCache)
44 : AXObject(axObjectCache), m_inlineTextBox(inlineTextBox) {} 44 : AXObject(axObjectCache), m_inlineTextBox(std::move(inlineTextBox)) {}
45 45
46 AXInlineTextBox* AXInlineTextBox::create( 46 AXInlineTextBox* AXInlineTextBox::create(
47 PassRefPtr<AbstractInlineTextBox> inlineTextBox, 47 PassRefPtr<AbstractInlineTextBox> inlineTextBox,
48 AXObjectCacheImpl& axObjectCache) { 48 AXObjectCacheImpl& axObjectCache) {
49 return new AXInlineTextBox(std::move(inlineTextBox), axObjectCache); 49 return new AXInlineTextBox(std::move(inlineTextBox), axObjectCache);
50 } 50 }
51 51
52 void AXInlineTextBox::init() {} 52 void AXInlineTextBox::init() {}
53 53
54 void AXInlineTextBox::detach() { 54 void AXInlineTextBox::detach() {
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 if (previousOnLine) 178 if (previousOnLine)
179 return m_axObjectCache->getOrCreate(previousOnLine.get()); 179 return m_axObjectCache->getOrCreate(previousOnLine.get());
180 180
181 if (!m_inlineTextBox->isFirst()) 181 if (!m_inlineTextBox->isFirst())
182 return 0; 182 return 0;
183 183
184 return parentObject()->previousOnLine(); 184 return parentObject()->previousOnLine();
185 } 185 }
186 186
187 } // namespace blink 187 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698