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

Side by Side Diff: Source/core/rendering/RenderLayerBacking.cpp

Issue 18473002: Add an API to report debugName in GraphicsLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: clear setName Created 7 years, 4 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 { 116 {
117 updateClippingLayers(false, false); 117 updateClippingLayers(false, false);
118 updateOverflowControlsLayers(false, false, false); 118 updateOverflowControlsLayers(false, false, false);
119 updateForegroundLayer(false); 119 updateForegroundLayer(false);
120 updateBackgroundLayer(false); 120 updateBackgroundLayer(false);
121 updateMaskLayer(false); 121 updateMaskLayer(false);
122 updateScrollingLayers(false); 122 updateScrollingLayers(false);
123 destroyGraphicsLayers(); 123 destroyGraphicsLayers();
124 } 124 }
125 125
126 PassOwnPtr<GraphicsLayer> RenderLayerBacking::createGraphicsLayer(const String& name, CompositingReasons reasons) 126 PassOwnPtr<GraphicsLayer> RenderLayerBacking::createGraphicsLayer(CompositingRea sons reasons)
127 { 127 {
128 GraphicsLayerFactory* graphicsLayerFactory = 0; 128 GraphicsLayerFactory* graphicsLayerFactory = 0;
129 if (Page* page = renderer()->frame()->page()) 129 if (Page* page = renderer()->frame()->page())
130 graphicsLayerFactory = page->chrome().client()->graphicsLayerFactory(); 130 graphicsLayerFactory = page->chrome().client()->graphicsLayerFactory();
131 131
132 OwnPtr<GraphicsLayer> graphicsLayer = GraphicsLayer::create(graphicsLayerFac tory, this); 132 OwnPtr<GraphicsLayer> graphicsLayer = GraphicsLayer::create(graphicsLayerFac tory, this);
133 133
134 #ifndef NDEBUG
135 graphicsLayer->setName(name);
136 #else
137 UNUSED_PARAM(name);
138 #endif
139
140 graphicsLayer->setCompositingReasons(reasons); 134 graphicsLayer->setCompositingReasons(reasons);
141 135
142 return graphicsLayer.release(); 136 return graphicsLayer.release();
143 } 137 }
144 138
145 void RenderLayerBacking::updateDebugIndicators(bool showBorder, bool showRepaint Counter) 139 void RenderLayerBacking::updateDebugIndicators(bool showBorder, bool showRepaint Counter)
146 { 140 {
147 m_graphicsLayer->setShowDebugBorder(showBorder); 141 m_graphicsLayer->setShowDebugBorder(showBorder);
148 m_graphicsLayer->setShowRepaintCounter(showRepaintCounter); 142 m_graphicsLayer->setShowRepaintCounter(showRepaintCounter);
149 143
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 m_scrollingLayer->setShowDebugBorder(showBorder); 175 m_scrollingLayer->setShowDebugBorder(showBorder);
182 176
183 if (m_scrollingContentsLayer) { 177 if (m_scrollingContentsLayer) {
184 m_scrollingContentsLayer->setShowDebugBorder(showBorder); 178 m_scrollingContentsLayer->setShowDebugBorder(showBorder);
185 m_scrollingContentsLayer->setShowRepaintCounter(showRepaintCounter); 179 m_scrollingContentsLayer->setShowRepaintCounter(showRepaintCounter);
186 } 180 }
187 } 181 }
188 182
189 void RenderLayerBacking::createPrimaryGraphicsLayer() 183 void RenderLayerBacking::createPrimaryGraphicsLayer()
190 { 184 {
191 String layerName; 185 m_graphicsLayer = createGraphicsLayer(m_owningLayer->compositingReasons());
192 #ifndef NDEBUG
193 layerName = m_owningLayer->debugName();
194 #endif
195
196 m_graphicsLayer = createGraphicsLayer(layerName, m_owningLayer->compositingR easons());
197 186
198 #if !OS(ANDROID) 187 #if !OS(ANDROID)
199 if (m_isMainFrameRenderViewLayer) 188 if (m_isMainFrameRenderViewLayer)
200 m_graphicsLayer->contentLayer()->setDrawCheckerboardForMissingTiles(true ); 189 m_graphicsLayer->contentLayer()->setDrawCheckerboardForMissingTiles(true );
201 #endif 190 #endif
202 191
203 updateOpacity(renderer()->style()); 192 updateOpacity(renderer()->style());
204 updateTransform(renderer()->style()); 193 updateTransform(renderer()->style());
205 updateFilters(renderer()->style()); 194 updateFilters(renderer()->style());
206 195
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 m_backgroundLayer->setDrawsContent(hasPaintedContent); 836 m_backgroundLayer->setDrawsContent(hasPaintedContent);
848 } 837 }
849 838
850 // Return true if the layers changed. 839 // Return true if the layers changed.
851 bool RenderLayerBacking::updateClippingLayers(bool needsAncestorClip, bool needs DescendantClip) 840 bool RenderLayerBacking::updateClippingLayers(bool needsAncestorClip, bool needs DescendantClip)
852 { 841 {
853 bool layersChanged = false; 842 bool layersChanged = false;
854 843
855 if (needsAncestorClip) { 844 if (needsAncestorClip) {
856 if (!m_ancestorClippingLayer) { 845 if (!m_ancestorClippingLayer) {
857 m_ancestorClippingLayer = createGraphicsLayer("Ancestor clipping Lay er", CompositingReasonLayerForClip); 846 m_ancestorClippingLayer = createGraphicsLayer(CompositingReasonLayer ForClip);
858 m_ancestorClippingLayer->setMasksToBounds(true); 847 m_ancestorClippingLayer->setMasksToBounds(true);
859 layersChanged = true; 848 layersChanged = true;
860 } 849 }
861 } else if (m_ancestorClippingLayer) { 850 } else if (m_ancestorClippingLayer) {
862 m_ancestorClippingLayer->removeFromParent(); 851 m_ancestorClippingLayer->removeFromParent();
863 m_ancestorClippingLayer = nullptr; 852 m_ancestorClippingLayer = nullptr;
864 layersChanged = true; 853 layersChanged = true;
865 } 854 }
866 855
867 if (needsDescendantClip) { 856 if (needsDescendantClip) {
868 if (!m_childContainmentLayer) { 857 if (!m_childContainmentLayer) {
869 m_childContainmentLayer = createGraphicsLayer("Child clipping Layer" , CompositingReasonLayerForClip); 858 m_childContainmentLayer = createGraphicsLayer(CompositingReasonLayer ForClip);
870 m_childContainmentLayer->setMasksToBounds(true); 859 m_childContainmentLayer->setMasksToBounds(true);
871 layersChanged = true; 860 layersChanged = true;
872 } 861 }
873 } else if (hasClippingLayer()) { 862 } else if (hasClippingLayer()) {
874 m_childContainmentLayer->removeFromParent(); 863 m_childContainmentLayer->removeFromParent();
875 m_childContainmentLayer = nullptr; 864 m_childContainmentLayer = nullptr;
876 layersChanged = true; 865 layersChanged = true;
877 } 866 }
878 867
879 return layersChanged; 868 return layersChanged;
880 } 869 }
881 870
882 void RenderLayerBacking::setBackgroundLayerPaintsFixedRootBackground(bool backgr oundLayerPaintsFixedRootBackground) 871 void RenderLayerBacking::setBackgroundLayerPaintsFixedRootBackground(bool backgr oundLayerPaintsFixedRootBackground)
883 { 872 {
884 m_backgroundLayerPaintsFixedRootBackground = backgroundLayerPaintsFixedRootB ackground; 873 m_backgroundLayerPaintsFixedRootBackground = backgroundLayerPaintsFixedRootB ackground;
885 } 874 }
886 875
887 bool RenderLayerBacking::updateOverflowControlsLayers(bool needsHorizontalScroll barLayer, bool needsVerticalScrollbarLayer, bool needsScrollCornerLayer) 876 bool RenderLayerBacking::updateOverflowControlsLayers(bool needsHorizontalScroll barLayer, bool needsVerticalScrollbarLayer, bool needsScrollCornerLayer)
888 { 877 {
889 bool horizontalScrollbarLayerChanged = false; 878 bool horizontalScrollbarLayerChanged = false;
890 if (needsHorizontalScrollbarLayer) { 879 if (needsHorizontalScrollbarLayer) {
891 if (!m_layerForHorizontalScrollbar) { 880 if (!m_layerForHorizontalScrollbar) {
892 m_layerForHorizontalScrollbar = createGraphicsLayer("horizontal scro llbar", CompositingReasonLayerForScrollbar); 881 m_layerForHorizontalScrollbar = createGraphicsLayer(CompositingReaso nLayerForScrollbar);
893 horizontalScrollbarLayerChanged = true; 882 horizontalScrollbarLayerChanged = true;
894 } 883 }
895 } else if (m_layerForHorizontalScrollbar) { 884 } else if (m_layerForHorizontalScrollbar) {
896 m_layerForHorizontalScrollbar = nullptr; 885 m_layerForHorizontalScrollbar = nullptr;
897 horizontalScrollbarLayerChanged = true; 886 horizontalScrollbarLayerChanged = true;
898 } 887 }
899 888
900 bool verticalScrollbarLayerChanged = false; 889 bool verticalScrollbarLayerChanged = false;
901 if (needsVerticalScrollbarLayer) { 890 if (needsVerticalScrollbarLayer) {
902 if (!m_layerForVerticalScrollbar) { 891 if (!m_layerForVerticalScrollbar) {
903 m_layerForVerticalScrollbar = createGraphicsLayer("vertical scrollba r", CompositingReasonLayerForScrollbar); 892 m_layerForVerticalScrollbar = createGraphicsLayer(CompositingReasonL ayerForScrollbar);
904 verticalScrollbarLayerChanged = true; 893 verticalScrollbarLayerChanged = true;
905 } 894 }
906 } else if (m_layerForVerticalScrollbar) { 895 } else if (m_layerForVerticalScrollbar) {
907 m_layerForVerticalScrollbar = nullptr; 896 m_layerForVerticalScrollbar = nullptr;
908 verticalScrollbarLayerChanged = true; 897 verticalScrollbarLayerChanged = true;
909 } 898 }
910 899
911 bool scrollCornerLayerChanged = false; 900 bool scrollCornerLayerChanged = false;
912 if (needsScrollCornerLayer) { 901 if (needsScrollCornerLayer) {
913 if (!m_layerForScrollCorner) { 902 if (!m_layerForScrollCorner) {
914 m_layerForScrollCorner = createGraphicsLayer("scroll corner", Compos itingReasonLayerForScrollbar); 903 m_layerForScrollCorner = createGraphicsLayer(CompositingReasonLayerF orScrollbar);
915 scrollCornerLayerChanged = true; 904 scrollCornerLayerChanged = true;
916 } 905 }
917 } else if (m_layerForScrollCorner) { 906 } else if (m_layerForScrollCorner) {
918 m_layerForScrollCorner = nullptr; 907 m_layerForScrollCorner = nullptr;
919 scrollCornerLayerChanged = true; 908 scrollCornerLayerChanged = true;
920 } 909 }
921 910
922 if (ScrollingCoordinator* scrollingCoordinator = scrollingCoordinatorFromLay er(m_owningLayer)) { 911 if (ScrollingCoordinator* scrollingCoordinator = scrollingCoordinatorFromLay er(m_owningLayer)) {
923 if (horizontalScrollbarLayerChanged) 912 if (horizontalScrollbarLayerChanged)
924 scrollingCoordinator->scrollableAreaScrollbarLayerDidChange(m_owning Layer, HorizontalScrollbar); 913 scrollingCoordinator->scrollableAreaScrollbarLayerDidChange(m_owning Layer, HorizontalScrollbar);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 return true; 966 return true;
978 967
979 return false; 968 return false;
980 } 969 }
981 970
982 bool RenderLayerBacking::updateForegroundLayer(bool needsForegroundLayer) 971 bool RenderLayerBacking::updateForegroundLayer(bool needsForegroundLayer)
983 { 972 {
984 bool layerChanged = false; 973 bool layerChanged = false;
985 if (needsForegroundLayer) { 974 if (needsForegroundLayer) {
986 if (!m_foregroundLayer) { 975 if (!m_foregroundLayer) {
987 String layerName; 976 m_foregroundLayer = createGraphicsLayer(CompositingReasonLayerForFor eground);
988 #ifndef NDEBUG
989 layerName = m_owningLayer->debugName() + " (foreground)";
990 #endif
991 m_foregroundLayer = createGraphicsLayer(layerName, CompositingReason LayerForForeground);
992 m_foregroundLayer->setDrawsContent(true); 977 m_foregroundLayer->setDrawsContent(true);
993 m_foregroundLayer->setPaintingPhase(GraphicsLayerPaintForeground); 978 m_foregroundLayer->setPaintingPhase(GraphicsLayerPaintForeground);
994 layerChanged = true; 979 layerChanged = true;
995 } 980 }
996 } else if (m_foregroundLayer) { 981 } else if (m_foregroundLayer) {
997 m_foregroundLayer->removeFromParent(); 982 m_foregroundLayer->removeFromParent();
998 m_foregroundLayer = nullptr; 983 m_foregroundLayer = nullptr;
999 layerChanged = true; 984 layerChanged = true;
1000 } 985 }
1001 986
1002 if (layerChanged) 987 if (layerChanged)
1003 m_graphicsLayer->setPaintingPhase(paintingPhaseForPrimaryLayer()); 988 m_graphicsLayer->setPaintingPhase(paintingPhaseForPrimaryLayer());
1004 989
1005 return layerChanged; 990 return layerChanged;
1006 } 991 }
1007 992
1008 bool RenderLayerBacking::updateBackgroundLayer(bool needsBackgroundLayer) 993 bool RenderLayerBacking::updateBackgroundLayer(bool needsBackgroundLayer)
1009 { 994 {
1010 bool layerChanged = false; 995 bool layerChanged = false;
1011 if (needsBackgroundLayer) { 996 if (needsBackgroundLayer) {
1012 if (!m_backgroundLayer) { 997 if (!m_backgroundLayer) {
1013 String layerName; 998 m_backgroundLayer = createGraphicsLayer(CompositingReasonLayerForBac kground);
1014 #ifndef NDEBUG
1015 layerName = m_owningLayer->debugName() + " (background)";
1016 #endif
1017 m_backgroundLayer = createGraphicsLayer(layerName, CompositingReason LayerForBackground);
1018 m_backgroundLayer->setDrawsContent(true); 999 m_backgroundLayer->setDrawsContent(true);
1019 m_backgroundLayer->setAnchorPoint(FloatPoint3D()); 1000 m_backgroundLayer->setAnchorPoint(FloatPoint3D());
1020 m_backgroundLayer->setPaintingPhase(GraphicsLayerPaintBackground); 1001 m_backgroundLayer->setPaintingPhase(GraphicsLayerPaintBackground);
1021 layerChanged = true; 1002 layerChanged = true;
1022 } 1003 }
1023 1004
1024 if (!m_contentsContainmentLayer) { 1005 if (!m_contentsContainmentLayer) {
1025 String layerName; 1006 m_contentsContainmentLayer = createGraphicsLayer(CompositingReasonLa yerForBackground);
1026 #ifndef NDEBUG
1027 layerName = m_owningLayer->debugName() + " (contents containment)";
1028 #endif
1029 m_contentsContainmentLayer = createGraphicsLayer(layerName, Composit ingReasonLayerForBackground);
1030 layerChanged = true; 1007 layerChanged = true;
1031 } 1008 }
1032 } else { 1009 } else {
1033 if (m_backgroundLayer) { 1010 if (m_backgroundLayer) {
1034 m_backgroundLayer->removeFromParent(); 1011 m_backgroundLayer->removeFromParent();
1035 m_backgroundLayer = nullptr; 1012 m_backgroundLayer = nullptr;
1036 layerChanged = true; 1013 layerChanged = true;
1037 } 1014 }
1038 if (m_contentsContainmentLayer) { 1015 if (m_contentsContainmentLayer) {
1039 m_contentsContainmentLayer->removeFromParent(); 1016 m_contentsContainmentLayer->removeFromParent();
1040 m_contentsContainmentLayer = nullptr; 1017 m_contentsContainmentLayer = nullptr;
1041 layerChanged = true; 1018 layerChanged = true;
1042 } 1019 }
1043 } 1020 }
1044 1021
1045 return layerChanged; 1022 return layerChanged;
1046 } 1023 }
1047 1024
1048 bool RenderLayerBacking::updateMaskLayer(bool needsMaskLayer) 1025 bool RenderLayerBacking::updateMaskLayer(bool needsMaskLayer)
1049 { 1026 {
1050 bool layerChanged = false; 1027 bool layerChanged = false;
1051 if (needsMaskLayer) { 1028 if (needsMaskLayer) {
1052 if (!m_maskLayer) { 1029 if (!m_maskLayer) {
1053 m_maskLayer = createGraphicsLayer("Mask", CompositingReasonLayerForM ask); 1030 m_maskLayer = createGraphicsLayer(CompositingReasonLayerForMask);
1054 m_maskLayer->setDrawsContent(true); 1031 m_maskLayer->setDrawsContent(true);
1055 m_maskLayer->setPaintingPhase(GraphicsLayerPaintMask); 1032 m_maskLayer->setPaintingPhase(GraphicsLayerPaintMask);
1056 layerChanged = true; 1033 layerChanged = true;
1057 } 1034 }
1058 } else if (m_maskLayer) { 1035 } else if (m_maskLayer) {
1059 m_maskLayer = nullptr; 1036 m_maskLayer = nullptr;
1060 layerChanged = true; 1037 layerChanged = true;
1061 } 1038 }
1062 1039
1063 if (layerChanged) 1040 if (layerChanged)
1064 m_graphicsLayer->setPaintingPhase(paintingPhaseForPrimaryLayer()); 1041 m_graphicsLayer->setPaintingPhase(paintingPhaseForPrimaryLayer());
1065 1042
1066 return layerChanged; 1043 return layerChanged;
1067 } 1044 }
1068 1045
1069 bool RenderLayerBacking::updateScrollingLayers(bool needsScrollingLayers) 1046 bool RenderLayerBacking::updateScrollingLayers(bool needsScrollingLayers)
1070 { 1047 {
1071 ScrollingCoordinator* scrollingCoordinator = scrollingCoordinatorFromLayer(m _owningLayer); 1048 ScrollingCoordinator* scrollingCoordinator = scrollingCoordinatorFromLayer(m _owningLayer);
1072 1049
1073 bool layerChanged = false; 1050 bool layerChanged = false;
1074 if (needsScrollingLayers) { 1051 if (needsScrollingLayers) {
1075 if (!m_scrollingLayer) { 1052 if (!m_scrollingLayer) {
1076 // Outer layer which corresponds with the scroll view. 1053 // Outer layer which corresponds with the scroll view.
1077 m_scrollingLayer = createGraphicsLayer("Scrolling container", Compos itingReasonLayerForClip); 1054 m_scrollingLayer = createGraphicsLayer(CompositingReasonLayerForClip );
1078 m_scrollingLayer->setDrawsContent(false); 1055 m_scrollingLayer->setDrawsContent(false);
1079 m_scrollingLayer->setMasksToBounds(true); 1056 m_scrollingLayer->setMasksToBounds(true);
1080 1057
1081 // Inner layer which renders the content that scrolls. 1058 // Inner layer which renders the content that scrolls.
1082 m_scrollingContentsLayer = createGraphicsLayer("Scrolled Contents", CompositingReasonLayerForScrollingContainer); 1059 m_scrollingContentsLayer = createGraphicsLayer(CompositingReasonLaye rForScrollingContainer);
1083 m_scrollingContentsLayer->setDrawsContent(true); 1060 m_scrollingContentsLayer->setDrawsContent(true);
1084 GraphicsLayerPaintingPhase paintPhase = GraphicsLayerPaintOverflowCo ntents | GraphicsLayerPaintCompositedScroll; 1061 GraphicsLayerPaintingPhase paintPhase = GraphicsLayerPaintOverflowCo ntents | GraphicsLayerPaintCompositedScroll;
1085 if (!m_foregroundLayer) 1062 if (!m_foregroundLayer)
1086 paintPhase |= GraphicsLayerPaintForeground; 1063 paintPhase |= GraphicsLayerPaintForeground;
1087 m_scrollingContentsLayer->setPaintingPhase(paintPhase); 1064 m_scrollingContentsLayer->setPaintingPhase(paintPhase);
1088 m_scrollingLayer->addChild(m_scrollingContentsLayer.get()); 1065 m_scrollingLayer->addChild(m_scrollingContentsLayer.get());
1089 1066
1090 layerChanged = true; 1067 layerChanged = true;
1091 if (scrollingCoordinator) 1068 if (scrollingCoordinator)
1092 scrollingCoordinator->scrollableAreaScrollLayerDidChange(m_ownin gLayer); 1069 scrollingCoordinator->scrollableAreaScrollLayerDidChange(m_ownin gLayer);
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
1962 info.addMember(m_backgroundLayer, "backgroundLayer"); 1939 info.addMember(m_backgroundLayer, "backgroundLayer");
1963 info.addMember(m_childContainmentLayer, "childContainmentLayer"); 1940 info.addMember(m_childContainmentLayer, "childContainmentLayer");
1964 info.addMember(m_maskLayer, "maskLayer"); 1941 info.addMember(m_maskLayer, "maskLayer");
1965 info.addMember(m_layerForHorizontalScrollbar, "layerForHorizontalScrollbar") ; 1942 info.addMember(m_layerForHorizontalScrollbar, "layerForHorizontalScrollbar") ;
1966 info.addMember(m_layerForVerticalScrollbar, "layerForVerticalScrollbar"); 1943 info.addMember(m_layerForVerticalScrollbar, "layerForVerticalScrollbar");
1967 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); 1944 info.addMember(m_layerForScrollCorner, "layerForScrollCorner");
1968 info.addMember(m_scrollingLayer, "scrollingLayer"); 1945 info.addMember(m_scrollingLayer, "scrollingLayer");
1969 info.addMember(m_scrollingContentsLayer, "scrollingContentsLayer"); 1946 info.addMember(m_scrollingContentsLayer, "scrollingContentsLayer");
1970 } 1947 }
1971 1948
1949 String RenderLayerBacking::debugName(const GraphicsLayer* graphicsLayer)
1950 {
1951 String name;
1952 if (graphicsLayer == m_graphicsLayer.get()) {
1953 name = m_owningLayer->debugName();
1954 } else if (graphicsLayer == m_ancestorClippingLayer.get()) {
1955 name = "Ancestor Clipping Layer";
1956 } else if (graphicsLayer == m_contentsContainmentLayer.get()) {
1957 name = "Contents Containment Layer";
1958 } else if (graphicsLayer == m_foregroundLayer.get()) {
1959 name = m_owningLayer->debugName() + " (foreground) Layer";
1960 } else if (graphicsLayer == m_backgroundLayer.get()) {
1961 name = m_owningLayer->debugName() + " (background) Layer";
1962 } else if (graphicsLayer == m_childContainmentLayer.get()) {
1963 name = "Child Containment Layer";
1964 } else if (graphicsLayer == m_maskLayer.get()) {
1965 name = "Mask Layer";
1966 } else if (graphicsLayer == m_layerForHorizontalScrollbar.get()) {
1967 name = "Horizontal Scrollbar Layer";
1968 } else if (graphicsLayer == m_layerForVerticalScrollbar.get()) {
1969 name = "Vertical Scrollbar Layer";
1970 } else if (graphicsLayer == m_layerForScrollCorner.get()) {
1971 name = "Scroll Corner Layer";
1972 } else if (graphicsLayer == m_scrollingLayer.get()) {
1973 name = "Scrolling Layer";
1974 } else if (graphicsLayer == m_scrollingContentsLayer.get()) {
1975 name = "Scrolling Contents Layer";
1976 }
1977
1978 return name;
1979 }
1980
1972 } // namespace WebCore 1981 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698