Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp

Issue 2769793002: Implement CSS: scroll-boundary-behavior (Closed)
Patch Set: Merge branch 'master' of https://chromium.googlesource.com/chromium/src into scroll-boundary Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
142 LayoutRect GraphicsLayer::visualRect() const { 142 LayoutRect GraphicsLayer::visualRect() const {
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(bool hasWillChangeTransform) { 148 void GraphicsLayer::setHasWillChangeTransformHint(bool hasWillChangeTransform) {
149 m_layer->layer()->setHasWillChangeTransformHint(hasWillChangeTransform); 149 m_layer->layer()->setHasWillChangeTransformHint(hasWillChangeTransform);
150 } 150 }
151 151
152 void GraphicsLayer::setScrollBoundaryBehavior(
153 WebScrollBoundaryBehavior behavior) {
154 m_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 m_parent = layer; 161 m_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 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { 1295 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) {
1291 if (!layer) { 1296 if (!layer) {
1292 LOG(INFO) << "Cannot showGraphicsLayerTree for (nil)."; 1297 LOG(INFO) << "Cannot showGraphicsLayerTree for (nil).";
1293 return; 1298 return;
1294 } 1299 }
1295 1300
1296 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); 1301 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1297 LOG(INFO) << output.utf8().data(); 1302 LOG(INFO) << output.utf8().data();
1298 } 1303 }
1299 #endif 1304 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698