OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |