| 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 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1782 } | 1782 } |
| 1783 return false; | 1783 return false; |
| 1784 } | 1784 } |
| 1785 | 1785 |
| 1786 bool RenderLayerCompositor::requiresCompositingForCanvas(RenderObject* renderer)
const | 1786 bool RenderLayerCompositor::requiresCompositingForCanvas(RenderObject* renderer)
const |
| 1787 { | 1787 { |
| 1788 if (!(m_compositingTriggers & ChromeClient::CanvasTrigger)) | 1788 if (!(m_compositingTriggers & ChromeClient::CanvasTrigger)) |
| 1789 return false; | 1789 return false; |
| 1790 | 1790 |
| 1791 if (renderer->isCanvas()) { | 1791 if (renderer->isCanvas()) { |
| 1792 HTMLCanvasElement* canvas = static_cast<HTMLCanvasElement*>(renderer->no
de()); | 1792 HTMLCanvasElement* canvas = toHTMLCanvasElement(renderer->node()); |
| 1793 #if USE(COMPOSITING_FOR_SMALL_CANVASES) | 1793 #if USE(COMPOSITING_FOR_SMALL_CANVASES) |
| 1794 bool isCanvasLargeEnoughToForceCompositing = true; | 1794 bool isCanvasLargeEnoughToForceCompositing = true; |
| 1795 #else | 1795 #else |
| 1796 bool isCanvasLargeEnoughToForceCompositing = canvas->size().area() >= ca
nvasAreaThresholdRequiringCompositing; | 1796 bool isCanvasLargeEnoughToForceCompositing = canvas->size().area() >= ca
nvasAreaThresholdRequiringCompositing; |
| 1797 #endif | 1797 #endif |
| 1798 return canvas->renderingContext() && canvas->renderingContext()->isAccel
erated() && (canvas->renderingContext()->is3d() || isCanvasLargeEnoughToForceCom
positing); | 1798 return canvas->renderingContext() && canvas->renderingContext()->isAccel
erated() && (canvas->renderingContext()->is3d() || isCanvasLargeEnoughToForceCom
positing); |
| 1799 } | 1799 } |
| 1800 return false; | 1800 return false; |
| 1801 } | 1801 } |
| 1802 | 1802 |
| (...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2738 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); | 2738 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); |
| 2739 #if ENABLE(RUBBER_BANDING) | 2739 #if ENABLE(RUBBER_BANDING) |
| 2740 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); | 2740 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); |
| 2741 info.addMember(m_contentShadowLayer, "contentShadowLayer"); | 2741 info.addMember(m_contentShadowLayer, "contentShadowLayer"); |
| 2742 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea"); | 2742 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea"); |
| 2743 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea"); | 2743 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea"); |
| 2744 #endif | 2744 #endif |
| 2745 } | 2745 } |
| 2746 | 2746 |
| 2747 } // namespace WebCore | 2747 } // namespace WebCore |
| OLD | NEW |