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

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

Issue 103533011: Revert 161821 "Remove 'FAST_MOBILE_SCROLLING'" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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 | « 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 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 BackgroundImageGeometry& geometry, RenderObject* backgroundObject) 1000 BackgroundImageGeometry& geometry, RenderObject* backgroundObject)
1001 { 1001 {
1002 LayoutUnit left = 0; 1002 LayoutUnit left = 0;
1003 LayoutUnit top = 0; 1003 LayoutUnit top = 0;
1004 IntSize positioningAreaSize; 1004 IntSize positioningAreaSize;
1005 IntRect snappedPaintRect = pixelSnappedIntRect(paintRect); 1005 IntRect snappedPaintRect = pixelSnappedIntRect(paintRect);
1006 1006
1007 // Determine the background positioning area and set destRect to the backgro und painting area. 1007 // Determine the background positioning area and set destRect to the backgro und painting area.
1008 // destRect will be adjusted later if the background is non-repeating. 1008 // destRect will be adjusted later if the background is non-repeating.
1009 bool fixedAttachment = fillLayer->attachment() == FixedBackgroundAttachment; 1009 bool fixedAttachment = fillLayer->attachment() == FixedBackgroundAttachment;
1010
1011 #if ENABLE(FAST_MOBILE_SCROLLING)
1012 if (view()->frameView() && view()->frameView()->canBlitOnScroll()) {
1013 // As a side effect of an optimization to blit on scroll, we do not hono r the CSS
1014 // property "background-attachment: fixed" because it may result in rend ering
1015 // artifacts. Note, these artifacts only appear if we are blitting on sc roll of
1016 // a page that has fixed background images.
1017 fixedAttachment = false;
1018 }
1019 #endif
1020
1010 if (!fixedAttachment) { 1021 if (!fixedAttachment) {
1011 geometry.setDestRect(snappedPaintRect); 1022 geometry.setDestRect(snappedPaintRect);
1012 1023
1013 LayoutUnit right = 0; 1024 LayoutUnit right = 0;
1014 LayoutUnit bottom = 0; 1025 LayoutUnit bottom = 0;
1015 // Scroll and Local. 1026 // Scroll and Local.
1016 if (fillLayer->origin() != BorderFillBox) { 1027 if (fillLayer->origin() != BorderFillBox) {
1017 left = borderLeft(); 1028 left = borderLeft();
1018 right = borderRight(); 1029 right = borderRight();
1019 top = borderTop(); 1030 top = borderTop();
(...skipping 1790 matching lines...) Expand 10 before | Expand all | Expand 10 after
2810 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent()); 2821 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent());
2811 for (RenderObject* child = startChild; child && child != endChild; ) { 2822 for (RenderObject* child = startChild; child && child != endChild; ) {
2812 // Save our next sibling as moveChildTo will clear it. 2823 // Save our next sibling as moveChildTo will clear it.
2813 RenderObject* nextSibling = child->nextSibling(); 2824 RenderObject* nextSibling = child->nextSibling();
2814 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert); 2825 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert);
2815 child = nextSibling; 2826 child = nextSibling;
2816 } 2827 }
2817 } 2828 }
2818 2829
2819 } // namespace WebCore 2830 } // 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