| 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" | 7 #include "core/layout/LayoutMultiColumnFlowThread.h" |
| 8 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |