Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 tracks whether we know this box to have no overflow. | |
|
leviw_travelin_and_unemployed
2015/11/10 20:23:22
"whether we know this box has no overflow"
Julien - ping for review
2015/11/10 23:52:47
Changed.
| |
| 356 // | |
| 357 // Note that this boolean shouldn't be set if we could have overflow. | |
|
leviw_travelin_and_unemployed
2015/11/10 20:23:22
I don't feel that the middle 2 lines of this comme
Julien - ping for review
2015/11/10 23:52:47
I strongly think they are (or at least something s
leviw_travelin_and_unemployed
2015/11/12 22:57:51
Can you explain to me how "tracks whether we know
Julien - ping for review
2015/11/13 00:31:32
Fair point, amended the comment to avoid this dupl
| |
| 358 // As such, it's a conservative tracking of the absence of overflow. | |
| 359 // | |
| 360 // For whether we have overflow, callers should use m_overflow on | |
| 361 // InlineFlowBox. | |
| 354 ADD_BOOLEAN_BITFIELD(knownToHaveNoOverflow, KnownToHaveNoOverflow); | 362 ADD_BOOLEAN_BITFIELD(knownToHaveNoOverflow, KnownToHaveNoOverflow); |
| 355 ADD_BOOLEAN_BITFIELD(hasEllipsisBoxOrHyphen, HasEllipsisBoxOrHyphen); | 363 ADD_BOOLEAN_BITFIELD(hasEllipsisBoxOrHyphen, HasEllipsisBoxOrHyphen); |
| 356 // for InlineTextBox | 364 // for InlineTextBox |
| 357 ADD_BOOLEAN_BITFIELD(dirOverride, DirOverride); | 365 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. | 366 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 | 367 |
| 360 private: | 368 private: |
| 361 mutable unsigned m_determinedIfNextOnLineExists : 1; | 369 mutable unsigned m_determinedIfNextOnLineExists : 1; |
| 362 | 370 |
| 363 public: | 371 public: |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 443 | 451 |
| 444 } // namespace blink | 452 } // namespace blink |
| 445 | 453 |
| 446 #ifndef NDEBUG | 454 #ifndef NDEBUG |
| 447 // Outside the WebCore namespace for ease of invocation from gdb. | 455 // Outside the WebCore namespace for ease of invocation from gdb. |
| 448 void showTree(const blink::InlineBox*); | 456 void showTree(const blink::InlineBox*); |
| 449 void showLineTree(const blink::InlineBox*); | 457 void showLineTree(const blink::InlineBox*); |
| 450 #endif | 458 #endif |
| 451 | 459 |
| 452 #endif // InlineBox_h | 460 #endif // InlineBox_h |
| OLD | NEW |