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 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1144 } | 1144 } |
1145 | 1145 |
1146 bool FrameView::useSlowRepaints() const | 1146 bool FrameView::useSlowRepaints() const |
1147 { | 1147 { |
1148 if (m_useSlowRepaints || m_slowRepaintObjectCount > 0 || (platformWidget() &
& m_fixedObjectCount > 0) || m_isOverlapped || !m_contentIsOpaque) | 1148 if (m_useSlowRepaints || m_slowRepaintObjectCount > 0 || (platformWidget() &
& m_fixedObjectCount > 0) || m_isOverlapped || !m_contentIsOpaque) |
1149 return true; | 1149 return true; |
1150 | 1150 |
1151 #if PLATFORM(CHROMIUM) | 1151 #if PLATFORM(CHROMIUM) |
1152 // The chromium compositor does not support scrolling a non-composited frame
within a composited page through | 1152 // The chromium compositor does not support scrolling a non-composited frame
within a composited page through |
1153 // the fast scrolling path, so force slow scrolling in that case. | 1153 // the fast scrolling path, so force slow scrolling in that case. |
1154 if (!isEnclosedInCompositingLayer() && m_frame->page() && m_frame->page()->m
ainFrame()->view()->hasCompositedContent()) | 1154 if (m_frame->ownerElement() && !hasCompositedContent() && m_frame->page() &&
m_frame->page()->mainFrame()->view()->hasCompositedContent()) |
1155 return true; | 1155 return true; |
1156 #endif | 1156 #endif |
1157 | 1157 |
1158 if (FrameView* parentView = parentFrameView()) | 1158 if (FrameView* parentView = parentFrameView()) |
1159 return parentView->useSlowRepaints(); | 1159 return parentView->useSlowRepaints(); |
1160 | 1160 |
1161 return false; | 1161 return false; |
1162 } | 1162 } |
1163 | 1163 |
1164 bool FrameView::useSlowRepaintsIfNotOverlapped() const | 1164 bool FrameView::useSlowRepaintsIfNotOverlapped() const |
(...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2932 } | 2932 } |
2933 | 2933 |
2934 AXObjectCache* FrameView::axObjectCache() const | 2934 AXObjectCache* FrameView::axObjectCache() const |
2935 { | 2935 { |
2936 if (frame() && frame()->document() && frame()->document()->axObjectCacheExis
ts()) | 2936 if (frame() && frame()->document() && frame()->document()->axObjectCacheExis
ts()) |
2937 return frame()->document()->axObjectCache(); | 2937 return frame()->document()->axObjectCache(); |
2938 return 0; | 2938 return 0; |
2939 } | 2939 } |
2940 | 2940 |
2941 } // namespace WebCore | 2941 } // namespace WebCore |
OLD | NEW |