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

Unified Diff: third_party/WebKit/Source/platform/graphics/compositing/ContentLayerClientImpl.cpp

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Rebased again Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/compositing/ContentLayerClientImpl.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/compositing/ContentLayerClientImpl.cpp b/third_party/WebKit/Source/platform/graphics/compositing/ContentLayerClientImpl.cpp
index d6b9b47af4c3d232998c57eb58c63968a42b063a..7625e0e23a92dd96c64fd7624a91355bccf668c8 100644
--- a/third_party/WebKit/Source/platform/graphics/compositing/ContentLayerClientImpl.cpp
+++ b/third_party/WebKit/Source/platform/graphics/compositing/ContentLayerClientImpl.cpp
@@ -14,7 +14,7 @@
namespace blink {
template <typename T>
-static std::unique_ptr<JSONArray> PointAsJSONArray(const T& point) {
+static std::unique_ptr<JSONArray> PointAsJSONArray2(const T& point) {
std::unique_ptr<JSONArray> array = JSONArray::Create();
array->PushDouble(point.X());
array->PushDouble(point.Y());
@@ -22,7 +22,7 @@ static std::unique_ptr<JSONArray> PointAsJSONArray(const T& point) {
}
template <typename T>
-static std::unique_ptr<JSONArray> SizeAsJSONArray(const T& size) {
+static std::unique_ptr<JSONArray> SizeAsJSONArray2(const T& size) {
std::unique_ptr<JSONArray> array = JSONArray::Create();
array->PushDouble(size.Width());
array->PushDouble(size.Height());
@@ -58,12 +58,12 @@ std::unique_ptr<JSONObject> ContentLayerClientImpl::LayerAsJSON(
FloatPoint position(cc_picture_layer_->offset_to_transform_parent().x(),
cc_picture_layer_->offset_to_transform_parent().y());
if (position != FloatPoint())
- json->SetArray("position", PointAsJSONArray(position));
+ json->SetArray("position", PointAsJSONArray2(position));
IntSize bounds(cc_picture_layer_->bounds().width(),
cc_picture_layer_->bounds().height());
if (!bounds.IsEmpty())
- json->SetArray("bounds", SizeAsJSONArray(bounds));
+ json->SetArray("bounds", SizeAsJSONArray2(bounds));
json->SetBoolean("contentsOpaque", cc_picture_layer_->contents_opaque());
json->SetBoolean("drawsContent", cc_picture_layer_->DrawsContent());

Powered by Google App Engine
This is Rietveld 408576698