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

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

Issue 566373002: Use ConstructFromLiteral instead of implicit conversion (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Two more fixes Created 6 years, 3 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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 FrameLoader& loader = frame->loader(); 419 FrameLoader& loader = frame->loader();
420 loader.forceSandboxFlags(SandboxAll); 420 loader.forceSandboxFlags(SandboxAll);
421 421
422 frame->view()->setScrollbarsSuppressed(true); 422 frame->view()->setScrollbarsSuppressed(true);
423 frame->view()->setCanHaveScrollbars(false); // SVG Images will always sy nthesize a viewBox, if it's not available, and thus never see scrollbars. 423 frame->view()->setCanHaveScrollbars(false); // SVG Images will always sy nthesize a viewBox, if it's not available, and thus never see scrollbars.
424 frame->view()->setTransparent(true); // SVG Images are transparent. 424 frame->view()->setTransparent(true); // SVG Images are transparent.
425 425
426 m_page = page.release(); 426 m_page = page.release();
427 427
428 TRACE_EVENT0("blink", "SVGImage::dataChanged::load"); 428 TRACE_EVENT0("blink", "SVGImage::dataChanged::load");
429 loader.load(FrameLoadRequest(0, blankURL(), SubstituteData(data(), "imag e/svg+xml", "UTF-8", KURL(), ForceSynchronousLoad))); 429 loader.load(FrameLoadRequest(0, blankURL(), SubstituteData(data(), Atomi cString("image/svg+xml", AtomicString::ConstructFromLiteral),
430 AtomicString("UTF-8", AtomicString::ConstructFromLiteral), KURL(), F orceSynchronousLoad)));
430 // Set the intrinsic size before a container size is available. 431 // Set the intrinsic size before a container size is available.
431 m_intrinsicSize = containerSize(); 432 m_intrinsicSize = containerSize();
432 } 433 }
433 434
434 return m_page; 435 return m_page;
435 } 436 }
436 437
437 String SVGImage::filenameExtension() const 438 String SVGImage::filenameExtension() const
438 { 439 {
439 return "svg"; 440 return "svg";
440 } 441 }
441 442
442 } 443 }
OLDNEW
« no previous file with comments | « Source/core/svg/animation/SVGSMILElement.cpp ('k') | Source/platform/exported/linux/WebFontInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698