Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp

Issue 1830883002: Add blink::ServiceRegistry and expose it from LocalFrame and Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 page->settings().setMinimumFontSize(defaultSettings.minimumFontS ize()); 508 page->settings().setMinimumFontSize(defaultSettings.minimumFontS ize());
509 page->settings().setMinimumLogicalFontSize(defaultSettings.minim umLogicalFontSize()); 509 page->settings().setMinimumLogicalFontSize(defaultSettings.minim umLogicalFontSize());
510 page->settings().setDefaultFontSize(defaultSettings.defaultFontS ize()); 510 page->settings().setDefaultFontSize(defaultSettings.defaultFontS ize());
511 page->settings().setDefaultFixedFontSize(defaultSettings.default FixedFontSize()); 511 page->settings().setDefaultFixedFontSize(defaultSettings.default FixedFontSize());
512 } 512 }
513 } 513 }
514 514
515 RefPtrWillBeRawPtr<LocalFrame> frame = nullptr; 515 RefPtrWillBeRawPtr<LocalFrame> frame = nullptr;
516 { 516 {
517 TRACE_EVENT0("blink", "SVGImage::dataChanged::createFrame"); 517 TRACE_EVENT0("blink", "SVGImage::dataChanged::createFrame");
518 frame = LocalFrame::create(dummyFrameLoaderClient.get(), &page->fram eHost(), 0); 518 frame = LocalFrame::create(dummyFrameLoaderClient.get(), &page->fram eHost(), 0, nullptr);
519 frame->setView(FrameView::create(frame.get())); 519 frame->setView(FrameView::create(frame.get()));
520 frame->init(); 520 frame->init();
521 } 521 }
522 522
523 FrameLoader& loader = frame->loader(); 523 FrameLoader& loader = frame->loader();
524 loader.forceSandboxFlags(SandboxAll); 524 loader.forceSandboxFlags(SandboxAll);
525 525
526 frame->view()->setScrollbarsSuppressed(true); 526 frame->view()->setScrollbarsSuppressed(true);
527 frame->view()->setCanHaveScrollbars(false); // SVG Images will always sy nthesize a viewBox, if it's not available, and thus never see scrollbars. 527 frame->view()->setCanHaveScrollbars(false); // SVG Images will always sy nthesize a viewBox, if it's not available, and thus never see scrollbars.
528 frame->view()->setTransparent(true); // SVG Images are transparent. 528 frame->view()->setTransparent(true); // SVG Images are transparent.
(...skipping 10 matching lines...) Expand all
539 539
540 return m_page; 540 return m_page;
541 } 541 }
542 542
543 String SVGImage::filenameExtension() const 543 String SVGImage::filenameExtension() const
544 { 544 {
545 return "svg"; 545 return "svg";
546 } 546 }
547 547
548 } // namespace blink 548 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698