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

Issue 380073002: Rename variables in ContainerNode::checkForSiblingStyleChanges() for clarity (Closed)

Created:
6 years, 5 months ago by Inactive
Modified:
6 years, 5 months ago
Reviewers:
esprehn
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Project:
blink
Visibility:
Public.

Description

Rename variables in ContainerNode::checkForSiblingStyleChanges() for clarity Rename variables in ContainerNode::checkForSiblingStyleChanges() for clarity and also update comments. Variables renaming: - beforeChange / afterChange to nodeBeforeChange / nodeAfterChange to be clear about the type (e.g. not necessary Element nodes) - newFirstChild / newLastChild to firstChildElement / lastChildElement to be clear that those are the first / last child _elements_. - lastElementBeforeInsertion / firstElementAfterInsertion to elementBeforeChange / elementAfterChange as the change is not necessarily an insertion (e.g. could be a removal). The naming was confusing. Also add an ASSERT(changeType != FinishedParsingChildren) assertion to enforce the precondition explained in the comment for the corresponding scope. There is no functional change in this CL to make it more easily reviewable. This CL is purely about improving code readability / understandability. R=esprehn@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178055

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -36 lines) Patch
M Source/core/dom/ContainerNode.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/ContainerNode.cpp View 3 chunks +37 lines, -35 lines 5 comments Download

Messages

Total messages: 8 (0 generated)
Inactive
There is no functional change in this CL to make it more easily reviewable. This ...
6 years, 5 months ago (2014-07-10 01:05:11 UTC) #1
esprehn
This patch doesn't seem like it's improving anything, you just made it all more verbose. ...
6 years, 5 months ago (2014-07-10 01:40:37 UTC) #2
Inactive
On 2014/07/10 01:40:37, esprehn wrote: > This patch doesn't seem like it's improving anything, you ...
6 years, 5 months ago (2014-07-10 02:01:55 UTC) #3
esprehn
On 2014/07/10 at 02:01:55, ch.dumez wrote: > On 2014/07/10 01:40:37, esprehn wrote: > > This ...
6 years, 5 months ago (2014-07-14 08:45:20 UTC) #4
Inactive
On 2014/07/14 08:45:20, esprehn wrote: > On 2014/07/10 at 02:01:55, ch.dumez wrote: > > On ...
6 years, 5 months ago (2014-07-14 13:23:46 UTC) #5
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 5 months ago (2014-07-14 13:23:52 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/380073002/1
6 years, 5 months ago (2014-07-14 13:24:50 UTC) #7
commit-bot: I haz the power
6 years, 5 months ago (2014-07-14 14:00:46 UTC) #8
Message was sent while issue was closed.
Change committed as 178055

Powered by Google App Engine
This is Rietveld 408576698