Commit ebf60dde authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

Removing the redundant checks after r152078

https://bugs.webkit.org/show_bug.cgi?id=118117

Patch by Seokju Kwon <seokju.kwon@gmail.com> on 2013-06-27
Reviewed by Simon Fraser.

Avoided redundant checks in RenderLayerCompositor::reasonsForCompositing() after r152078.

No new tests as no functionality change.

* inspector/InspectorLayerTreeAgent.cpp:
(WebCore::InspectorLayerTreeAgent::reasonsForCompositingLayer):
* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::logReasonsForCompositing):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152103 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 2fa585ec
2013-06-27 Seokju Kwon <seokju.kwon@gmail.com>
Removing the redundant checks after r152078
https://bugs.webkit.org/show_bug.cgi?id=118117
Reviewed by Simon Fraser.
Avoided redundant checks in RenderLayerCompositor::reasonsForCompositing() after r152078.
No new tests as no functionality change.
* inspector/InspectorLayerTreeAgent.cpp:
(WebCore::InspectorLayerTreeAgent::reasonsForCompositingLayer):
* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::logReasonsForCompositing):
2013-06-27 Christophe Dumez <ch.dumez@sisa.samsung.com>
 
Remove [NoInterfaceObject] from WorkerGlobalScope
......@@ -253,14 +253,11 @@ void InspectorLayerTreeAgent::reasonsForCompositingLayer(ErrorString* errorStrin
if (reasonsBitmask & CompositingReasonVideo)
compositingReasons->setVideo(true);
if (reasonsBitmask & CompositingReasonCanvas)
else if (reasonsBitmask & CompositingReasonCanvas)
compositingReasons->setCanvas(true);
if (reasonsBitmask & CompositingReasonPlugin)
else if (reasonsBitmask & CompositingReasonPlugin)
compositingReasons->setPlugin(true);
if (reasonsBitmask & CompositingReasonIFrame)
else if (reasonsBitmask & CompositingReasonIFrame)
compositingReasons->setIFrame(true);
if (reasonsBitmask & CompositingReasonBackfaceVisibilityHidden)
......
......@@ -1911,14 +1911,11 @@ const char* RenderLayerCompositor::logReasonsForCompositing(const RenderLayer* l
if (reasons & CompositingReasonVideo)
return "video";
if (reasons & CompositingReasonCanvas)
else if (reasons & CompositingReasonCanvas)
return "canvas";
if (reasons & CompositingReasonPlugin)
else if (reasons & CompositingReasonPlugin)
return "plugin";
if (reasons & CompositingReasonIFrame)
else if (reasons & CompositingReasonIFrame)
return "iframe";
if (reasons & CompositingReasonBackfaceVisibilityHidden)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment