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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2727223002: Round the subpixel accumulation used for composited scrolling content (Closed)
Patch Set: Merge and fix Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Simon Hausmann <hausmann@kde.org> 5 * 2000 Simon Hausmann <hausmann@kde.org>
6 * 2000 Stefan Schimanski <1Stein@gmx.de> 6 * 2000 Stefan Schimanski <1Stein@gmx.de>
7 * 2001 George Staikos <staikos@kde.org> 7 * 2001 George Staikos <staikos@kde.org>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
9 * rights reserved. 9 * rights reserved.
10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> 10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com>
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 PaintLayer* layer = dragged_layout_object->EnclosingLayer(); 201 PaintLayer* layer = dragged_layout_object->EnclosingLayer();
202 if (!layer->StackingNode()->IsStackingContext()) 202 if (!layer->StackingNode()->IsStackingContext())
203 layer = layer->StackingNode()->AncestorStackingContextNode()->Layer(); 203 layer = layer->StackingNode()->AncestorStackingContextNode()->Layer();
204 IntRect absolute_bounding_box = 204 IntRect absolute_bounding_box =
205 dragged_layout_object->AbsoluteBoundingBoxRectIncludingDescendants(); 205 dragged_layout_object->AbsoluteBoundingBoxRectIncludingDescendants();
206 FloatRect bounding_box = 206 FloatRect bounding_box =
207 layer->GetLayoutObject() 207 layer->GetLayoutObject()
208 .AbsoluteToLocalQuad(FloatQuad(absolute_bounding_box), 208 .AbsoluteToLocalQuad(FloatQuad(absolute_bounding_box),
209 kUseTransforms) 209 kUseTransforms)
210 .BoundingBox(); 210 .BoundingBox();
211 DCHECK(layer->GetCompositingState() != kPaintsIntoOwnBacking ||
212 layer->SubpixelAccumulation().IsZero());
211 PaintLayerPaintingInfo painting_info(layer, LayoutRect(bounding_box), 213 PaintLayerPaintingInfo painting_info(layer, LayoutRect(bounding_box),
212 kGlobalPaintFlattenCompositingLayers, 214 kGlobalPaintFlattenCompositingLayers,
213 LayoutSize()); 215 LayoutSize());
214 PaintLayerFlags flags = kPaintLayerHaveTransparency | 216 PaintLayerFlags flags = kPaintLayerHaveTransparency |
215 kPaintLayerAppliedTransform | 217 kPaintLayerAppliedTransform |
216 kPaintLayerUncachedClipRects; 218 kPaintLayerUncachedClipRects;
217 PaintRecordBuilder builder(DeviceSpaceBounds(bounding_box, *local_frame_)); 219 PaintRecordBuilder builder(DeviceSpaceBounds(bounding_box, *local_frame_));
218 PaintLayerPainter(*layer).Paint(builder.Context(), painting_info, flags); 220 PaintLayerPainter(*layer).Paint(builder.Context(), painting_info, flags);
219 PropertyTreeState border_box_properties = PropertyTreeState::Root(); 221 PropertyTreeState border_box_properties = PropertyTreeState::Root();
220 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { 222 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 if (frame_ && frame_->Client() && frame_->Client()->GetFrameBlameContext()) 948 if (frame_ && frame_->Client() && frame_->Client()->GetFrameBlameContext())
947 frame_->Client()->GetFrameBlameContext()->Enter(); 949 frame_->Client()->GetFrameBlameContext()->Enter();
948 } 950 }
949 951
950 ScopedFrameBlamer::~ScopedFrameBlamer() { 952 ScopedFrameBlamer::~ScopedFrameBlamer() {
951 if (frame_ && frame_->Client() && frame_->Client()->GetFrameBlameContext()) 953 if (frame_ && frame_->Client() && frame_->Client()->GetFrameBlameContext())
952 frame_->Client()->GetFrameBlameContext()->Leave(); 954 frame_->Client()->GetFrameBlameContext()->Leave();
953 } 955 }
954 956
955 } // namespace blink 957 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698