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

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: Now working on basic test cases 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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 if ((flags & LayerTreeIncludesPaintingPhases) && m_paintingPhase) { 713 if ((flags & LayerTreeIncludesPaintingPhases) && m_paintingPhase) {
714 std::unique_ptr<JSONArray> paintingPhasesJSON = JSONArray::create(); 714 std::unique_ptr<JSONArray> paintingPhasesJSON = JSONArray::create();
715 if (m_paintingPhase & GraphicsLayerPaintBackground) 715 if (m_paintingPhase & GraphicsLayerPaintBackground)
716 paintingPhasesJSON->pushString("GraphicsLayerPaintBackground"); 716 paintingPhasesJSON->pushString("GraphicsLayerPaintBackground");
717 if (m_paintingPhase & GraphicsLayerPaintForeground) 717 if (m_paintingPhase & GraphicsLayerPaintForeground)
718 paintingPhasesJSON->pushString("GraphicsLayerPaintForeground"); 718 paintingPhasesJSON->pushString("GraphicsLayerPaintForeground");
719 if (m_paintingPhase & GraphicsLayerPaintMask) 719 if (m_paintingPhase & GraphicsLayerPaintMask)
720 paintingPhasesJSON->pushString("GraphicsLayerPaintMask"); 720 paintingPhasesJSON->pushString("GraphicsLayerPaintMask");
721 if (m_paintingPhase & GraphicsLayerPaintChildClippingMask) 721 if (m_paintingPhase & GraphicsLayerPaintChildClippingMask)
722 paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask"); 722 paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask");
723 if (m_paintingPhase & GraphicsLayerPaintAncestorClippingMask)
724 paintingPhasesJSON->pushString("GraphicsLayerPaintAncestorClippingMask");
723 if (m_paintingPhase & GraphicsLayerPaintOverflowContents) 725 if (m_paintingPhase & GraphicsLayerPaintOverflowContents)
724 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents"); 726 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents");
725 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll) 727 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll)
726 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll"); 728 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll");
727 json->setArray("paintingPhases", std::move(paintingPhasesJSON)); 729 json->setArray("paintingPhases", std::move(paintingPhasesJSON));
728 } 730 }
729 731
730 if (flags & LayerTreeIncludesClipAndScrollParents) { 732 if (flags & LayerTreeIncludesClipAndScrollParents) {
731 if (m_hasScrollParent) 733 if (m_hasScrollParent)
732 json->setBoolean("hasScrollParent", true); 734 json->setBoolean("hasScrollParent", true);
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
1308 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { 1310 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) {
1309 if (!layer) { 1311 if (!layer) {
1310 LOG(INFO) << "Cannot showGraphicsLayerTree for (nil)."; 1312 LOG(INFO) << "Cannot showGraphicsLayerTree for (nil).";
1311 return; 1313 return;
1312 } 1314 }
1313 1315
1314 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); 1316 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1315 LOG(INFO) << output.utf8().data(); 1317 LOG(INFO) << output.utf8().data();
1316 } 1318 }
1317 #endif 1319 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698