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

Issue 1648573002: Transition to explicit constructors in LayoutUnit (Closed)

Created:
4 years, 10 months ago by leviw_travelin_and_unemployed
Modified:
4 years, 10 months ago
Reviewers:
eae
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-platform-graphics_chromium.org, blink-reviews-style_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, Eric Willigers, f(malita), jbroman, jchaffraix+rendering, Justin Novosad, kinuko+watch, leviw+renderwatch, pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rjwright, rwlbuis, Stephen Chennney, shans, szager+layoutwatch_chromium.org, vmpstr+blinkwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Transition to explicit constructors in LayoutUnit This is a work in progress, but because there are implicit conversions of base types, and converting the world en masse would be a seriously large patch, this converts a handful of files toward the goal of switching all of LayoutUnit's non-default constructors to be explicit. BUG=581254 Committed: https://crrev.com/db620902e31edb691f210eb7a50799ddfe6eb538 Cr-Commit-Position: refs/heads/master@{#372520}

Patch Set 1 #

Patch Set 2 : Remove explicit keywords #

Patch Set 3 : Tweak operators #

Patch Set 4 : Moar tweaks! #

Total comments: 17

Patch Set 5 : Address comments #

Patch Set 6 : Address comments #

Patch Set 7 : Fix negative sign binding in negativeMarginBefore/After #

Patch Set 8 : Remove int constructors for size/point... they result in incorrect conversions until LayoutUnit is … #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -79 lines) Patch
M third_party/WebKit/Source/core/editing/VisibleUnits.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 4 chunks +8 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutDeprecatedFlexibleBox.cpp View 1 2 3 4 5 6 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutListMarker.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutState.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutVideo.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/line/InlineFlowBox.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/NinePieceImage.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/LayoutUnit.h View 1 2 3 4 5 6 8 chunks +13 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/LengthFunctions.cpp View 1 2 3 4 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/animation/AnimationUtilities.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/geometry/LayoutPoint.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/geometry/LayoutRect.h View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/geometry/LayoutRect.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/geometry/LayoutRectOutsets.h View 1 2 3 4 1 chunk +11 lines, -9 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (10 generated)
leviw_travelin_and_unemployed
PTAL
4 years, 10 months ago (2016-01-29 03:24:01 UTC) #3
eae
Fun times https://codereview.chromium.org/1648573002/diff/60001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/1648573002/diff/60001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp#newcode1277 third_party/WebKit/Source/core/editing/VisibleUnits.cpp:1277: return LayoutPoint(LayoutUnit(lineDirectionPoint - absoluteBlockPoint.x()), root->blockDirectionPointInLine()); lineDirectionPoint - ...
4 years, 10 months ago (2016-01-29 03:38:12 UTC) #4
leviw_travelin_and_unemployed
https://codereview.chromium.org/1648573002/diff/60001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/1648573002/diff/60001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp#newcode1277 third_party/WebKit/Source/core/editing/VisibleUnits.cpp:1277: return LayoutPoint(LayoutUnit(lineDirectionPoint - absoluteBlockPoint.x()), root->blockDirectionPointInLine()); On 2016/01/29 at 03:38:11, ...
4 years, 10 months ago (2016-01-29 03:47:28 UTC) #5
leviw_travelin_and_unemployed
PTAL
4 years, 10 months ago (2016-01-29 04:26:32 UTC) #6
eae
LGTM
4 years, 10 months ago (2016-01-29 05:48:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1648573002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1648573002/100001
4 years, 10 months ago (2016-01-29 05:48:19 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/159116) win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, ...
4 years, 10 months ago (2016-01-29 06:33:35 UTC) #11
eae
LGTM
4 years, 10 months ago (2016-01-29 23:33:28 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1648573002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1648573002/120001
4 years, 10 months ago (2016-01-29 23:34:27 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/173790)
4 years, 10 months ago (2016-01-30 00:48:36 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1648573002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1648573002/140001
4 years, 10 months ago (2016-01-30 01:36:12 UTC) #20
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 10 months ago (2016-01-30 02:39:09 UTC) #21
commit-bot: I haz the power
4 years, 10 months ago (2016-01-30 02:40:09 UTC) #23
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/db620902e31edb691f210eb7a50799ddfe6eb538
Cr-Commit-Position: refs/heads/master@{#372520}

Powered by Google App Engine
This is Rietveld 408576698