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

Side by Side Diff: Source/core/page/FrameView.cpp

Issue 14550002: Making GraphicsContext the owner of PlatformContext. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix the Windows build. Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 2972 matching lines...) Expand 10 before | Expand all | Expand 10 after
2983 2983
2984 RenderView* renderView = this->renderView(); 2984 RenderView* renderView = this->renderView();
2985 if ((renderView && renderView->theme()->supportsControlTints()) || hasCustom Scrollbars()) 2985 if ((renderView && renderView->theme()->supportsControlTints()) || hasCustom Scrollbars())
2986 paintControlTints(); 2986 paintControlTints();
2987 } 2987 }
2988 2988
2989 void FrameView::paintControlTints() 2989 void FrameView::paintControlTints()
2990 { 2990 {
2991 if (needsLayout()) 2991 if (needsLayout())
2992 layout(); 2992 layout();
2993 PlatformGraphicsContext* const noContext = 0; 2993 GraphicsContext context(0); // NULL canvas to get a non-painting context.
jamesr 2013/04/29 23:56:17 woah, so this does a "paint" just to update random
2994 GraphicsContext context(noContext);
2995 context.setUpdatingControlTints(true); 2994 context.setUpdatingControlTints(true);
2996 paint(&context, frameRect()); 2995 paint(&context, frameRect());
2997 } 2996 }
2998 2997
2999 bool FrameView::wasScrolledByUser() const 2998 bool FrameView::wasScrolledByUser() const
3000 { 2999 {
3001 return m_wasScrolledByUser; 3000 return m_wasScrolledByUser;
3002 } 3001 }
3003 3002
3004 void FrameView::setWasScrolledByUser(bool wasScrolledByUser) 3003 void FrameView::setWasScrolledByUser(bool wasScrolledByUser)
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
3531 } 3530 }
3532 3531
3533 AXObjectCache* FrameView::axObjectCache() const 3532 AXObjectCache* FrameView::axObjectCache() const
3534 { 3533 {
3535 if (frame() && frame()->document()) 3534 if (frame() && frame()->document())
3536 return frame()->document()->existingAXObjectCache(); 3535 return frame()->document()->existingAXObjectCache();
3537 return 0; 3536 return 0;
3538 } 3537 }
3539 3538
3540 } // namespace WebCore 3539 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698