forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LayoutNG] Move NGInlineNode data to NGInlineNodeData.
In preparation for making NGInlineNode, NGBlockNode POD-like. BUG=636993 Review-Url: https://codereview.chromium.org/2836293004 Cr-Commit-Position: refs/heads/master@{#468547}
- Loading branch information
Showing
8 changed files
with
124 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node_data.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright 2017 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef NGInlineNodeData_h | ||
#define NGInlineNodeData_h | ||
|
||
#include "core/CoreExport.h" | ||
#include "core/layout/ng/inline/ng_inline_item.h" | ||
#include "platform/wtf/Vector.h" | ||
|
||
namespace blink { | ||
|
||
// Data which is required for inline nodes. | ||
struct CORE_EXPORT NGInlineNodeData { | ||
private: | ||
friend class NGInlineNode; | ||
friend class NGInlineNodeForTest; | ||
|
||
// Text content for all inline items represented by a single NGInlineNode. | ||
// Encoded either as UTF-16 or latin-1 depending on the content. | ||
String text_content_; | ||
Vector<NGInlineItem> items_; | ||
|
||
// TODO(kojii): This should move to somewhere else when we move PrepareLayout | ||
// to the correct place. | ||
bool is_bidi_enabled_ = false; | ||
}; | ||
|
||
} // namespace blink | ||
|
||
#endif // NGInlineNode_h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.