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

Side by Side Diff: Source/WebCore/rendering/RenderFlowThread.h

Issue 9546037: Merge 107622 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 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
« no previous file with comments | « Source/WebCore/rendering/RenderBlock.cpp ('k') | Source/WebCore/rendering/RenderFlowThread.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 2011 Adobe Systems Incorporated. All Rights Reserved. 2 * Copyright 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // Always create a RenderLayer for the RenderFlowThread, so that we 68 // Always create a RenderLayer for the RenderFlowThread, so that we
69 // can easily avoid to draw it's children directly. 69 // can easily avoid to draw it's children directly.
70 virtual bool requiresLayer() const { return true; } 70 virtual bool requiresLayer() const { return true; }
71 71
72 RenderObject* nextRendererForNode(Node*) const; 72 RenderObject* nextRendererForNode(Node*) const;
73 RenderObject* previousRendererForNode(Node*) const; 73 RenderObject* previousRendererForNode(Node*) const;
74 74
75 void addFlowChild(RenderObject* newChild, RenderObject* beforeChild = 0); 75 void addFlowChild(RenderObject* newChild, RenderObject* beforeChild = 0);
76 void removeFlowChild(RenderObject*); 76 void removeFlowChild(RenderObject*);
77 void removeFlowChildInfo(RenderObject*);
77 bool hasChildren() const { return !m_flowThreadChildList.isEmpty(); } 78 bool hasChildren() const { return !m_flowThreadChildList.isEmpty(); }
79 #ifndef NDEBUG
80 bool hasChild(RenderObject* child) const { return m_flowThreadChildList.cont ains(child); }
81 bool hasChildInfo(RenderObject* child) const { return child && child->isBox( ) && m_regionRangeMap.contains(toRenderBox(child)); }
82 #endif
78 83
79 void addRegionToThread(RenderRegion*); 84 void addRegionToThread(RenderRegion*);
80 void removeRegionFromThread(RenderRegion*); 85 void removeRegionFromThread(RenderRegion*);
81 const RenderRegionList& renderRegionList() const { return m_regionList; } 86 const RenderRegionList& renderRegionList() const { return m_regionList; }
82 87
83 void computeLogicalWidth(); 88 void computeLogicalWidth();
84 void computeLogicalHeight(); 89 void computeLogicalHeight();
85 90
86 void paintIntoRegion(PaintInfo&, RenderRegion*, const LayoutPoint& paintOffs et); 91 void paintIntoRegion(PaintInfo&, RenderRegion*, const LayoutPoint& paintOffs et);
87 bool hitTestRegion(RenderRegion*, const HitTestRequest&, HitTestResult&, con st LayoutPoint& pointInContainer, const LayoutPoint& accumulatedOffset); 92 bool hitTestRegion(RenderRegion*, const HitTestRequest&, HitTestResult&, con st LayoutPoint& pointInContainer, const LayoutPoint& accumulatedOffset);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 ASSERT(!object || object->isRenderFlowThread()); 208 ASSERT(!object || object->isRenderFlowThread());
204 return static_cast<const RenderFlowThread*>(object); 209 return static_cast<const RenderFlowThread*>(object);
205 } 210 }
206 211
207 // This will catch anyone doing an unnecessary cast. 212 // This will catch anyone doing an unnecessary cast.
208 void toRenderFlowThread(const RenderFlowThread*); 213 void toRenderFlowThread(const RenderFlowThread*);
209 214
210 } // namespace WebCore 215 } // namespace WebCore
211 216
212 #endif // RenderFlowThread_h 217 #endif // RenderFlowThread_h
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderBlock.cpp ('k') | Source/WebCore/rendering/RenderFlowThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698