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 3039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3050 if (scrollbar->isCustomScrollbar()) | 3050 if (scrollbar->isCustomScrollbar()) |
3051 return true; | 3051 return true; |
3052 } | 3052 } |
3053 } | 3053 } |
3054 | 3054 |
3055 return false; | 3055 return false; |
3056 } | 3056 } |
3057 | 3057 |
3058 FrameView* FrameView::parentFrameView() const | 3058 FrameView* FrameView::parentFrameView() const |
3059 { | 3059 { |
| 3060 if (!parent()) |
| 3061 return 0; |
| 3062 |
3060 if (Frame* parentFrame = m_frame->tree()->parent()) | 3063 if (Frame* parentFrame = m_frame->tree()->parent()) |
3061 return parentFrame->view(); | 3064 return parentFrame->view(); |
3062 | 3065 |
3063 return 0; | 3066 return 0; |
3064 } | 3067 } |
3065 | 3068 |
3066 bool FrameView::isInChildFrameWithFrameFlattening() const | 3069 bool FrameView::isInChildFrameWithFrameFlattening() const |
3067 { | 3070 { |
3068 if (!parent() || !m_frame->ownerElement()) | 3071 if (!parent() || !m_frame->ownerElement()) |
3069 return false; | 3072 return false; |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3734 { | 3737 { |
3735 #if USE(ACCELERATED_COMPOSITING) | 3738 #if USE(ACCELERATED_COMPOSITING) |
3736 if (TiledBacking* tiledBacking = this->tiledBacking()) | 3739 if (TiledBacking* tiledBacking = this->tiledBacking()) |
3737 tiledBacking->setScrollingPerformanceLoggingEnabled(flag); | 3740 tiledBacking->setScrollingPerformanceLoggingEnabled(flag); |
3738 #else | 3741 #else |
3739 UNUSED_PARAM(flag); | 3742 UNUSED_PARAM(flag); |
3740 #endif | 3743 #endif |
3741 } | 3744 } |
3742 | 3745 |
3743 } // namespace WebCore | 3746 } // namespace WebCore |
OLD | NEW |