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

Side by Side Diff: Source/core/page/Settings.cpp

Issue 66383005: Remove the concept of user stylesheets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix WebFrameCSSCallbackTest tests Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/Settings.h ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserv ed.
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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 349
350 // See comment in setLoadsImagesAutomatically. 350 // See comment in setLoadsImagesAutomatically.
351 m_setImageLoadingSettingsTimer.startOneShot(0); 351 m_setImageLoadingSettingsTimer.startOneShot(0);
352 } 352 }
353 353
354 void Settings::setPluginsEnabled(bool arePluginsEnabled) 354 void Settings::setPluginsEnabled(bool arePluginsEnabled)
355 { 355 {
356 m_arePluginsEnabled = arePluginsEnabled; 356 m_arePluginsEnabled = arePluginsEnabled;
357 } 357 }
358 358
359 void Settings::setUserStyleSheetLocation(const KURL& userStyleSheetLocation)
360 {
361 if (m_userStyleSheetLocation == userStyleSheetLocation)
362 return;
363
364 m_userStyleSheetLocation = userStyleSheetLocation;
365
366 m_page->userStyleSheetLocationChanged();
367 }
368
369 void Settings::setDNSPrefetchingEnabled(bool dnsPrefetchingEnabled) 359 void Settings::setDNSPrefetchingEnabled(bool dnsPrefetchingEnabled)
370 { 360 {
371 if (m_dnsPrefetchingEnabled == dnsPrefetchingEnabled) 361 if (m_dnsPrefetchingEnabled == dnsPrefetchingEnabled)
372 return; 362 return;
373 363
374 m_dnsPrefetchingEnabled = dnsPrefetchingEnabled; 364 m_dnsPrefetchingEnabled = dnsPrefetchingEnabled;
375 m_page->dnsPrefetchingStateChanged(); 365 m_page->dnsPrefetchingStateChanged();
376 } 366 }
377 367
378 void Settings::setMockScrollbarsEnabled(bool flag) 368 void Settings::setMockScrollbarsEnabled(bool flag)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 if (m_page->mainFrame()) 401 if (m_page->mainFrame())
412 m_page->mainFrame()->document()->updateViewportDescription(); 402 m_page->mainFrame()->document()->updateViewportDescription();
413 } 403 }
414 404
415 void Settings::setViewportMetaEnabled(bool enabled) 405 void Settings::setViewportMetaEnabled(bool enabled)
416 { 406 {
417 m_viewportMetaEnabled = enabled; 407 m_viewportMetaEnabled = enabled;
418 } 408 }
419 409
420 } // namespace WebCore 410 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/Settings.h ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698