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

Side by Side Diff: Source/core/layout/LayoutMultiColumnFlowThread.cpp

Issue 1124993002: Cleanup: Only need one bit (not two) to express flow thread state. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 22 matching lines...) Expand all
33 33
34 LayoutMultiColumnFlowThread::LayoutMultiColumnFlowThread() 34 LayoutMultiColumnFlowThread::LayoutMultiColumnFlowThread()
35 : m_lastSetWorkedOn(0) 35 : m_lastSetWorkedOn(0)
36 , m_columnCount(1) 36 , m_columnCount(1)
37 , m_columnHeightAvailable(0) 37 , m_columnHeightAvailable(0)
38 , m_inBalancingPass(false) 38 , m_inBalancingPass(false)
39 , m_needsColumnHeightsRecalculation(false) 39 , m_needsColumnHeightsRecalculation(false)
40 , m_progressionIsInline(true) 40 , m_progressionIsInline(true)
41 , m_isBeingEvacuated(false) 41 , m_isBeingEvacuated(false)
42 { 42 {
43 setFlowThreadState(InsideInFlowThread); 43 setIsInsideFlowThread(true);
44 } 44 }
45 45
46 LayoutMultiColumnFlowThread::~LayoutMultiColumnFlowThread() 46 LayoutMultiColumnFlowThread::~LayoutMultiColumnFlowThread()
47 { 47 {
48 } 48 }
49 49
50 LayoutMultiColumnFlowThread* LayoutMultiColumnFlowThread::createAnonymous(Docume nt& document, const ComputedStyle& parentStyle) 50 LayoutMultiColumnFlowThread* LayoutMultiColumnFlowThread::createAnonymous(Docume nt& document, const ComputedStyle& parentStyle)
51 { 51 {
52 LayoutMultiColumnFlowThread* layoutObject = new LayoutMultiColumnFlowThread( ); 52 LayoutMultiColumnFlowThread* layoutObject = new LayoutMultiColumnFlowThread( );
53 layoutObject->setDocumentForAnonymous(&document); 53 layoutObject->setDocumentForAnonymous(&document);
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 } 730 }
731 731
732 bool LayoutMultiColumnFlowThread::isPageLogicalHeightKnown() const 732 bool LayoutMultiColumnFlowThread::isPageLogicalHeightKnown() const
733 { 733 {
734 if (LayoutMultiColumnSet* columnSet = lastMultiColumnSet()) 734 if (LayoutMultiColumnSet* columnSet = lastMultiColumnSet())
735 return columnSet->pageLogicalHeight(); 735 return columnSet->pageLogicalHeight();
736 return false; 736 return false;
737 } 737 }
738 738
739 } 739 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698