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

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

Issue 1804963005: Avoid paintInvalidationContainer parameter of invalidatePaintIfNeeded() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 /* 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) 2006, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2006, 2009 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 protected: 57 protected:
58 PaintLayerType layerTypeRequired() const override; 58 PaintLayerType layerTypeRequired() const override;
59 59
60 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final; 60 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final;
61 void layout() override; 61 void layout() override;
62 void paint(const PaintInfo&, const LayoutPoint&) const override; 62 void paint(const PaintInfo&, const LayoutPoint&) const override;
63 CursorDirective getCursor(const LayoutPoint&, Cursor&) const final; 63 CursorDirective getCursor(const LayoutPoint&, Cursor&) const final;
64 64
65 // Overridden to invalidate the child frame if any. 65 // Overridden to invalidate the child frame if any.
66 void invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState&) override; 66 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState&) overri de;
67 67
68 private: 68 private:
69 bool updateWidgetGeometryInternal(); 69 bool updateWidgetGeometryInternal();
70 CompositingReasons additionalCompositingReasons() const override; 70 CompositingReasons additionalCompositingReasons() const override;
71 71
72 void willBeDestroyed() final; 72 void willBeDestroyed() final;
73 void destroy() final; 73 void destroy() final;
74 74
75 bool setWidgetGeometry(const LayoutRect&); 75 bool setWidgetGeometry(const LayoutRect&);
76 76
77 bool nodeAtPointOverWidget(HitTestResult&, const HitTestLocation& locationIn Container, const LayoutPoint& accumulatedOffset, HitTestAction); 77 bool nodeAtPointOverWidget(HitTestResult&, const HitTestLocation& locationIn Container, const LayoutPoint& accumulatedOffset, HitTestAction);
78 78
79 int m_refCount; 79 int m_refCount;
80 }; 80 };
81 81
82 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutPart, isLayoutPart()); 82 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutPart, isLayoutPart());
83 83
84 } // namespace blink 84 } // namespace blink
85 85
86 #endif // LayoutPart_h 86 #endif // LayoutPart_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutPart.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698