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

Side by Side Diff: sky/engine/core/rendering/compositing/RenderLayerCompositor.cpp

Issue 735193002: Remove lots of things from RenderObject (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « sky/engine/core/rendering/compositing/CompositedLayerMapping.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 { 611 {
612 RootLayerAttachment expectedAttachment = RootLayerAttachedViaChromeClient; 612 RootLayerAttachment expectedAttachment = RootLayerAttachedViaChromeClient;
613 if (expectedAttachment == m_rootLayerAttachment) 613 if (expectedAttachment == m_rootLayerAttachment)
614 return; 614 return;
615 615
616 if (!m_rootContentLayer) { 616 if (!m_rootContentLayer) {
617 m_rootContentLayer = GraphicsLayer::create(graphicsLayerFactory(), this) ; 617 m_rootContentLayer = GraphicsLayer::create(graphicsLayerFactory(), this) ;
618 IntRect overflowRect = m_renderView.pixelSnappedLayoutOverflowRect(); 618 IntRect overflowRect = m_renderView.pixelSnappedLayoutOverflowRect();
619 m_rootContentLayer->setSize(FloatSize(overflowRect.maxX(), overflowRect. maxY())); 619 m_rootContentLayer->setSize(FloatSize(overflowRect.maxX(), overflowRect. maxY()));
620 m_rootContentLayer->setPosition(FloatPoint()); 620 m_rootContentLayer->setPosition(FloatPoint());
621 m_rootContentLayer->setOwnerNodeId(InspectorNodeIds::idForNode(m_renderV iew.generatingNode())); 621 m_rootContentLayer->setOwnerNodeId(InspectorNodeIds::idForNode(m_renderV iew.node()));
622 622
623 // Need to clip to prevent transformed content showing outside this fram e 623 // Need to clip to prevent transformed content showing outside this fram e
624 m_rootContentLayer->setMasksToBounds(true); 624 m_rootContentLayer->setMasksToBounds(true);
625 } 625 }
626 626
627 if (!m_overflowControlsHostLayer) { 627 if (!m_overflowControlsHostLayer) {
628 ASSERT(!m_scrollLayer); 628 ASSERT(!m_scrollLayer);
629 ASSERT(!m_containerLayer); 629 ASSERT(!m_containerLayer);
630 630
631 // Create a layer to host the clipping layer and the overflow controls l ayers. 631 // Create a layer to host the clipping layer and the overflow controls l ayers.
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 } else if (graphicsLayer == m_scrollLayer.get()) { 759 } else if (graphicsLayer == m_scrollLayer.get()) {
760 name = "LocalFrame Scrolling Layer"; 760 name = "LocalFrame Scrolling Layer";
761 } else { 761 } else {
762 ASSERT_NOT_REACHED(); 762 ASSERT_NOT_REACHED();
763 } 763 }
764 764
765 return name; 765 return name;
766 } 766 }
767 767
768 } // namespace blink 768 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/compositing/CompositedLayerMapping.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698