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

Issue 200023002: Making LayoutUnit conversions to Float type explicit (Closed)

Created:
6 years, 9 months ago by gnana
Modified:
6 years, 9 months ago
CC:
blink-reviews, eae+blinkwatch, fs, apavlov+blink_chromium.org, adamk+blink_chromium.org, kouhei+svg_chromium.org, rune+blink, jamesr, krit, bemjb+rendering_chromium.org, dsinclair, danakj, dglazkov+blink, Rik, jchaffraix+rendering, pdr., rwlbuis, mstensho+blink_opera.com, zoltan1, sof, jbroman, gyuyoung.kim_webkit.org, darktears, leviw+renderwatch, blink-layers+watch_chromium.org, ed+blinkwatch_opera.com, f(malita), Inactive, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Making LayoutUnit conversions to Float type explicit LayoutUnit misuse, often from improper conversion to other types,is a constant source of bugs in Blink. This is the second patch with the goal of making such error-prone conversions explicit in the hopes of forcing developers to think through these conversions while writing their patches. These conversion sites were discovered by toggling the float conversions to explicit and finding the compiler errors. BUG=350474 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169545

Patch Set 1 : #

Total comments: 14

Patch Set 2 : incorporated review comments #

Total comments: 2

Patch Set 3 : rebase to trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -45 lines) Patch
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M Source/core/html/ImageDocument.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/page/SpatialNavigation.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderBlockFlow.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderBoxModelObject.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/rendering/RenderMultiColumnSet.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderMultiColumnSet.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/rendering/shapes/BoxShape.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/rendering/shapes/PolygonShape.cpp View 1 3 chunks +5 lines, -5 lines 0 comments Download
M Source/core/rendering/shapes/Shape.cpp View 1 2 9 chunks +10 lines, -10 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGRoot.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/platform/LayoutUnit.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/platform/geometry/FloatPoint.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M Source/platform/geometry/FloatSize.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M Source/platform/geometry/LayoutSize.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
gnana
Please have a look.
6 years, 9 months ago (2014-03-14 08:19:00 UTC) #1
gnana
On 2014/03/14 08:19:00, gnana wrote: > Please have a look. Patch is not ready yet.
6 years, 9 months ago (2014-03-14 13:22:36 UTC) #2
gnana
On 2014/03/14 13:22:36, gnana wrote: > On 2014/03/14 08:19:00, gnana wrote: > > Please have ...
6 years, 9 months ago (2014-03-14 14:10:05 UTC) #3
leviw_travelin_and_unemployed
https://codereview.chromium.org/200023002/diff/40001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/200023002/diff/40001/Source/core/dom/Document.cpp#newcode5110 Source/core/dom/Document.cpp:5110: quads[i].move(-FloatSize(visibleContentRect.x().toFloat(), visibleContentRect.y().toFloat())); It'd be nice to use visibleContentRect.location() instead ...
6 years, 9 months ago (2014-03-14 18:25:25 UTC) #4
gnana
Please have a look. https://codereview.chromium.org/200023002/diff/40001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/200023002/diff/40001/Source/core/dom/Document.cpp#newcode5110 Source/core/dom/Document.cpp:5110: quads[i].move(-FloatSize(visibleContentRect.x().toFloat(), visibleContentRect.y().toFloat())); On 2014/03/14 18:25:26, ...
6 years, 9 months ago (2014-03-18 14:20:17 UTC) #5
leviw_travelin_and_unemployed
lgtm with a nit about the description. Please copy the subject into the description otherwise ...
6 years, 9 months ago (2014-03-18 19:26:29 UTC) #6
gnana
The CQ bit was checked by gnanasekar.s@samsung.com
6 years, 9 months ago (2014-03-19 10:01:04 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gnanasekar.s@samsung.com/200023002/80001
6 years, 9 months ago (2014-03-19 10:01:10 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-19 10:49:44 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 9 months ago (2014-03-19 10:49:44 UTC) #10
gnana
The CQ bit was checked by gnanasekar.s@samsung.com
6 years, 9 months ago (2014-03-19 11:02:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gnanasekar.s@samsung.com/200023002/80001
6 years, 9 months ago (2014-03-19 11:02:41 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-19 11:46:59 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 9 months ago (2014-03-19 11:47:00 UTC) #14
gnana
The CQ bit was checked by gnanasekar.s@samsung.com
6 years, 9 months ago (2014-03-19 11:58:24 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gnanasekar.s@samsung.com/200023002/80001
6 years, 9 months ago (2014-03-19 11:58:33 UTC) #16
commit-bot: I haz the power
6 years, 9 months ago (2014-03-19 12:35:15 UTC) #17
Message was sent while issue was closed.
Change committed as 169545

Powered by Google App Engine
This is Rietveld 408576698