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 m_compositingReasonFinder.updateTriggers(); | 152 m_compositingReasonFinder.updateTriggers(); |
153 m_hasAcceleratedCompositing = m_layoutView.document().settings()->accelerate
dCompositingEnabled(); | 153 m_hasAcceleratedCompositing = m_layoutView.document().settings()->accelerate
dCompositingEnabled(); |
154 m_rootShouldAlwaysCompositeDirty = true; | 154 m_rootShouldAlwaysCompositeDirty = true; |
155 if (m_rootLayerAttachment != RootLayerUnattached) | 155 if (m_rootLayerAttachment != RootLayerUnattached) |
156 rootLayer()->setNeedsCompositingInputsUpdate(); | 156 rootLayer()->setNeedsCompositingInputsUpdate(); |
157 } | 157 } |
158 | 158 |
159 bool PaintLayerCompositor::preferCompositingToLCDTextEnabled() const | 159 bool PaintLayerCompositor::preferCompositingToLCDTextEnabled() const |
160 { | 160 { |
161 return m_compositingReasonFinder.hasOverflowScrollTrigger(); | 161 return m_layoutView.document().settings()->preferCompositingToLCDTextEnabled
(); |
162 } | 162 } |
163 | 163 |
164 static LayoutVideo* findFullscreenVideoLayoutObject(Document& document) | 164 static LayoutVideo* findFullscreenVideoLayoutObject(Document& document) |
165 { | 165 { |
166 // Recursively find the document that is in fullscreen. | 166 // Recursively find the document that is in fullscreen. |
167 Element* fullscreenElement = Fullscreen::fullscreenElementFrom(document); | 167 Element* fullscreenElement = Fullscreen::fullscreenElementFrom(document); |
168 Document* contentDocument = &document; | 168 Document* contentDocument = &document; |
169 while (fullscreenElement && fullscreenElement->isFrameOwnerElement()) { | 169 while (fullscreenElement && fullscreenElement->isFrameOwnerElement()) { |
170 contentDocument = toHTMLFrameOwnerElement(fullscreenElement)->contentDoc
ument(); | 170 contentDocument = toHTMLFrameOwnerElement(fullscreenElement)->contentDoc
ument(); |
171 if (!contentDocument) | 171 if (!contentDocument) |
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1241 } else if (graphicsLayer == m_scrollLayer.get()) { | 1241 } else if (graphicsLayer == m_scrollLayer.get()) { |
1242 name = "Frame Scrolling Layer"; | 1242 name = "Frame Scrolling Layer"; |
1243 } else { | 1243 } else { |
1244 ASSERT_NOT_REACHED(); | 1244 ASSERT_NOT_REACHED(); |
1245 } | 1245 } |
1246 | 1246 |
1247 return name; | 1247 return name; |
1248 } | 1248 } |
1249 | 1249 |
1250 } // namespace blink | 1250 } // namespace blink |
OLD | NEW |