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

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

Issue 2943573002: Make NGInlineItemsBuilder construct whitespace-collapsed offset mapping (Closed)
Patch Set: Wed Jun 21 16:40:35 PDT 2017 Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 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 NGOffsetMappingBuilder_h
6 #define NGOffsetMappingBuilder_h
7
8 #include "core/CoreExport.h"
9 #include "platform/wtf/Allocator.h"
10
11 namespace blink {
12
13 // TODO(xiaochengh): Documentation.
14 class CORE_EXPORT NGOffsetMappingBuilder {
15 STACK_ALLOCATED();
16
17 public:
18 NGOffsetMappingBuilder();
19 virtual ~NGOffsetMappingBuilder();
yosin_UTC9 2017/06/22 03:31:04 Why interface? Do you want to introduce DoNothingO
Xiaocheng 2017/06/22 03:36:10 I would like to have different types of offset map
yosin_UTC9 2017/06/22 03:44:22 Editing is case 3. What cases do use 1 and 2?
20
21 virtual void AppendBijection(unsigned length);
22 virtual void AppendCollapsed(unsigned length);
23 virtual void CollapseLastCharacter();
24
25 DISALLOW_COPY_AND_ASSIGN(NGOffsetMappingBuilder);
yosin_UTC9 2017/06/22 03:31:04 nit: |DISALLOW_...| should be in private section.
Xiaocheng 2017/06/22 03:36:10 Will do.
26 };
27
28 } // namespace blink
29
30 #endif // OffsetMappingBuilder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698