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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_bidi_paragraph.h

Issue 2563403002: [LayoutNG] Add Bidi reordering and fill in NGPhysicalTextFragment (Closed)
Patch Set: ikilpatrick review Created 4 years 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 | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_bidi_paragraph.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ng/ng_bidi_paragraph.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_bidi_paragraph.h b/third_party/WebKit/Source/core/layout/ng/ng_bidi_paragraph.h
index 9afb2fe006ffcad235133886df0577573089566f..51ba7a27ce24af54f644edc7d4d8737d5096b310 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_bidi_paragraph.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_bidi_paragraph.h
@@ -7,12 +7,14 @@
#include "wtf/Allocator.h"
#include "wtf/Forward.h"
+#include "wtf/Vector.h"
#include <unicode/ubidi.h>
namespace blink {
class ComputedStyle;
+class NGLayoutInlineItemRange;
// NGBidiParagraph resolves bidirectional runs in a paragraph using ICU BiDi.
// http://userguide.icu-project.org/transforms/bidi
@@ -41,6 +43,11 @@ class NGBidiParagraph {
// offset.
unsigned GetLogicalRun(unsigned start, UBiDiLevel*) const;
+ // Create a list of indicies in the visual order.
+ static void IndiciesInVisualOrder(
+ const NGLayoutInlineItemRange&,
+ Vector<int32_t, 32>* item_indicies_in_visual_order_out);
+
private:
UBiDi* ubidi_ = nullptr;
};
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_bidi_paragraph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698