[Webkit-unassigned] [Bug 32724] [Qt] It should be possible to disable inspector

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 16 02:10:27 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=32724





--- Comment #18 from Ismail "cartman" Donmez <ismail at namtrac.org>  2010-02-16 02:10:25 PST ---
(In reply to comment #17)
> (In reply to comment #16)
> > (In reply to comment #15)
> > > (From update of attachment 48795 [details] [details] [details])
> > > >  
> > > >  static InspectorTimelineAgent* inspectorTimelineAgent(RenderObject* renderer)
> > > >  {
> > > > +#if !ENABLE(INSPECTOR)
> > > > +    return 0;
> > > > +#else
> > > >      Frame* frame = renderer->document()->frame();
> > > >      if (!frame)
> > > >          return 0;
> > > > @@ -1026,6 +1029,7 @@ static InspectorTimelineAgent* inspectorTimelineAgent(RenderObject* renderer)
> > > >      if (!page)
> > > >          return 0;
> > > >      return page->inspectorTimelineAgent();
> > > > +#endif
> > > >  }
> > > 
> > > 
> > > You should just surround this entire method with if ENABLE(INSPECTOR). Please
> > > fix this before landing.
> > 
> > Since I cannot land myself anyway, if I just surround with if ENABLE(INSPECTOR)
> > it would give a compiler warning/error saying the function should return a
> > value.
> 
> I mean surround the function, not its body. It should never be referenced if
> there is no inspector.

That would require patching the header too, isn't that kind of ugly? :-)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list