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

Unified Diff: Source/platform/fonts/GlyphPageTreeNode.cpp

Issue 705163003: Use NonBreakingSpace glyph where available (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/GlyphPageTreeNode.cpp
diff --git a/Source/platform/fonts/GlyphPageTreeNode.cpp b/Source/platform/fonts/GlyphPageTreeNode.cpp
index 9265ea6528fbf8cb5a0bf05438e6cf9f58de60c0..0022c334ed57c0440a38b5685133e05ed6152676 100644
--- a/Source/platform/fonts/GlyphPageTreeNode.cpp
+++ b/Source/platform/fonts/GlyphPageTreeNode.cpp
@@ -165,10 +165,9 @@ void GlyphPageTreeNode::initializePage(const FontData* fontData, unsigned pageNu
buffer[i] = zeroWidthSpace;
buffer[softHyphen] = zeroWidthSpace;
- // \n, \t, and nonbreaking space must render as a space.
+ // \n and \t must render as a space.
buffer[newlineCharacter] = space;
buffer[characterTabulation] = space;
- buffer[noBreakSpace] = space;
} else if (start == (arabicLetterMark & ~(GlyphPage::size - 1))) {
buffer[arabicLetterMark - start] = zeroWidthSpace;
} else if (start == (leftToRightMark & ~(GlyphPage::size - 1))) {
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698