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

Issue 2567963002: Change ComputedStyle::setWritingMode() to return void instead of bool (Closed)

Created:
4 years ago by sashab
Modified:
4 years ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-layout_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, rwlbuis, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change ComputedStyle::setWritingMode() to return void instead of bool Change ComputedStyle::setWritingMode() to return void instead of bool, and updated the 2 callsites that use this functionality to match. There is overhead from checking whether writingMode has changed and returning instead of setting the value, and this patch removes that overhead for callers that don't need this functionality. Also, this is pre-work to generating writing-mode in ComputedStyleBase, which aims to make all properties regular and share the same getter and setter patterns where possible. BUG=628043 Committed: https://crrev.com/5fb8c41aea7e2a5a7ec8f33a3c6bee46eb86d95d Cr-Commit-Position: refs/heads/master@{#438448}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Changed to early return #

Total comments: 4

Patch Set 3 : Review feedback #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -12 lines) Patch
M third_party/WebKit/Source/core/css/resolver/StyleResolverState.h View 1 2 1 chunk +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 2 3 1 chunk +1 line, -7 lines 0 comments Download

Messages

Total messages: 25 (14 generated)
sashab
4 years ago (2016-12-12 02:24:07 UTC) #3
sashab
Small change that can be un-done haha https://codereview.chromium.org/2567963002/diff/1/third_party/WebKit/Source/core/css/resolver/StyleResolverState.h File third_party/WebKit/Source/core/css/resolver/StyleResolverState.h (right): https://codereview.chromium.org/2567963002/diff/1/third_party/WebKit/Source/core/css/resolver/StyleResolverState.h#newcode187 third_party/WebKit/Source/core/css/resolver/StyleResolverState.h:187: if (oldWritingMode ...
4 years ago (2016-12-12 02:26:17 UTC) #6
napper
lgtm https://codereview.chromium.org/2567963002/diff/20001/third_party/WebKit/Source/core/css/resolver/StyleResolverState.h File third_party/WebKit/Source/core/css/resolver/StyleResolverState.h (right): https://codereview.chromium.org/2567963002/diff/20001/third_party/WebKit/Source/core/css/resolver/StyleResolverState.h#newcode186 third_party/WebKit/Source/core/css/resolver/StyleResolverState.h:186: const WritingMode oldWritingMode = m_style->getWritingMode(); Not sure you ...
4 years ago (2016-12-12 03:53:33 UTC) #8
sashab
Thanks napper@! Alancutter@ please review, mainly your thoughts on the early return braces... I thought ...
4 years ago (2016-12-12 03:58:39 UTC) #10
alancutter (OOO until 2018)
lgtm On 2016/12/12 at 03:58:39, sashab wrote: > Thanks napper@! > > Alancutter@ please review, ...
4 years ago (2016-12-13 00:01:44 UTC) #11
sashab
Cool, agreed.
4 years ago (2016-12-13 00:07:11 UTC) #12
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/2567963002/40001
4 years ago (2016-12-13 00:08:13 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/331729) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years ago (2016-12-13 02:07:45 UTC) #17
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/2567963002/60001
4 years ago (2016-12-14 04:57:37 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-14 06:24:19 UTC) #23
commit-bot: I haz the power
4 years ago (2016-12-14 06:28:07 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5fb8c41aea7e2a5a7ec8f33a3c6bee46eb86d95d
Cr-Commit-Position: refs/heads/master@{#438448}

Powered by Google App Engine
This is Rietveld 408576698