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

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

Issue 2911463002: Unify the calculation of main thread offset of sticky element (Closed)
Patch Set: Remove parent_relative_sticky_box_offset related logic Created 3 years, 6 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 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 1091
1092 void GraphicsLayer::SetBackdropFilters(CompositorFilterOperations filters) { 1092 void GraphicsLayer::SetBackdropFilters(CompositorFilterOperations filters) {
1093 PlatformLayer()->SetBackgroundFilters(filters.ReleaseCcFilterOperations()); 1093 PlatformLayer()->SetBackgroundFilters(filters.ReleaseCcFilterOperations());
1094 } 1094 }
1095 1095
1096 void GraphicsLayer::SetStickyPositionConstraint( 1096 void GraphicsLayer::SetStickyPositionConstraint(
1097 const WebLayerStickyPositionConstraint& sticky_constraint) { 1097 const WebLayerStickyPositionConstraint& sticky_constraint) {
1098 layer_->Layer()->SetStickyPositionConstraint(sticky_constraint); 1098 layer_->Layer()->SetStickyPositionConstraint(sticky_constraint);
1099 } 1099 }
1100 1100
1101 void GraphicsLayer::SetStickyMainThreadOffset(const WebSize& offset) {
1102 layer_->Layer()->SetStickyMainThreadOffset(offset);
1103 }
1104
1101 void GraphicsLayer::SetFilterQuality(SkFilterQuality filter_quality) { 1105 void GraphicsLayer::SetFilterQuality(SkFilterQuality filter_quality) {
1102 if (image_layer_) 1106 if (image_layer_)
1103 image_layer_->SetNearestNeighbor(filter_quality == kNone_SkFilterQuality); 1107 image_layer_->SetNearestNeighbor(filter_quality == kNone_SkFilterQuality);
1104 } 1108 }
1105 1109
1106 void GraphicsLayer::SetPaintingPhase(GraphicsLayerPaintingPhase phase) { 1110 void GraphicsLayer::SetPaintingPhase(GraphicsLayerPaintingPhase phase) {
1107 if (painting_phase_ == phase) 1111 if (painting_phase_ == phase)
1108 return; 1112 return;
1109 painting_phase_ = phase; 1113 painting_phase_ = phase;
1110 SetNeedsDisplay(); 1114 SetNeedsDisplay();
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { 1301 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) {
1298 if (!layer) { 1302 if (!layer) {
1299 LOG(INFO) << "Cannot showGraphicsLayerTree for (nil)."; 1303 LOG(INFO) << "Cannot showGraphicsLayerTree for (nil).";
1300 return; 1304 return;
1301 } 1305 }
1302 1306
1303 String output = layer->LayerTreeAsText(blink::kLayerTreeIncludesDebugInfo); 1307 String output = layer->LayerTreeAsText(blink::kLayerTreeIncludesDebugInfo);
1304 LOG(INFO) << output.Utf8().data(); 1308 LOG(INFO) << output.Utf8().data();
1305 } 1309 }
1306 #endif 1310 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698