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

Unified Diff: third_party/WebKit/Source/platform/text/TextBreakIterator.h

Issue 2865903002: [LayoutNG] Inline margin/border/padding, inter-item breaking, and tests (Closed)
Patch Set: ikilpatrick review Created 3 years, 7 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/platform/text/TextBreakIterator.h
diff --git a/third_party/WebKit/Source/platform/text/TextBreakIterator.h b/third_party/WebKit/Source/platform/text/TextBreakIterator.h
index 88b63e5d0e4ddaab69e0175caf3feda533251424..3a587a541269fb4e331fe5909a55998c5e717371 100644
--- a/third_party/WebKit/Source/platform/text/TextBreakIterator.h
+++ b/third_party/WebKit/Source/platform/text/TextBreakIterator.h
@@ -217,6 +217,11 @@ class PLATFORM_EXPORT LazyLineBreakIterator final {
return IsBreakable(pos, next_breakable, break_type_);
}
+ inline bool IsBreakable(int pos) const {
+ int next_breakable = -1;
+ return IsBreakable(pos, next_breakable, break_type_);
+ }
+
// Returns the break opportunity at or after |offset|.
unsigned NextBreakOpportunity(unsigned offset) const;

Powered by Google App Engine
This is Rietveld 408576698