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

Unified Diff: Source/platform/text/BidiResolver.h

Issue 300853007: Empty inline elements always get a line box. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « Source/core/rendering/line/BreakingContextInlineHeaders.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/text/BidiResolver.h
diff --git a/Source/platform/text/BidiResolver.h b/Source/platform/text/BidiResolver.h
index fbc80cb35a508ea71a3a7c4024350d957fa4471d..d22b320ae36d8f3a42c83611ed8cb3e46f53c198 100644
--- a/Source/platform/text/BidiResolver.h
+++ b/Source/platform/text/BidiResolver.h
@@ -70,10 +70,16 @@ public:
startIgnoringSpaces(midpoint);
}
+ void ensureLineBoxForRenderer(RenderObject* renderer)
+ {
+ Iterator midpoint(0, renderer, 0);
+ startIgnoringSpaces(midpoint);
+ stopIgnoringSpaces(midpoint);
+ }
+
// Adding a pair of midpoints before a character will split it out into a new line box.
void ensureCharacterGetsLineBox(Iterator& textParagraphSeparator)
{
- Iterator midpoint(0, textParagraphSeparator.object(), textParagraphSeparator.offset());
rhogan 2014/05/27 21:40:04 This is a redundant line of code I noticed when ad
startIgnoringSpaces(Iterator(0, textParagraphSeparator.object(), textParagraphSeparator.offset() - 1));
stopIgnoringSpaces(Iterator(0, textParagraphSeparator.object(), textParagraphSeparator.offset()));
}
« no previous file with comments | « Source/core/rendering/line/BreakingContextInlineHeaders.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698