diff options
author | 2017-03-23 14:01:22 -0400 | |
---|---|---|
committer | 2017-03-23 19:23:21 +0000 | |
commit | 3318da5d1aa19533dd034f90d4bc29a2d2e86b66 (patch) | |
tree | a3e81412184977d9eba932f1d4eb06bf3d2adfd8 /include/core/SkPaint.h | |
parent | 9f01e38ad1d6377a734c14ac7ef45265598a04d0 (diff) |
Replace Thinkness with Thickness.
The FontMetricsFlags::kUnderlineThinknessIsValid_Flag has a typo in it.
Fortunately no user currently uses this enumeration value by name but
instead uses the getter so the name can be updated.
BUG=skia:6174
Change-Id: I810260d826482de1da8876cd9739d24b3bfb0f95
Reviewed-on: https://skia-review.googlesource.com/10050
Reviewed-by: Cary Clark <caryclark@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'include/core/SkPaint.h')
-rw-r--r-- | include/core/SkPaint.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index c8d4cc117c..caa5491fa2 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -707,7 +707,7 @@ public: A set flag indicates that the metric may be trusted. */ enum FontMetricsFlags { - kUnderlineThinknessIsValid_Flag = 1 << 0, + kUnderlineThicknessIsValid_Flag = 1 << 0, kUnderlinePositionIsValid_Flag = 1 << 1, }; @@ -733,21 +733,21 @@ public: */ SkScalar fUnderlinePosition; //!< underline position, or 0 if cannot be determined - /** If the fontmetrics has a valid underlinethickness, return true, and set the + /** If the fontmetrics has a valid underline thickness, return true, and set the thickness param to that value. If it doesn't return false and ignore the thickness param. */ bool hasUnderlineThickness(SkScalar* thickness) const { - if (SkToBool(fFlags & kUnderlineThinknessIsValid_Flag)) { + if (SkToBool(fFlags & kUnderlineThicknessIsValid_Flag)) { *thickness = fUnderlineThickness; return true; } return false; } - /** If the fontmetrics has a valid underlineposition, return true, and set the - thickness param to that value. If it doesn't return false and ignore the - thickness param. + /** If the fontmetrics has a valid underline position, return true, and set the + position param to that value. If it doesn't return false and ignore the + position param. */ bool hasUnderlinePosition(SkScalar* position) const { if (SkToBool(fFlags & kUnderlinePositionIsValid_Flag)) { |