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

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

Issue 2036213002: [Layout API] Introduce Layout API shim and use in LayerClipRecorderTest.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/layout/api/LayoutItem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/api/LayoutAPIShim.h
diff --git a/third_party/WebKit/Source/core/layout/api/LineLayoutAPIShim.h b/third_party/WebKit/Source/core/layout/api/LayoutAPIShim.h
similarity index 61%
copy from third_party/WebKit/Source/core/layout/api/LineLayoutAPIShim.h
copy to third_party/WebKit/Source/core/layout/api/LayoutAPIShim.h
index 9c144e2fc4c519b264cfa8159bf1326cbd27f3ab..fee14e0c7ae4236b103c155ca2b518e846ada2a1 100644
--- a/third_party/WebKit/Source/core/layout/api/LineLayoutAPIShim.h
+++ b/third_party/WebKit/Source/core/layout/api/LayoutAPIShim.h
@@ -2,24 +2,24 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef LineLayoutAPIShim_h
-#define LineLayoutAPIShim_h
+#ifndef LayoutAPIShim_h
+#define LayoutAPIShim_h
-#include "core/layout/api/LineLayoutItem.h"
+#include "core/layout/api/LayoutItem.h"
namespace blink {
class LayoutObject;
// TODO(pilgrim): Remove this kludge once clients have a real API and no longer need access to the underlying LayoutObject.
-class LineLayoutAPIShim {
+class LayoutAPIShim {
public:
- static LayoutObject* layoutObjectFrom(LineLayoutItem item)
+ static LayoutObject* layoutObjectFrom(LayoutItem item)
{
return item.layoutObject();
}
- static const LayoutObject* constLayoutObjectFrom(LineLayoutItem item)
+ static const LayoutObject* constLayoutObjectFrom(LayoutItem item)
{
return item.layoutObject();
}
@@ -27,4 +27,4 @@ public:
} // namespace blink
-#endif // LineLayoutAPIShim_h
+#endif // LayoutAPIShim_h
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/layout/api/LayoutItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698