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

Side by Side Diff: third_party/WebKit/Source/web/PageWidgetDelegate.cpp

Issue 2671853003: [SPInvalidation] Use GeometryMapper in PaintLayerClipper for paint. (Closed)
Patch Set: none Created 3 years, 10 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 | « third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp ('k') | 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // not be used within Blink paint code. 76 // not be used within Blink paint code.
77 float scaleFactor = page.deviceScaleFactor(); 77 float scaleFactor = page.deviceScaleFactor();
78 paintContext.setDeviceScaleFactor(scaleFactor); 78 paintContext.setDeviceScaleFactor(scaleFactor);
79 79
80 AffineTransform scale; 80 AffineTransform scale;
81 scale.scale(scaleFactor); 81 scale.scale(scaleFactor);
82 TransformRecorder scaleRecorder(paintContext, pictureBuilder, scale); 82 TransformRecorder scaleRecorder(paintContext, pictureBuilder, scale);
83 83
84 IntRect dirtyRect(rect); 84 IntRect dirtyRect(rect);
85 FrameView* view = root.view(); 85 FrameView* view = root.view();
86 view->updateAllLifecyclePhasesExceptPaint();
chrishtr 2017/02/12 19:24:34 Fixed this bug in patch set 15. This call site hap
86 if (view) { 87 if (view) {
87 ClipRecorder clipRecorder(paintContext, pictureBuilder, 88 ClipRecorder clipRecorder(paintContext, pictureBuilder,
88 DisplayItem::kPageWidgetDelegateClip, 89 DisplayItem::kPageWidgetDelegateClip,
89 dirtyRect); 90 dirtyRect);
90 view->paint(paintContext, globalPaintFlags, CullRect(dirtyRect)); 91 view->paint(paintContext, globalPaintFlags, CullRect(dirtyRect));
91 } else { 92 } else {
92 DrawingRecorder drawingRecorder( 93 DrawingRecorder drawingRecorder(
93 paintContext, pictureBuilder, 94 paintContext, pictureBuilder,
94 DisplayItem::kPageWidgetDelegateBackgroundFallback, dirtyRect); 95 DisplayItem::kPageWidgetDelegateBackgroundFallback, dirtyRect);
95 paintContext.fillRect(dirtyRect, Color::white); 96 paintContext.fillRect(dirtyRect, Color::white);
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 const WebTouchEvent& event, 268 const WebTouchEvent& event,
268 const std::vector<const WebInputEvent*>& coalescedEvents) { 269 const std::vector<const WebInputEvent*>& coalescedEvents) {
269 WebTouchEvent transformedEvent = 270 WebTouchEvent transformedEvent =
270 TransformWebTouchEvent(mainFrame.view(), event); 271 TransformWebTouchEvent(mainFrame.view(), event);
271 return mainFrame.eventHandler().handleTouchEvent( 272 return mainFrame.eventHandler().handleTouchEvent(
272 transformedEvent, 273 transformedEvent,
273 TransformWebTouchEventVector(mainFrame.view(), coalescedEvents)); 274 TransformWebTouchEventVector(mainFrame.view(), coalescedEvents));
274 } 275 }
275 276
276 } // namespace blink 277 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698