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

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

Issue 2713673005: client-goodbye
Patch Set: Created 3 years, 9 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
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/LinkHighlightImpl.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698