OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "core/rendering/compositing/CompositingReasonFinder.h" | 6 #include "core/rendering/compositing/CompositingReasonFinder.h" |
7 | 7 |
8 #include "CSSPropertyNames.h" | 8 #include "CSSPropertyNames.h" |
9 #include "HTMLNames.h" | 9 #include "HTMLNames.h" |
10 #include "core/animation/ActiveAnimations.h" | 10 #include "core/animation/ActiveAnimations.h" |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 if (!(m_compositingTriggers & ChromeClient::AnimationTrigger)) | 233 if (!(m_compositingTriggers & ChromeClient::AnimationTrigger)) |
234 return false; | 234 return false; |
235 | 235 |
236 if (Settings* settings = m_renderView.document().settings()) { | 236 if (Settings* settings = m_renderView.document().settings()) { |
237 if (!settings->acceleratedCompositingForTransitionEnabled()) | 237 if (!settings->acceleratedCompositingForTransitionEnabled()) |
238 return false; | 238 return false; |
239 } | 239 } |
240 | 240 |
241 return renderer->style()->transitionForProperty(CSSPropertyOpacity) | 241 return renderer->style()->transitionForProperty(CSSPropertyOpacity) |
242 || renderer->style()->transitionForProperty(CSSPropertyWebkitFilter) | 242 || renderer->style()->transitionForProperty(CSSPropertyWebkitFilter) |
| 243 || renderer->style()->transitionForProperty(CSSPropertyTransform) |
243 || renderer->style()->transitionForProperty(CSSPropertyWebkitTransform); | 244 || renderer->style()->transitionForProperty(CSSPropertyWebkitTransform); |
244 } | 245 } |
245 | 246 |
246 bool CompositingReasonFinder::requiresCompositingForFilters(RenderObject* render
er) const | 247 bool CompositingReasonFinder::requiresCompositingForFilters(RenderObject* render
er) const |
247 { | 248 { |
248 if (!(m_compositingTriggers & ChromeClient::FilterTrigger)) | 249 if (!(m_compositingTriggers & ChromeClient::FilterTrigger)) |
249 return false; | 250 return false; |
250 | 251 |
251 return renderer->hasFilter(); | 252 return renderer->hasFilter(); |
252 } | 253 } |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 | 393 |
393 return true; | 394 return true; |
394 } | 395 } |
395 | 396 |
396 bool CompositingReasonFinder::requiresCompositingForOverflowScrolling(const Rend
erLayer* layer) const | 397 bool CompositingReasonFinder::requiresCompositingForOverflowScrolling(const Rend
erLayer* layer) const |
397 { | 398 { |
398 return layer->needsCompositedScrolling(); | 399 return layer->needsCompositedScrolling(); |
399 } | 400 } |
400 | 401 |
401 } | 402 } |
OLD | NEW |