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

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

Issue 1511003003: Use refs for non-null GraphicsContext, Scrollbar, etc. in scrollbar related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarRemove
Patch Set: yet another mac fix Created 5 years 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 451
452 AffineTransform transform; 452 AffineTransform transform;
453 #if OS(POSIX) && !OS(MACOSX) 453 #if OS(POSIX) && !OS(MACOSX)
454 transform.scale(scale); 454 transform.scale(scale);
455 #endif 455 #endif
456 transform.translate(static_cast<float>(-pageRect.x()), static_cast<float >(-pageRect.y())); 456 transform.translate(static_cast<float>(-pageRect.x()), static_cast<float >(-pageRect.y()));
457 TransformRecorder transformRecorder(context, *this, transform); 457 TransformRecorder transformRecorder(context, *this, transform);
458 458
459 ClipRecorder clipRecorder(context, *this, DisplayItem::ClipPrintedPage, LayoutRect(pageRect)); 459 ClipRecorder clipRecorder(context, *this, DisplayItem::ClipPrintedPage, LayoutRect(pageRect));
460 460
461 frame()->view()->paintContents(&context, GlobalPaintNormalPhase, pageRec t); 461 frame()->view()->paintContents(context, GlobalPaintNormalPhase, pageRect );
462 462
463 { 463 {
464 DrawingRecorder lineBoundaryRecorder(context, *this, DisplayItem::Pr intedContentDestinationLocations, pageRect); 464 DrawingRecorder lineBoundaryRecorder(context, *this, DisplayItem::Pr intedContentDestinationLocations, pageRect);
465 outputLinkedDestinations(context, pageRect); 465 outputLinkedDestinations(context, pageRect);
466 } 466 }
467 467
468 return scale; 468 return scale;
469 } 469 }
470 470
471 private: 471 private:
(...skipping 1776 matching lines...) Expand 10 before | Expand all | Expand 10 after
2248 } 2248 }
2249 2249
2250 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const 2250 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const
2251 { 2251 {
2252 if (!frame()) 2252 if (!frame())
2253 return WebSandboxFlags::None; 2253 return WebSandboxFlags::None;
2254 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( )); 2254 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( ));
2255 } 2255 }
2256 2256
2257 } // namespace blink 2257 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/PageWidgetDelegate.cpp ('k') | third_party/WebKit/Source/web/WebPluginContainerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698