| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 { | 72 { |
| 73 GraphicsContext& paintContext = builder.context(); | 73 GraphicsContext& paintContext = builder.context(); |
| 74 | 74 |
| 75 // FIXME: device scale factor settings are layering violations and should | 75 // FIXME: device scale factor settings are layering violations and should |
| 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, builder, scale); | 82 TransformRecorder scaleRecorder( |
| 83 paintContext, scale, builder.visualRect(), builder.debugName(), |
| 84 builder.paintedOutputOfObjectHasNoEffectRegardlessOfSize()); |
| 83 | 85 |
| 84 IntRect dirtyRect(rect); | 86 IntRect dirtyRect(rect); |
| 85 FrameView* view = root.view(); | 87 FrameView* view = root.view(); |
| 86 view->updateAllLifecyclePhasesExceptPaint(); | 88 view->updateAllLifecyclePhasesExceptPaint(); |
| 87 if (view) { | 89 if (view) { |
| 88 ClipRecorder clipRecorder(paintContext, builder, | 90 ClipRecorder clipRecorder(paintContext, builder, |
| 89 DisplayItem::kPageWidgetDelegateClip, | 91 DisplayItem::kPageWidgetDelegateClip, |
| 90 dirtyRect); | 92 dirtyRect); |
| 91 view->paint(paintContext, globalPaintFlags, CullRect(dirtyRect)); | 93 view->paint(paintContext, globalPaintFlags, CullRect(dirtyRect)); |
| 92 } else { | 94 } else { |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 const WebTouchEvent& event, | 270 const WebTouchEvent& event, |
| 269 const std::vector<const WebInputEvent*>& coalescedEvents) { | 271 const std::vector<const WebInputEvent*>& coalescedEvents) { |
| 270 WebTouchEvent transformedEvent = | 272 WebTouchEvent transformedEvent = |
| 271 TransformWebTouchEvent(mainFrame.view(), event); | 273 TransformWebTouchEvent(mainFrame.view(), event); |
| 272 return mainFrame.eventHandler().handleTouchEvent( | 274 return mainFrame.eventHandler().handleTouchEvent( |
| 273 transformedEvent, | 275 transformedEvent, |
| 274 TransformWebTouchEventVector(mainFrame.view(), coalescedEvents)); | 276 TransformWebTouchEventVector(mainFrame.view(), coalescedEvents)); |
| 275 } | 277 } |
| 276 | 278 |
| 277 } // namespace blink | 279 } // namespace blink |
| OLD | NEW |