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