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/BackgroundImageGeometry.h" | 5 #include "core/paint/BackgroundImageGeometry.h" |
6 | 6 |
7 #include "core/frame/FrameView.h" | 7 #include "core/frame/FrameView.h" |
8 #include "core/layout/LayoutBox.h" | 8 #include "core/layout/LayoutBox.h" |
9 #include "core/layout/LayoutBoxModelObject.h" | 9 #include "core/layout/LayoutBoxModelObject.h" |
10 #include "core/layout/LayoutView.h" | 10 #include "core/layout/LayoutView.h" |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 setNoRepeatY(top + yOffset); | 411 setNoRepeatY(top + yOffset); |
412 } | 412 } |
413 | 413 |
414 if (fixedAttachment) | 414 if (fixedAttachment) |
415 useFixedAttachment(paintRect.location()); | 415 useFixedAttachment(paintRect.location()); |
416 | 416 |
417 // Clip the final output rect to the paint rect | 417 // Clip the final output rect to the paint rect |
418 m_destRect.intersect(paintRect); | 418 m_destRect.intersect(paintRect); |
419 | 419 |
420 // Snap as-yet unsnapped values. | 420 // Snap as-yet unsnapped values. |
421 DCHECK(m_phase == LayoutPoint(roundedIntPoint(m_phase))); | |
422 setDestRect(LayoutRect(pixelSnappedIntRect(m_destRect))); | 421 setDestRect(LayoutRect(pixelSnappedIntRect(m_destRect))); |
423 } | 422 } |
424 | 423 |
425 } // namespace blink | 424 } // namespace blink |
OLD | NEW |