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

Unified Diff: Source/core/rendering/RenderText.cpp

Issue 60233002: Remove redundant checking platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderText.cpp
diff --git a/Source/core/rendering/RenderText.cpp b/Source/core/rendering/RenderText.cpp
index 9f021e6ff34bd8410b96c3f6e8638b3146c6d471..8fcee94eb5b0906b30294a4480352e5e67b099f0 100644
--- a/Source/core/rendering/RenderText.cpp
+++ b/Source/core/rendering/RenderText.cpp
@@ -1653,7 +1653,7 @@ int RenderText::previousOffset(int current) const
return result;
}
-#if OS(MACOSX) || OS(POSIX)
+#if OS(POSIX)
#define HANGUL_CHOSEONG_START (0x1100)
#define HANGUL_CHOSEONG_END (0x115F)
@@ -1695,7 +1695,7 @@ inline bool isRegionalIndicator(UChar32 c)
int RenderText::previousOffsetForBackwardDeletion(int current) const
{
-#if OS(MACOSX) || OS(POSIX)
+#if OS(POSIX)
ASSERT(m_text);
StringImpl& text = *m_text.impl();
UChar32 character;
@@ -1779,7 +1779,7 @@ int RenderText::previousOffsetForBackwardDeletion(int current) const
return current;
#else
- // Platforms other than Mac or Unix delete by one code point.
+ // Platforms other than Unix-like delete by one code point.
if (U16_IS_TRAIL(m_text[--current]))
--current;
if (current < 0)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698