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

Issue 525016: Update RenderPreferences on GTK change. (Closed)

Created:
10 years, 11 months ago by Elliot Glaysher
Modified:
9 years, 7 months ago
Reviewers:
tony, Evan Stade
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, ben+cc_chromium.org, Erik does not do reviews, jam, Aaron Boodman, pam+watch_chromium.org, darin (slow to review)
Visibility:
Public.

Description

Only calculate the GTK scrollbar colors once and then update all RenderPreferences on theme change. BUG=10949 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35712

Patch Set 1 #

Patch Set 2 : Calculate scrollbar color once #

Patch Set 3 : Rebase #

Patch Set 4 : Add missing file #

Total comments: 1

Patch Set 5 : Restore renderer_preferences_util. #

Patch Set 6 : Fix dumb mistakes #

Total comments: 1

Patch Set 7 : style nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -79 lines) Patch
M chrome/browser/chromeos/main_menu.cc View 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_host.cc View 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/gtk/gtk_theme_provider.h View 2 4 chunks +23 lines, -5 lines 0 comments Download
M chrome/browser/gtk/gtk_theme_provider.cc View 2 4 chunks +20 lines, -20 lines 0 comments Download
M chrome/browser/renderer_preferences_util.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/renderer_preferences_util.cc View 1 2 3 4 5 6 2 chunks +12 lines, -11 lines 0 comments Download
M chrome/browser/tab_contents/interstitial_page.cc View 2 3 4 3 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/common/gtk_util.h View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/common/gtk_util.cc View 2 chunks +1 line, -28 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Elliot Glaysher
I am not sure about this approach. Specifically, it looks like estade went out of ...
10 years, 11 months ago (2010-01-05 01:26:37 UTC) #1
Evan Stade
can you just clobber the static rendererprefs thing once in gtkthemeprovider before sending BROWSER_THEME_CHANGED
10 years, 11 months ago (2010-01-05 01:34:56 UTC) #2
Elliot Glaysher
On 2010/01/05 01:34:56, Evan Stade wrote: > can you just clobber the static rendererprefs thing ...
10 years, 11 months ago (2010-01-05 01:46:07 UTC) #3
Evan Stade
I guess this patch is ok if it doesn't affect new tab perf. Do we ...
10 years, 11 months ago (2010-01-05 01:57:45 UTC) #4
Elliot Glaysher
I am not sure. Hence why I'm asking if either you or tony think I ...
10 years, 11 months ago (2010-01-05 02:00:04 UTC) #5
Evan Stade
I think Tony is out on a long vacation. seems like you could hack something ...
10 years, 11 months ago (2010-01-05 02:03:10 UTC) #6
Elliot Glaysher
Good idea. Here's it implemented. Take another look?
10 years, 11 months ago (2010-01-06 20:27:51 UTC) #7
Evan Stade
http://codereview.chromium.org/525016/diff/35/1032 File chrome/common/renderer_preferences_linux.cc (right): http://codereview.chromium.org/525016/diff/35/1032#newcode8 chrome/common/renderer_preferences_linux.cc:8: #include "chrome/browser/gtk/gtk_theme_provider.h" common/ can't depend on browser/
10 years, 11 months ago (2010-01-06 22:29:04 UTC) #8
Elliot Glaysher
Fixed. (Or: so that's why you made renderer_preferences_util...)
10 years, 11 months ago (2010-01-07 00:19:47 UTC) #9
Evan Stade
10 years, 11 months ago (2010-01-07 00:27:24 UTC) #10
lgtm

http://codereview.chromium.org/525016/diff/6001/5006
File chrome/browser/renderer_preferences_util.cc (right):

http://codereview.chromium.org/525016/diff/6001/5006#newcode27
chrome/browser/renderer_preferences_util.cc:27: #endif
can you comment these endifs

Powered by Google App Engine
This is Rietveld 408576698