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

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

Issue 2194273002: Fix border radius on composited children. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Super hacky patch Created 4 years, 2 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 781 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 if ((flags & LayerTreeIncludesPaintingPhases) && m_paintingPhase) { 792 if ((flags & LayerTreeIncludesPaintingPhases) && m_paintingPhase) {
793 std::unique_ptr<JSONArray> paintingPhasesJSON = JSONArray::create(); 793 std::unique_ptr<JSONArray> paintingPhasesJSON = JSONArray::create();
794 if (m_paintingPhase & GraphicsLayerPaintBackground) 794 if (m_paintingPhase & GraphicsLayerPaintBackground)
795 paintingPhasesJSON->pushString("GraphicsLayerPaintBackground"); 795 paintingPhasesJSON->pushString("GraphicsLayerPaintBackground");
796 if (m_paintingPhase & GraphicsLayerPaintForeground) 796 if (m_paintingPhase & GraphicsLayerPaintForeground)
797 paintingPhasesJSON->pushString("GraphicsLayerPaintForeground"); 797 paintingPhasesJSON->pushString("GraphicsLayerPaintForeground");
798 if (m_paintingPhase & GraphicsLayerPaintMask) 798 if (m_paintingPhase & GraphicsLayerPaintMask)
799 paintingPhasesJSON->pushString("GraphicsLayerPaintMask"); 799 paintingPhasesJSON->pushString("GraphicsLayerPaintMask");
800 if (m_paintingPhase & GraphicsLayerPaintChildClippingMask) 800 if (m_paintingPhase & GraphicsLayerPaintChildClippingMask)
801 paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask" ); 801 paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask" );
802 if (m_paintingPhase & GraphicsLayerPaintAncestorClippingMask)
803 paintingPhasesJSON->pushString("GraphicsLayerPaintAncestorClippingMa sk");
802 if (m_paintingPhase & GraphicsLayerPaintOverflowContents) 804 if (m_paintingPhase & GraphicsLayerPaintOverflowContents)
803 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents") ; 805 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents") ;
804 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll) 806 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll)
805 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll") ; 807 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll") ;
806 json->setArray("paintingPhases", std::move(paintingPhasesJSON)); 808 json->setArray("paintingPhases", std::move(paintingPhasesJSON));
807 } 809 }
808 810
809 if (flags & LayerTreeIncludesClipAndScrollParents) { 811 if (flags & LayerTreeIncludesClipAndScrollParents) {
810 if (m_hasScrollParent) 812 if (m_hasScrollParent)
811 json->setBoolean("hasScrollParent", true); 813 json->setBoolean("hasScrollParent", true);
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 { 1348 {
1347 if (!layer) { 1349 if (!layer) {
1348 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); 1350 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n");
1349 return; 1351 return;
1350 } 1352 }
1351 1353
1352 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); 1354 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1353 fprintf(stderr, "%s\n", output.utf8().data()); 1355 fprintf(stderr, "%s\n", output.utf8().data());
1354 } 1356 }
1355 #endif 1357 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698