| 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/paint/PaintLayerPainter.h" | 5 #include "core/paint/PaintLayerPainter.h" |
| 6 | 6 |
| 7 #include "core/frame/LocalFrame.h" | 7 #include "core/frame/LocalFrame.h" |
| 8 #include "core/layout/LayoutView.h" | 8 #include "core/layout/LayoutView.h" |
| 9 #include "core/paint/ClipPathClipper.h" | 9 #include "core/paint/ClipPathClipper.h" |
| 10 #include "core/paint/FilterPainter.h" | 10 #include "core/paint/FilterPainter.h" |
| (...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 fragment.backgroundRect.rect(), | 634 fragment.backgroundRect.rect(), |
| 635 newOffsetFromRoot)) | 635 newOffsetFromRoot)) |
| 636 return true; | 636 return true; |
| 637 } | 637 } |
| 638 return false; | 638 return false; |
| 639 } | 639 } |
| 640 | 640 |
| 641 inline bool PaintLayerPainter::isFixedPositionObjectInPagedMedia() { | 641 inline bool PaintLayerPainter::isFixedPositionObjectInPagedMedia() { |
| 642 LayoutObject* object = m_paintLayer.layoutObject(); | 642 LayoutObject* object = m_paintLayer.layoutObject(); |
| 643 LayoutView* view = object->view(); | 643 LayoutView* view = object->view(); |
| 644 return object->styleRef().position() == FixedPosition && | 644 return object->styleRef().position() == EPosition::kFixed && |
| 645 object->container() == view && view->pageLogicalHeight() && | 645 object->container() == view && view->pageLogicalHeight() && |
| 646 // TODO(crbug.com/619094): Figure out the correct behaviour for fixed | 646 // TODO(crbug.com/619094): Figure out the correct behaviour for fixed |
| 647 // position objects in paged media with vertical writing modes. | 647 // position objects in paged media with vertical writing modes. |
| 648 view->isHorizontalWritingMode(); | 648 view->isHorizontalWritingMode(); |
| 649 } | 649 } |
| 650 | 650 |
| 651 void PaintLayerPainter::repeatFixedPositionObjectInPages( | 651 void PaintLayerPainter::repeatFixedPositionObjectInPages( |
| 652 const PaintLayerFragment& singleFragmentIgnoredPagination, | 652 const PaintLayerFragment& singleFragmentIgnoredPagination, |
| 653 const PaintLayerPaintingInfo& paintingInfo, | 653 const PaintLayerPaintingInfo& paintingInfo, |
| 654 PaintLayerFragments& layerFragments) { | 654 PaintLayerFragments& layerFragments) { |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1200 context, layoutObject, PaintPhaseClippingMask)) | 1200 context, layoutObject, PaintPhaseClippingMask)) |
| 1201 return; | 1201 return; |
| 1202 | 1202 |
| 1203 IntRect snappedClipRect = pixelSnappedIntRect(clipRect.rect()); | 1203 IntRect snappedClipRect = pixelSnappedIntRect(clipRect.rect()); |
| 1204 LayoutObjectDrawingRecorder drawingRecorder( | 1204 LayoutObjectDrawingRecorder drawingRecorder( |
| 1205 context, layoutObject, PaintPhaseClippingMask, snappedClipRect); | 1205 context, layoutObject, PaintPhaseClippingMask, snappedClipRect); |
| 1206 context.fillRect(snappedClipRect, Color::black); | 1206 context.fillRect(snappedClipRect, Color::black); |
| 1207 } | 1207 } |
| 1208 | 1208 |
| 1209 } // namespace blink | 1209 } // namespace blink |
| OLD | NEW |