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

Side by Side Diff: third_party/WebKit/Source/core/paint/EmbeddedObjectPaintInvalidator.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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/paint/EmbeddedObjectPaintInvalidator.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "core/paint/EmbeddedObjectPaintInvalidator.h"
6
7 #include "core/layout/LayoutEmbeddedObject.h"
8 #include "core/paint/BoxPaintInvalidator.h"
9 #include "core/plugins/PluginView.h"
10
11 namespace blink {
12
13 PaintInvalidationReason
14 EmbeddedObjectPaintInvalidator::invalidatePaintIfNeeded() {
15 PaintInvalidationReason reason =
16 BoxPaintInvalidator(m_embeddedObject, m_context)
17 .invalidatePaintIfNeeded();
18
19 Widget* widget = m_embeddedObject.widget();
20 if (widget && widget->isPluginView())
21 toPluginView(widget)->invalidatePaintIfNeeded();
22
23 return reason;
24 }
25
26 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/EmbeddedObjectPaintInvalidator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698