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

Issue 211773002: Rename updateStyle to updateRenderTree (Closed)

Created:
6 years, 9 months ago by esprehn
Modified:
6 years, 9 months ago
CC:
blink-reviews, sof, eae+blinkwatch, dglazkov+blink, adamk+blink_chromium.org, Inactive, rwlbuis
Visibility:
Public.

Description

Rename updateStyle to updateRenderTree updateStyle was doing too many things, this patch moves the style updating logic out into a new function called updateStyle and renames the original one to updateRenderTree. It also renames all the other updateStyle related things to be named with "updateRenderTree". Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170012

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rename it all #

Patch Set 3 : Fix tracing test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -136 lines) Patch
M LayoutTests/inspector/tracing.html View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/animation/EffectInput.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Document.h View 1 5 chunks +8 lines, -7 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 22 chunks +98 lines, -93 lines 0 comments Download
M Source/core/dom/Element.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/FullscreenElementStack.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Node.cpp View 1 4 chunks +5 lines, -5 lines 0 comments Download
M Source/core/dom/Text.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/ApplyBlockElementCommand.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/editing/ApplyStyleCommand.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/Caret.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/Editor.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/FrameSelection.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/editing/InputMethodController.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/DOMWindow.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/html/ImageDocument.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/svg/SVGElementInstance.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGUseElement.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/testing/Internals.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/xml/XMLErrors.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebAXObject.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
esprehn
6 years, 9 months ago (2014-03-25 21:27:34 UTC) #1
eseidel
I like the idea. I'm not sure what "updateRenderTree" does, nor am I sure what ...
6 years, 9 months ago (2014-03-25 21:31:10 UTC) #2
esprehn
On 2014/03/25 21:31:10, eseidel wrote: > I like the idea. I'm not sure what "updateRenderTree" ...
6 years, 9 months ago (2014-03-25 21:31:56 UTC) #3
ojan
While I agree that these aren't the best names, I think they're an improvement, and ...
6 years, 9 months ago (2014-03-25 23:39:11 UTC) #4
esprehn
https://codereview.chromium.org/211773002/diff/1/Source/core/dom/Document.h File Source/core/dom/Document.h (right): https://codereview.chromium.org/211773002/diff/1/Source/core/dom/Document.h#newcode478 Source/core/dom/Document.h:478: void updateStyleForNodeIfNeeded(Node*); On 2014/03/25 23:39:11, ojan wrote: > Shouldn't ...
6 years, 9 months ago (2014-03-25 23:51:13 UTC) #5
esprehn
The CQ bit was checked by esprehn@chromium.org
6 years, 9 months ago (2014-03-26 00:35:43 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/211773002/90001
6 years, 9 months ago (2014-03-26 00:35:49 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-26 01:13:55 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 9 months ago (2014-03-26 01:13:56 UTC) #9
esprehn
The CQ bit was checked by esprehn@chromium.org
6 years, 9 months ago (2014-03-26 01:25:32 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/211773002/90001
6 years, 9 months ago (2014-03-26 01:25:34 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-26 01:27:13 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 9 months ago (2014-03-26 01:27:13 UTC) #13
esprehn
The CQ bit was checked by esprehn@chromium.org
6 years, 9 months ago (2014-03-26 01:39:55 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/211773002/170003
6 years, 9 months ago (2014-03-26 01:40:05 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-26 02:54:31 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-26 02:54:32 UTC) #17
esprehn
The CQ bit was checked by esprehn@chromium.org
6 years, 9 months ago (2014-03-26 02:56:06 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/211773002/170003
6 years, 9 months ago (2014-03-26 02:56:13 UTC) #19
commit-bot: I haz the power
Change committed as 170012
6 years, 9 months ago (2014-03-26 04:02:57 UTC) #20
eseidel
I think if we get away from other parts of blink calling these manual "update" ...
6 years, 9 months ago (2014-03-26 06:33:16 UTC) #21
ojan
6 years, 9 months ago (2014-03-26 17:03:48 UTC) #22
Message was sent while issue was closed.
On 2014/03/26 06:33:16, eseidel wrote:
> I think if we get away from other parts of blink calling these manual "update"
> methods directly, then I don't care what they're named. :)  These are phase
> transition methods and we should have a central authortity who you call and
say
> "ensureThroughPhase(Style)", etc.

Totally.

> Right now we're in a confusing state where everyone calls these manual methods
> and we just renamed one of the manual methods from its historic name.

Yup. The thing is that what this method does has changed a lot in the past few
months (e.g. doing Shadow DOM distribution), so the historic name was especially
misleading.

Powered by Google App Engine
This is Rietveld 408576698