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

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

Issue 2443613002: Rename classes related to top controls (Closed)
Patch Set: fix test Created 4 years, 1 month 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 layerConfigChanged = true; 524 layerConfigChanged = true;
525 525
526 bool needsDescendantsClippingLayer = 526 bool needsDescendantsClippingLayer =
527 compositor->clipsCompositingDescendants(&m_owningLayer); 527 compositor->clipsCompositingDescendants(&m_owningLayer);
528 528
529 // Our scrolling layer will clip. 529 // Our scrolling layer will clip.
530 if (m_owningLayer.needsCompositedScrolling()) 530 if (m_owningLayer.needsCompositedScrolling())
531 needsDescendantsClippingLayer = false; 531 needsDescendantsClippingLayer = false;
532 532
533 // We disable clipping on ancestor layers of the root scroller to give it 533 // We disable clipping on ancestor layers of the root scroller to give it
534 // the same behavior w.r.t top controls as the real root layer. See the 534 // the same behavior w.r.t browser controls as the real root layer. See the
535 // RootScrollerController class for more details. 535 // RootScrollerController class for more details.
536 if (m_owningLayer.hasRootScrollerAsDescendant()) 536 if (m_owningLayer.hasRootScrollerAsDescendant())
537 needsDescendantsClippingLayer = false; 537 needsDescendantsClippingLayer = false;
538 538
539 const PaintLayer* scrollParent = this->scrollParent(); 539 const PaintLayer* scrollParent = this->scrollParent();
540 540
541 // This is required because compositing layers are parented according to the 541 // This is required because compositing layers are parented according to the
542 // z-order hierarchy, yet clipping goes down the layoutObject hierarchy. Thus, 542 // z-order hierarchy, yet clipping goes down the layoutObject hierarchy. Thus,
543 // a PaintLayer can be clipped by a PaintLayer that is an ancestor in the 543 // a PaintLayer can be clipped by a PaintLayer that is an ancestor in the
544 // layoutObject hierarchy, but a sibling in the z-order hierarchy. Further, 544 // layoutObject hierarchy, but a sibling in the z-order hierarchy. Further,
(...skipping 2704 matching lines...) Expand 10 before | Expand all | Expand 10 after
3249 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { 3249 } else if (graphicsLayer == m_scrollingContentsLayer.get()) {
3250 name = "Scrolling Contents Layer"; 3250 name = "Scrolling Contents Layer";
3251 } else { 3251 } else {
3252 ASSERT_NOT_REACHED(); 3252 ASSERT_NOT_REACHED();
3253 } 3253 }
3254 3254
3255 return name; 3255 return name;
3256 } 3256 }
3257 3257
3258 } // namespace blink 3258 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698