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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp

Issue 2393043002: [SPInvalidation] Enable LayoutEmbeddedObject paint invalidation in new path (Closed)
Patch Set: Created 4 years, 2 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/core/layout/LayoutEmbeddedObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp b/third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp
index 059b4aed6cc6ed4f94ffe36a4cdad10f335ae127..5839c0e7eef18763d89e2a42cd8d6f0b8337ea24 100644
--- a/third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp
@@ -32,6 +32,7 @@
#include "core/layout/LayoutAnalyzer.h"
#include "core/layout/LayoutView.h"
#include "core/page/Page.h"
+#include "core/paint/EmbeddedObjectPaintInvalidator.h"
#include "core/paint/EmbeddedObjectPainter.h"
#include "core/plugins/PluginView.h"
#include "platform/text/PlatformLocale.h"
@@ -115,6 +116,12 @@ void LayoutEmbeddedObject::paintReplaced(const PaintInfo& paintInfo,
EmbeddedObjectPainter(*this).paintReplaced(paintInfo, paintOffset);
}
+PaintInvalidationReason LayoutEmbeddedObject::invalidatePaintIfNeeded(
+ const PaintInvalidatorContext& context) const {
+ return EmbeddedObjectPaintInvalidator(*this, context)
+ .invalidatePaintIfNeeded();
+}
+
void LayoutEmbeddedObject::layout() {
ASSERT(needsLayout());
LayoutAnalyzer::Scope analyzer(*this);
@@ -134,18 +141,6 @@ void LayoutEmbeddedObject::layout() {
clearNeedsLayout();
}
-PaintInvalidationReason LayoutEmbeddedObject::invalidatePaintIfNeeded(
- const PaintInvalidationState& paintInvalidationState) {
- PaintInvalidationReason reason =
- LayoutPart::invalidatePaintIfNeeded(paintInvalidationState);
-
- Widget* widget = this->widget();
- if (widget && widget->isPluginView())
- toPluginView(widget)->invalidatePaintIfNeeded();
-
- return reason;
-}
-
ScrollResult LayoutEmbeddedObject::scroll(ScrollGranularity granularity,
const FloatSize&) {
return ScrollResult();
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.h ('k') | third_party/WebKit/Source/core/paint/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698