OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 Page::PageClients pageClients; | 590 Page::PageClients pageClients; |
591 fillWithEmptyClients(pageClients); | 591 fillWithEmptyClients(pageClients); |
592 ASSERT(!m_overlayChromeClient); | 592 ASSERT(!m_overlayChromeClient); |
593 m_overlayChromeClient = adoptPtr(new InspectorOverlayChromeClient(m_page->ch
rome().client(), this)); | 593 m_overlayChromeClient = adoptPtr(new InspectorOverlayChromeClient(m_page->ch
rome().client(), this)); |
594 pageClients.chromeClient = m_overlayChromeClient.get(); | 594 pageClients.chromeClient = m_overlayChromeClient.get(); |
595 m_overlayPage = adoptPtr(new Page(pageClients)); | 595 m_overlayPage = adoptPtr(new Page(pageClients)); |
596 | 596 |
597 Settings& settings = m_page->settings(); | 597 Settings& settings = m_page->settings(); |
598 Settings& overlaySettings = m_overlayPage->settings(); | 598 Settings& overlaySettings = m_overlayPage->settings(); |
599 | 599 |
600 overlaySettings.setStandardFontFamily(settings.standardFontFamily()); | 600 overlaySettings.genericFontFamilySettings().setStandard(settings.genericFont
FamilySettings().standard()); |
601 overlaySettings.setSerifFontFamily(settings.serifFontFamily()); | 601 overlaySettings.genericFontFamilySettings().setSerif(settings.genericFontFam
ilySettings().serif()); |
602 overlaySettings.setSansSerifFontFamily(settings.sansSerifFontFamily()); | 602 overlaySettings.genericFontFamilySettings().setSansSerif(settings.genericFon
tFamilySettings().sansSerif()); |
603 overlaySettings.setCursiveFontFamily(settings.cursiveFontFamily()); | 603 overlaySettings.genericFontFamilySettings().setCursive(settings.genericFontF
amilySettings().cursive()); |
604 overlaySettings.setFantasyFontFamily(settings.fantasyFontFamily()); | 604 overlaySettings.genericFontFamilySettings().setFantasy(settings.genericFontF
amilySettings().fantasy()); |
605 overlaySettings.setPictographFontFamily(settings.pictographFontFamily()); | 605 overlaySettings.genericFontFamilySettings().setPictograph(settings.genericFo
ntFamilySettings().pictograph()); |
606 overlaySettings.setMinimumFontSize(settings.minimumFontSize()); | 606 overlaySettings.setMinimumFontSize(settings.minimumFontSize()); |
607 overlaySettings.setMinimumLogicalFontSize(settings.minimumLogicalFontSize())
; | 607 overlaySettings.setMinimumLogicalFontSize(settings.minimumLogicalFontSize())
; |
608 overlaySettings.setMediaEnabled(false); | 608 overlaySettings.setMediaEnabled(false); |
609 overlaySettings.setScriptEnabled(true); | 609 overlaySettings.setScriptEnabled(true); |
610 overlaySettings.setPluginsEnabled(false); | 610 overlaySettings.setPluginsEnabled(false); |
611 overlaySettings.setLoadsImagesAutomatically(true); | 611 overlaySettings.setLoadsImagesAutomatically(true); |
612 | 612 |
613 RefPtr<Frame> frame = Frame::create(FrameInit::create(0, m_overlayPage.get()
, dummyFrameLoaderClient)); | 613 RefPtr<Frame> frame = Frame::create(FrameInit::create(0, m_overlayPage.get()
, dummyFrameLoaderClient)); |
614 frame->setView(FrameView::create(frame.get())); | 614 frame->setView(FrameView::create(frame.get())); |
615 frame->init(); | 615 frame->init(); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 m_timer.stop(); | 686 m_timer.stop(); |
687 } | 687 } |
688 | 688 |
689 void InspectorOverlay::startedRecordingProfile() | 689 void InspectorOverlay::startedRecordingProfile() |
690 { | 690 { |
691 if (!m_activeProfilerCount++) | 691 if (!m_activeProfilerCount++) |
692 freePage(); | 692 freePage(); |
693 } | 693 } |
694 | 694 |
695 } // namespace WebCore | 695 } // namespace WebCore |
OLD | NEW |