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

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

Issue 18374008: Propagate writing-mode from the first region to the flow thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void removeDependencyOnFlowThread(RenderNamedFlowThread*); 97 void removeDependencyOnFlowThread(RenderNamedFlowThread*);
98 98
99 void addRegionToNamedFlowThread(RenderRegion*); 99 void addRegionToNamedFlowThread(RenderRegion*);
100 100
101 void checkInvalidRegions(); 101 void checkInvalidRegions();
102 102
103 bool canBeDestroyed() const { return m_invalidRegionList.isEmpty() && m_regi onList.isEmpty() && m_contentNodes.isEmpty(); } 103 bool canBeDestroyed() const { return m_invalidRegionList.isEmpty() && m_regi onList.isEmpty() && m_contentNodes.isEmpty(); }
104 void regionLayoutUpdateEventTimerFired(Timer<RenderNamedFlowThread>*); 104 void regionLayoutUpdateEventTimerFired(Timer<RenderNamedFlowThread>*);
105 void regionOversetChangeEventTimerFired(Timer<RenderNamedFlowThread>*); 105 void regionOversetChangeEventTimerFired(Timer<RenderNamedFlowThread>*);
106 void clearContentNodes(); 106 void clearContentNodes();
107 void updateWritingMode();
107 108
108 private: 109 private:
109 // Observer flow threads have invalid regions that depend on the state of th is thread 110 // Observer flow threads have invalid regions that depend on the state of th is thread
110 // to re-validate their regions. Keeping a set of observer threads make it e asy 111 // to re-validate their regions. Keeping a set of observer threads make it e asy
111 // to notify them when a region was removed from this flow. 112 // to notify them when a region was removed from this flow.
112 RenderNamedFlowThreadCountedSet m_observerThreadsSet; 113 RenderNamedFlowThreadCountedSet m_observerThreadsSet;
113 114
114 // Some threads need to have a complete layout before we layout this flow. 115 // Some threads need to have a complete layout before we layout this flow.
115 // That's because they contain a RenderRegion that should display this threa d. The set makes it 116 // That's because they contain a RenderRegion that should display this threa d. The set makes it
116 // easy to sort the order of threads layout. 117 // easy to sort the order of threads layout.
(...skipping 28 matching lines...) Expand all
145 return static_cast<const RenderNamedFlowThread*>(object); 146 return static_cast<const RenderNamedFlowThread*>(object);
146 } 147 }
147 148
148 // This will catch anyone doing an unnecessary cast. 149 // This will catch anyone doing an unnecessary cast.
149 void toRenderNamedFlowThread(const RenderNamedFlowThread*); 150 void toRenderNamedFlowThread(const RenderNamedFlowThread*);
150 151
151 } // namespace WebCore 152 } // namespace WebCore
152 153
153 #endif // RenderNamedFlowThread_h 154 #endif // RenderNamedFlowThread_h
154 155
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698