[dwrite] Cosmetic change (#963)

This commit is contained in:
Ebrahim Byagowi 2018-04-11 18:00:13 +04:30 committed by GitHub
parent 09d5e54688
commit cb3fa70cd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 22 deletions

View File

@ -1,4 +1,4 @@
/* /*
* Copyright © 2015-2018 Ebrahim Byagowi * Copyright © 2015-2018 Ebrahim Byagowi
* *
* This is part of HarfBuzz, a text shaping library. * This is part of HarfBuzz, a text shaping library.
@ -304,8 +304,8 @@ public:
inline bool ContainsTextPosition (uint32_t aTextPosition) const inline bool ContainsTextPosition (uint32_t aTextPosition) const
{ {
return aTextPosition >= mTextStart return aTextPosition >= mTextStart &&
&& aTextPosition < mTextStart + mTextLength; aTextPosition < mTextStart + mTextLength;
} }
Run *nextRun; Run *nextRun;
@ -488,8 +488,7 @@ protected:
mCurrentRun = run; mCurrentRun = run;
return; return;
} }
//NS_NOTREACHED ("We should always be able to find the text position in one \ // NS_NOTREACHED ("We should always be able to find the text position in one of our runs");
// of our runs");
} }
void SplitCurrentRun (uint32_t splitPosition) void SplitCurrentRun (uint32_t splitPosition)

View File

@ -31,7 +31,8 @@ HB_BEGIN_DECLS
HB_EXTERN hb_bool_t HB_EXTERN hb_bool_t
hb_directwrite_shape_experimental_width (hb_font_t *font, hb_buffer_t *buffer, hb_directwrite_shape_experimental_width (hb_font_t *font, hb_buffer_t *buffer,
const hb_feature_t *features, unsigned int num_features, float width); const hb_feature_t *features,
unsigned int num_features, float width);
HB_END_DECLS HB_END_DECLS