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

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

Issue 1933153002: Move self-collapse checking to LayoutBlockFlow and cache it completely. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: The winbots had a point. How do you like this, then, winbots? bool bitfields would probably look ev… Created 4 years, 7 months 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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 554
555 // Used to store state between styleWillChange and styleDidChange 555 // Used to store state between styleWillChange and styleDidChange
556 static bool s_canPropagateFloatIntoSibling; 556 static bool s_canPropagateFloatIntoSibling;
557 557
558 LayoutBlockFlowRareData& ensureRareData(); 558 LayoutBlockFlowRareData& ensureRareData();
559 559
560 LayoutUnit m_paintInvalidationLogicalTop; 560 LayoutUnit m_paintInvalidationLogicalTop;
561 LayoutUnit m_paintInvalidationLogicalBottom; 561 LayoutUnit m_paintInvalidationLogicalBottom;
562 562
563 bool isSelfCollapsingBlock() const override; 563 bool isSelfCollapsingBlock() const override;
564 bool checkIfIsSelfCollapsingBlock() const;
564 565
565 protected: 566 protected:
566 OwnPtr<LayoutBlockFlowRareData> m_rareData; 567 OwnPtr<LayoutBlockFlowRareData> m_rareData;
567 OwnPtr<FloatingObjects> m_floatingObjects; 568 OwnPtr<FloatingObjects> m_floatingObjects;
568 569
569 friend class MarginInfo; 570 friend class MarginInfo;
570 friend class LineBreaker; 571 friend class LineBreaker;
571 friend class LineWidth; // needs to know FloatingObject 572 friend class LineWidth; // needs to know FloatingObject
572 573
573 // FIXME-BLOCKFLOW: These methods have implementations in 574 // FIXME-BLOCKFLOW: These methods have implementations in
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 606
606 // END METHODS DEFINED IN LayoutBlockFlowLine 607 // END METHODS DEFINED IN LayoutBlockFlowLine
607 608
608 }; 609 };
609 610
610 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); 611 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow());
611 612
612 } // namespace blink 613 } // namespace blink
613 614
614 #endif // LayoutBlockFlow_h 615 #endif // LayoutBlockFlow_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698