| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/paint/EmbeddedObjectPaintInvalidator.h" | 5 #include "core/paint/EmbeddedObjectPaintInvalidator.h" |
| 6 | 6 |
| 7 #include "core/layout/LayoutEmbeddedObject.h" | 7 #include "core/layout/LayoutEmbeddedObject.h" |
| 8 #include "core/paint/BoxPaintInvalidator.h" | 8 #include "core/paint/BoxPaintInvalidator.h" |
| 9 #include "core/plugins/PluginView.h" | 9 #include "core/plugins/PluginView.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 PaintInvalidationReason | 13 PaintInvalidationReason EmbeddedObjectPaintInvalidator::InvalidatePaint() { |
| 14 EmbeddedObjectPaintInvalidator::InvalidatePaintIfNeeded() { | |
| 15 PaintInvalidationReason reason = | 14 PaintInvalidationReason reason = |
| 16 BoxPaintInvalidator(embedded_object_, context_).InvalidatePaintIfNeeded(); | 15 BoxPaintInvalidator(embedded_object_, context_).InvalidatePaint(); |
| 17 | 16 |
| 18 PluginView* plugin = embedded_object_.Plugin(); | 17 PluginView* plugin = embedded_object_.Plugin(); |
| 19 if (plugin) | 18 if (plugin) |
| 20 plugin->InvalidatePaintIfNeeded(); | 19 plugin->InvalidatePaint(); |
| 21 | 20 |
| 22 return reason; | 21 return reason; |
| 23 } | 22 } |
| 24 | 23 |
| 25 } // namespace blink | 24 } // namespace blink |
| OLD | NEW |