Changeset 96425 in webkit
- Timestamp:
- Sep 30, 2011 2:23:44 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r96423 r96425 1 2011-09-30 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r96422. 4 http://trac.webkit.org/changeset/96422 5 https://bugs.webkit.org/show_bug.cgi?id=69170 6 7 Broke Windows build and kling wanted to roll it out as well 8 (Requested by rniwa on #webkit). 9 10 * rendering/InlineBox.cpp: 11 (WebCore::InlineBox::prevOnLineExists): 12 * rendering/InlineBox.h: 13 (WebCore::InlineBox::InlineBox): 14 1 15 2011-09-30 David Hyatt <hyatt@apple.com> 2 16 -
trunk/Source/WebCore/rendering/InlineBox.cpp
r96422 r96425 35 35 36 36 namespace WebCore { 37 38 class SameSizeAsInlineBox {39 virtual ~SameSizeAsInlineBox() { }40 void* a[4];41 FloatPoint b;42 float c;43 uint32_t d;44 #ifndef NDEBUG45 bool e;46 #endif47 };48 49 COMPILE_ASSERT(sizeof(InlineBox) == sizeof(SameSizeAsInlineBox), InlineBox_size_guard);50 37 51 38 #ifndef NDEBUG … … 272 259 } 273 260 261 bool InlineBox::prevOnLineExists() const 262 { 263 if (!m_determinedIfPrevOnLineExists) { 264 m_determinedIfPrevOnLineExists = true; 265 266 if (!parent()) 267 m_prevOnLineExists = false; 268 else if (prevOnLine()) 269 m_prevOnLineExists = true; 270 else 271 m_prevOnLineExists = parent()->prevOnLineExists(); 272 } 273 return m_prevOnLineExists; 274 } 275 274 276 InlineBox* InlineBox::nextLeafChild() const 275 277 { -
trunk/Source/WebCore/rendering/InlineBox.h
r96422 r96425 57 57 , m_isText(false) 58 58 , m_determinedIfNextOnLineExists(false) 59 , m_determinedIfPrevOnLineExists(false) 59 60 , m_nextOnLineExists(false) 61 , m_prevOnLineExists(false) 60 62 , m_expansion(0) 61 63 #ifndef NDEBUG … … 89 91 , m_isText(false) 90 92 , m_determinedIfNextOnLineExists(false) 93 , m_determinedIfPrevOnLineExists(false) 91 94 , m_nextOnLineExists(false) 95 , m_prevOnLineExists(false) 92 96 , m_expansion(0) 93 97 #ifndef NDEBUG … … 200 204 } 201 205 bool nextOnLineExists() const; 206 bool prevOnLineExists() const; 202 207 203 208 virtual bool isLeaf() const { return true; } … … 360 365 protected: 361 366 mutable bool m_determinedIfNextOnLineExists : 1; 367 mutable bool m_determinedIfPrevOnLineExists : 1; 362 368 mutable bool m_nextOnLineExists : 1; 369 mutable bool m_prevOnLineExists : 1; 363 370 signed m_expansion : 11; // for justified text 364 371
Note: See TracChangeset
for help on using the changeset viewer.