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

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/NGFragment.h

Issue 2229583002: [LayoutNG] Add NGFragment class definition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NGFragment_h
6 #define NGFragment_h
7
8 #include "core/CoreExport.h"
9 #include "platform/LayoutUnit.h"
10
11 namespace blink {
12
13 class CORE_EXPORT NGFragment final {
14 public:
15 NGFragment(LayoutUnit inlineSize, LayoutUnit blockSize);
16 ~NGFragment() { }
17
18 LayoutUnit inlineSize() const { return m_inlineSize; }
19 LayoutUnit blockSize() const { return m_blockSize; }
20
21 LayoutUnit inlineOffset() const { return m_inlineOffset; }
22 LayoutUnit blockOffset() const { return m_blockOffset; }
23
24 void setOffset(LayoutUnit inlineOffset, LayoutUnit blockOffset);
25
26 private:
27 LayoutUnit m_inlineSize;
28 LayoutUnit m_blockSize;
29
30 LayoutUnit m_inlineOffset;
31 LayoutUnit m_blockOffset;
32 };
33
34 } // namespace blink
35
36 #endif // NGFragment_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/layout/ng/NGFragment.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698