| OLD | NEW |
| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 151 |
| 152 bool RenderLayerCompositor::layerSquashingEnabled() const | 152 bool RenderLayerCompositor::layerSquashingEnabled() const |
| 153 { | 153 { |
| 154 if (!RuntimeEnabledFeatures::layerSquashingEnabled()) | 154 if (!RuntimeEnabledFeatures::layerSquashingEnabled()) |
| 155 return false; | 155 return false; |
| 156 if (Settings* settings = m_renderView.document().settings()) | 156 if (Settings* settings = m_renderView.document().settings()) |
| 157 return settings->layerSquashingEnabled(); | 157 return settings->layerSquashingEnabled(); |
| 158 return true; | 158 return true; |
| 159 } | 159 } |
| 160 | 160 |
| 161 bool RenderLayerCompositor::acceleratedCompositingForOverflowScrollEnabled() con
st | 161 bool RenderLayerCompositor::preferCompositingToLCDTextEnabled() const |
| 162 { | 162 { |
| 163 return m_compositingReasonFinder.hasOverflowScrollTrigger(); | 163 return m_compositingReasonFinder.hasOverflowScrollTrigger(); |
| 164 } | 164 } |
| 165 | 165 |
| 166 static RenderVideo* findFullscreenVideoRenderer(Document& document) | 166 static RenderVideo* findFullscreenVideoRenderer(Document& document) |
| 167 { | 167 { |
| 168 // Recursively find the document that is in fullscreen. | 168 // Recursively find the document that is in fullscreen. |
| 169 Element* fullscreenElement = Fullscreen::fullscreenElementFrom(document); | 169 Element* fullscreenElement = Fullscreen::fullscreenElementFrom(document); |
| 170 Document* contentDocument = &document; | 170 Document* contentDocument = &document; |
| 171 while (fullscreenElement && fullscreenElement->isFrameOwnerElement()) { | 171 while (fullscreenElement && fullscreenElement->isFrameOwnerElement()) { |
| (...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1164 } else if (graphicsLayer == m_scrollLayer.get()) { | 1164 } else if (graphicsLayer == m_scrollLayer.get()) { |
| 1165 name = "LocalFrame Scrolling Layer"; | 1165 name = "LocalFrame Scrolling Layer"; |
| 1166 } else { | 1166 } else { |
| 1167 ASSERT_NOT_REACHED(); | 1167 ASSERT_NOT_REACHED(); |
| 1168 } | 1168 } |
| 1169 | 1169 |
| 1170 return name; | 1170 return name; |
| 1171 } | 1171 } |
| 1172 | 1172 |
| 1173 } // namespace blink | 1173 } // namespace blink |
| OLD | NEW |