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

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

Issue 2370673002: Changed EDisplay to an enum class and renamed its members to be keywords (Closed)
Patch Set: Comment Created 4 years, 2 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) 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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);
54 layoutObject->setStyle(ComputedStyle::createAnonymousStyleWithDisplay(parent Style, BLOCK)); 54 layoutObject->setStyle(ComputedStyle::createAnonymousStyleWithDisplay(parent Style, EDisplay::Block));
55 return layoutObject; 55 return layoutObject;
56 } 56 }
57 57
58 LayoutMultiColumnSet* LayoutMultiColumnFlowThread::firstMultiColumnSet() const 58 LayoutMultiColumnSet* LayoutMultiColumnFlowThread::firstMultiColumnSet() const
59 { 59 {
60 for (LayoutObject* sibling = nextSibling(); sibling; sibling = sibling->next Sibling()) { 60 for (LayoutObject* sibling = nextSibling(); sibling; sibling = sibling->next Sibling()) {
61 if (sibling->isLayoutMultiColumnSet()) 61 if (sibling->isLayoutMultiColumnSet())
62 return toLayoutMultiColumnSet(sibling); 62 return toLayoutMultiColumnSet(sibling);
63 } 63 }
64 return nullptr; 64 return nullptr;
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 { 1059 {
1060 return MultiColumnLayoutState(m_lastSetWorkedOn); 1060 return MultiColumnLayoutState(m_lastSetWorkedOn);
1061 } 1061 }
1062 1062
1063 void LayoutMultiColumnFlowThread::restoreMultiColumnLayoutState(const MultiColum nLayoutState& state) 1063 void LayoutMultiColumnFlowThread::restoreMultiColumnLayoutState(const MultiColum nLayoutState& state)
1064 { 1064 {
1065 m_lastSetWorkedOn = state.columnSet(); 1065 m_lastSetWorkedOn = state.columnSet();
1066 } 1066 }
1067 1067
1068 } // namespace blink 1068 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutInline.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698