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

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

Issue 2505543002: Move FrameView timers to WebFrameScheduler. (Closed)
Patch Set: Created 4 years, 1 month 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 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 page->settings().setDefaultFixedFontSize( 582 page->settings().setDefaultFixedFontSize(
583 defaultSettings.defaultFixedFontSize()); 583 defaultSettings.defaultFixedFontSize());
584 } 584 }
585 } 585 }
586 586
587 LocalFrame* frame = nullptr; 587 LocalFrame* frame = nullptr;
588 { 588 {
589 TRACE_EVENT0("blink", "SVGImage::dataChanged::createFrame"); 589 TRACE_EVENT0("blink", "SVGImage::dataChanged::createFrame");
590 frame = 590 frame =
591 LocalFrame::create(&dummyFrameLoaderClient, &page->frameHost(), 0); 591 LocalFrame::create(&dummyFrameLoaderClient, &page->frameHost(), 0);
592 frame->setView(FrameView::create(frame)); 592 frame->setView(FrameView::create(*frame));
593 frame->init(); 593 frame->init();
594 } 594 }
595 595
596 FrameLoader& loader = frame->loader(); 596 FrameLoader& loader = frame->loader();
597 loader.forceSandboxFlags(SandboxAll); 597 loader.forceSandboxFlags(SandboxAll);
598 598
599 frame->view()->setScrollbarsSuppressed(true); 599 frame->view()->setScrollbarsSuppressed(true);
600 // SVG Images will always synthesize a viewBox, if it's not available, and 600 // SVG Images will always synthesize a viewBox, if it's not available, and
601 // thus never see scrollbars. 601 // thus never see scrollbars.
602 frame->view()->setCanHaveScrollbars(false); 602 frame->view()->setCanHaveScrollbars(false);
(...skipping 14 matching lines...) Expand all
617 } 617 }
618 618
619 return m_page ? SizeAvailable : SizeUnavailable; 619 return m_page ? SizeAvailable : SizeUnavailable;
620 } 620 }
621 621
622 String SVGImage::filenameExtension() const { 622 String SVGImage::filenameExtension() const {
623 return "svg"; 623 return "svg";
624 } 624 }
625 625
626 } // namespace blink 626 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698