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

Unified Diff: Source/core/rendering/RenderPart.cpp

Issue 199443009: Move iframe and plugin compositing triggers into additionalCompositingReasons (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
« no previous file with comments | « Source/core/rendering/RenderPart.h ('k') | Source/core/rendering/compositing/CompositingReasonFinder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderPart.cpp
diff --git a/Source/core/rendering/RenderPart.cpp b/Source/core/rendering/RenderPart.cpp
index c535ae437e87597544e4e2aeb8cac49654cad4d9..27c851660dfaa09bd7ad89e19242cf911befbfcc 100644
--- a/Source/core/rendering/RenderPart.cpp
+++ b/Source/core/rendering/RenderPart.cpp
@@ -142,4 +142,11 @@ bool RenderPart::nodeAtPoint(const HitTestRequest& request, HitTestResult& resul
return RenderWidget::nodeAtPoint(request, result, locationInContainer, accumulatedOffset, action);
}
+CompositingReasons RenderPart::additionalCompositingReasons(CompositingTriggerFlags) const
+{
+ if (requiresAcceleratedCompositing())
+ return CompositingReasonIFrame;
+ return CompositingReasonNone;
+}
+
}
« no previous file with comments | « Source/core/rendering/RenderPart.h ('k') | Source/core/rendering/compositing/CompositingReasonFinder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698