| 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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 page->settings().setDefaultFontSize( | 669 page->settings().setDefaultFontSize( |
| 670 defaultSettings.getDefaultFontSize()); | 670 defaultSettings.getDefaultFontSize()); |
| 671 page->settings().setDefaultFixedFontSize( | 671 page->settings().setDefaultFixedFontSize( |
| 672 defaultSettings.getDefaultFixedFontSize()); | 672 defaultSettings.getDefaultFixedFontSize()); |
| 673 } | 673 } |
| 674 } | 674 } |
| 675 | 675 |
| 676 LocalFrame* frame = nullptr; | 676 LocalFrame* frame = nullptr; |
| 677 { | 677 { |
| 678 TRACE_EVENT0("blink", "SVGImage::dataChanged::createFrame"); | 678 TRACE_EVENT0("blink", "SVGImage::dataChanged::createFrame"); |
| 679 frame = LocalFrame::create(&dummyLocalFrameClient, &page->frameHost(), 0); | 679 frame = LocalFrame::create(&dummyLocalFrameClient, page, 0); |
| 680 frame->setView(FrameView::create(*frame)); | 680 frame->setView(FrameView::create(*frame)); |
| 681 frame->init(); | 681 frame->init(); |
| 682 } | 682 } |
| 683 | 683 |
| 684 FrameLoader& loader = frame->loader(); | 684 FrameLoader& loader = frame->loader(); |
| 685 loader.forceSandboxFlags(SandboxAll); | 685 loader.forceSandboxFlags(SandboxAll); |
| 686 | 686 |
| 687 frame->view()->setScrollbarsSuppressed(true); | 687 frame->view()->setScrollbarsSuppressed(true); |
| 688 // SVG Images will always synthesize a viewBox, if it's not available, and | 688 // SVG Images will always synthesize a viewBox, if it's not available, and |
| 689 // thus never see scrollbars. | 689 // thus never see scrollbars. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 705 } | 705 } |
| 706 | 706 |
| 707 return m_page ? SizeAvailable : SizeUnavailable; | 707 return m_page ? SizeAvailable : SizeUnavailable; |
| 708 } | 708 } |
| 709 | 709 |
| 710 String SVGImage::filenameExtension() const { | 710 String SVGImage::filenameExtension() const { |
| 711 return "svg"; | 711 return "svg"; |
| 712 } | 712 } |
| 713 | 713 |
| 714 } // namespace blink | 714 } // namespace blink |
| OLD | NEW |