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

Issue 24773003: Rename Node::attached() to confusingAndOftenMisusedAttached() (Closed)

Created:
7 years, 2 months ago by abarth-chromium
Modified:
7 years, 2 months ago
Reviewers:
Hajime Morrita, esprehn
CC:
blink-reviews, nessy, chromiumbugtracker_adobe.com, aboxhall, webcomponents-bugzilla_chromium.org, eae+blinkwatch, leviw+renderwatch, feature-media-reviews_chromium.org, dglazkov+blink, dmazzoni, f(malita), adamk+blink_chromium.org, jchaffraix+rendering, pdr, Stephen Chennney, Nate Chapin, vcarbune.chromium, gavinp+loader_chromium.org, eseidel, ojan
Visibility:
Public.

Description

Rename Node::attached() to confusingAndOftenMisusedAttached() According to Elliot's talk at BlinkOn, the attached() function is confusing and often misused. We should call that out in the name while we audit all the callers. Most callers want inDocument() && document().renderView() or just inDocument(). The ones inside the recalcStyle machinery probably need some kind of styleChangeType() check. R=esprehn BUG=299011 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158403

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -77 lines) Patch
M Source/core/accessibility/AccessibilityMenuListPopup.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/ContainerNode.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/dom/ContainerNode.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/dom/ContainerNodeAlgorithms.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Document.cpp View 6 chunks +6 lines, -6 lines 0 comments Download
M Source/core/dom/Element.cpp View 5 chunks +5 lines, -5 lines 0 comments Download
M Source/core/dom/ElementRareData.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/FullscreenElementStack.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/dom/Node.h View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/dom/Node.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/dom/NodeRenderingContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Range.cpp View 4 chunks +5 lines, -5 lines 0 comments Download
M Source/core/dom/StyleEngine.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Text.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/shadow/ElementShadow.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/dom/shadow/InsertionPoint.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/shadow/ShadowRoot.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/AppendNodeCommand.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/InsertNodeBeforeCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/RemoveNodeCommand.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLFormControlElementWithState.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLInputElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLLIElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLPlugInImageElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLSelectElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/shadow/MediaControlElementTypes.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/html/shadow/MediaControlElements.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/loader/DocumentLoader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/HistoryController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/ImageLoader.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/page/DOMWindow.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/page/Frame.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderCounter.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderMenuList.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGTests.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/svg/SVGUseElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/testing/Internals.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
abarth-chromium
7 years, 2 months ago (2013-09-26 17:22:53 UTC) #1
Hajime Morrita
It might be helpful to inform readers how it is confusing and can be misused. ...
7 years, 2 months ago (2013-09-26 20:53:22 UTC) #2
Hajime Morrita
lgtm anyway.
7 years, 2 months ago (2013-09-26 20:53:38 UTC) #3
abarth-chromium
On 2013/09/26 20:53:22, morrita1 wrote: > It might be helpful to inform readers how it ...
7 years, 2 months ago (2013-09-26 20:57:13 UTC) #4
esprehn
Haha, I suppose we could go with deprecatedAttached() but marking them to burn down is ...
7 years, 2 months ago (2013-09-26 20:58:20 UTC) #5
esprehn
lgtm
7 years, 2 months ago (2013-09-26 20:58:43 UTC) #6
abarth-chromium
I left the long name because it's more fun. :) I also added Elliot's comments ...
7 years, 2 months ago (2013-09-26 21:37:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/24773003/1
7 years, 2 months ago (2013-09-26 21:39:42 UTC) #8
commit-bot: I haz the power
7 years, 2 months ago (2013-09-26 23:16:32 UTC) #9
Message was sent while issue was closed.
Change committed as 158403

Powered by Google App Engine
This is Rietveld 408576698