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

Side by Side Diff: Source/core/rendering/RenderPart.h

Issue 869323003: Oilpan: move RenderObjects off heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review-induced improvements Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderObjectChildList.cpp ('k') | Source/core/rendering/RenderPart.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) 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 22 matching lines...) Expand all
33 public: 33 public:
34 explicit RenderPart(Element*); 34 explicit RenderPart(Element*);
35 virtual ~RenderPart(); 35 virtual ~RenderPart();
36 36
37 bool requiresAcceleratedCompositing() const; 37 bool requiresAcceleratedCompositing() const;
38 38
39 virtual bool needsPreferredWidthsRecalculation() const override final; 39 virtual bool needsPreferredWidthsRecalculation() const override final;
40 40
41 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) override; 41 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) override;
42 42
43 #if !ENABLE(OILPAN)
44 void ref() { ++m_refCount; } 43 void ref() { ++m_refCount; }
45 void deref(); 44 void deref();
46 #endif
47 45
48 Widget* widget() const; 46 Widget* widget() const;
49 47
50 void updateOnWidgetChange(); 48 void updateOnWidgetChange();
51 void updateWidgetPosition(); 49 void updateWidgetPosition();
52 void widgetPositionsUpdated(); 50 void widgetPositionsUpdated();
53 bool updateWidgetGeometry(); 51 bool updateWidgetGeometry();
54 52
55 virtual bool isRenderPart() const override final { return true; } 53 virtual bool isRenderPart() const override final { return true; }
56 virtual void paintContents(const PaintInfo&, const LayoutPoint&); 54 virtual void paintContents(const PaintInfo&, const LayoutPoint&);
(...skipping 11 matching lines...) Expand all
68 66
69 virtual CompositingReasons additionalCompositingReasons() const override; 67 virtual CompositingReasons additionalCompositingReasons() const override;
70 68
71 virtual void willBeDestroyed() override final; 69 virtual void willBeDestroyed() override final;
72 virtual void destroy() override final; 70 virtual void destroy() override final;
73 71
74 bool setWidgetGeometry(const LayoutRect&); 72 bool setWidgetGeometry(const LayoutRect&);
75 73
76 bool nodeAtPointOverWidget(const HitTestRequest&, HitTestResult&, const HitT estLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestA ction); 74 bool nodeAtPointOverWidget(const HitTestRequest&, HitTestResult&, const HitT estLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestA ction);
77 75
78 #if !ENABLE(OILPAN)
79 int m_refCount; 76 int m_refCount;
80 #endif
81 }; 77 };
82 78
83 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderPart, isRenderPart()); 79 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderPart, isRenderPart());
84 80
85 } // namespace blink 81 } // namespace blink
86 82
87 #endif // RenderPart_h 83 #endif // RenderPart_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderObjectChildList.cpp ('k') | Source/core/rendering/RenderPart.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698