| 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();
|
|
|