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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 DisplayItem::kPageWidgetDelegateClip, | 89 DisplayItem::kPageWidgetDelegateClip, |
90 dirtyRect); | 90 dirtyRect); |
91 view->paint(paintContext, globalPaintFlags, CullRect(dirtyRect)); | 91 view->paint(paintContext, globalPaintFlags, CullRect(dirtyRect)); |
92 } else { | 92 } else { |
93 DrawingRecorder drawingRecorder( | 93 DrawingRecorder drawingRecorder( |
94 paintContext, builder, | 94 paintContext, builder, |
95 DisplayItem::kPageWidgetDelegateBackgroundFallback, dirtyRect); | 95 DisplayItem::kPageWidgetDelegateBackgroundFallback, dirtyRect); |
96 paintContext.fillRect(dirtyRect, Color::white); | 96 paintContext.fillRect(dirtyRect, Color::white); |
97 } | 97 } |
98 } | 98 } |
99 builder.endRecording()->playback(canvas); | 99 |
| 100 canvas->drawPicture(builder.endRecording()); |
100 } | 101 } |
101 | 102 |
102 void PageWidgetDelegate::paint(Page& page, | 103 void PageWidgetDelegate::paint(Page& page, |
103 WebCanvas* canvas, | 104 WebCanvas* canvas, |
104 const WebRect& rect, | 105 const WebRect& rect, |
105 LocalFrame& root) { | 106 LocalFrame& root) { |
106 paintInternal(page, canvas, rect, root, GlobalPaintNormalPhase); | 107 paintInternal(page, canvas, rect, root, GlobalPaintNormalPhase); |
107 } | 108 } |
108 | 109 |
109 void PageWidgetDelegate::paintIgnoringCompositing(Page& page, | 110 void PageWidgetDelegate::paintIgnoringCompositing(Page& page, |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 const WebTouchEvent& event, | 269 const WebTouchEvent& event, |
269 const std::vector<const WebInputEvent*>& coalescedEvents) { | 270 const std::vector<const WebInputEvent*>& coalescedEvents) { |
270 WebTouchEvent transformedEvent = | 271 WebTouchEvent transformedEvent = |
271 TransformWebTouchEvent(mainFrame.view(), event); | 272 TransformWebTouchEvent(mainFrame.view(), event); |
272 return mainFrame.eventHandler().handleTouchEvent( | 273 return mainFrame.eventHandler().handleTouchEvent( |
273 transformedEvent, | 274 transformedEvent, |
274 TransformWebTouchEventVector(mainFrame.view(), coalescedEvents)); | 275 TransformWebTouchEventVector(mainFrame.view(), coalescedEvents)); |
275 } | 276 } |
276 | 277 |
277 } // namespace blink | 278 } // namespace blink |
OLD | NEW |