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

Side by Side Diff: Source/core/rendering/RenderBoxModelObject.cpp

Issue 59763011: Remove 'FAST_MOBILE_SCROLLING' (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Remove FAST_MOBILE_SCROLLING altogether Created 7 years, 1 month 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 | « Source/build/features.gypi ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
7 * Copyright (C) 2010 Google Inc. All rights reserved. 7 * Copyright (C) 2010 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 BackgroundImageGeometry& geometry, RenderObject* backgroundObject) 1003 BackgroundImageGeometry& geometry, RenderObject* backgroundObject)
1004 { 1004 {
1005 LayoutUnit left = 0; 1005 LayoutUnit left = 0;
1006 LayoutUnit top = 0; 1006 LayoutUnit top = 0;
1007 IntSize positioningAreaSize; 1007 IntSize positioningAreaSize;
1008 IntRect snappedPaintRect = pixelSnappedIntRect(paintRect); 1008 IntRect snappedPaintRect = pixelSnappedIntRect(paintRect);
1009 1009
1010 // Determine the background positioning area and set destRect to the backgro und painting area. 1010 // Determine the background positioning area and set destRect to the backgro und painting area.
1011 // destRect will be adjusted later if the background is non-repeating. 1011 // destRect will be adjusted later if the background is non-repeating.
1012 bool fixedAttachment = fillLayer->attachment() == FixedBackgroundAttachment; 1012 bool fixedAttachment = fillLayer->attachment() == FixedBackgroundAttachment;
1013
1014 #if ENABLE(FAST_MOBILE_SCROLLING)
1015 if (view()->frameView() && view()->frameView()->canBlitOnScroll()) {
1016 // As a side effect of an optimization to blit on scroll, we do not hono r the CSS
1017 // property "background-attachment: fixed" because it may result in rend ering
1018 // artifacts. Note, these artifacts only appear if we are blitting on sc roll of
1019 // a page that has fixed background images.
1020 fixedAttachment = false;
1021 }
1022 #endif
1023
1024 if (!fixedAttachment) { 1013 if (!fixedAttachment) {
1025 geometry.setDestRect(snappedPaintRect); 1014 geometry.setDestRect(snappedPaintRect);
1026 1015
1027 LayoutUnit right = 0; 1016 LayoutUnit right = 0;
1028 LayoutUnit bottom = 0; 1017 LayoutUnit bottom = 0;
1029 // Scroll and Local. 1018 // Scroll and Local.
1030 if (fillLayer->origin() != BorderFillBox) { 1019 if (fillLayer->origin() != BorderFillBox) {
1031 left = borderLeft(); 1020 left = borderLeft();
1032 right = borderRight(); 1021 right = borderRight();
1033 top = borderTop(); 1022 top = borderTop();
(...skipping 1790 matching lines...) Expand 10 before | Expand all | Expand 10 after
2824 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent()); 2813 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent());
2825 for (RenderObject* child = startChild; child && child != endChild; ) { 2814 for (RenderObject* child = startChild; child && child != endChild; ) {
2826 // Save our next sibling as moveChildTo will clear it. 2815 // Save our next sibling as moveChildTo will clear it.
2827 RenderObject* nextSibling = child->nextSibling(); 2816 RenderObject* nextSibling = child->nextSibling();
2828 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert); 2817 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert);
2829 child = nextSibling; 2818 child = nextSibling;
2830 } 2819 }
2831 } 2820 }
2832 2821
2833 } // namespace WebCore 2822 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/build/features.gypi ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698