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

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

Issue 2811783002: [LayoutNG] Move inline files to the inline directory (Closed)
Patch Set: Fix unit tests Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
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
deleted file mode 100644
index 9ee2719c3827142bdd3d80f5338fef3ecb4290b1..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/layout/ng/ng_bidi_paragraph.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2016 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 NGBidiParagraph_h
-#define NGBidiParagraph_h
-
-#include "wtf/Allocator.h"
-#include "wtf/Forward.h"
-#include "wtf/Vector.h"
-
-#include <unicode/ubidi.h>
-
-namespace blink {
-
-class ComputedStyle;
-
-// NGBidiParagraph resolves bidirectional runs in a paragraph using ICU BiDi.
-// http://userguide.icu-project.org/transforms/bidi
-//
-// Given a string of a paragraph, it runs Unicode Bidirectional Algorithm in
-// UAX#9 and create logical runs.
-// http://unicode.org/reports/tr9/
-// It can also create visual runs once lines breaks are determined.
-class NGBidiParagraph {
- STACK_ALLOCATED();
-
- public:
- NGBidiParagraph() {}
- ~NGBidiParagraph();
-
- // Splits the given paragraph to bidi runs and resolves the bidi embedding
- // level of each run.
- // Returns false on failure. Nothing other than the destructor should be
- // called.
- bool SetParagraph(const String&, const ComputedStyle&);
-
- // Returns whether the paragraph is LTR, RTL, or MIXED.
- UBiDiDirection Direction() const { return ubidi_getDirection(ubidi_); }
-
- // Returns the end offset of a logical run that starts from the |start|
- // offset.
- unsigned GetLogicalRun(unsigned start, UBiDiLevel*) const;
-
- // Create a list of indices in the visual order.
- // A wrapper for ICU |ubidi_reorderVisual()|.
- static void IndicesInVisualOrder(
- const Vector<UBiDiLevel, 32>& levels,
- Vector<int32_t, 32>* indices_in_visual_order_out);
-
- private:
- UBiDi* ubidi_ = nullptr;
-};
-
-} // namespace blink
-
-#endif // NGBidiParagraph_h

Powered by Google App Engine
This is Rietveld 408576698