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

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

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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) 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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/HitTestResult.h ('k') | third_party/WebKit/Source/core/layout/LayoutBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698