Changeset 135189 in webkit
- Timestamp:
- Nov 19, 2012, 1:05:26 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r135188 r135189 1 2012-11-19 Tony Chang <tony@chromium.org> 2 3 Remove 'is' prefix from WebSettings::isWebSecurityEnabled and WebSettings::isSpatialNavigationEnabled 4 https://bugs.webkit.org/show_bug.cgi?id=102548 5 6 Reviewed by Adam Barth. 7 8 This allows us to use Settings.in to generate the code for this. 9 10 I didn't rename any of the WebKit API methods with similar names because that would 11 probably break consumers. It turns out that the getter is only called from 12 Source/WebKit/efl (most of the time, WebPreferences just sets values on Settings). 13 14 No new tests, just a refactor. 15 16 * WebCore.exp.in: Remove symbols that are now inlined. 17 * WebCore.order: Remove symbols that are now inlined. 18 * dom/Document.cpp: 19 (WebCore::Document::initSecurityContext): Rename. 20 * page/Settings.cpp: 21 (WebCore::Settings::Settings): Remove code since it will be generated. 22 * page/Settings.h: 23 (Settings): Remove code since it will be generated. 24 * page/Settings.in: Add entries to be generated. 25 * page/SpatialNavigation.cpp: 26 (WebCore::isSpatialNavigationEnabled): Fix caller. 27 1 28 2012-11-19 Yael Aharon <yael.aharon@intel.com> 2 29 -
trunk/Source/WebCore/WebCore.exp.in
r135179 r135189 940 940 __ZN7WebCore8Settings21setShowRepaintCounterEb 941 941 __ZN7WebCore8Settings21setStandardFontFamilyERKN3WTF12AtomicStringE11UScriptCode 942 __ZN7WebCore8Settings21setWebSecurityEnabledEb943 942 __ZN7WebCore8Settings22setMinDOMTimerIntervalEd 944 943 __ZN7WebCore8Settings22setSansSerifFontFamilyERKN3WTF12AtomicStringE11UScriptCode … … 957 956 __ZN7WebCore8Settings27setJavaEnabledForLocalFilesEb 958 957 __ZN7WebCore8Settings27setLoadsImagesAutomaticallyEb 959 __ZN7WebCore8Settings27setSpatialNavigationEnabledEb960 958 __ZN7WebCore8Settings28setDOMTimerAlignmentIntervalEd 961 959 __ZN7WebCore8Settings29setAuthorAndUserStylesEnabledEb -
trunk/Source/WebCore/WebCore.order
r135009 r135189 1438 1438 __ZN7WebCore8Settings14setJavaEnabledEb 1439 1439 __ZN7WebCore8Settings20setJavaScriptEnabledEb 1440 __ZN7WebCore8Settings21setWebSecurityEnabledEb1441 1440 __ZN7WebCore8Settings18setMinimumFontSizeEi 1442 1441 __ZN7WebCore8Settings25setMinimumLogicalFontSizeEi … … 1469 1468 __ZN7WebCore27applicationIsAdobeInstallerEv 1470 1469 __ZN7WebCoreL19mainBundleIsEqualToERKN3WTF6StringE 1471 __ZN7WebCore8Settings27setSpatialNavigationEnabledEb1472 1470 __ZN7WebCore22applicationIsAppleMailEv 1473 1471 __ZN7WebCore23ApplicationCacheStorage21setDefaultOriginQuotaEx … … 13392 13390 __ZN7WebCore16VisibleSelection9setExtentERKNS_8PositionE 13393 13391 __ZN7WebCore14FrameSelection23modifyExtendingBackwardENS_15TextGranularityE 13394 __ZN7WebCore26isSpatialNavigationEnabledEPKNS_5FrameE13395 13392 __ZN7WebCore14FrameSelection30xPosForVerticalArrowNavigationENS0_13EPositionTypeE 13396 13393 __ZNK7WebCore15VisiblePosition28xOffsetForVerticalNavigationEv -
trunk/Source/WebCore/dom/Document.cpp
r135093 r135189 4623 4623 4624 4624 if (Settings* settings = this->settings()) { 4625 if (!settings-> isWebSecurityEnabled()) {4625 if (!settings->webSecurityEnabled()) { 4626 4626 // Web security is turned off. We should let this document access every other document. This is used primary by testing 4627 4627 // harnesses for web sites. -
trunk/Source/WebCore/page/Settings.cpp
r134960 r135189 146 146 #endif 147 147 SETTINGS_INITIALIZER_LIST 148 , m_isSpatialNavigationEnabled(false)149 148 , m_isJavaEnabled(false) 150 149 , m_isJavaEnabledForLocalFiles(true) … … 155 154 , m_arePluginsEnabled(false) 156 155 , m_isScriptEnabled(false) 157 , m_isWebSecurityEnabled(true)158 156 , m_textAreasAreResizable(false) 159 157 , m_needsAdobeFrameReloadingQuirk(false) … … 402 400 } 403 401 404 void Settings::setWebSecurityEnabled(bool isWebSecurityEnabled)405 {406 m_isWebSecurityEnabled = isWebSecurityEnabled;407 }408 409 void Settings::setSpatialNavigationEnabled(bool isSpatialNavigationEnabled)410 {411 m_isSpatialNavigationEnabled = isSpatialNavigationEnabled;412 }413 414 402 void Settings::setJavaEnabled(bool isJavaEnabled) 415 403 { -
trunk/Source/WebCore/page/Settings.h
r134828 r135189 141 141 bool isScriptEnabled() const { return m_isScriptEnabled; } 142 142 143 void setWebSecurityEnabled(bool);144 bool isWebSecurityEnabled() const { return m_isWebSecurityEnabled; }145 146 143 SETTINGS_GETTERS_AND_SETTERS 147 148 void setSpatialNavigationEnabled(bool);149 bool isSpatialNavigationEnabled() const { return m_isSpatialNavigationEnabled; }150 144 151 145 void setJavaEnabled(bool); … … 338 332 SETTINGS_MEMBER_VARIABLES 339 333 340 bool m_isSpatialNavigationEnabled : 1;341 334 bool m_isJavaEnabled : 1; 342 335 bool m_isJavaEnabledForLocalFiles : 1; … … 347 340 bool m_arePluginsEnabled : 1; 348 341 bool m_isScriptEnabled : 1; 349 bool m_isWebSecurityEnabled : 1;350 342 bool m_textAreasAreResizable : 1; 351 343 bool m_needsAdobeFrameReloadingQuirk : 1; -
trunk/Source/WebCore/page/Settings.in
r134878 r135189 157 157 158 158 allowCustomScrollbarInMainFrame initial=true 159 webSecurityEnabled initial=true 160 spatialNavigationEnabled initial=false -
trunk/Source/WebCore/page/SpatialNavigation.cpp
r128006 r135189 93 93 bool isSpatialNavigationEnabled(const Frame* frame) 94 94 { 95 return (frame && frame->settings() && frame->settings()-> isSpatialNavigationEnabled());95 return (frame && frame->settings() && frame->settings()->spatialNavigationEnabled()); 96 96 } 97 97 -
trunk/Source/WebKit/efl/ChangeLog
r134932 r135189 1 2012-11-19 Tony Chang <tony@chromium.org> 2 3 Remove 'is' prefix from WebSettings::isWebSecurityEnabled and WebSettings::isSpatialNavigationEnabled 4 https://bugs.webkit.org/show_bug.cgi?id=102548 5 6 Reviewed by Adam Barth. 7 8 Rename call to WebCore::Settings. 9 10 * ewk/ewk_view.cpp: 11 (_ewk_view_priv_new): 12 1 13 2012-11-16 Sheriff Bot <webkit.review.bot@gmail.com> 2 14 -
trunk/Source/WebKit/efl/ewk/ewk_view.cpp
r134765 r135189 890 890 priv->settings.privateBrowsing = priv->pageSettings->privateBrowsingEnabled(); 891 891 priv->settings.caretBrowsing = priv->pageSettings->caretBrowsingEnabled(); 892 priv->settings.spatialNavigation = priv->pageSettings-> isSpatialNavigationEnabled();892 priv->settings.spatialNavigation = priv->pageSettings->spatialNavigationEnabled(); 893 893 priv->settings.localStorage = priv->pageSettings->localStorageEnabled(); 894 894 priv->settings.offlineAppCache = true; // XXX no function to read setting; this keeps the original setting
Note:
See TracChangeset
for help on using the changeset viewer.