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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.h

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 | « no previous file | third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Simon Hausmann <hausmann@kde.org> 3 * (C) 2000 Simon Hausmann <hausmann@kde.org>
4 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 const char* name() const override { return "LayoutEmbeddedObject"; } 47 const char* name() const override { return "LayoutEmbeddedObject"; }
48 48
49 const String& unavailablePluginReplacementText() const { 49 const String& unavailablePluginReplacementText() const {
50 return m_unavailablePluginReplacementText; 50 return m_unavailablePluginReplacementText;
51 } 51 }
52 52
53 private: 53 private:
54 void paintContents(const PaintInfo&, const LayoutPoint&) const final; 54 void paintContents(const PaintInfo&, const LayoutPoint&) const final;
55 void paintReplaced(const PaintInfo&, const LayoutPoint&) const final; 55 void paintReplaced(const PaintInfo&, const LayoutPoint&) const final;
56 void paint(const PaintInfo&, const LayoutPoint&) const final; 56 void paint(const PaintInfo&, const LayoutPoint&) const final;
57 PaintInvalidationReason invalidatePaintIfNeeded(
58 const PaintInvalidatorContext&) const final;
57 59
58 void layout() final; 60 void layout() final;
59 PaintInvalidationReason invalidatePaintIfNeeded(
60 const PaintInvalidationState&) final;
61 61
62 bool isOfType(LayoutObjectType type) const override { 62 bool isOfType(LayoutObjectType type) const override {
63 return type == LayoutObjectEmbeddedObject || LayoutPart::isOfType(type); 63 return type == LayoutObjectEmbeddedObject || LayoutPart::isOfType(type);
64 } 64 }
65 LayoutReplaced* embeddedReplacedContent() const final; 65 LayoutReplaced* embeddedReplacedContent() const final;
66 66
67 PaintLayerType layerTypeRequired() const final; 67 PaintLayerType layerTypeRequired() const final;
68 68
69 ScrollResult scroll(ScrollGranularity, const FloatSize&) final; 69 ScrollResult scroll(ScrollGranularity, const FloatSize&) final;
70 70
71 CompositingReasons additionalCompositingReasons() const override; 71 CompositingReasons additionalCompositingReasons() const override;
72 72
73 PluginAvailability m_pluginAvailability = PluginAvailable; 73 PluginAvailability m_pluginAvailability = PluginAvailable;
74 String m_unavailablePluginReplacementText; 74 String m_unavailablePluginReplacementText;
75 }; 75 };
76 76
77 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutEmbeddedObject, isEmbeddedObject()); 77 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutEmbeddedObject, isEmbeddedObject());
78 78
79 } // namespace blink 79 } // namespace blink
80 80
81 #endif // LayoutEmbeddedObject_h 81 #endif // LayoutEmbeddedObject_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698