| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 ASSERT(!m_parent); | 157 ASSERT(!m_parent); |
| 158 } | 158 } |
| 159 | 159 |
| 160 LayoutRect GraphicsLayer::visualRect() const | 160 LayoutRect GraphicsLayer::visualRect() const |
| 161 { | 161 { |
| 162 LayoutRect bounds = LayoutRect(FloatPoint(), size()); | 162 LayoutRect bounds = LayoutRect(FloatPoint(), size()); |
| 163 bounds.move(offsetFromLayoutObjectWithSubpixelAccumulation()); | 163 bounds.move(offsetFromLayoutObjectWithSubpixelAccumulation()); |
| 164 return bounds; | 164 return bounds; |
| 165 } | 165 } |
| 166 | 166 |
| 167 void GraphicsLayer::setHasWillChangeTransformHint(bool hasWillChangeTransform) |
| 168 { |
| 169 m_layer->layer()->setHasWillChangeTransformHint(hasWillChangeTransform); |
| 170 } |
| 171 |
| 167 void GraphicsLayer::setDrawDebugRedFillForTesting(bool enabled) | 172 void GraphicsLayer::setDrawDebugRedFillForTesting(bool enabled) |
| 168 { | 173 { |
| 169 s_drawDebugRedFill = enabled; | 174 s_drawDebugRedFill = enabled; |
| 170 } | 175 } |
| 171 | 176 |
| 172 void GraphicsLayer::setParent(GraphicsLayer* layer) | 177 void GraphicsLayer::setParent(GraphicsLayer* layer) |
| 173 { | 178 { |
| 174 ASSERT(!layer || !layer->hasAncestor(this)); | 179 ASSERT(!layer || !layer->hasAncestor(this)); |
| 175 m_parent = layer; | 180 m_parent = layer; |
| 176 } | 181 } |
| (...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1223 { | 1228 { |
| 1224 if (!layer) { | 1229 if (!layer) { |
| 1225 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1230 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
| 1226 return; | 1231 return; |
| 1227 } | 1232 } |
| 1228 | 1233 |
| 1229 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1234 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
| 1230 fprintf(stderr, "%s\n", output.utf8().data()); | 1235 fprintf(stderr, "%s\n", output.utf8().data()); |
| 1231 } | 1236 } |
| 1232 #endif | 1237 #endif |
| OLD | NEW |