| 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 "config.h" | 5 #include "config.h" |
| 6 #include "core/layout/LayoutMultiColumnSpannerPlaceholder.h" | 6 #include "core/layout/LayoutMultiColumnSpannerPlaceholder.h" |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 static void copyMarginProperties(LayoutStyle& placeholderStyle, const LayoutStyl
e& spannerStyle) | 10 static void copyMarginProperties(LayoutStyle& placeholderStyle, const LayoutStyl
e& spannerStyle) |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 } | 84 } |
| 85 | 85 |
| 86 void LayoutMultiColumnSpannerPlaceholder::computeLogicalHeight(LayoutUnit, Layou
tUnit logicalTop, LogicalExtentComputedValues& computedValues) const | 86 void LayoutMultiColumnSpannerPlaceholder::computeLogicalHeight(LayoutUnit, Layou
tUnit logicalTop, LogicalExtentComputedValues& computedValues) const |
| 87 { | 87 { |
| 88 computedValues.m_extent = m_rendererInFlowThread->logicalHeight(); | 88 computedValues.m_extent = m_rendererInFlowThread->logicalHeight(); |
| 89 computedValues.m_position = logicalTop; | 89 computedValues.m_position = logicalTop; |
| 90 computedValues.m_margins.m_before = marginBefore(); | 90 computedValues.m_margins.m_before = marginBefore(); |
| 91 computedValues.m_margins.m_after = marginAfter(); | 91 computedValues.m_margins.m_after = marginAfter(); |
| 92 } | 92 } |
| 93 | 93 |
| 94 void LayoutMultiColumnSpannerPlaceholder::invalidateTreeIfNeeded(const PaintInva
lidationState& paintInvalidationState) | 94 void LayoutMultiColumnSpannerPlaceholder::invalidateTreeIfNeeded(PaintInvalidati
onState& paintInvalidationState) |
| 95 { | 95 { |
| 96 PaintInvalidationState newPaintInvalidationState(paintInvalidationState, *th
is, paintInvalidationState.paintInvalidationContainer()); | 96 PaintInvalidationState newPaintInvalidationState(paintInvalidationState, *th
is, paintInvalidationState.paintInvalidationContainer()); |
| 97 m_rendererInFlowThread->invalidateTreeIfNeeded(newPaintInvalidationState); | 97 m_rendererInFlowThread->invalidateTreeIfNeeded(newPaintInvalidationState); |
| 98 LayoutBox::invalidateTreeIfNeeded(paintInvalidationState); | 98 LayoutBox::invalidateTreeIfNeeded(paintInvalidationState); |
| 99 } | 99 } |
| 100 | 100 |
| 101 void LayoutMultiColumnSpannerPlaceholder::paint(const PaintInfo& paintInfo, cons
t LayoutPoint& paintOffset) | 101 void LayoutMultiColumnSpannerPlaceholder::paint(const PaintInfo& paintInfo, cons
t LayoutPoint& paintOffset) |
| 102 { | 102 { |
| 103 if (!m_rendererInFlowThread->hasSelfPaintingLayer()) | 103 if (!m_rendererInFlowThread->hasSelfPaintingLayer()) |
| 104 m_rendererInFlowThread->paint(paintInfo, paintOffset); | 104 m_rendererInFlowThread->paint(paintInfo, paintOffset); |
| 105 } | 105 } |
| 106 | 106 |
| 107 bool LayoutMultiColumnSpannerPlaceholder::nodeAtPoint(const HitTestRequest& requ
est, HitTestResult& result, const HitTestLocation& locationInContainer, const La
youtPoint& accumulatedOffset, HitTestAction action) | 107 bool LayoutMultiColumnSpannerPlaceholder::nodeAtPoint(const HitTestRequest& requ
est, HitTestResult& result, const HitTestLocation& locationInContainer, const La
youtPoint& accumulatedOffset, HitTestAction action) |
| 108 { | 108 { |
| 109 return !m_rendererInFlowThread->hasSelfPaintingLayer() && m_rendererInFlowTh
read->nodeAtPoint(request, result, locationInContainer, accumulatedOffset, actio
n); | 109 return !m_rendererInFlowThread->hasSelfPaintingLayer() && m_rendererInFlowTh
read->nodeAtPoint(request, result, locationInContainer, accumulatedOffset, actio
n); |
| 110 } | 110 } |
| 111 | 111 |
| 112 } | 112 } |
| OLD | NEW |