Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Issue 99923009: DevTools: network log bars use CSS instead of pre-rendered images. (Closed)

Created:
6 years, 12 months ago by pwnall-personal
Modified:
6 years, 12 months ago
Reviewers:
eustas, vsevik, pfeldman
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

DevTools: network log bars use CSS instead of pre-rendered images. This change removes the pre-rendered PNG images used by the bars shown in the timeline in the Network panel, and relies on CSS to render the bars. The colors in the CSS rules are picked from the PNG files that they replace. The immediate benefit of this change is that the Network view looks more crisp on Retina displays and other high-resolution displays. A secondary benefit is that adding new resource types (and thus new bar colors) should be quite a bit easier. BUG=330659 TEST=Browsed to a few sites in Chromium with the Network panel open. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164362

Patch Set 1 #

Patch Set 2 : Fixed broken test. #

Total comments: 9

Patch Set 3 : Removed changes to unrelated test. #

Patch Set 4 : Removed border-color on cached resources. #

Patch Set 5 : Simplify hsla -> hsl when the background is known to be white. #

Patch Set 6 : Make WebSockets rules consistent with the other rules. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -33 lines) Patch
M Source/devtools/devtools.gypi View 1 2 2 chunks +1 line, -15 lines 0 comments Download
D Source/devtools/front_end/Images/timelineHollowPillBlue.png View Binary file 0 comments Download
D Source/devtools/front_end/Images/timelineHollowPillGray.png View Binary file 0 comments Download
D Source/devtools/front_end/Images/timelineHollowPillGreen.png View Binary file 0 comments Download
D Source/devtools/front_end/Images/timelineHollowPillOrange.png View Binary file 0 comments Download
D Source/devtools/front_end/Images/timelineHollowPillPurple.png View Binary file 0 comments Download
D Source/devtools/front_end/Images/timelineHollowPillRed.png View Binary file 0 comments Download
D Source/devtools/front_end/Images/timelineHollowPillYellow.png View Binary file 0 comments Download
D Source/devtools/front_end/Images/timelinePillBlue.png View Binary file 0 comments Download
D Source/devtools/front_end/Images/timelinePillGray.png View Binary file 0 comments Download
D Source/devtools/front_end/Images/timelinePillGreen.png View Binary file 0 comments Download
D Source/devtools/front_end/Images/timelinePillOrange.png View Binary file 0 comments Download
D Source/devtools/front_end/Images/timelinePillPurple.png View Binary file 0 comments Download
D Source/devtools/front_end/Images/timelinePillRed.png View Binary file 0 comments Download
D Source/devtools/front_end/Images/timelinePillYellow.png View Binary file 0 comments Download
M Source/devtools/front_end/networkLogView.css View 1 2 3 4 5 2 chunks +54 lines, -18 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
pwnall-personal
Can you please take a look and tell me what you think? The screenshot in ...
6 years, 12 months ago (2013-12-25 18:30:51 UTC) #1
pfeldman
lgtm Please attach the screenshot w/ hollow versions prior to landing.
6 years, 12 months ago (2013-12-26 04:56:46 UTC) #2
pfeldman
https://codereview.chromium.org/99923009/diff/50001/LayoutTests/inspector/resources/blink-fs.js File LayoutTests/inspector/resources/blink-fs.js (left): https://codereview.chromium.org/99923009/diff/50001/LayoutTests/inspector/resources/blink-fs.js#oldcode351 LayoutTests/inspector/resources/blink-fs.js:351: "./Source/devtools/front_end/Images/thumbHoverVert.png", This file is unrelated, just poorly chosen test ...
6 years, 12 months ago (2013-12-26 04:56:59 UTC) #3
eustas
lgtm https://codereview.chromium.org/99923009/diff/50001/Source/devtools/front_end/networkLogView.css File Source/devtools/front_end/networkLogView.css (right): https://codereview.chromium.org/99923009/diff/50001/Source/devtools/front_end/networkLogView.css#newcode380 Source/devtools/front_end/networkLogView.css:380: border-color: hsl(215, 48%, 52%); Do we need to ...
6 years, 12 months ago (2013-12-26 05:13:58 UTC) #4
pwnall-personal
On 2013/12/26 04:56:46, pfeldman_ooo wrote: > lgtm > > Please attach the screenshot w/ hollow ...
6 years, 12 months ago (2013-12-26 05:26:04 UTC) #5
pfeldman
Yep, figured it out now. I like the new look, hence lgtm
6 years, 12 months ago (2013-12-26 05:29:53 UTC) #6
pwnall-personal
Thank you for your feedback, Eugene! Can you please look at my questions below? https://codereview.chromium.org/99923009/diff/50001/LayoutTests/inspector/resources/blink-fs.js ...
6 years, 12 months ago (2013-12-26 05:39:56 UTC) #7
pfeldman
Slight deviation from pngs is fine as long as it simplifies the code / makes ...
6 years, 12 months ago (2013-12-26 06:39:54 UTC) #8
pwnall-personal
On 2013/12/26 06:39:54, pfeldman_ooo wrote: > Slight deviation from pngs is fine as long as ...
6 years, 12 months ago (2013-12-26 07:29:35 UTC) #9
pwnall-personal
https://codereview.chromium.org/99923009/diff/50001/Source/devtools/front_end/networkLogView.css File Source/devtools/front_end/networkLogView.css (right): https://codereview.chromium.org/99923009/diff/50001/Source/devtools/front_end/networkLogView.css#newcode395 Source/devtools/front_end/networkLogView.css:395: box-shadow: inset 0 1px 1px 0px rgba(255, 255, 255, ...
6 years, 12 months ago (2013-12-26 15:44:05 UTC) #10
pwnall-personal
Eugene: ping? I'd like to land this CL. I think it's a step forward as ...
6 years, 12 months ago (2013-12-27 15:02:30 UTC) #11
pfeldman
Go ahead and land it.
6 years, 12 months ago (2013-12-27 16:54:42 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/costan@gmail.com/99923009/280001
6 years, 12 months ago (2013-12-27 16:55:38 UTC) #13
pwnall-personal
On 2013/12/27 16:54:42, pfeldman_ooo wrote: > Go ahead and land it. Thank you! Sorry I ...
6 years, 12 months ago (2013-12-27 16:56:29 UTC) #14
commit-bot: I haz the power
6 years, 12 months ago (2013-12-27 18:02:17 UTC) #15
Message was sent while issue was closed.
Change committed as 164362

Powered by Google App Engine
This is Rietveld 408576698