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

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

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/RenderQuote.cpp ('k') | Source/core/rendering/RenderReplaced.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) 2011 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2011 Adobe Systems Incorporated. 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 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 22 matching lines...) Expand all
33 #include "core/rendering/RenderBlockFlow.h" 33 #include "core/rendering/RenderBlockFlow.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class RenderFlowThread; 37 class RenderFlowThread;
38 38
39 class RenderRegion : public RenderBlockFlow { 39 class RenderRegion : public RenderBlockFlow {
40 public: 40 public:
41 explicit RenderRegion(Element*, RenderFlowThread*); 41 explicit RenderRegion(Element*, RenderFlowThread*);
42 42
43 virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectRenderRegion || RenderBlockFlow::isOfType(type); } 43 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectRenderRegion || RenderBlockFlow::isOfType(type); }
44 44
45 void setFlowThreadPortionRect(const LayoutRect& rect) { m_flowThreadPortionR ect = rect; } 45 void setFlowThreadPortionRect(const LayoutRect& rect) { m_flowThreadPortionR ect = rect; }
46 LayoutRect flowThreadPortionRect() const { return m_flowThreadPortionRect; } 46 LayoutRect flowThreadPortionRect() const { return m_flowThreadPortionRect; }
47 LayoutRect flowThreadPortionOverflowRect() const; 47 LayoutRect flowThreadPortionOverflowRect() const;
48 48
49 RenderFlowThread* flowThread() const { return m_flowThread; } 49 RenderFlowThread* flowThread() const { return m_flowThread; }
50 50
51 // Valid regions do not create circular dependencies with other flows. 51 // Valid regions do not create circular dependencies with other flows.
52 bool isValid() const { return m_isValid; } 52 bool isValid() const { return m_isValid; }
53 void setIsValid(bool valid) { m_isValid = valid; } 53 void setIsValid(bool valid) { m_isValid = valid; }
(...skipping 21 matching lines...) Expand all
75 virtual void layoutBlock(bool relayoutChildren) override final; 75 virtual void layoutBlock(bool relayoutChildren) override final;
76 76
77 protected: 77 protected:
78 RenderFlowThread* m_flowThread; 78 RenderFlowThread* m_flowThread;
79 79
80 private: 80 private:
81 LayoutRect m_flowThreadPortionRect; 81 LayoutRect m_flowThreadPortionRect;
82 bool m_isValid : 1; 82 bool m_isValid : 1;
83 }; 83 };
84 84
85 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderRegion, isRenderRegion()); 85 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(RenderRegion, isRenderRegion());
86 86
87 } // namespace blink 87 } // namespace blink
88 88
89 #endif // RenderRegion_h 89 #endif // RenderRegion_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderQuote.cpp ('k') | Source/core/rendering/RenderReplaced.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698