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

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

Issue 2555923002: Changed TextDirection to an enum class and renamed its members (Closed)
Patch Set: Rebase after reopen Created 3 years, 12 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 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 NGFragmentBase_h 5 #ifndef NGFragmentBase_h
6 #define NGFragmentBase_h 6 #define NGFragmentBase_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/ng/ng_physical_fragment_base.h" 9 #include "core/layout/ng/ng_physical_fragment_base.h"
10 #include "core/layout/ng/ng_writing_mode.h" 10 #include "core/layout/ng/ng_writing_mode.h"
(...skipping 30 matching lines...) Expand all
41 }; 41 };
42 42
43 DECLARE_TRACE(); 43 DECLARE_TRACE();
44 44
45 protected: 45 protected:
46 NGFragmentBase(NGWritingMode writing_mode, 46 NGFragmentBase(NGWritingMode writing_mode,
47 TextDirection direction, 47 TextDirection direction,
48 NGPhysicalFragmentBase* physical_fragment) 48 NGPhysicalFragmentBase* physical_fragment)
49 : physical_fragment_(physical_fragment), 49 : physical_fragment_(physical_fragment),
50 writing_mode_(writing_mode), 50 writing_mode_(writing_mode),
51 direction_(direction) {} 51 direction_(static_cast<unsigned>(direction)) {}
52 52
53 Member<NGPhysicalFragmentBase> physical_fragment_; 53 Member<NGPhysicalFragmentBase> physical_fragment_;
54 54
55 unsigned writing_mode_ : 3; 55 unsigned writing_mode_ : 3;
56 unsigned direction_ : 1; 56 unsigned direction_ : 1;
57 }; 57 };
58 58
59 } // namespace blink 59 } // namespace blink
60 60
61 #endif // NGFragmentBase_h 61 #endif // NGFragmentBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698