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

Side by Side Diff: third_party/WebKit/Source/core/layout/api/LayoutAPIShim.h

Issue 2392153002: Reformat comments in core/layout/api (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/api/LineLayoutAPIShim.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LayoutAPIShim_h 5 #ifndef LayoutAPIShim_h
6 #define LayoutAPIShim_h 6 #define LayoutAPIShim_h
7 7
8 #include "core/layout/api/LayoutItem.h" 8 #include "core/layout/api/LayoutItem.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class LayoutObject; 12 class LayoutObject;
13 13
14 // TODO(pilgrim): Remove this kludge once clients have a real API and no longer need access to the underlying LayoutObject. 14 // TODO(pilgrim): Remove this kludge once clients have a real API and no longer
15 // need access to the underlying LayoutObject.
15 class LayoutAPIShim { 16 class LayoutAPIShim {
16 public: 17 public:
17 static LayoutObject* layoutObjectFrom(LayoutItem item) { 18 static LayoutObject* layoutObjectFrom(LayoutItem item) {
18 return item.layoutObject(); 19 return item.layoutObject();
19 } 20 }
20 21
21 static const LayoutObject* constLayoutObjectFrom(LayoutItem item) { 22 static const LayoutObject* constLayoutObjectFrom(LayoutItem item) {
22 return item.layoutObject(); 23 return item.layoutObject();
23 } 24 }
24 }; 25 };
25 26
26 } // namespace blink 27 } // namespace blink
27 28
28 #endif // LayoutAPIShim_h 29 #endif // LayoutAPIShim_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/api/LineLayoutAPIShim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698