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

Issue 2181953004: Changed ComputedStyle's EVisibility to be an enum class and fixed naming (Closed)

Created:
4 years, 4 months ago by sashab
Modified:
4 years, 4 months ago
CC:
aboxhall+watch_chromium.org, aboxhall, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-css, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dcheng, dglazkov+blink, dmazzoni, dmazzoni+watch_chromium.org, dshwang, krit, dtseng+watch_chromium.org, eae+blinkwatch, Eric Willigers, f(malita), fs, gyuyoung2, haraken, jchaffraix+rendering, je_julie, kinuko+watch, kouhei+svg_chromium.org, leviw+renderwatch, mlamouri+watch-blink_chromium.org, nektarios, nektar+watch_chromium.org, pdr+svgwatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rjwright, rwlbuis, Stephen Chennney, shans, sof, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, yuzo+watch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@_move_computedstyle_around
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Changed ComputedStyle's EVisibility to be an enum class and fixed naming Changed ComputedStyle's EVisibility to be an enum class and fixed naming to be consistent with Blink style. This is part of a larger effort to convert ComputedStyle's enums to enum classes. Design doc: https://docs.google.com/document/d/1BfjMEXIzvY1WZEn_nESBxyqkazkfa0sBSEvm-F89YwM/edit# BUG=628043 Committed: https://crrev.com/9418458ddfa80b213daa5357bfe21372dbd7565c Cr-Commit-Position: refs/heads/master@{#410880}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 6

Patch Set 3 : Changed comment #

Patch Set 4 : Rebase and remove CSSVisibilityInterpolationType change #

Patch Set 5 : Added underlying type notes #

Total comments: 2

Patch Set 6 : Added TODO #

Patch Set 7 : Rebase #

