Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 |
| OLD | NEW |