RESOLVED FIXED 95080
Web Inspector: introduce overlay page and migrate "paused in debugger" to it.
https://bugs.webkit.org/show_bug.cgi?id=95080
Summary Web Inspector: introduce overlay page and migrate "paused in debugger" to it.
Pavel Feldman
Reported 2012-08-27 06:11:23 PDT
Separate page instance is now used to render overlay. Paused in debugger is migrated to the new overlay.
Attachments
Patch (29.69 KB, patch)
2012-08-27 06:13 PDT, Pavel Feldman
no flags
Patch (33.11 KB, patch)
2012-08-27 06:53 PDT, Pavel Feldman
no flags
Patch (33.50 KB, patch)
2012-08-27 07:48 PDT, Pavel Feldman
no flags
Patch (32.24 KB, patch)
2012-08-27 22:41 PDT, Pavel Feldman
no flags
Patch (32.59 KB, patch)
2012-08-27 23:11 PDT, Pavel Feldman
yurys: review+
Pavel Feldman
Comment 1 2012-08-27 06:13:22 PDT
Gyuyoung Kim
Comment 2 2012-08-27 06:17:15 PDT
kov's GTK+ EWS bot
Comment 3 2012-08-27 06:24:13 PDT
Early Warning System Bot
Comment 4 2012-08-27 06:29:43 PDT
Early Warning System Bot
Comment 5 2012-08-27 06:36:34 PDT
Build Bot
Comment 6 2012-08-27 06:44:03 PDT
Pavel Feldman
Comment 7 2012-08-27 06:53:19 PDT
Andrey Kosyakov
Comment 8 2012-08-27 07:06:05 PDT
Comment on attachment 160710 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=160710&action=review > Source/WebCore/inspector/InspectorOverlay.h:111 > + void drawNodeHighlight(GraphicsContext*); > + void drawRectHighlight(GraphicsContext*); > + void drawOverlayPage(GraphicsContext*); Why did this change? Does it have to be a part of this change? > Source/WebCore/inspector/InspectorOverlayPage.html:59 > +body { > + margin: 0; > + padding: 0; > +} > + > +fill { > + position: absolute; > + top: 0; > + right: 0; > + bottom: 0; > + left: 0; > +} > + > +.dimmed { > + background-color: rgba(0, 0, 0, 0.31); > +} > + > +.message-line { > + text-align: center; > +} > + > +.message-box { > + font-family: monospace; > + background-color: rgb(255, 255, 194); > + border: 1px solid rgb(128, 128, 128); > + display: inline-block; > + margin: 10px 0; > + padding: 2px 4px; > +} 4 spaces pls.
Andrey Kosyakov
Comment 9 2012-08-27 07:15:40 PDT
Comment on attachment 160710 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=160710&action=review > Source/WebCore/inspector/InspectorOverlay.cpp:604 > + stateSaver.restore(); redundant? > Source/WebCore/inspector/InspectorOverlay.cpp:658 > + overlayPage()->mainFrame()->script()->evaluate(ScriptSourceCode(makeString(method, "(\"", argument, "\")"))); What if argument contains quotes?
Andrey Kosyakov
Comment 10 2012-08-27 07:20:41 PDT
Comment on attachment 160710 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=160710&action=review > Source/WebCore/inspector/InspectorOverlayPage.html:1 > +<!-- You may want to have DOCTYPE declaration here to avoid surprises from quirks mode.
Pavel Feldman
Comment 11 2012-08-27 07:48:27 PDT
Yury Semikhatsky
Comment 12 2012-08-27 08:05:57 PDT
Comment on attachment 160718 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=160718&action=review > Source/WebCore/bindings/js/ScriptController.h:29 > +#include "ScriptValue.h" Why did this change? > Source/WebCore/inspector/InspectorOverlay.cpp:605 > + stateSaver.restore(); Remove this line, ~GraphicsContextStateSaver will do this for you. > Source/WebCore/inspector/InspectorOverlay.cpp:650 > + loader->activeDocumentLoader()->writer()->begin(KURL()); Please call begin() instead. > Source/WebCore/inspector/InspectorOverlayPage.html:86 > +<canvas id="canvas" class="fill"></canvas> It seems to be unused, please remove.
Pavel Feldman
Comment 13 2012-08-27 22:41:44 PDT
Pavel Feldman
Comment 14 2012-08-27 22:45:01 PDT
(In reply to comment #12) > (From update of attachment 160718 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=160718&action=review > > > Source/WebCore/bindings/js/ScriptController.h:29 > > +#include "ScriptValue.h" > > Why did this change? > ScriptController's evaluate returns ScriptValue that is forward-declared. But that return value is not always used. As a result, the call site for frame->script()->evaluate("Foo") needs to include "ScriptValue.h". I thought it made ore sense to include it from the ScriptController to avoid further confusion. Rolled back since it raised questions. > > Source/WebCore/inspector/InspectorOverlay.cpp:605 > > + stateSaver.restore(); > > Remove this line, ~GraphicsContextStateSaver will do this for you. > Done. > > Source/WebCore/inspector/InspectorOverlay.cpp:650 > > + loader->activeDocumentLoader()->writer()->begin(KURL()); > > Please call begin() instead. > Done. > > Source/WebCore/inspector/InspectorOverlayPage.html:86 > > +<canvas id="canvas" class="fill"></canvas> > > It seems to be unused, please remove. Done.
Pavel Feldman
Comment 15 2012-08-27 23:11:47 PDT
Yury Semikhatsky
Comment 16 2012-08-27 23:18:32 PDT
(In reply to comment #14) > (In reply to comment #12) > > (From update of attachment 160718 [details] [details]) > > View in context: https://bugs.webkit.org/attachment.cgi?id=160718&action=review > > > > > Source/WebCore/bindings/js/ScriptController.h:29 > > > +#include "ScriptValue.h" > > > > Why did this change? > > > > ScriptController's evaluate returns ScriptValue that is forward-declared. But that return value is not always used. As a result, the call site for frame->script()->evaluate("Foo") needs to include "ScriptValue.h". I thought it made ore sense to include it from the ScriptController to avoid further confusion. Rolled back since it raised questions. > I believe we generally include headers on the caller site to avoid increasing number of #includes in the header files and so compilation time.
Pavel Feldman
Comment 17 2012-08-28 01:52:07 PDT
Note You need to log in before you can comment on or make changes to this bug.