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

Unified Diff: chrome/browser/views/tabs/tab_renderer.cc

Issue 102020: People should just use GetWindow() instead of calling GetWidget()->GetWindow(... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/tabs/dragged_tab_controller.cc ('k') | chrome/browser/views/tabs/tab_strip.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/tabs/tab_renderer.cc
===================================================================
--- chrome/browser/views/tabs/tab_renderer.cc (revision 15013)
+++ chrome/browser/views/tabs/tab_renderer.cc (working copy)
@@ -507,10 +507,8 @@
}
void TabRenderer::ThemeChanged() {
- if (GetWidget() && GetWidget()->GetWindow()) {
- LoadTabImages(
- GetWidget()->GetWindow()->GetNonClientView()->UseNativeFrame());
- }
+ if (GetWindow())
+ LoadTabImages(GetWindow()->GetNonClientView()->UseNativeFrame());
View::ThemeChanged();
}
@@ -545,7 +543,7 @@
animation = pulse_animation_.get();
if (animation->GetCurrentValue() > 0) {
PaintHoverTabBackground(canvas, animation->GetCurrentValue() *
- (GetWidget()->GetWindow()->GetNonClientView()->UseNativeFrame() ?
+ (GetWindow()->GetNonClientView()->UseNativeFrame() ?
kHoverOpacityVista : kHoverOpacity));
} else {
PaintInactiveTabBackground(canvas);
« no previous file with comments | « chrome/browser/views/tabs/dragged_tab_controller.cc ('k') | chrome/browser/views/tabs/tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698