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

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

Issue 2015583003: Remove assorted unnecessary includes in core/layout/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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"
8
7 namespace blink { 9 namespace blink {
8 10
9 static void copyMarginProperties(ComputedStyle& placeholderStyle, const Computed Style& spannerStyle) 11 static void copyMarginProperties(ComputedStyle& placeholderStyle, const Computed Style& spannerStyle)
10 { 12 {
11 // We really only need the block direction margins, but there are no setters for that in 13 // We really only need the block direction margins, but there are no setters for that in
12 // ComputedStyle. Just copy all margin sides. The inline ones don't matter a nyway. 14 // ComputedStyle. Just copy all margin sides. The inline ones don't matter a nyway.
13 placeholderStyle.setMarginLeft(spannerStyle.marginLeft()); 15 placeholderStyle.setMarginLeft(spannerStyle.marginLeft());
14 placeholderStyle.setMarginRight(spannerStyle.marginRight()); 16 placeholderStyle.setMarginRight(spannerStyle.marginRight());
15 placeholderStyle.setMarginTop(spannerStyle.marginTop()); 17 placeholderStyle.setMarginTop(spannerStyle.marginTop());
16 placeholderStyle.setMarginBottom(spannerStyle.marginBottom()); 18 placeholderStyle.setMarginBottom(spannerStyle.marginBottom());
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 if (!m_layoutObjectInFlowThread->hasSelfPaintingLayer()) 140 if (!m_layoutObjectInFlowThread->hasSelfPaintingLayer())
139 m_layoutObjectInFlowThread->paint(paintInfo, paintOffset); 141 m_layoutObjectInFlowThread->paint(paintInfo, paintOffset);
140 } 142 }
141 143
142 bool LayoutMultiColumnSpannerPlaceholder::nodeAtPoint(HitTestResult& result, con st HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, H itTestAction action) 144 bool LayoutMultiColumnSpannerPlaceholder::nodeAtPoint(HitTestResult& result, con st HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, H itTestAction action)
143 { 145 {
144 return !m_layoutObjectInFlowThread->hasSelfPaintingLayer() && m_layoutObject InFlowThread->nodeAtPoint(result, locationInContainer, accumulatedOffset, action ); 146 return !m_layoutObjectInFlowThread->hasSelfPaintingLayer() && m_layoutObject InFlowThread->nodeAtPoint(result, locationInContainer, accumulatedOffset, action );
145 } 147 }
146 148
147 } // namespace blink 149 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698