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

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

Issue 7565014: Merge 92030 - [chromium] Only force slow scrolling for iframes under --force-compositing-mode (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698