Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp

Issue 2180433002: Remove a pointless assert that fails with overflowed values (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698