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

Side by Side Diff: Source/core/rendering/RenderLayerCompositor.cpp

Issue 16982005: Allow objects without scrollbars to be scrollable (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed ScrollbarGroup pageStep Created 7 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 | « Source/core/rendering/RenderLayer.cpp ('k') | Source/core/rendering/RenderListBox.h » ('j') | 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) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 2195 matching lines...) Expand 10 before | Expand all | Expand 10 after
2206 } 2206 }
2207 2207
2208 #if ENABLE(RUBBER_BANDING) 2208 #if ENABLE(RUBBER_BANDING)
2209 bool RenderLayerCompositor::requiresOverhangAreasLayer() const 2209 bool RenderLayerCompositor::requiresOverhangAreasLayer() const
2210 { 2210 {
2211 // We don't want a layer if this is a subframe. 2211 // We don't want a layer if this is a subframe.
2212 if (!isMainFrame()) 2212 if (!isMainFrame())
2213 return false; 2213 return false;
2214 2214
2215 // We do want a layer if we have a scrolling coordinator and can scroll. 2215 // We do want a layer if we have a scrolling coordinator and can scroll.
2216 if (scrollingCoordinator() && m_renderView->frameView()->hasOpaqueBackground () && !m_renderView->frameView()->prohibitsScrolling()) 2216 if (scrollingCoordinator() && m_renderView->frameView()->hasOpaqueBackground ())
2217 return true; 2217 return true;
2218 2218
2219 // Chromium always wants a layer. 2219 // Chromium always wants a layer.
2220 return true; 2220 return true;
2221 } 2221 }
2222 2222
2223 bool RenderLayerCompositor::requiresContentShadowLayer() const 2223 bool RenderLayerCompositor::requiresContentShadowLayer() const
2224 { 2224 {
2225 // We don't want a layer if this is a subframe. 2225 // We don't want a layer if this is a subframe.
2226 if (!isMainFrame()) 2226 if (!isMainFrame())
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
2733 2733
2734 Page* RenderLayerCompositor::page() const 2734 Page* RenderLayerCompositor::page() const
2735 { 2735 {
2736 if (Frame* frame = m_renderView->frameView()->frame()) 2736 if (Frame* frame = m_renderView->frameView()->frame())
2737 return frame->page(); 2737 return frame->page();
2738 2738
2739 return 0; 2739 return 0;
2740 } 2740 }
2741 2741
2742 } // namespace WebCore 2742 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | Source/core/rendering/RenderListBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698