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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 LayoutRect bounds = LayoutRect(FloatPoint(), Size()); | 142 LayoutRect bounds = LayoutRect(FloatPoint(), Size()); |
143 bounds.Move(OffsetFromLayoutObjectWithSubpixelAccumulation()); | 143 bounds.Move(OffsetFromLayoutObjectWithSubpixelAccumulation()); |
144 return bounds; | 144 return bounds; |
145 } | 145 } |
146 | 146 |
147 void GraphicsLayer::SetHasWillChangeTransformHint( | 147 void GraphicsLayer::SetHasWillChangeTransformHint( |
148 bool has_will_change_transform) { | 148 bool has_will_change_transform) { |
149 layer_->Layer()->SetHasWillChangeTransformHint(has_will_change_transform); | 149 layer_->Layer()->SetHasWillChangeTransformHint(has_will_change_transform); |
150 } | 150 } |
151 | 151 |
| 152 void GraphicsLayer::SetScrollBoundaryBehavior( |
| 153 const WebScrollBoundaryBehavior& behavior) { |
| 154 layer_->Layer()->SetScrollBoundaryBehavior(behavior); |
| 155 } |
| 156 |
152 void GraphicsLayer::SetParent(GraphicsLayer* layer) { | 157 void GraphicsLayer::SetParent(GraphicsLayer* layer) { |
153 #if DCHECK_IS_ON() | 158 #if DCHECK_IS_ON() |
154 DCHECK(!layer || !layer->HasAncestor(this)); | 159 DCHECK(!layer || !layer->HasAncestor(this)); |
155 #endif | 160 #endif |
156 parent_ = layer; | 161 parent_ = layer; |
157 } | 162 } |
158 | 163 |
159 #if DCHECK_IS_ON() | 164 #if DCHECK_IS_ON() |
160 | 165 |
161 bool GraphicsLayer::HasAncestor(GraphicsLayer* ancestor) const { | 166 bool GraphicsLayer::HasAncestor(GraphicsLayer* ancestor) const { |
(...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1216 if (!layer) { | 1221 if (!layer) { |
1217 LOG(INFO) << "Cannot showGraphicsLayers for (nil)."; | 1222 LOG(INFO) << "Cannot showGraphicsLayers for (nil)."; |
1218 return; | 1223 return; |
1219 } | 1224 } |
1220 | 1225 |
1221 String output = layer->GetLayerTreeAsTextForTesting( | 1226 String output = layer->GetLayerTreeAsTextForTesting( |
1222 0xffffffff & ~blink::kOutputAsLayerTree); | 1227 0xffffffff & ~blink::kOutputAsLayerTree); |
1223 LOG(INFO) << output.Utf8().data(); | 1228 LOG(INFO) << output.Utf8().data(); |
1224 } | 1229 } |
1225 #endif | 1230 #endif |
OLD | NEW |