RESOLVED INVALID 74238
Unify inspectors preprocessor statements
https://bugs.webkit.org/show_bug.cgi?id=74238
Summary Unify inspectors preprocessor statements
Patrick R. Gansterer
Reported 2011-12-10 11:01:57 PST
Unify inspectors preprocessor statements
Attachments
Patch (43.60 KB, patch)
2011-12-10 11:05 PST, Patrick R. Gansterer
pfeldman: review-
pfeldman: commit-queue-
Patrick R. Gansterer
Comment 1 2011-12-10 11:05:45 PST
Pavel Feldman
Comment 2 2011-12-11 09:26:17 PST
Comment on attachment 118692 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=118692&action=review > Source/WebCore/inspector/ConsoleMessage.h:34 > +#if ENABLE(INSPECTOR) Here and below: I don't think we should guard header private to inspector: including them from outside of inspector should break !ENABLE(INSPECTOR) configurations and hence point to the problem. I'd rather go through inspector internals and wipe out similar guards from headers there.
Patrick R. Gansterer
Comment 3 2011-12-11 12:03:37 PST
Comment on attachment 118692 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=118692&action=review >> Source/WebCore/inspector/ConsoleMessage.h:34 >> +#if ENABLE(INSPECTOR) > > Here and below: I don't think we should guard header private to inspector: including them from outside of inspector should break !ENABLE(INSPECTOR) configurations and hence point to the problem. I'd rather go through inspector internals and wipe out similar guards from headers there. how can I classify them? is there a clear attribute for the public/private decision?
Pavel Feldman
Comment 4 2011-12-12 10:54:26 PST
(In reply to comment #3) > (From update of attachment 118692 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=118692&action=review > > >> Source/WebCore/inspector/ConsoleMessage.h:34 > >> +#if ENABLE(INSPECTOR) > > > > Here and below: I don't think we should guard header private to inspector: including them from outside of inspector should break !ENABLE(INSPECTOR) configurations and hence point to the problem. I'd rather go through inspector internals and wipe out similar guards from headers there. > > how can I classify them? is there a clear attribute for the public/private decision? 1) WebCore should only communicate with the inspector by means of InspectorInstrumentation interface. This interface is designed so that the call site would not have to wrap the calls to it with ENABLED(INSPECTOR). 2) WebKit (and maybe one or two extra places in WebCore) communicate with the inspector by means of the InspectorController interface. All these usages should be hidden behind the ifdefs. Rest of the headers is considered to be private to the inspector.
Brian Burg
Comment 5 2014-12-12 14:36:28 PST
Closing as invalid, as this bug pertains to the old inspector UI and/or its tests. Please file a new bug (https://www.webkit.org/new-inspector-bug) if the bug/feature/issue is still relevant to WebKit trunk.
Note You need to log in before you can comment on or make changes to this bug.