Changeset 83540 in webkit
- Timestamp:
- Apr 11, 2011 5:16:10 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r83538 r83540 1 2011-04-11 Ryosuke Niwa <rniwa@webkit.org> 2 3 Unreviewed, rolling out r83515. 4 http://trac.webkit.org/changeset/83515 5 https://bugs.webkit.org/show_bug.cgi?id=57178 6 7 Broke GTK builds. nextOnLineExists and prevOnLineExists are still used in AccessibilityObjectWrapperAtk.cpp. 8 9 * rendering/InlineBox.cpp: 10 (WebCore::InlineBox::nextOnLineExists): 11 (WebCore::InlineBox::prevOnLineExists): 12 * rendering/InlineBox.h: 13 (WebCore::InlineBox::InlineBox): 14 1 15 2011-04-11 Brady Eidson <beidson@apple.com> 2 16 -
trunk/Source/WebCore/rendering/InlineBox.cpp
r83515 r83540 212 212 } 213 213 214 bool InlineBox::nextOnLineExists() const 215 { 216 if (!m_determinedIfNextOnLineExists) { 217 m_determinedIfNextOnLineExists = true; 218 219 if (!parent()) 220 m_nextOnLineExists = false; 221 else if (nextOnLine()) 222 m_nextOnLineExists = true; 223 else 224 m_nextOnLineExists = parent()->nextOnLineExists(); 225 } 226 return m_nextOnLineExists; 227 } 228 229 bool InlineBox::prevOnLineExists() const 230 { 231 if (!m_determinedIfPrevOnLineExists) { 232 m_determinedIfPrevOnLineExists = true; 233 234 if (!parent()) 235 m_prevOnLineExists = false; 236 else if (prevOnLine()) 237 m_prevOnLineExists = true; 238 else 239 m_prevOnLineExists = parent()->prevOnLineExists(); 240 } 241 return m_prevOnLineExists; 242 } 243 214 244 InlineBox* InlineBox::nextLeafChild() const 215 245 { -
trunk/Source/WebCore/rendering/InlineBox.h
r83515 r83540 59 59 , m_dirOverride(false) 60 60 , m_isText(false) 61 , m_determinedIfNextOnLineExists(false) 62 , m_determinedIfPrevOnLineExists(false) 63 , m_nextOnLineExists(false) 64 , m_prevOnLineExists(false) 61 65 , m_expansion(0) 62 66 #ifndef NDEBUG … … 90 94 , m_dirOverride(false) 91 95 , m_isText(false) 96 , m_determinedIfNextOnLineExists(false) 97 , m_determinedIfPrevOnLineExists(false) 98 , m_nextOnLineExists(false) 99 , m_prevOnLineExists(false) 92 100 , m_expansion(0) 93 101 #ifndef NDEBUG … … 194 202 m_prev = prev; 195 203 } 204 bool nextOnLineExists() const; 205 bool prevOnLineExists() const; 196 206 197 207 virtual bool isLeaf() const { return true; } … … 348 358 bool m_isText : 1; // Whether or not this object represents text with a non-zero height. Includes non-image list markers, text boxes. 349 359 protected: 360 mutable bool m_determinedIfNextOnLineExists : 1; 361 mutable bool m_determinedIfPrevOnLineExists : 1; 362 mutable bool m_nextOnLineExists : 1; 363 mutable bool m_prevOnLineExists : 1; 350 364 int m_expansion : 11; // for justified text 351 365
Note: See TracChangeset
for help on using the changeset viewer.