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

Issue 2742573005: Avoid to include IDL-generated headers from EventTarget.h and Node.h (Closed)

Created:
3 years, 9 months ago by tkent
Modified:
3 years, 9 months ago
Reviewers:
haraken, bashi, Yuki
CC:
shalamov, apavlov+blink_chromium.org, blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, blink-reviews-frames_chromium.org, blink-reviews-html_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-wtf_chromium.org, blink-worker-reviews_chromium.org, caseq+blink_chromium.org, chromium-reviews, cmumford, devtools-reviews_chromium.org, dglazkov+blink, dominicc+watchlist_chromium.org, dshwang, krit, eae+blinkwatch, eric.carlson_apple.com, falken+watch_chromium.org, feature-media-reviews_chromium.org, fmalita+watch_chromium.org, fs, gasubic, gogerald+paymentswatch_chromium.org, gyuyoung2, horo+watch_chromium.org, jchaffraix+rendering, jkarlin+watch_chromium.org, jsbell+idb_chromium.org, kinuko+worker_chromium.org, kinuko+watch, kouhei+svg_chromium.org, kozyatinskiy+blink_chromium.org, leviw+renderwatch, loading-reviews+parser_chromium.org, lushnikov+blink_chromium.org, mahmadi+paymentswatch_chromium.org, mcasas+watch+mediastream_chromium.org, Mikhail, mlamouri+watch-blink_chromium.org, pdr+svgwatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, pfeldman+blink_chromium.org, rwlbuis, rouslan+payments_chromium.org, Stephen Chennney, sebsg+paymentswatch_chromium.org, shimazu+worker_chromium.org, sof, nessy, Srirama, szager+layoutwatch_chromium.org, tommyw+watchlist_chromium.org, wanming.lin, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid to include IDL-generated headers from EventTarget.h and Node.h Headers generated by IDL compiler bring a lot of binding headers. We should avoid to include such headers in popular base classes such as EventTarget and Node. Review-Url: https://codereview.chromium.org/2742573005 Cr-Commit-Position: refs/heads/master@{#456018} Committed: https://chromium.googlesource.com/chromium/src/+/e074c7023701f08692d087cf3f74d77f6ee54a90

Patch Set 1 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -19 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.h View 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Node.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/TreeScope.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/Position.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventTarget.h View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventTarget.cpp View 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/DOMTimerTest.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/HostsUsingFeatures.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/RemoteDOMWindow.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLIFrameElementAllow.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLTextAreaElementTest.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/MediaDocument.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/TextControlElement.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/DevToolsHost.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutMedia.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidator.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceBase.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/MainThreadWorkletTest.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/xml/DOMParser.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/ReadableStreamBytesConsumerTest.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBIndex.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBKeyRange.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBObserverChanges.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediasource/MediaSource.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediasource/URLMediaSource.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/URLMediaStream.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/netinfo/WorkerNavigatorNetworkInformation.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/Sensor.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webusb/USB.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebMediaDeviceChangeObserver.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/RootScrollerTest.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/Forward.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (18 generated)
tkent
bashi@, would you review this please?
3 years, 9 months ago (2017-03-10 07:10:01 UTC) #13
Yuki
LGTM.
3 years, 9 months ago (2017-03-10 07:28:53 UTC) #15
bashi
lgtm
3 years, 9 months ago (2017-03-10 07:29:11 UTC) #16
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/2742573005/20001
3 years, 9 months ago (2017-03-10 07:39:47 UTC) #20
commit-bot: I haz the power
Committed patchset #1 (id:20001) as https://chromium.googlesource.com/chromium/src/+/e074c7023701f08692d087cf3f74d77f6ee54a90
3 years, 9 months ago (2017-03-10 07:45:38 UTC) #23
haraken
LGTM
3 years, 9 months ago (2017-03-10 08:31:36 UTC) #24
Daniel Bratell
3 years, 9 months ago (2017-03-10 09:00:43 UTC) #25
Message was sent while issue was closed.
Nice!

Checked the preprocessed VideoTrack.cpp file and this change shrunk it from
182198 lines to 177719 lines (-4479 lines).

Over a couple of thousand files, this will probably mean millions of fewer lines
of code through the compiler.

Powered by Google App Engine
This is Rietveld 408576698