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

Unified 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: Revised method based on PaintLayer switching 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
index db81304fab7f368b78f89c864302c78a8960453c..67bdef1ccae61f4ab158990a982988d2fc79e170 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -648,6 +648,11 @@ std::unique_ptr<JSONObject> GraphicsLayer::layerAsJSONInternal(
if (m_position != FloatPoint())
json->setArray("position", pointAsJSONArray(m_position));
+ if (m_offsetFromLayoutObject != DoubleSize()) {
+ json->setArray("offsetFromLayoutObject",
+ sizeAsJSONArray(m_offsetFromLayoutObject));
+ }
+
if (m_hasTransformOrigin &&
m_transformOrigin !=
FloatPoint3D(m_size.width() * 0.5f, m_size.height() * 0.5f, 0))
@@ -725,6 +730,8 @@ std::unique_ptr<JSONObject> GraphicsLayer::layerAsJSONInternal(
paintingPhasesJSON->pushString("GraphicsLayerPaintMask");
if (m_paintingPhase & GraphicsLayerPaintChildClippingMask)
paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask");
+ if (m_paintingPhase & GraphicsLayerPaintAncestorClippingMask)
+ paintingPhasesJSON->pushString("GraphicsLayerPaintAncestorClippingMask");
if (m_paintingPhase & GraphicsLayerPaintOverflowContents)
paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents");
if (m_paintingPhase & GraphicsLayerPaintCompositedScroll)
@@ -768,6 +775,23 @@ std::unique_ptr<JSONObject> GraphicsLayer::layerAsJSONInternal(
json->setArray("squashingDisallowedReasons",
std::move(squashingDisallowedReasonsJSON));
}
+
+ if (m_maskLayer) {
+ std::unique_ptr<JSONArray> maskLayerJSON = JSONArray::create();
+ maskLayerJSON->pushObject(
+ m_maskLayer->layerAsJSONInternal(flags, renderingContextMap));
+ json->setArray("maskLayer", std::move(maskLayerJSON));
+ }
+
+ if (m_contentsClippingMaskLayer) {
+ std::unique_ptr<JSONArray> contentsClippingMaskLayerJSON =
+ JSONArray::create();
+ contentsClippingMaskLayerJSON->pushObject(m_contentsClippingMaskLayer->
+ layerAsJSONInternal(flags, renderingContextMap));
+ json->setArray("contentsClippingMaskLayer",
+ std::move(contentsClippingMaskLayerJSON));
+ }
+
return json;
}
@@ -1322,7 +1346,7 @@ void showGraphicsLayerTree(const blink::GraphicsLayer* layer) {
return;
}
- String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
+ String output = layer->layerTreeAsText(255);
LOG(INFO) << output.utf8().data();
}
#endif

Powered by Google App Engine
This is Rietveld 408576698