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

Issue 358603002: Remove StyleEngine.h include from RenderObject.h (Closed)

Created:
6 years, 6 months ago by davve
Modified:
6 years, 5 months ago
Reviewers:
esprehn, eseidel
CC:
aandrey+blink_chromium.org, 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-rendering, Rik, caseq+blink_chromium.org, devtools-reviews_chromium.org, dglazkov+blink, krit, dstockwell, eae+blinkwatch, ed+blinkwatch_opera.com, eric.carlson_apple.com, Eric Willigers, eustas+blink_chromium.org, feature-media-reviews_chromium.org, f(malita), fs, gasubic, gyuyoung.kim_webkit.org, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, loislo+blink_chromium.org, lushnikov+blink_chromium.org, malch+blink_chromium.org, Mike Lawther (Google), paulirish+reviews_chromium.org, pfeldman+blink_chromium.org, philipj_slow, rjwright, rwlbuis, rune+blink, Stephen Chennney, sergeyv+blink_chromium.org, shans, sof, nessy, Steve Block, Timothy Loh, vcarbune.chromium, vsevik+blink_chromium.org, yurys+blink_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@rename-style-bool-to-0
Project:
blink
Visibility:
Public.

Description

Remove StyleEngine.h include from RenderObject.h Achieves it by adding a header file, RenderObjectInlines.h, for use by the compilation units that calls the inline methods. Targets that depend on StyleEngine.h now cut in roughly half, from 678 to 278. Top ten list of other header files that are affected: Source/core/dom/StyleEngine.h: 678 -> 278 Source/core/dom/DocumentStyleSheetCollection.h: 679 -> 279 Source/core/dom/StyleSheetCollection.h: 680 -> 280 Source/core/dom/TreeScopeStyleSheetCollection.h: 679 -> 279 Source/core/dom/StyleSheetScopingNodeList.h: 680 -> 280 Source/core/css/TreeBoundaryCrossingRules.h: 689 -> 297 Source/core/css/resolver/ScopedStyleTree.h: 690 -> 298 Source/core/css/SiblingTraversalStrategies.h: 691 -> 299 Source/core/css/SelectorFilter.h: 691 -> 299 Source/core/css/resolver/MatchRequest.h: 690 -> 298 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177376

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rename header file and make independant of other in-flight CLs #

Patch Set 3 : Rebased for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -5 lines) Patch
M Source/core/css/AffectedByFocusTest.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/DragUpdateTest.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/SelectorChecker.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/ContainerNode.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Element.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Node.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLAppletElement.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLDetailsElement.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLElement.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLEmbedElement.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLFrameElement.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLTableCellElement.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/track/vtt/VTTRegion.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/inspector/InspectorCSSAgent.cpp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorPageAgent.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/InlineBox.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/InlineBox.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/InlineFlowBox.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/InlineFlowBox.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderBR.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/rendering/RenderBlockLineLayout.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderBoxModelObject.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderInline.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderListBox.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderObject.h View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
A Source/core/rendering/RenderObjectInlines.h View 1 1 chunk +30 lines, -0 lines 0 comments Download
M Source/core/rendering/RootInlineBox.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/line/BreakingContextInlineHeaders.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/svg/ReferenceFilterBuilder.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGInlineText.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGResourceClipper.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGResourceFilter.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGResourceMasker.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGResourcePattern.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/svg/SVGAnimateMotionElement.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/svg/SVGFELightElement.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/svg/SVGFEMergeElement.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/svg/SVGGradientElement.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/tests/WebDocumentTest.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
davve
Depends on https://codereview.chromium.org/355843002/ (and possibly <https://codereview.chromium.org/351033003>). Crude stats generated by calling: ninja -C ../../out/Debug -t ...
6 years, 6 months ago (2014-06-25 14:27:09 UTC) #1
abarth-chromium
Again, I'm not the right reviewer for this change.
6 years, 6 months ago (2014-06-25 19:49:59 UTC) #2
pdr.
-abarth +esprehn
6 years, 6 months ago (2014-06-25 19:59:46 UTC) #3
esprehn
https://codereview.chromium.org/358603002/diff/1/Source/core/rendering/RenderObjectStyle.h File Source/core/rendering/RenderObjectStyle.h (right): https://codereview.chromium.org/358603002/diff/1/Source/core/rendering/RenderObjectStyle.h#newcode15 Source/core/rendering/RenderObjectStyle.h:15: return document().styleEngine()->usesFirstLineRules() ? cachedFirstLineStyle() : style(); I suspect neither ...
6 years, 6 months ago (2014-06-25 20:09:21 UTC) #4
davve
https://codereview.chromium.org/358603002/diff/1/Source/core/rendering/RenderObjectStyle.h File Source/core/rendering/RenderObjectStyle.h (right): https://codereview.chromium.org/358603002/diff/1/Source/core/rendering/RenderObjectStyle.h#newcode15 Source/core/rendering/RenderObjectStyle.h:15: return document().styleEngine()->usesFirstLineRules() ? cachedFirstLineStyle() : style(); On 2014/06/25 20:09:21, ...
6 years, 6 months ago (2014-06-26 07:00:33 UTC) #5
davve
https://codereview.chromium.org/358603002/diff/1/Source/core/rendering/RenderObjectStyle.h File Source/core/rendering/RenderObjectStyle.h (right): https://codereview.chromium.org/358603002/diff/1/Source/core/rendering/RenderObjectStyle.h#newcode15 Source/core/rendering/RenderObjectStyle.h:15: return document().styleEngine()->usesFirstLineRules() ? cachedFirstLineStyle() : style(); On 2014/06/26 07:00:33, ...
6 years, 6 months ago (2014-06-26 13:30:45 UTC) #6
esprehn
On 2014/06/26 at 13:30:45, davve wrote: > https://codereview.chromium.org/358603002/diff/1/Source/core/rendering/RenderObjectStyle.h > File Source/core/rendering/RenderObjectStyle.h (right): > > https://codereview.chromium.org/358603002/diff/1/Source/core/rendering/RenderObjectStyle.h#newcode15 ...
6 years, 5 months ago (2014-06-27 08:18:09 UTC) #7
davve
On 2014/06/27 08:18:09, esprehn wrote: > Sigh, lets name it RenderObjectInlines.h then. Done. Also made ...
6 years, 5 months ago (2014-06-27 14:29:54 UTC) #8
davve
6 years, 5 months ago (2014-07-01 18:55:51 UTC) #9
esprehn
lgtm
6 years, 5 months ago (2014-07-01 19:29:12 UTC) #10
davve
The CQ bit was checked by davve@opera.com
6 years, 5 months ago (2014-07-02 08:37:35 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davve@opera.com/358603002/40001
6 years, 5 months ago (2014-07-02 08:37:45 UTC) #12
commit-bot: I haz the power
6 years, 5 months ago (2014-07-02 13:13:45 UTC) #13
Message was sent while issue was closed.
Change committed as 177376

Powered by Google App Engine
This is Rietveld 408576698