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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.h

Issue 2740083002: Add support for shaper-driven line breaking to HarfBuzzShaper (Closed)
Patch Set: Try to fix test failures Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.h
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.h b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.h
index 7ef87d532ea518b19544ee564b7fd28d52fb967d..2d55fdb7caab4f7364940a6f344b85229d1ead54 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.h
+++ b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.h
@@ -42,7 +42,9 @@ namespace blink {
class Font;
class SimpleFontData;
class HarfBuzzShaper;
+class LayoutUnit;
struct HolesQueueItem;
+enum class LineBreakType;
class PLATFORM_EXPORT HarfBuzzShaper final {
public:
@@ -64,6 +66,17 @@ class PLATFORM_EXPORT HarfBuzzShaper final {
// end offset equal to the length.
PassRefPtr<ShapeResult> shape(const Font*, TextDirection) const;
+ // Shapes a line of text by finding a valid and appropriate break opportunity
+ // based on the shaping results for the entire paragraph.
+ // The output parameter breakOffset indicates the resulting break offset.
+ PassRefPtr<ShapeResult> shapeLine(const Font*,
+ const ShapeResult*,
+ unsigned startOffset,
+ const AtomicString locale,
+ LineBreakType,
+ LayoutUnit availableSpace,
+ unsigned* breakOffset) const;
+
~HarfBuzzShaper() {}
private:
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698