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

Side by Side Diff: third_party/WebKit/Source/core/layout/line/InlineBox.h

Issue 1415493008: ASSERTION FAILED: !m_overflow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nittified! Created 5 years, 1 month 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) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All r ights reserved. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All r ights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 void setBidiEmbeddingLevel(unsigned char bidiEmbeddingLevel) { m_bidiEmb eddingLevel = bidiEmbeddingLevel; } 344 void setBidiEmbeddingLevel(unsigned char bidiEmbeddingLevel) { m_bidiEmb eddingLevel = bidiEmbeddingLevel; }
345 345
346 ADD_BOOLEAN_BITFIELD(dirty, Dirty); 346 ADD_BOOLEAN_BITFIELD(dirty, Dirty);
347 ADD_BOOLEAN_BITFIELD(extracted, Extracted); 347 ADD_BOOLEAN_BITFIELD(extracted, Extracted);
348 ADD_BOOLEAN_BITFIELD(hasVirtualLogicalHeight, HasVirtualLogicalHeight); 348 ADD_BOOLEAN_BITFIELD(hasVirtualLogicalHeight, HasVirtualLogicalHeight);
349 ADD_BOOLEAN_BITFIELD(isHorizontal, IsHorizontal); 349 ADD_BOOLEAN_BITFIELD(isHorizontal, IsHorizontal);
350 // for RootInlineBox 350 // for RootInlineBox
351 ADD_BOOLEAN_BITFIELD(endsWithBreak, EndsWithBreak); // Whether the line ends with a <br>. 351 ADD_BOOLEAN_BITFIELD(endsWithBreak, EndsWithBreak); // Whether the line ends with a <br>.
352 // shared between RootInlineBox and InlineTextBox 352 // shared between RootInlineBox and InlineTextBox
353 ADD_BOOLEAN_BITFIELD(hasSelectedChildrenOrCanHaveLeadingExpansion, HasSe lectedChildrenOrCanHaveLeadingExpansion); 353 ADD_BOOLEAN_BITFIELD(hasSelectedChildrenOrCanHaveLeadingExpansion, HasSe lectedChildrenOrCanHaveLeadingExpansion);
354
355 // This boolean will never be set if there is potential for overflow,
356 // but it will be eagerly cleared in the opposite case. As such, it's
357 // a conservative tracking of the absence of overflow.
358 //
359 // For whether we have overflow, callers should use m_overflow on
360 // InlineFlowBox.
354 ADD_BOOLEAN_BITFIELD(knownToHaveNoOverflow, KnownToHaveNoOverflow); 361 ADD_BOOLEAN_BITFIELD(knownToHaveNoOverflow, KnownToHaveNoOverflow);
355 ADD_BOOLEAN_BITFIELD(hasEllipsisBoxOrHyphen, HasEllipsisBoxOrHyphen); 362 ADD_BOOLEAN_BITFIELD(hasEllipsisBoxOrHyphen, HasEllipsisBoxOrHyphen);
356 // for InlineTextBox 363 // for InlineTextBox
357 ADD_BOOLEAN_BITFIELD(dirOverride, DirOverride); 364 ADD_BOOLEAN_BITFIELD(dirOverride, DirOverride);
358 ADD_BOOLEAN_BITFIELD(isText, IsText); // Whether or not this object repr esents text with a non-zero height. Includes non-image list markers, text boxes. 365 ADD_BOOLEAN_BITFIELD(isText, IsText); // Whether or not this object repr esents text with a non-zero height. Includes non-image list markers, text boxes.
359 366
360 private: 367 private:
361 mutable unsigned m_determinedIfNextOnLineExists : 1; 368 mutable unsigned m_determinedIfNextOnLineExists : 1;
362 369
363 public: 370 public:
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 450
444 } // namespace blink 451 } // namespace blink
445 452
446 #ifndef NDEBUG 453 #ifndef NDEBUG
447 // Outside the WebCore namespace for ease of invocation from gdb. 454 // Outside the WebCore namespace for ease of invocation from gdb.
448 void showTree(const blink::InlineBox*); 455 void showTree(const blink::InlineBox*);
449 void showLineTree(const blink::InlineBox*); 456 void showLineTree(const blink::InlineBox*);
450 #endif 457 #endif
451 458
452 #endif // InlineBox_h 459 #endif // InlineBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutListItem.cpp ('k') | third_party/WebKit/Source/core/layout/line/InlineFlowBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698