| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |