| 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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 #endif | 428 #endif |
| 429 TransformRecorder transformRecorder(context, *this, transform); | 429 TransformRecorder transformRecorder(context, *this, transform); |
| 430 spoolPage(context, pageIndex); | 430 spoolPage(context, pageIndex); |
| 431 | 431 |
| 432 currentHeight += pageSizeInPixels.height() + 1; | 432 currentHeight += pageSizeInPixels.height() + 1; |
| 433 } | 433 } |
| 434 pictureBuilder.endRecording()->playback(canvas); | 434 pictureBuilder.endRecording()->playback(canvas); |
| 435 outputLinkedDestinations(canvas, allPagesRect); | 435 outputLinkedDestinations(canvas, allPagesRect); |
| 436 } | 436 } |
| 437 | 437 |
| 438 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi
s); } | 438 DisplayItemClient displayItemClient() const { return DisplayItemClient(this)
; } |
| 439 | 439 |
| 440 String debugName() const { return "ChromePrintContext"; } | 440 String debugName() const { return "ChromePrintContext"; } |
| 441 | 441 |
| 442 protected: | 442 protected: |
| 443 // Spools the printed page, a subrect of frame(). Skip the scale step. | 443 // Spools the printed page, a subrect of frame(). Skip the scale step. |
| 444 // NativeTheme doesn't play well with scaling. Scaling is done browser side | 444 // NativeTheme doesn't play well with scaling. Scaling is done browser side |
| 445 // instead. Returns the scale to be applied. | 445 // instead. Returns the scale to be applied. |
| 446 // On Linux, we don't have the problem with NativeTheme, hence we let WebKit | 446 // On Linux, we don't have the problem with NativeTheme, hence we let WebKit |
| 447 // do the scaling and ignore the return value. | 447 // do the scaling and ignore the return value. |
| 448 virtual float spoolPage(GraphicsContext& context, int pageNumber) | 448 virtual float spoolPage(GraphicsContext& context, int pageNumber) |
| (...skipping 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2219 } | 2219 } |
| 2220 | 2220 |
| 2221 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const | 2221 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const |
| 2222 { | 2222 { |
| 2223 if (!frame()) | 2223 if (!frame()) |
| 2224 return WebSandboxFlags::None; | 2224 return WebSandboxFlags::None; |
| 2225 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); | 2225 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); |
| 2226 } | 2226 } |
| 2227 | 2227 |
| 2228 } // namespace blink | 2228 } // namespace blink |
| OLD | NEW |