| 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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 ASSERT_NOT_REACHED(); | 529 ASSERT_NOT_REACHED(); |
| 530 } | 530 } |
| 531 | 531 |
| 532 protected: | 532 protected: |
| 533 // Spools the printed page, a subrect of frame(). Skip the scale step. | 533 // Spools the printed page, a subrect of frame(). Skip the scale step. |
| 534 // NativeTheme doesn't play well with scaling. Scaling is done browser side | 534 // NativeTheme doesn't play well with scaling. Scaling is done browser side |
| 535 // instead. Returns the scale to be applied. | 535 // instead. Returns the scale to be applied. |
| 536 float spoolPage(GraphicsContext& context, int pageNumber) override | 536 float spoolPage(GraphicsContext& context, int pageNumber) override |
| 537 { | 537 { |
| 538 IntRect pageRect = m_pageRects[pageNumber]; | 538 IntRect pageRect = m_pageRects[pageNumber]; |
| 539 m_plugin->printPage(pageNumber, &context, pageRect); | 539 m_plugin->printPage(pageNumber, context, pageRect); |
| 540 | 540 |
| 541 return 1.0; | 541 return 1.0; |
| 542 } | 542 } |
| 543 | 543 |
| 544 private: | 544 private: |
| 545 // Set when printing. | 545 // Set when printing. |
| 546 RawPtrWillBeMember<WebPluginContainerImpl> m_plugin; | 546 RawPtrWillBeMember<WebPluginContainerImpl> m_plugin; |
| 547 WebPrintParams m_printParams; | 547 WebPrintParams m_printParams; |
| 548 }; | 548 }; |
| 549 | 549 |
| (...skipping 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2260 } | 2260 } |
| 2261 | 2261 |
| 2262 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const | 2262 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const |
| 2263 { | 2263 { |
| 2264 if (!frame()) | 2264 if (!frame()) |
| 2265 return WebSandboxFlags::None; | 2265 return WebSandboxFlags::None; |
| 2266 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); | 2266 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); |
| 2267 } | 2267 } |
| 2268 | 2268 |
| 2269 } // namespace blink | 2269 } // namespace blink |
| OLD | NEW |