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

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: Switch to using the layer's offsetFromLayoutObject Created 4 years 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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 if ((flags & LayerTreeIncludesPaintingPhases) && m_paintingPhase) { 718 if ((flags & LayerTreeIncludesPaintingPhases) && m_paintingPhase) {
719 std::unique_ptr<JSONArray> paintingPhasesJSON = JSONArray::create(); 719 std::unique_ptr<JSONArray> paintingPhasesJSON = JSONArray::create();
720 if (m_paintingPhase & GraphicsLayerPaintBackground) 720 if (m_paintingPhase & GraphicsLayerPaintBackground)
721 paintingPhasesJSON->pushString("GraphicsLayerPaintBackground"); 721 paintingPhasesJSON->pushString("GraphicsLayerPaintBackground");
722 if (m_paintingPhase & GraphicsLayerPaintForeground) 722 if (m_paintingPhase & GraphicsLayerPaintForeground)
723 paintingPhasesJSON->pushString("GraphicsLayerPaintForeground"); 723 paintingPhasesJSON->pushString("GraphicsLayerPaintForeground");
724 if (m_paintingPhase & GraphicsLayerPaintMask) 724 if (m_paintingPhase & GraphicsLayerPaintMask)
725 paintingPhasesJSON->pushString("GraphicsLayerPaintMask"); 725 paintingPhasesJSON->pushString("GraphicsLayerPaintMask");
726 if (m_paintingPhase & GraphicsLayerPaintChildClippingMask) 726 if (m_paintingPhase & GraphicsLayerPaintChildClippingMask)
727 paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask"); 727 paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask");
728 if (m_paintingPhase & GraphicsLayerPaintAncestorClippingMask)
729 paintingPhasesJSON->pushString("GraphicsLayerPaintAncestorClippingMask");
728 if (m_paintingPhase & GraphicsLayerPaintOverflowContents) 730 if (m_paintingPhase & GraphicsLayerPaintOverflowContents)
729 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents"); 731 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents");
730 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll) 732 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll)
731 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll"); 733 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll");
732 if (m_paintingPhase & GraphicsLayerPaintDecoration) 734 if (m_paintingPhase & GraphicsLayerPaintDecoration)
733 paintingPhasesJSON->pushString("GraphicsLayerPaintDecoration"); 735 paintingPhasesJSON->pushString("GraphicsLayerPaintDecoration");
734 json->setArray("paintingPhases", std::move(paintingPhasesJSON)); 736 json->setArray("paintingPhases", std::move(paintingPhasesJSON));
735 } 737 }
736 738
737 if (flags & LayerTreeIncludesClipAndScrollParents) { 739 if (flags & LayerTreeIncludesClipAndScrollParents) {
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { 1321 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) {
1320 if (!layer) { 1322 if (!layer) {
1321 LOG(INFO) << "Cannot showGraphicsLayerTree for (nil)."; 1323 LOG(INFO) << "Cannot showGraphicsLayerTree for (nil).";
1322 return; 1324 return;
1323 } 1325 }
1324 1326
1325 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); 1327 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1326 LOG(INFO) << output.utf8().data(); 1328 LOG(INFO) << output.utf8().data();
1327 } 1329 }
1328 #endif 1330 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698