| 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 * Copyright (C) 2014 Google Inc. All rights reserved. | 3 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include "config.h" | 27 #include "config.h" |
| 28 #include "core/rendering/compositing/CompositingRequirementsUpdater.h" | 28 #include "core/rendering/compositing/CompositingRequirementsUpdater.h" |
| 29 | 29 |
| 30 #include "core/rendering/RenderLayerStackingNode.h" | 30 #include "core/rendering/RenderLayerStackingNode.h" |
| 31 #include "core/rendering/RenderLayerStackingNodeIterator.h" | 31 #include "core/rendering/RenderLayerStackingNodeIterator.h" |
| 32 #include "core/rendering/RenderView.h" | 32 #include "core/rendering/RenderView.h" |
| 33 #include "core/rendering/compositing/RenderLayerCompositor.h" | 33 #include "core/rendering/compositing/RenderLayerCompositor.h" |
| 34 #include "platform/TraceEvent.h" |
| 34 | 35 |
| 35 namespace WebCore { | 36 namespace WebCore { |
| 36 | 37 |
| 37 class OverlapMapContainer { | 38 class OverlapMapContainer { |
| 38 public: | 39 public: |
| 39 void add(const IntRect& bounds) | 40 void add(const IntRect& bounds) |
| 40 { | 41 { |
| 41 m_layerRects.append(bounds); | 42 m_layerRects.append(bounds); |
| 42 m_boundingBox.unite(bounds); | 43 m_boundingBox.unite(bounds); |
| 43 } | 44 } |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 layer->setCompositingReasons(reasonsToComposite); | 457 layer->setCompositingReasons(reasonsToComposite); |
| 457 | 458 |
| 458 } | 459 } |
| 459 | 460 |
| 460 bool CompositingRequirementsUpdater::isRunningAcceleratedTransformAnimation(Rend
erObject* renderer) const | 461 bool CompositingRequirementsUpdater::isRunningAcceleratedTransformAnimation(Rend
erObject* renderer) const |
| 461 { | 462 { |
| 462 return renderer->style()->hasCurrentTransformAnimation(); | 463 return renderer->style()->hasCurrentTransformAnimation(); |
| 463 } | 464 } |
| 464 | 465 |
| 465 } // namespace WebCore | 466 } // namespace WebCore |
| OLD | NEW |