Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 // FIXME: THe use of paint seems like overkill: crbug.com/236892 |
|
jamesr
2013/04/30 19:57:08
typo "THe"
| |
| 2994 GraphicsContext context(noContext); | 2994 GraphicsContext context(0); // NULL canvas to get a non-painting context. |
| 2995 context.setUpdatingControlTints(true); | 2995 context.setUpdatingControlTints(true); |
| 2996 paint(&context, frameRect()); | 2996 paint(&context, frameRect()); |
| 2997 } | 2997 } |
| 2998 | 2998 |
| 2999 bool FrameView::wasScrolledByUser() const | 2999 bool FrameView::wasScrolledByUser() const |
| 3000 { | 3000 { |
| 3001 return m_wasScrolledByUser; | 3001 return m_wasScrolledByUser; |
| 3002 } | 3002 } |
| 3003 | 3003 |
| 3004 void FrameView::setWasScrolledByUser(bool wasScrolledByUser) | 3004 void FrameView::setWasScrolledByUser(bool wasScrolledByUser) |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3531 } | 3531 } |
| 3532 | 3532 |
| 3533 AXObjectCache* FrameView::axObjectCache() const | 3533 AXObjectCache* FrameView::axObjectCache() const |
| 3534 { | 3534 { |
| 3535 if (frame() && frame()->document()) | 3535 if (frame() && frame()->document()) |
| 3536 return frame()->document()->existingAXObjectCache(); | 3536 return frame()->document()->existingAXObjectCache(); |
| 3537 return 0; | 3537 return 0; |
| 3538 } | 3538 } |
| 3539 | 3539 |
| 3540 } // namespace WebCore | 3540 } // namespace WebCore |
| OLD | NEW |