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

Issue 10389016: Use hidden attribute rather the 'display: none' for hiding menus. (Closed)

Created:
8 years, 7 months ago by Patrick Dubroy
Modified:
8 years, 7 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, estade+watch_chromium.org
Visibility:
Public.

Description

Use hidden attribute rather the 'display: none' for hiding menus. BUG=None TEST=Manual test of menus on NTP, bookmarks, chrome://history. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=138230

Patch Set 1 #

Total comments: 2

Patch Set 2 : Prevent FoUC with menus, using Evan's suggestion. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -7 lines) Patch
M chrome/browser/resources/ntp4/other_sessions.js View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/resources/shared/css/menu.css View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/resources/shared/js/cr/ui/context_menu_handler.js View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/shared/js/cr/ui/menu.js View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/shared/js/cr/ui/menu_button.js View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Patrick Dubroy
PTAL. Turns out this was pretty simple.
8 years, 7 months ago (2012-05-08 11:06:59 UTC) #1
Evan Stade
lgtm did you test this on all the pages that uses menu.js? I wouldn't expect ...
8 years, 7 months ago (2012-05-08 18:50:29 UTC) #2
arv (Not doing code reviews)
LGTM http://codereview.chromium.org/10389016/diff/1/chrome/browser/resources/shared/js/cr/ui/menu_button.js File chrome/browser/resources/shared/js/cr/ui/menu_button.js (right): http://codereview.chromium.org/10389016/diff/1/chrome/browser/resources/shared/js/cr/ui/menu_button.js#newcode138 chrome/browser/resources/shared/js/cr/ui/menu_button.js:138: this.removeAttribute('menu-shown'); I think we can remove this attribute ...
8 years, 7 months ago (2012-05-08 21:46:25 UTC) #3
Patrick Dubroy
Yep, tested all the places that use menu.js, including on ChromeOS. http://codereview.chromium.org/10389016/diff/1/chrome/browser/resources/shared/js/cr/ui/menu_button.js File chrome/browser/resources/shared/js/cr/ui/menu_button.js (right): ...
8 years, 7 months ago (2012-05-09 14:39:35 UTC) #4
Patrick Dubroy
I just realized that there is a problem with setting 'hidden = true' in the ...
8 years, 7 months ago (2012-05-09 15:29:37 UTC) #5
arv (Not doing code reviews)
On 2012/05/09 15:29:37, dubroy wrote: > I just realized that there is a problem with ...
8 years, 7 months ago (2012-05-09 17:29:53 UTC) #6
arv (Not doing code reviews)
On 2012/05/09 14:39:35, dubroy wrote: > Yep, tested all the places that use menu.js, including ...
8 years, 7 months ago (2012-05-09 17:31:53 UTC) #7
Patrick Dubroy
On 2012/05/09 17:31:53, arv wrote: > On 2012/05/09 14:39:35, dubroy wrote: > > Yep, tested ...
8 years, 7 months ago (2012-05-09 17:40:47 UTC) #8
arv (Not doing code reviews)
On 2012/05/09 17:40:47, dubroy wrote: > On 2012/05/09 17:31:53, arv wrote: > > On 2012/05/09 ...
8 years, 7 months ago (2012-05-09 17:56:56 UTC) #9
Evan Stade
well you could do this: menu:not(.decorated) { display: none; } then in decorate, this.classList.add('decorated');
8 years, 7 months ago (2012-05-10 21:38:28 UTC) #10
Patrick Dubroy
Resurrecting this CL, and fixed the FoUC using Evan's suggestion. On 2012/05/10 21:38:28, Evan Stade ...
8 years, 7 months ago (2012-05-21 09:38:25 UTC) #11
Evan Stade
8 years, 7 months ago (2012-05-21 20:23:55 UTC) #12
lgtm

Powered by Google App Engine
This is Rietveld 408576698