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

Side by Side Diff: Source/core/rendering/RenderMedia.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/RenderListMarker.cpp ('k') | Source/core/rendering/RenderMedia.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) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 18 matching lines...) Expand all
29 #include "core/rendering/RenderImage.h" 29 #include "core/rendering/RenderImage.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 class HTMLMediaElement; 33 class HTMLMediaElement;
34 34
35 class RenderMedia : public RenderImage { 35 class RenderMedia : public RenderImage {
36 public: 36 public:
37 explicit RenderMedia(HTMLMediaElement*); 37 explicit RenderMedia(HTMLMediaElement*);
38 virtual ~RenderMedia(); 38 virtual ~RenderMedia();
39 virtual void trace(Visitor*) override;
40 39
41 RenderObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); } 40 RenderObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); }
42 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); } 41 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); }
43 42
44 // If you have a RenderMedia, use firstChild or lastChild instead. 43 // If you have a RenderMedia, use firstChild or lastChild instead.
45 void slowFirstChild() const = delete; 44 void slowFirstChild() const = delete;
46 void slowLastChild() const = delete; 45 void slowLastChild() const = delete;
47 46
48 const RenderObjectChildList* children() const { return &m_children; } 47 const RenderObjectChildList* children() const { return &m_children; }
49 RenderObjectChildList* children() { return &m_children; } 48 RenderObjectChildList* children() { return &m_children; }
(...skipping 24 matching lines...) Expand all
74 virtual bool backgroundShouldAlwaysBeClipped() const override final { return false; } 73 virtual bool backgroundShouldAlwaysBeClipped() const override final { return false; }
75 74
76 RenderObjectChildList m_children; 75 RenderObjectChildList m_children;
77 }; 76 };
78 77
79 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMedia, isMedia()); 78 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMedia, isMedia());
80 79
81 } // namespace blink 80 } // namespace blink
82 81
83 #endif // RenderMedia_h 82 #endif // RenderMedia_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderListMarker.cpp ('k') | Source/core/rendering/RenderMedia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698