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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2667493002: Changed EPosition to an enum class and renamed its members (Closed)
Patch Set: Rebase Created 3 years, 10 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, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 owningLayer().createCompositorFilterOperationsForFilter(style)); 282 owningLayer().createCompositorFilterOperationsForFilter(style));
283 } 283 }
284 284
285 void CompositedLayerMapping::updateBackdropFilters(const ComputedStyle& style) { 285 void CompositedLayerMapping::updateBackdropFilters(const ComputedStyle& style) {
286 m_graphicsLayer->setBackdropFilters( 286 m_graphicsLayer->setBackdropFilters(
287 owningLayer().createCompositorFilterOperationsForBackdropFilter(style)); 287 owningLayer().createCompositorFilterOperationsForBackdropFilter(style));
288 } 288 }
289 289
290 void CompositedLayerMapping::updateStickyConstraints( 290 void CompositedLayerMapping::updateStickyConstraints(
291 const ComputedStyle& style) { 291 const ComputedStyle& style) {
292 bool sticky = style.position() == EPosition::StickyPosition; 292 bool sticky = style.position() == EPosition::kSticky;
293 const PaintLayer* ancestorOverflowLayer = 293 const PaintLayer* ancestorOverflowLayer =
294 m_owningLayer.ancestorOverflowLayer(); 294 m_owningLayer.ancestorOverflowLayer();
295 // TODO(flackr): Do we still need this? 295 // TODO(flackr): Do we still need this?
296 if (sticky) { 296 if (sticky) {
297 if (!ancestorOverflowLayer->isRootLayer()) { 297 if (!ancestorOverflowLayer->isRootLayer()) {
298 sticky = ancestorOverflowLayer->needsCompositedScrolling(); 298 sticky = ancestorOverflowLayer->needsCompositedScrolling();
299 } else { 299 } else {
300 sticky = layoutObject()->view()->frameView()->isScrollable(); 300 sticky = layoutObject()->view()->frameView()->isScrollable();
301 } 301 }
302 } 302 }
(...skipping 3175 matching lines...) Expand 10 before | Expand all | Expand 10 after
3478 } else if (graphicsLayer == m_decorationOutlineLayer.get()) { 3478 } else if (graphicsLayer == m_decorationOutlineLayer.get()) {
3479 name = "Decoration Layer"; 3479 name = "Decoration Layer";
3480 } else { 3480 } else {
3481 ASSERT_NOT_REACHED(); 3481 ASSERT_NOT_REACHED();
3482 } 3482 }
3483 3483
3484 return name; 3484 return name;
3485 } 3485 }
3486 3486
3487 } // namespace blink 3487 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698