Chromium Code Reviews| Index: third_party/WebKit/Source/core/paint/FramePainter.cpp |
| diff --git a/third_party/WebKit/Source/core/paint/FramePainter.cpp b/third_party/WebKit/Source/core/paint/FramePainter.cpp |
| index db2a9b975f08db308575a617b25e11539aaafe84..bc8729c549149b87a2837beb36062a803d2bf3b7 100644 |
| --- a/third_party/WebKit/Source/core/paint/FramePainter.cpp |
| +++ b/third_party/WebKit/Source/core/paint/FramePainter.cpp |
| @@ -94,11 +94,20 @@ void FramePainter::paint(GraphicsContext& context, |
| Optional<ScopedPaintChunkProperties> scopedPaintChunkProperties; |
| if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { |
| - if (TransformPaintPropertyNode* transform = |
| - m_frameView->preTranslation()) { |
| + if (const PropertyTreeState* contentsState = |
| + m_frameView->totalPropertyTreeStateForContents()) { |
| + // The scrollbar's property nodes are similar to the frame view's |
| + // contents state but we want to exclude the content-specific. This |
| + // prevents the scrollbars from scrolling, for example. |
| PaintChunkProperties properties( |
| context.getPaintController().currentPaintChunkProperties()); |
| - properties.transform = transform; |
| + properties.transform = m_frameView->preTranslation(); |
| + properties.clip = m_frameView->contentClip()->parent(); |
| + properties.effect = contentsState->effect(); |
| + auto* scrollBarScroll = contentsState->scroll(); |
|
szager1
2016/11/14 05:34:04
As far as I can tell, contentsState->scroll() shou
|
| + if (m_frameView->scroll()) |
| + scrollBarScroll = m_frameView->scroll()->parent(); |
| + properties.scroll = scrollBarScroll; |
| scopedPaintChunkProperties.emplace(context.getPaintController(), |
| *frameView().layoutView(), |
| properties); |