|
Lines 98-106
template<> struct ArgumentCoder<RequestedScrollData> {
a/Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp_sec1
|
| 98 |
static WARN_UNUSED_RETURN bool decode(Decoder&, RequestedScrollData&); |
98 |
static WARN_UNUSED_RETURN bool decode(Decoder&, RequestedScrollData&); |
| 99 |
}; |
99 |
}; |
| 100 |
|
100 |
|
| 101 |
template<> struct ArgumentCoder<ScrollSnapOffsetsInfo<float>> { |
101 |
template<> struct ArgumentCoder<FloatScrollSnapOffsetsInfo> { |
| 102 |
static void encode(Encoder&, const ScrollSnapOffsetsInfo<float>&); |
102 |
static void encode(Encoder&, const FloatScrollSnapOffsetsInfo&); |
| 103 |
static WARN_UNUSED_RETURN bool decode(Decoder&, ScrollSnapOffsetsInfo<float>&); |
103 |
static WARN_UNUSED_RETURN bool decode(Decoder&, FloatScrollSnapOffsetsInfo&); |
| 104 |
}; |
104 |
}; |
| 105 |
|
105 |
|
| 106 |
template<> struct ArgumentCoder<SnapOffset<float>> { |
106 |
template<> struct ArgumentCoder<SnapOffset<float>> { |
|
Lines 311-317
bool ArgumentCoder<ScrollingStateScrollingNode>::decode(Decoder& decoder, Scroll
a/Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp_sec2
|
| 311 |
SCROLLING_NODE_DECODE(ScrollingStateNode::Property::ScrollPosition, FloatPoint, setScrollPosition); |
311 |
SCROLLING_NODE_DECODE(ScrollingStateNode::Property::ScrollPosition, FloatPoint, setScrollPosition); |
| 312 |
SCROLLING_NODE_DECODE(ScrollingStateNode::Property::ScrollOrigin, IntPoint, setScrollOrigin); |
312 |
SCROLLING_NODE_DECODE(ScrollingStateNode::Property::ScrollOrigin, IntPoint, setScrollOrigin); |
| 313 |
#if ENABLE(CSS_SCROLL_SNAP) |
313 |
#if ENABLE(CSS_SCROLL_SNAP) |
| 314 |
SCROLLING_NODE_DECODE(ScrollingStateNode::Property::SnapOffsetsInfo, ScrollSnapOffsetsInfo<float>, setSnapOffsetsInfo); |
314 |
SCROLLING_NODE_DECODE(ScrollingStateNode::Property::SnapOffsetsInfo, FloatScrollSnapOffsetsInfo, setSnapOffsetsInfo); |
| 315 |
SCROLLING_NODE_DECODE(ScrollingStateNode::Property::CurrentHorizontalSnapOffsetIndex, unsigned, setCurrentHorizontalSnapPointIndex); |
315 |
SCROLLING_NODE_DECODE(ScrollingStateNode::Property::CurrentHorizontalSnapOffsetIndex, unsigned, setCurrentHorizontalSnapPointIndex); |
| 316 |
SCROLLING_NODE_DECODE(ScrollingStateNode::Property::CurrentVerticalSnapOffsetIndex, unsigned, setCurrentVerticalSnapPointIndex); |
316 |
SCROLLING_NODE_DECODE(ScrollingStateNode::Property::CurrentVerticalSnapOffsetIndex, unsigned, setCurrentVerticalSnapPointIndex); |
| 317 |
#endif |
317 |
#endif |
|
Lines 544-550
bool ArgumentCoder<SnapOffset<float>>::decode(Decoder& decoder, SnapOffset<float
a/Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp_sec3
|
| 544 |
} |
544 |
} |
| 545 |
|
545 |
|
| 546 |
|
546 |
|
| 547 |
void ArgumentCoder<ScrollSnapOffsetsInfo<float>>::encode(Encoder& encoder, const ScrollSnapOffsetsInfo<float>& info) |
547 |
void ArgumentCoder<FloatScrollSnapOffsetsInfo>::encode(Encoder& encoder, const FloatScrollSnapOffsetsInfo& info) |
| 548 |
{ |
548 |
{ |
| 549 |
encoder << info.horizontalSnapOffsets; |
549 |
encoder << info.horizontalSnapOffsets; |
| 550 |
encoder << info.verticalSnapOffsets; |
550 |
encoder << info.verticalSnapOffsets; |
|
Lines 552-558
void ArgumentCoder<ScrollSnapOffsetsInfo<float>>::encode(Encoder& encoder, const
a/Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp_sec4
|
| 552 |
encoder << info.verticalSnapOffsetRanges; |
552 |
encoder << info.verticalSnapOffsetRanges; |
| 553 |
} |
553 |
} |
| 554 |
|
554 |
|
| 555 |
bool ArgumentCoder<ScrollSnapOffsetsInfo<float>>::decode(Decoder& decoder, ScrollSnapOffsetsInfo<float>& info) |
555 |
bool ArgumentCoder<FloatScrollSnapOffsetsInfo>::decode(Decoder& decoder, FloatScrollSnapOffsetsInfo& info) |
| 556 |
{ |
556 |
{ |
| 557 |
if (!decoder.decode(info.horizontalSnapOffsets)) |
557 |
if (!decoder.decode(info.horizontalSnapOffsets)) |
| 558 |
return false; |
558 |
return false; |