WebKit Bugzilla
Attachment 372632 Details for
Bug 199109
: Web Inspector: remove .legacy-mac/.latest-mac CSS classes, standardize on .latest-mac UI
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-199109-20190621100249.patch (text/plain), 12.08 KB, created by
Matt Baker
on 2019-06-21 10:02:49 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Matt Baker
Created:
2019-06-21 10:02:49 PDT
Size:
12.08 KB
patch
obsolete
>Subversion Revision: 246680 >diff --git a/Source/WebInspectorUI/ChangeLog b/Source/WebInspectorUI/ChangeLog >index 5a960b911ba7b7fb8df0005d8ac457887da333c6..a16d4988d8422e9e569573c023114ee726589a6c 100644 >--- a/Source/WebInspectorUI/ChangeLog >+++ b/Source/WebInspectorUI/ChangeLog >@@ -1,3 +1,48 @@ >+2019-06-21 Matt Baker <mattbaker@apple.com> >+ >+ Web Inspector: remove .legacy-mac/.latest-mac CSS classes, standardize on .latest-mac UI >+ https://bugs.webkit.org/show_bug.cgi?id=199109 >+ <rdar://problem/51991129> >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ Drop legacy macOS version support from Web Inspector UI. >+ >+ * UserInterface/Base/Main.js: >+ >+ * UserInterface/Views/DefaultDashboardView.css: >+ (@media (prefers-color-scheme: dark)): >+ (body.latest-mac .toolbar .dashboard .item.button): Deleted. >+ >+ * UserInterface/Views/Toolbar.css: >+ (.toolbar): >+ (.toolbar .item.button,): >+ (.toolbar .search-bar > input[type="search"]): >+ (.toolbar .search-bar > input[type="search"]:focus): >+ (@media (-webkit-min-device-pixel-ratio: 2)): >+ (.toolbar .item.button:active): >+ (body.window-inactive .toolbar .item.button,): >+ (@media (prefers-color-scheme: dark)): >+ (.toolbar .search-bar > input[type="search"]::placeholder): >+ (body.window-inactive .toolbar .search-bar > input[type="search"]::placeholder): >+ (body.window-inactive .toolbar .search-bar > input[type="search"]::-webkit-search-results-button): >+ (.toolbar .dashboard-container): >+ (body .toolbar): Deleted. >+ (body.legacy-mac .toolbar .item.button,): Deleted. >+ (body.legacy-mac .toolbar .search-bar > input[type="search"]): Deleted. >+ (body.legacy-mac .toolbar .search-bar > input[type="search"]:focus): Deleted. >+ (body.legacy-mac .toolbar .item.button:active): Deleted. >+ (body.window-inactive.legacy-mac .toolbar .item.button,): Deleted. >+ (body.latest-mac .toolbar .item.button,): Deleted. >+ (body.latest-mac .toolbar .search-bar > input[type="search"]): Deleted. >+ (body.latest-mac .toolbar .search-bar > input[type="search"]:focus): Deleted. >+ (body.latest-mac .toolbar .item.button:active): Deleted. >+ (body.latest-mac.window-inactive .toolbar .item.button,): Deleted. >+ (body.latest-mac .toolbar .search-bar > input[type="search"]::placeholder): Deleted. >+ (body.latest-mac.window-inactive .toolbar .search-bar > input[type="search"]::placeholder): Deleted. >+ (body.latest-mac.window-inactive .toolbar .search-bar > input[type="search"]::-webkit-search-results-button): Deleted. >+ (body.latest-mac .toolbar .dashboard-container): Deleted. >+ > 2019-06-20 Matt Baker <mattbaker@apple.com> > > Web Inspector: rename shadowRootPushed parameter to match protocol >diff --git a/Source/WebInspectorUI/UserInterface/Base/Main.js b/Source/WebInspectorUI/UserInterface/Base/Main.js >index 5fd8112dd05380744368c2aa6c747b1f3b0f1bee..5bfde51548f7f26a7baed1b9a447e8d52cb6657c 100644 >--- a/Source/WebInspectorUI/UserInterface/Base/Main.js >+++ b/Source/WebInspectorUI/UserInterface/Base/Main.js >@@ -290,15 +290,9 @@ WI.contentLoaded = function() > if (WI.Platform.isNightlyBuild) > document.body.classList.add("nightly-build"); > >- if (WI.Platform.name === "mac") { >+ if (WI.Platform.name === "mac") > document.body.classList.add(WI.Platform.version.name); > >- if (WI.Platform.version.release >= 11) >- document.body.classList.add("latest-mac"); >- else >- document.body.classList.add("legacy-mac"); >- } >- > document.body.classList.add(WI.sharedApp.debuggableType); > document.body.setAttribute("dir", WI.resolvedLayoutDirection()); > >diff --git a/Source/WebInspectorUI/UserInterface/Views/DefaultDashboardView.css b/Source/WebInspectorUI/UserInterface/Views/DefaultDashboardView.css >index b9e517fff375a04d0807bfb31f463c84e92590ba..e70586742e1c2582e69a215ccaddbee5aa8e35b8 100644 >--- a/Source/WebInspectorUI/UserInterface/Views/DefaultDashboardView.css >+++ b/Source/WebInspectorUI/UserInterface/Views/DefaultDashboardView.css >@@ -200,10 +200,6 @@ body:not(.web) .toolbar .dashboard.default > :matches(.resourcesCount, .resource > filter: var(--filter-invert); > } > >- body.latest-mac .toolbar .dashboard .item.button { >- background: unset; >- } >- > .dashboard-container .advance-arrow { > filter: var(--filter-invert); > } >diff --git a/Source/WebInspectorUI/UserInterface/Views/Toolbar.css b/Source/WebInspectorUI/UserInterface/Views/Toolbar.css >index 3297f8afbde752f11fe54cd2fb6eb071f94d53dc..4aa1925b4cad278816d696bddb5a2cf3ffa34e99 100644 >--- a/Source/WebInspectorUI/UserInterface/Views/Toolbar.css >+++ b/Source/WebInspectorUI/UserInterface/Views/Toolbar.css >@@ -38,9 +38,7 @@ > overflow: hidden; > > outline: none; >-} > >-body .toolbar { > background-image: linear-gradient(to bottom, hsl(0, 0%, 92%), hsl(0, 0%, 87%)); > box-shadow: inset hsla(0, 0%, 100%, 0.5) 0 1px 1px; > } >@@ -116,41 +114,9 @@ body.mac-platform:not(.docked) { > margin-left: 4px; > } > >-body.legacy-mac .toolbar .item.button, >-body.legacy-mac .toolbar .search-bar > input[type="search"], >-body.legacy-mac .toolbar .dashboard-container { >- background-color: hsl(0, 0%, 99%); >- border: 1px solid transparent; >- border-top-color: hsl(0, 0%, 100%); >- box-shadow: hsla(0, 0%, 0%, 0.15) 0 1px 0; >- border-radius: 4px; >-} >- >-body.legacy-mac .toolbar .search-bar > input[type="search"] { >- box-shadow: 0 0 0 7px hsla(211, 96%, 48%, 0); >- transition: box-shadow .25s cubic-bezier(0.165, 0.840, 0.440, 1) /* easeOutQuart */; >-} >- >-body.legacy-mac .toolbar .search-bar > input[type="search"]:focus { >- box-shadow: hsla(0, 0%, 0%, 0.15) 0 1px 0, 0 0 0 3px hsla(211, 96%, 48%, 0.4); >-} >- >-body.legacy-mac .toolbar .item.button:active { >- border-top-color: hsl(0, 0%, 94%); >- background-color: hsl(0, 0%, 89%); >-} >- >-body.window-inactive.legacy-mac .toolbar .item.button, >-body.window-inactive.legacy-mac .toolbar .search-bar > input[type="search"], >-body.window-inactive.legacy-mac .toolbar .dashboard-container { >- border: 1px solid hsl(0, 0%, 86%); >- background-color: hsl(0, 0%, 96%); >- box-shadow: none; >-} >- >-body.latest-mac .toolbar .item.button, >-body.latest-mac .toolbar .search-bar > input[type="search"], >-body.latest-mac .toolbar .dashboard-container { >+.toolbar .item.button, >+.toolbar .search-bar > input[type="search"], >+.toolbar .dashboard-container { > background-image: linear-gradient(hsl(0, 0%, 99%), var(--panel-background-color)); > box-shadow: hsla(0, 0%, 0%, 0.3) 0 1px 1px -1px; > >@@ -160,33 +126,33 @@ body.latest-mac .toolbar .dashboard-container { > border-bottom-color: hsl(0, 0%, 76%); > } > >-body.latest-mac .toolbar .search-bar > input[type="search"] { >+.toolbar .search-bar > input[type="search"] { > box-shadow: hsla(0, 0%, 0%, 0.3) 0 1px 1px -1px, 0 0 0 7px hsla(211, 96%, 48%, 0); > transition: box-shadow .25s cubic-bezier(0.165, 0.840, 0.440, 1) /* easeOutQuart */; > } > >-body.latest-mac .toolbar .search-bar > input[type="search"]:focus { >+.toolbar .search-bar > input[type="search"]:focus { > box-shadow: hsla(0, 0%, 0%, 0.15) 0 1px 0, 0 0 0 3px hsla(211, 96%, 48%, 0.4); > } > > @media (-webkit-min-device-pixel-ratio: 2) { >- body.latest-mac .toolbar .item.button, >- body.latest-mac .toolbar .search-bar > input[type="search"], >- body.latest-mac .toolbar .dashboard-container { >+ .toolbar .item.button, >+ .toolbar .search-bar > input[type="search"], >+ .toolbar .dashboard-container { > border: 0.5px solid hsl(0, 0%, 78%); > border-top-color: hsl(0, 0%, 80%); > border-bottom-color: hsl(0, 0%, 65%); > } > } > >-body.latest-mac .toolbar .item.button:active { >+.toolbar .item.button:active { > background-image: linear-gradient(hsl(0, 0%, 89%), hsl(0, 0%, 86%)); > box-shadow: hsla(0, 0%, 0%, 0.3) 0 1px 1px -1px, inset 0 1px 1px -1px white; > } > >-body.latest-mac.window-inactive .toolbar .item.button, >-body.latest-mac.window-inactive .toolbar .search-bar > input[type="search"], >-body.latest-mac.window-inactive .toolbar .dashboard-container { >+body.window-inactive .toolbar .item.button, >+body.window-inactive .toolbar .search-bar > input[type="search"], >+body.window-inactive .toolbar .dashboard-container { > opacity: 0.65; > border-color: hsla(0, 0%, 0%, 0.15); > background-color: transparent; >@@ -194,9 +160,9 @@ body.latest-mac.window-inactive .toolbar .dashboard-container { > } > > @media (-webkit-min-device-pixel-ratio: 2) { >- body.latest-mac.window-inactive .toolbar .item.button, >- body.latest-mac.window-inactive .toolbar .search-bar > input[type="search"], >- body.latest-mac.window-inactive .toolbar .dashboard-container { >+ body.window-inactive .toolbar .item.button, >+ body.window-inactive .toolbar .search-bar > input[type="search"], >+ body.window-inactive .toolbar .dashboard-container { > box-shadow: inset 0 0 1px 0 hsla(0, 0%, 0%, 0.1); > } > } >@@ -208,7 +174,7 @@ body.latest-mac.window-inactive .toolbar .dashboard-container { > } > > @media (prefers-color-scheme: dark) { >- body .toolbar { >+ .toolbar { > background-image: linear-gradient(to bottom, hsl(0, 0%, 26%), hsl(0, 0%, 23%)); > box-shadow: none; > } >@@ -217,8 +183,8 @@ body.latest-mac.window-inactive .toolbar .dashboard-container { > background-color: var(--background-color); > } > >- body.latest-mac .toolbar .item.button, >- body.latest-mac .toolbar .search-bar > input[type="search"] { >+ .toolbar .item.button, >+ .toolbar .search-bar > input[type="search"] { > background-image: none; > background-color: var(--button-background-color); > border-color: var(--button-background-color); >@@ -226,11 +192,11 @@ body.latest-mac.window-inactive .toolbar .dashboard-container { > box-shadow: none; > } > >- body.latest-mac .toolbar .search-bar > input[type="search"] { >+ .toolbar .search-bar > input[type="search"] { > color: var(--text-color); > } > >- body.latest-mac .toolbar .search-bar > input[type="search"]:focus { >+ .toolbar .search-bar > input[type="search"]:focus { > color: var(--text-color-active); > > /* FIXME: Use native outline for the default theme as well. */ >@@ -240,20 +206,20 @@ body.latest-mac.window-inactive .toolbar .dashboard-container { > outline-offset: -3px; > } > >- body.latest-mac .toolbar .search-bar > input[type="search"]::placeholder { >+ .toolbar .search-bar > input[type="search"]::placeholder { > color: var(--text-color-secondary); > } > >- body.latest-mac.window-inactive .toolbar .search-bar > input[type="search"]::placeholder { >+ body.window-inactive .toolbar .search-bar > input[type="search"]::placeholder { > color: var(--text-color-tertiary); > } > >- body.latest-mac.window-inactive .toolbar .search-bar > input[type="search"]::-webkit-search-results-button { >+ body.window-inactive .toolbar .search-bar > input[type="search"]::-webkit-search-results-button { > /* Setting `color` has no effect on the magnifying glass icon. */ > opacity: 0.5; > } > >- body.latest-mac .toolbar .dashboard-container { >+ .toolbar .dashboard-container { > background-image: none; > background-color: var(--dashboard-background-color); > border-color: var(--dashboard-background-color); >@@ -261,15 +227,15 @@ body.latest-mac.window-inactive .toolbar .dashboard-container { > box-shadow: none; > } > >- body.latest-mac .toolbar .item.button:active { >+ .toolbar .item.button:active { > background-image: none; > border-top-color: hsla(0, 100%, 100%, 0.2); > box-shadow: none; > } > >- body.latest-mac.window-inactive .toolbar .item.button, >- body.latest-mac.window-inactive .toolbar .search-bar > input[type="search"], >- body.latest-mac.window-inactive .toolbar .dashboard-container { >+ body.window-inactive .toolbar .item.button, >+ body.window-inactive .toolbar .search-bar > input[type="search"], >+ body.window-inactive .toolbar .dashboard-container { > opacity: 1; > color: var(--glyph-color); > border-color: transparent;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 199109
: 372632