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

Side by Side Diff: third_party/WebKit/Source/core/paint/EmbeddedObjectPaintInvalidator.cpp

Issue 2852573002: Rename InvalidatePaintIfNeeded to drop deprecated IfNeeded suffix. (Closed)
Patch Set: Created 3 years, 7 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
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698