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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 LayoutRect bounds = LayoutRect(FloatPoint(), Size()); | 143 LayoutRect bounds = LayoutRect(FloatPoint(), Size()); |
144 bounds.Move(OffsetFromLayoutObjectWithSubpixelAccumulation()); | 144 bounds.Move(OffsetFromLayoutObjectWithSubpixelAccumulation()); |
145 return bounds; | 145 return bounds; |
146 } | 146 } |
147 | 147 |
148 void GraphicsLayer::SetHasWillChangeTransformHint( | 148 void GraphicsLayer::SetHasWillChangeTransformHint( |
149 bool has_will_change_transform) { | 149 bool has_will_change_transform) { |
150 layer_->Layer()->SetHasWillChangeTransformHint(has_will_change_transform); | 150 layer_->Layer()->SetHasWillChangeTransformHint(has_will_change_transform); |
151 } | 151 } |
152 | 152 |
| 153 void GraphicsLayer::SetScrollBoundaryBehavior( |
| 154 WebScrollBoundaryBehavior behavior) { |
| 155 layer_->Layer()->SetScrollBoundaryBehavior(behavior); |
| 156 } |
| 157 |
153 void GraphicsLayer::SetParent(GraphicsLayer* layer) { | 158 void GraphicsLayer::SetParent(GraphicsLayer* layer) { |
154 #if DCHECK_IS_ON() | 159 #if DCHECK_IS_ON() |
155 DCHECK(!layer || !layer->HasAncestor(this)); | 160 DCHECK(!layer || !layer->HasAncestor(this)); |
156 #endif | 161 #endif |
157 parent_ = layer; | 162 parent_ = layer; |
158 } | 163 } |
159 | 164 |
160 #if DCHECK_IS_ON() | 165 #if DCHECK_IS_ON() |
161 | 166 |
162 bool GraphicsLayer::HasAncestor(GraphicsLayer* ancestor) const { | 167 bool GraphicsLayer::HasAncestor(GraphicsLayer* ancestor) const { |
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1292 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { | 1297 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { |
1293 if (!layer) { | 1298 if (!layer) { |
1294 LOG(INFO) << "Cannot showGraphicsLayerTree for (nil)."; | 1299 LOG(INFO) << "Cannot showGraphicsLayerTree for (nil)."; |
1295 return; | 1300 return; |
1296 } | 1301 } |
1297 | 1302 |
1298 String output = layer->LayerTreeAsText(blink::kLayerTreeIncludesDebugInfo); | 1303 String output = layer->LayerTreeAsText(blink::kLayerTreeIncludesDebugInfo); |
1299 LOG(INFO) << output.Utf8().data(); | 1304 LOG(INFO) << output.Utf8().data(); |
1300 } | 1305 } |
1301 #endif | 1306 #endif |
OLD | NEW |