| Index: third_party/WebKit/Source/core/paint/EmbeddedObjectPaintInvalidator.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/EmbeddedObjectPaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/EmbeddedObjectPaintInvalidator.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..438f86acb2f37c37e20d04be4231dd93bf34d210
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/paint/EmbeddedObjectPaintInvalidator.cpp
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "core/paint/EmbeddedObjectPaintInvalidator.h"
|
| +
|
| +#include "core/layout/LayoutEmbeddedObject.h"
|
| +#include "core/paint/BoxPaintInvalidator.h"
|
| +#include "core/plugins/PluginView.h"
|
| +
|
| +namespace blink {
|
| +
|
| +PaintInvalidationReason
|
| +EmbeddedObjectPaintInvalidator::invalidatePaintIfNeeded() {
|
| + PaintInvalidationReason reason =
|
| + BoxPaintInvalidator(m_embeddedObject, m_context)
|
| + .invalidatePaintIfNeeded();
|
| +
|
| + Widget* widget = m_embeddedObject.widget();
|
| + if (widget && widget->isPluginView())
|
| + toPluginView(widget)->invalidatePaintIfNeeded();
|
| +
|
| + return reason;
|
| +}
|
| +
|
| +} // namespace blink
|
|
|