[Title] [WK2] Set a limit of layer count.
[Issue #] N_SE-9221, N_SE-9136
[Problem] crash in gmail desktop site.
[Cause] Too many layers are created in gmail desktop site.
Due to so many layers, it reaches to OOM situation.
[Solution] Set limit up to 150 layers.
[Developer] jungjik.lee
renderer = renderer->parent(); // The RenderReplica's parent is the object being reflected.
layer = toRenderBoxModelObject(renderer)->layer();
}
+
+#if ENABLE(TIZEN_WEBKIT2_TILED_AC)
+ if (m_compositedLayerCount > 100)
+ return false;
+#endif
+
// The root layer always has a compositing layer, but it may not have backing.
return requiresCompositingForTransform(renderer)
|| requiresCompositingForVideo(renderer)