| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 5 * Copyright (C) 2003-2013 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003-2013 Apple Inc. All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 7 * Copyright (C) 2013 Google Inc. All rights reserved. | 7 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
| 10 * modification, are permitted provided that the following conditions are | 10 * modification, are permitted provided that the following conditions are |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 bool shouldBreakAtLineToAvoidWidow() const { return m_rareData && m_rareData
->m_lineBreakToAvoidWidow >= 0; } | 345 bool shouldBreakAtLineToAvoidWidow() const { return m_rareData && m_rareData
->m_lineBreakToAvoidWidow >= 0; } |
| 346 void clearShouldBreakAtLineToAvoidWidow() const; | 346 void clearShouldBreakAtLineToAvoidWidow() const; |
| 347 int lineBreakToAvoidWidow() const { return m_rareData ? m_rareData->m_lineBr
eakToAvoidWidow : -1; } | 347 int lineBreakToAvoidWidow() const { return m_rareData ? m_rareData->m_lineBr
eakToAvoidWidow : -1; } |
| 348 void setBreakAtLineToAvoidWidow(int); | 348 void setBreakAtLineToAvoidWidow(int); |
| 349 void clearDidBreakAtLineToAvoidWidow(); | 349 void clearDidBreakAtLineToAvoidWidow(); |
| 350 void setDidBreakAtLineToAvoidWidow(); | 350 void setDidBreakAtLineToAvoidWidow(); |
| 351 bool didBreakAtLineToAvoidWidow() const { return m_rareData && m_rareData->m
_didBreakAtLineToAvoidWidow; } | 351 bool didBreakAtLineToAvoidWidow() const { return m_rareData && m_rareData->m
_didBreakAtLineToAvoidWidow; } |
| 352 | 352 |
| 353 public: | 353 public: |
| 354 struct FloatWithRect { | 354 struct FloatWithRect { |
| 355 ALLOW_ONLY_INLINE_ALLOCATION(); |
| 355 FloatWithRect(LayoutBox* f) | 356 FloatWithRect(LayoutBox* f) |
| 356 : object(f) | 357 : object(f) |
| 357 , rect(f->frameRect()) | 358 , rect(f->frameRect()) |
| 358 , everHadLayout(f->everHadLayout()) | 359 , everHadLayout(f->everHadLayout()) |
| 359 { | 360 { |
| 360 rect.expand(f->marginBoxOutsets()); | 361 rect.expand(f->marginBoxOutsets()); |
| 361 } | 362 } |
| 362 | 363 |
| 363 LayoutBox* object; | 364 LayoutBox* object; |
| 364 LayoutRect rect; | 365 LayoutRect rect; |
| 365 bool everHadLayout; | 366 bool everHadLayout; |
| 366 }; | 367 }; |
| 367 | 368 |
| 368 class MarginValues { | 369 class MarginValues { |
| 370 DISALLOW_ALLOCATION(); |
| 369 public: | 371 public: |
| 370 MarginValues(LayoutUnit beforePos, LayoutUnit beforeNeg, LayoutUnit afte
rPos, LayoutUnit afterNeg) | 372 MarginValues(LayoutUnit beforePos, LayoutUnit beforeNeg, LayoutUnit afte
rPos, LayoutUnit afterNeg) |
| 371 : m_positiveMarginBefore(beforePos) | 373 : m_positiveMarginBefore(beforePos) |
| 372 , m_negativeMarginBefore(beforeNeg) | 374 , m_negativeMarginBefore(beforeNeg) |
| 373 , m_positiveMarginAfter(afterPos) | 375 , m_positiveMarginAfter(afterPos) |
| 374 , m_negativeMarginAfter(afterNeg) | 376 , m_negativeMarginAfter(afterNeg) |
| 375 { } | 377 { } |
| 376 | 378 |
| 377 LayoutUnit positiveMarginBefore() const { return m_positiveMarginBefore;
} | 379 LayoutUnit positiveMarginBefore() const { return m_positiveMarginBefore;
} |
| 378 LayoutUnit negativeMarginBefore() const { return m_negativeMarginBefore;
} | 380 LayoutUnit negativeMarginBefore() const { return m_negativeMarginBefore;
} |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 | 545 |
| 544 // END METHODS DEFINED IN LayoutBlockFlowLine | 546 // END METHODS DEFINED IN LayoutBlockFlowLine |
| 545 | 547 |
| 546 }; | 548 }; |
| 547 | 549 |
| 548 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); | 550 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); |
| 549 | 551 |
| 550 } // namespace blink | 552 } // namespace blink |
| 551 | 553 |
| 552 #endif // LayoutBlockFlow_h | 554 #endif // LayoutBlockFlow_h |
| OLD | NEW |