| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> |
| 3 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. |
| 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 page->settings().setMinimumFontSize(defaultSettings.minimumFontS
ize()); | 505 page->settings().setMinimumFontSize(defaultSettings.minimumFontS
ize()); |
| 506 page->settings().setMinimumLogicalFontSize(defaultSettings.minim
umLogicalFontSize()); | 506 page->settings().setMinimumLogicalFontSize(defaultSettings.minim
umLogicalFontSize()); |
| 507 page->settings().setDefaultFontSize(defaultSettings.defaultFontS
ize()); | 507 page->settings().setDefaultFontSize(defaultSettings.defaultFontS
ize()); |
| 508 page->settings().setDefaultFixedFontSize(defaultSettings.default
FixedFontSize()); | 508 page->settings().setDefaultFixedFontSize(defaultSettings.default
FixedFontSize()); |
| 509 } | 509 } |
| 510 } | 510 } |
| 511 | 511 |
| 512 RefPtrWillBeRawPtr<LocalFrame> frame = nullptr; | 512 RefPtrWillBeRawPtr<LocalFrame> frame = nullptr; |
| 513 { | 513 { |
| 514 TRACE_EVENT0("blink", "SVGImage::dataChanged::createFrame"); | 514 TRACE_EVENT0("blink", "SVGImage::dataChanged::createFrame"); |
| 515 frame = LocalFrame::create(dummyFrameLoaderClient.get(), &page->fram
eHost(), 0); | 515 frame = LocalFrame::create(dummyFrameLoaderClient.get(), &page->fram
eHost(), 0, nullptr); |
| 516 frame->setView(FrameView::create(frame.get())); | 516 frame->setView(FrameView::create(frame.get())); |
| 517 frame->init(); | 517 frame->init(); |
| 518 } | 518 } |
| 519 | 519 |
| 520 FrameLoader& loader = frame->loader(); | 520 FrameLoader& loader = frame->loader(); |
| 521 loader.forceSandboxFlags(SandboxAll); | 521 loader.forceSandboxFlags(SandboxAll); |
| 522 | 522 |
| 523 frame->view()->setScrollbarsSuppressed(true); | 523 frame->view()->setScrollbarsSuppressed(true); |
| 524 frame->view()->setCanHaveScrollbars(false); // SVG Images will always sy
nthesize a viewBox, if it's not available, and thus never see scrollbars. | 524 frame->view()->setCanHaveScrollbars(false); // SVG Images will always sy
nthesize a viewBox, if it's not available, and thus never see scrollbars. |
| 525 frame->view()->setTransparent(true); // SVG Images are transparent. | 525 frame->view()->setTransparent(true); // SVG Images are transparent. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 536 | 536 |
| 537 return m_page; | 537 return m_page; |
| 538 } | 538 } |
| 539 | 539 |
| 540 String SVGImage::filenameExtension() const | 540 String SVGImage::filenameExtension() const |
| 541 { | 541 { |
| 542 return "svg"; | 542 return "svg"; |
| 543 } | 543 } |
| 544 | 544 |
| 545 } // namespace blink | 545 } // namespace blink |
| OLD | NEW |