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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 bool shouldBreakAtLineToAvoidWidow() const { return m_rareData && m_rareData
->m_lineBreakToAvoidWidow >= 0; } | 385 bool shouldBreakAtLineToAvoidWidow() const { return m_rareData && m_rareData
->m_lineBreakToAvoidWidow >= 0; } |
386 void clearShouldBreakAtLineToAvoidWidow() const; | 386 void clearShouldBreakAtLineToAvoidWidow() const; |
387 int lineBreakToAvoidWidow() const { return m_rareData ? m_rareData->m_lineBr
eakToAvoidWidow : -1; } | 387 int lineBreakToAvoidWidow() const { return m_rareData ? m_rareData->m_lineBr
eakToAvoidWidow : -1; } |
388 void setBreakAtLineToAvoidWidow(int); | 388 void setBreakAtLineToAvoidWidow(int); |
389 void clearDidBreakAtLineToAvoidWidow(); | 389 void clearDidBreakAtLineToAvoidWidow(); |
390 void setDidBreakAtLineToAvoidWidow(); | 390 void setDidBreakAtLineToAvoidWidow(); |
391 bool didBreakAtLineToAvoidWidow() const { return m_rareData && m_rareData->m
_didBreakAtLineToAvoidWidow; } | 391 bool didBreakAtLineToAvoidWidow() const { return m_rareData && m_rareData->m
_didBreakAtLineToAvoidWidow; } |
392 | 392 |
393 public: | 393 public: |
394 struct FloatWithRect { | 394 struct FloatWithRect { |
395 ALLOW_ONLY_INLINE_ALLOCATION(); | 395 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
396 FloatWithRect(LayoutBox* f) | 396 FloatWithRect(LayoutBox* f) |
397 : object(f) | 397 : object(f) |
398 , rect(f->frameRect()) | 398 , rect(f->frameRect()) |
399 , everHadLayout(f->everHadLayout()) | 399 , everHadLayout(f->everHadLayout()) |
400 { | 400 { |
401 rect.expand(f->marginBoxOutsets()); | 401 rect.expand(f->marginBoxOutsets()); |
402 } | 402 } |
403 | 403 |
404 LayoutBox* object; | 404 LayoutBox* object; |
405 LayoutRect rect; | 405 LayoutRect rect; |
406 bool everHadLayout; | 406 bool everHadLayout; |
407 }; | 407 }; |
408 | 408 |
409 class MarginValues { | 409 class MarginValues { |
410 DISALLOW_ALLOCATION(); | 410 DISALLOW_NEW(); |
411 public: | 411 public: |
412 MarginValues(LayoutUnit beforePos, LayoutUnit beforeNeg, LayoutUnit afte
rPos, LayoutUnit afterNeg) | 412 MarginValues(LayoutUnit beforePos, LayoutUnit beforeNeg, LayoutUnit afte
rPos, LayoutUnit afterNeg) |
413 : m_positiveMarginBefore(beforePos) | 413 : m_positiveMarginBefore(beforePos) |
414 , m_negativeMarginBefore(beforeNeg) | 414 , m_negativeMarginBefore(beforeNeg) |
415 , m_positiveMarginAfter(afterPos) | 415 , m_positiveMarginAfter(afterPos) |
416 , m_negativeMarginAfter(afterNeg) | 416 , m_negativeMarginAfter(afterNeg) |
417 { } | 417 { } |
418 | 418 |
419 LayoutUnit positiveMarginBefore() const { return m_positiveMarginBefore;
} | 419 LayoutUnit positiveMarginBefore() const { return m_positiveMarginBefore;
} |
420 LayoutUnit negativeMarginBefore() const { return m_negativeMarginBefore;
} | 420 LayoutUnit negativeMarginBefore() const { return m_negativeMarginBefore;
} |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 | 585 |
586 // END METHODS DEFINED IN LayoutBlockFlowLine | 586 // END METHODS DEFINED IN LayoutBlockFlowLine |
587 | 587 |
588 }; | 588 }; |
589 | 589 |
590 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); | 590 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); |
591 | 591 |
592 } // namespace blink | 592 } // namespace blink |
593 | 593 |
594 #endif // LayoutBlockFlow_h | 594 #endif // LayoutBlockFlow_h |
OLD | NEW |