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

Issue 652483002: TextRun::length() should return an unsigned (Closed)

Created:
6 years, 2 months ago by lgombos
Modified:
6 years, 2 months ago
CC:
blink-reviews, blink-reviews-rendering, Rik, danakj, krit, eae+blinkwatch, ed+blinkwatch_opera.com, f(malita), fs, gyuyoung.kim_webkit.org, jbroman, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, mkwst+moarreviews_chromium.org, pdr+renderingwatchlist_chromium.org, pdr+graphicswatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, rune+blink, Stephen Chennney, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

TextRun::length() should return an unsigned. Tightened int types to unsigned in TextRun to make it easier to reason about the code and in the process removed some casts and some ASSERTS that are no longer needed. Also made the getter type consistent with the corresponding member type for for consistency where applicable. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183934

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -24 lines) Patch
M Source/core/rendering/svg/SVGTextMetrics.cpp View 1 chunk +2 lines, -5 lines 0 comments Download
M Source/core/rendering/svg/SVGTextMetricsBuilder.cpp View 1 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/rendering/svg/SVGTextRunRenderingContext.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/rendering/svg/SVGTextRunRenderingContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/fonts/Font.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/fonts/Font.cpp View 1 2 chunks +3 lines, -1 line 1 comment Download
M Source/platform/fonts/WidthCache.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/platform/fonts/shaping/HarfBuzzShaper.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/fonts/shaping/HarfBuzzShaper.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M Source/platform/fonts/shaping/SimpleShaper.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/text/TextRun.h View 3 chunks +5 lines, -5 lines 0 comments Download
M Source/platform/text/TextRunIterator.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (4 generated)
lgombos
@eae, WDYT ? We can certainly move more into to unsigned, but I wanted to ...
6 years, 2 months ago (2014-10-13 04:43:57 UTC) #2
mlamouri (slow - plz ping)
drive-by lgtm
6 years, 2 months ago (2014-10-13 09:07:24 UTC) #4
eae
Seems resonable. LGTM
6 years, 2 months ago (2014-10-17 23:20:02 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/652483002/190001
6 years, 2 months ago (2014-10-18 01:52:42 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:190001) as 183934
6 years, 2 months ago (2014-10-18 01:56:53 UTC) #8
jochen (gone - plz use gerrit)
A revert of this CL (patchset #2 id:190001) has been created in https://codereview.chromium.org/669633002/ by jochen@chromium.org. ...
6 years, 2 months ago (2014-10-20 10:42:56 UTC) #9
jochen (gone - plz use gerrit)
6 years, 2 months ago (2014-10-20 11:44:26 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/652483002/diff/190001/Source/platform/fonts/F...
File Source/platform/fonts/Font.cpp (right):

https://codereview.chromium.org/652483002/diff/190001/Source/platform/fonts/F...
Source/platform/fonts/Font.cpp:282: ASSERT(from >= 0);
this is hit in FindInPageControllerTest.FindInPageFormsTextAreas

Powered by Google App Engine
This is Rietveld 408576698