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

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

Issue 267903003: [New Multicolumn] Remove RenderRegionSet. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 | « Source/core/rendering/RenderMultiColumnSet.cpp ('k') | Source/core/rendering/RenderRegionSet.h » ('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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 RenderFlowThread* flowThread() const { return m_flowThread; } 56 RenderFlowThread* flowThread() const { return m_flowThread; }
57 57
58 // Valid regions do not create circular dependencies with other flows. 58 // Valid regions do not create circular dependencies with other flows.
59 bool isValid() const { return m_isValid; } 59 bool isValid() const { return m_isValid; }
60 void setIsValid(bool valid) { m_isValid = valid; } 60 void setIsValid(bool valid) { m_isValid = valid; }
61 61
62 bool isFirstRegion() const; 62 bool isFirstRegion() const;
63 bool isLastRegion() const; 63 bool isLastRegion() const;
64 64
65 // These methods represent the width and height of a "page" and for a Render Region they are just the 65 // These methods represent the width and height of a "page" and for a Render Region they are just
66 // content width and content height of a region. For RenderRegionSets, howev er, they will be the width and 66 // the content width and content height of a region. For RenderMultiColumnSe ts, however, they
67 // height of a single column or page in the set. 67 // will be the width and height of a single column or page in the set.
68 virtual LayoutUnit pageLogicalWidth() const; 68 virtual LayoutUnit pageLogicalWidth() const;
69 virtual LayoutUnit pageLogicalHeight() const; 69 virtual LayoutUnit pageLogicalHeight() const;
70 70
71 LayoutUnit logicalTopOfFlowThreadContentRect(const LayoutRect&) const; 71 LayoutUnit logicalTopOfFlowThreadContentRect(const LayoutRect&) const;
72 LayoutUnit logicalBottomOfFlowThreadContentRect(const LayoutRect&) const; 72 LayoutUnit logicalBottomOfFlowThreadContentRect(const LayoutRect&) const;
73 LayoutUnit logicalTopForFlowThreadContent() const { return logicalTopOfFlowT hreadContentRect(flowThreadPortionRect()); }; 73 LayoutUnit logicalTopForFlowThreadContent() const { return logicalTopOfFlowT hreadContentRect(flowThreadPortionRect()); };
74 LayoutUnit logicalBottomForFlowThreadContent() const { return logicalBottomO fFlowThreadContentRect(flowThreadPortionRect()); }; 74 LayoutUnit logicalBottomForFlowThreadContent() const { return logicalBottomO fFlowThreadContentRect(flowThreadPortionRect()); };
75 75
76 // This method represents the logical height of the entire flow thread porti on used by the region or set. 76 // This method represents the logical height of the entire flow thread porti on used by the region or set.
77 // For RenderRegions it matches logicalPaginationHeight(), but for sets it i s the height of all the pages 77 // For RenderRegions it matches logicalPaginationHeight(), but for sets it i s the height of all the pages
78 // or columns added together. 78 // or columns added together.
79 virtual LayoutUnit logicalHeightOfAllFlowThreadContent() const; 79 virtual LayoutUnit logicalHeightOfAllFlowThreadContent() const;
80 80
81 // The top of the nearest page inside the region. For RenderRegions, this is just the logical top of the 81 // The top of the nearest page inside the region. For RenderRegions, this is just the logical top of the
82 // flow thread portion we contain. For sets, we have to figure out the top o f the nearest column or 82 // flow thread portion we contain. For sets, we have to figure out the top o f the nearest column or
83 // page. 83 // page.
84 virtual LayoutUnit pageLogicalTopForOffset(LayoutUnit offset) const; 84 virtual LayoutUnit pageLogicalTopForOffset(LayoutUnit offset) const;
85 85
86 virtual void expandToEncompassFlowThreadContentsIfNeeded() { };
87
88 virtual void repaintFlowThreadContent(const LayoutRect& repaintRect) const; 86 virtual void repaintFlowThreadContent(const LayoutRect& repaintRect) const;
89 87
90 virtual void collectLayerFragments(LayerFragments&, const LayoutRect&, const LayoutRect&) { } 88 virtual void collectLayerFragments(LayerFragments&, const LayoutRect&, const LayoutRect&) { }
91 89
92 virtual bool canHaveChildren() const OVERRIDE FINAL { return false; } 90 virtual bool canHaveChildren() const OVERRIDE FINAL { return false; }
93 virtual bool canHaveGeneratedChildren() const OVERRIDE FINAL { return true; } 91 virtual bool canHaveGeneratedChildren() const OVERRIDE FINAL { return true; }
94 92
95 virtual const char* renderName() const OVERRIDE { return "RenderRegion"; } 93 virtual const char* renderName() const OVERRIDE { return "RenderRegion"; }
96 94
97 protected: 95 protected:
(...skipping 15 matching lines...) Expand all
113 private: 111 private:
114 LayoutRect m_flowThreadPortionRect; 112 LayoutRect m_flowThreadPortionRect;
115 bool m_isValid : 1; 113 bool m_isValid : 1;
116 }; 114 };
117 115
118 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderRegion, isRenderRegion()); 116 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderRegion, isRenderRegion());
119 117
120 } // namespace WebCore 118 } // namespace WebCore
121 119
122 #endif // RenderRegion_h 120 #endif // RenderRegion_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderMultiColumnSet.cpp ('k') | Source/core/rendering/RenderRegionSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698