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

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

Issue 2670643004: Rename EDisplay values with k prefix. (Closed)
Patch Set: Rebase Created 3 years, 9 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/layout/LayoutMultiColumnSpannerPlaceholder.h" 5 #include "core/layout/LayoutMultiColumnSpannerPlaceholder.h"
6 6
7 #include "core/layout/LayoutMultiColumnFlowThread.h" 7 #include "core/layout/LayoutMultiColumnFlowThread.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
(...skipping 11 matching lines...) Expand all
22 LayoutMultiColumnSpannerPlaceholder* 22 LayoutMultiColumnSpannerPlaceholder*
23 LayoutMultiColumnSpannerPlaceholder::createAnonymous( 23 LayoutMultiColumnSpannerPlaceholder::createAnonymous(
24 const ComputedStyle& parentStyle, 24 const ComputedStyle& parentStyle,
25 LayoutBox& layoutObjectInFlowThread) { 25 LayoutBox& layoutObjectInFlowThread) {
26 LayoutMultiColumnSpannerPlaceholder* newSpanner = 26 LayoutMultiColumnSpannerPlaceholder* newSpanner =
27 new LayoutMultiColumnSpannerPlaceholder(&layoutObjectInFlowThread); 27 new LayoutMultiColumnSpannerPlaceholder(&layoutObjectInFlowThread);
28 Document& document = layoutObjectInFlowThread.document(); 28 Document& document = layoutObjectInFlowThread.document();
29 newSpanner->setDocumentForAnonymous(&document); 29 newSpanner->setDocumentForAnonymous(&document);
30 RefPtr<ComputedStyle> newStyle = 30 RefPtr<ComputedStyle> newStyle =
31 ComputedStyle::createAnonymousStyleWithDisplay(parentStyle, 31 ComputedStyle::createAnonymousStyleWithDisplay(parentStyle,
32 EDisplay::Block); 32 EDisplay::kBlock);
33 copyMarginProperties(*newStyle, layoutObjectInFlowThread.styleRef()); 33 copyMarginProperties(*newStyle, layoutObjectInFlowThread.styleRef());
34 newSpanner->setStyle(newStyle); 34 newSpanner->setStyle(newStyle);
35 return newSpanner; 35 return newSpanner;
36 } 36 }
37 37
38 LayoutMultiColumnSpannerPlaceholder::LayoutMultiColumnSpannerPlaceholder( 38 LayoutMultiColumnSpannerPlaceholder::LayoutMultiColumnSpannerPlaceholder(
39 LayoutBox* layoutObjectInFlowThread) 39 LayoutBox* layoutObjectInFlowThread)
40 : LayoutBox(nullptr), 40 : LayoutBox(nullptr),
41 m_layoutObjectInFlowThread(layoutObjectInFlowThread) {} 41 m_layoutObjectInFlowThread(layoutObjectInFlowThread) {}
42 42
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 HitTestResult& result, 152 HitTestResult& result,
153 const HitTestLocation& locationInContainer, 153 const HitTestLocation& locationInContainer,
154 const LayoutPoint& accumulatedOffset, 154 const LayoutPoint& accumulatedOffset,
155 HitTestAction action) { 155 HitTestAction action) {
156 return !m_layoutObjectInFlowThread->hasSelfPaintingLayer() && 156 return !m_layoutObjectInFlowThread->hasSelfPaintingLayer() &&
157 m_layoutObjectInFlowThread->nodeAtPoint(result, locationInContainer, 157 m_layoutObjectInFlowThread->nodeAtPoint(result, locationInContainer,
158 accumulatedOffset, action); 158 accumulatedOffset, action);
159 } 159 }
160 160
161 } // namespace blink 161 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698