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

Issue 1651703002: More explicit LayoutUnit conversions (Closed)

Created:
4 years, 10 months ago by leviw_travelin_and_unemployed
Modified:
4 years, 10 months ago
Reviewers:
dmazzoni, eae
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dshwang, krit, eae+blinkwatch, eric.carlson_apple.com, feature-media-reviews_chromium.org, f(malita), fs, gyuyoung2, jchaffraix+rendering, jfernandez, kouhei+svg_chromium.org, leviw+renderwatch, mlamouri+watch-blink_chromium.org, pdr+svgwatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, philipj_slow, Manuel Rego, rwlbuis, Stephen Chennney, slimming-paint-reviews_chromium.org, svillar, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@evenMoarConstructors
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

More explicit LayoutUnit conversions Smokey the engineer says: Only You can prevent implicit conversion. BUG=581254 TBR=dmazzoni Committed: https://crrev.com/64c0da8cdaf8c7a857051640fa453ce6a7ec5a6f Cr-Commit-Position: refs/heads/master@{#372565}

Patch Set 1 #

Patch Set 2 : More changes #

Total comments: 9

Patch Set 3 : Traits vs Properties vs Pandas #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -130 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBlock.cpp View 1 6 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp View 1 2 7 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFileUploadControl.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 2 23 chunks +40 lines, -40 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutListBox.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTable.cpp View 1 2 6 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableRow.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableSection.cpp View 1 2 5 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTextControl.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/EllipsisBox.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/line/LineWidth.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp View 7 chunks +9 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/shapes/BoxShapeTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/page/SpatialNavigation.cpp View 3 chunks +12 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/paint/FileUploadControlPainter.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/FrameSetPainter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInfoTest.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/SVGInlineFlowBoxPainter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/NinePieceImage.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/StyleGeneratedImage.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (8 generated)
leviw_travelin_and_unemployed
LayoutUnit(review);
4 years, 10 months ago (2016-01-30 23:50:58 UTC) #3
eae
LGTM w/nits Only you can prevent implicit conversions. https://codereview.chromium.org/1651703002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/1651703002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode354 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:354: bool ...
4 years, 10 months ago (2016-01-30 23:58:24 UTC) #4
leviw_travelin_and_unemployed
Thanks for the review, Ranger Emil! https://codereview.chromium.org/1651703002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/1651703002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode413 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:413: return valueForLength(trackGap, LayoutUnit(0)) ...
4 years, 10 months ago (2016-01-31 00:33:13 UTC) #5
leviw_travelin_and_unemployed
(I stole your description)
4 years, 10 months ago (2016-01-31 00:34:00 UTC) #7
eae
r- for unclear patchset description, shouldn't it be PropertyBag instead of Traits? LGTM
4 years, 10 months ago (2016-01-31 00:44:24 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1651703002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1651703002/40001
4 years, 10 months ago (2016-01-31 01:13:36 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/140860)
4 years, 10 months ago (2016-01-31 01:22:01 UTC) #12
leviw_travelin_and_unemployed
TBR-ing the simple AX changes.
4 years, 10 months ago (2016-01-31 01:35:49 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1651703002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1651703002/40001
4 years, 10 months ago (2016-01-31 01:36:07 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-01-31 01:41:12 UTC) #17
commit-bot: I haz the power
4 years, 10 months ago (2016-01-31 01:42:11 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/64c0da8cdaf8c7a857051640fa453ce6a7ec5a6f
Cr-Commit-Position: refs/heads/master@{#372565}

Powered by Google App Engine
This is Rietveld 408576698