Patch Set 8 : Rebase #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -133 lines) Patch
M third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/animation/animatable/AnimatableValueTestHelper.cpp View 1 chunk +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/animation/animatable/AnimatableValueTestHelperTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/animatable/AnimatableVisibility.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h View 2 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EditingUtilities.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnits.cpp View 1 2 3 4 5 6 6 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp View 1 2 3 4 5 6 8 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLAreaElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/forms/InputType.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlock.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutDeprecatedFlexibleBox.cpp View 8 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutInline.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutPart.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMasker.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/line/SVGInlineTextBox.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/BlockPainter.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/paint/BoxPainter.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/DetailsMarkerPainter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/FieldsetPainter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/FileUploadControlPainter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/InlineFlowBoxPainter.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/ListMarkerPainter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/MultiColumnSetPainter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/ObjectPainter.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 1 2 3 4 5 6 5 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ReplacedPainter.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/RootInlineBoxPainter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/SVGContainerPainter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/SVGImagePainter.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/SVGShapePainter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/TableCellPainter.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/TablePainter.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 7 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyleConstants.h View 1 2 3 4 5 2 chunks +8 lines, -1 line 3 comments Download
M third_party/WebKit/Source/core/svg/SVGUseElement.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXMediaControls.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/plugins/PluginOcclusionSupport.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/PopupMenuImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebFrameContentDumper.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 44 (25 generated)
sashab
4 years, 4 months ago (2016-07-27 01:17:50 UTC) #4
Bugs Nash
https://codereview.chromium.org/2181953004/diff/20001/third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp File third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp (right): https://codereview.chromium.org/2181953004/diff/20001/third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp#newcode98 third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp:98: // TODO(sashab): Why is this being stored as a ...
4 years, 4 months ago (2016-07-28 01:25:12 UTC) #7
esprehn
https://codereview.chromium.org/2181953004/diff/20001/third_party/WebKit/Source/core/style/ComputedStyle.h File third_party/WebKit/Source/core/style/ComputedStyle.h (right): https://codereview.chromium.org/2181953004/diff/20001/third_party/WebKit/Source/core/style/ComputedStyle.h#newcode301 third_party/WebKit/Source/core/style/ComputedStyle.h:301: m_inheritedData.m_visibility = static_cast<unsigned>(initialVisibility()); On 2016/07/28 at 01:25:12, Bugs Nash ...
4 years, 4 months ago (2016-07-29 01:53:09 UTC) #9
sashab
https://codereview.chromium.org/2181953004/diff/20001/third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp File third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp (right): https://codereview.chromium.org/2181953004/diff/20001/third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp#newcode98 third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp:98: // TODO(sashab): Why is this being stored as a ...
4 years, 4 months ago (2016-07-29 06:25:50 UTC) #10
alancutter (OOO until 2018)
https://codereview.chromium.org/2181953004/diff/20001/third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp File third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp (right): https://codereview.chromium.org/2181953004/diff/20001/third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp#newcode98 third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp:98: // TODO(sashab): Why is this being stored as a ...
4 years, 4 months ago (2016-07-29 09:16:48 UTC) #12
sashab
On 2016/07/29 at 09:16:48, alancutter wrote: > https://codereview.chromium.org/2181953004/diff/20001/third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp > File third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp (right): > > https://codereview.chromium.org/2181953004/diff/20001/third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp#newcode98 ...
4 years, 4 months ago (2016-08-01 03:26:24 UTC) #13
sashab
Thanks esprehn; PTAL at ComputedStyleConstants.h now. Added a TODO (which will later become a documenting ...
4 years, 4 months ago (2016-08-01 03:49:27 UTC) #16
esprehn
lgtm, fwiw the E prefix is pretty dumb it just means "Enum" I think. I'd ...
4 years, 4 months ago (2016-08-02 02:37:45 UTC) #19
sashab
Thanks Elliott. Added a TODO for the static_asserts, have an idea of how to do ...
4 years, 4 months ago (2016-08-02 06:02:39 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2181953004/100001
4 years, 4 months ago (2016-08-02 06:52:09 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/270004)
4 years, 4 months ago (2016-08-02 06:54:26 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2181953004/120001
4 years, 4 months ago (2016-08-09 06:48:24 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/108828)
4 years, 4 months ago (2016-08-09 07:00:21 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2181953004/140001
4 years, 4 months ago (2016-08-09 23:49:55 UTC) #37
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-09 23:56:59 UTC) #38
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/9418458ddfa80b213daa5357bfe21372dbd7565c Cr-Commit-Position: refs/heads/master@{#410880}
4 years, 4 months ago (2016-08-09 23:59:09 UTC) #40
tkent
https://codereview.chromium.org/2181953004/diff/140001/third_party/WebKit/Source/core/style/ComputedStyleConstants.h File third_party/WebKit/Source/core/style/ComputedStyleConstants.h (right): https://codereview.chromium.org/2181953004/diff/140001/third_party/WebKit/Source/core/style/ComputedStyleConstants.h#newcode396 third_party/WebKit/Source/core/style/ComputedStyleConstants.h:396: enum class EVisibility : unsigned { Visible, Hidden, Collapse ...
4 years, 4 months ago (2016-08-10 01:11:34 UTC) #42
sashab
https://codereview.chromium.org/2181953004/diff/140001/third_party/WebKit/Source/core/style/ComputedStyleConstants.h File third_party/WebKit/Source/core/style/ComputedStyleConstants.h (right): https://codereview.chromium.org/2181953004/diff/140001/third_party/WebKit/Source/core/style/ComputedStyleConstants.h#newcode396 third_party/WebKit/Source/core/style/ComputedStyleConstants.h:396: enum class EVisibility : unsigned { Visible, Hidden, Collapse ...
4 years, 4 months ago (2016-08-10 01:14:51 UTC) #43
tkent
4 years, 4 months ago (2016-08-10 01:18:43 UTC) #44
Message was sent while issue was closed.
https://codereview.chromium.org/2181953004/diff/140001/third_party/WebKit/Sou...
File third_party/WebKit/Source/core/style/ComputedStyleConstants.h (right):

https://codereview.chromium.org/2181953004/diff/140001/third_party/WebKit/Sou...
third_party/WebKit/Source/core/style/ComputedStyleConstants.h:396: enum class
EVisibility : unsigned { Visible, Hidden, Collapse };
On 2016/08/10 at 01:14:51, sashab wrote:
> On 2016/08/10 at 01:11:33, tkent wrote:
> > Can you drop 'E' prefix from enum type names in your project?  It's an
ancient naming convention in kHTML era.
> > Also, can you add 'k' prefixes to enum item names?
> 
> Sure, so just to clarify:
> 
> enum class Visibility : unsigned { kVisibile, kHidden, kCollapse };

Exactly!

Powered by Google App Engine
This is Rietveld 408576698