Skip to content

Commit d9cc34b

Browse files
2011-04-15 Joseph Pecoraro <joepeck@webkit.org>
Reviewed by Yury Semikhatsky. Frontend Part of Web Inspector: Remote Web Inspector - Cross Platform InspectorServer https://bugs.webkit.org/show_bug.cgi?id=51364 The front end should not use a transparent background when loaded as a web page (remote debugging) but should when loaded regularly in a custom window. This adds a "remote" style class onto the document body when the page is loaded remotely. * inspector/front-end/inspector.css: (body.detached.platform-mac-snowleopard:not(.remote) #toolbar): respect the "remote" class. * inspector/front-end/inspector.js: add a "remote" class on the body when loaded remotely. Canonical link: https://commits.webkit.org/73765@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84023 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 3edeaa2 commit d9cc34b

3 files changed

Lines changed: 20 additions & 2 deletions

File tree

Source/WebCore/ChangeLog

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
2011-04-15 Joseph Pecoraro <joepeck@webkit.org>
2+
3+
Reviewed by Yury Semikhatsky.
4+
5+
Frontend Part of Web Inspector: Remote Web Inspector - Cross Platform InspectorServer
6+
https://bugs.webkit.org/show_bug.cgi?id=51364
7+
8+
The front end should not use a transparent background when
9+
loaded as a web page (remote debugging) but should when loaded
10+
regularly in a custom window. This adds a "remote" style class
11+
onto the document body when the page is loaded remotely.
12+
13+
* inspector/front-end/inspector.css:
14+
(body.detached.platform-mac-snowleopard:not(.remote) #toolbar): respect the "remote" class.
15+
* inspector/front-end/inspector.js: add a "remote" class on the body when loaded remotely.
16+
117
2011-04-15 Joseph Pecoraro <joepeck@webkit.org>
218

319
Reviewed by David Kilzer.

Source/WebCore/inspector/front-end/inspector.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ body.inactive #toolbar {
8989
border-bottom: 1px solid rgb(64%, 64%, 64%);
9090
}
9191

92-
body.detached.platform-mac-leopard #toolbar,
93-
body.detached.platform-mac-snowleopard #toolbar {
92+
body.detached.platform-mac-leopard:not(.remote) #toolbar,
93+
body.detached.platform-mac-snowleopard:not(.remote) #toolbar {
9494
background: transparent !important;
9595
}
9696

Source/WebCore/inspector/front-end/inspector.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,8 @@ WebInspector.doLoadedDone = function()
416416
document.body.addStyleClass("platform-" + flavor);
417417
var port = WebInspector.port;
418418
document.body.addStyleClass("port-" + port);
419+
if (WebInspector.socket)
420+
document.body.addStyleClass("remote");
419421

420422
WebInspector.settings = new WebInspector.Settings();
421423

0 commit comments

Comments
 (0)