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 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 #endif | 1165 #endif |
1166 } | 1166 } |
1167 if (m_containerLayer) { | 1167 if (m_containerLayer) { |
1168 FrameView* frameView = m_renderView.frameView(); | 1168 FrameView* frameView = m_renderView.frameView(); |
1169 m_containerLayer->setSize(frameView->unscaledVisibleContentSize()); | 1169 m_containerLayer->setSize(frameView->unscaledVisibleContentSize()); |
1170 } | 1170 } |
1171 } | 1171 } |
1172 | 1172 |
1173 void RenderLayerCompositor::updateStyleDeterminedCompositingReasons(RenderLayer*
layer) | 1173 void RenderLayerCompositor::updateStyleDeterminedCompositingReasons(RenderLayer*
layer) |
1174 { | 1174 { |
1175 CompositingReasons reasons = m_compositingReasonFinder.styleDeterminedReason
s(layer->renderer()); | 1175 CompositingReasons reasons = m_compositingReasonFinder.styleDeterminedReason
s(layer); |
1176 layer->setCompositingReasons(reasons, CompositingReasonComboAllStyleDetermin
edReasons); | 1176 layer->setCompositingReasons(reasons, CompositingReasonComboAllStyleDetermin
edReasons); |
1177 } | 1177 } |
1178 | 1178 |
1179 void RenderLayerCompositor::updateDirectCompositingReasons(RenderLayer* layer) | 1179 void RenderLayerCompositor::updateDirectCompositingReasons(RenderLayer* layer) |
1180 { | 1180 { |
1181 CompositingReasons reasons = m_compositingReasonFinder.directReasons(layer,
&m_needsToRecomputeCompositingRequirements); | 1181 CompositingReasons reasons = m_compositingReasonFinder.directReasons(layer,
&m_needsToRecomputeCompositingRequirements); |
1182 layer->setCompositingReasons(reasons, CompositingReasonComboAllDirectReasons
); | 1182 layer->setCompositingReasons(reasons, CompositingReasonComboAllDirectReasons
); |
1183 } | 1183 } |
1184 | 1184 |
1185 bool RenderLayerCompositor::needsOwnBacking(const RenderLayer* layer) const | 1185 bool RenderLayerCompositor::needsOwnBacking(const RenderLayer* layer) const |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1720 } else if (graphicsLayer == m_scrollLayer.get()) { | 1720 } else if (graphicsLayer == m_scrollLayer.get()) { |
1721 name = "LocalFrame Scrolling Layer"; | 1721 name = "LocalFrame Scrolling Layer"; |
1722 } else { | 1722 } else { |
1723 ASSERT_NOT_REACHED(); | 1723 ASSERT_NOT_REACHED(); |
1724 } | 1724 } |
1725 | 1725 |
1726 return name; | 1726 return name; |
1727 } | 1727 } |
1728 | 1728 |
1729 } // namespace WebCore | 1729 } // namespace WebCore |
OLD | NEW |