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

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: Improve clip recording code 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 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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 if ((flags & LayerTreeIncludesPaintingPhases) && m_paintingPhase) { 710 if ((flags & LayerTreeIncludesPaintingPhases) && m_paintingPhase) {
711 std::unique_ptr<JSONArray> paintingPhasesJSON = JSONArray::create(); 711 std::unique_ptr<JSONArray> paintingPhasesJSON = JSONArray::create();
712 if (m_paintingPhase & GraphicsLayerPaintBackground) 712 if (m_paintingPhase & GraphicsLayerPaintBackground)
713 paintingPhasesJSON->pushString("GraphicsLayerPaintBackground"); 713 paintingPhasesJSON->pushString("GraphicsLayerPaintBackground");
714 if (m_paintingPhase & GraphicsLayerPaintForeground) 714 if (m_paintingPhase & GraphicsLayerPaintForeground)
715 paintingPhasesJSON->pushString("GraphicsLayerPaintForeground"); 715 paintingPhasesJSON->pushString("GraphicsLayerPaintForeground");
716 if (m_paintingPhase & GraphicsLayerPaintMask) 716 if (m_paintingPhase & GraphicsLayerPaintMask)
717 paintingPhasesJSON->pushString("GraphicsLayerPaintMask"); 717 paintingPhasesJSON->pushString("GraphicsLayerPaintMask");
718 if (m_paintingPhase & GraphicsLayerPaintChildClippingMask) 718 if (m_paintingPhase & GraphicsLayerPaintChildClippingMask)
719 paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask"); 719 paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask");
720 if (m_paintingPhase & GraphicsLayerPaintAncestorClippingMask)
721 paintingPhasesJSON->pushString("GraphicsLayerPaintAncestorClippingMask");
720 if (m_paintingPhase & GraphicsLayerPaintOverflowContents) 722 if (m_paintingPhase & GraphicsLayerPaintOverflowContents)
721 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents"); 723 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents");
722 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll) 724 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll)
723 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll"); 725 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll");
724 json->setArray("paintingPhases", std::move(paintingPhasesJSON)); 726 json->setArray("paintingPhases", std::move(paintingPhasesJSON));
725 } 727 }
726 728
727 if (flags & LayerTreeIncludesClipAndScrollParents) { 729 if (flags & LayerTreeIncludesClipAndScrollParents) {
728 if (m_hasScrollParent) 730 if (m_hasScrollParent)
729 json->setBoolean("hasScrollParent", true); 731 json->setBoolean("hasScrollParent", true);
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
1305 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { 1307 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) {
1306 if (!layer) { 1308 if (!layer) {
1307 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); 1309 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n");
1308 return; 1310 return;
1309 } 1311 }
1310 1312
1311 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); 1313 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1312 fprintf(stderr, "%s\n", output.utf8().data()); 1314 fprintf(stderr, "%s\n", output.utf8().data());
1313 } 1315 }
1314 #endif 1316 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698