Changeset 200215 in webkit
- Timestamp:
- Apr 28, 2016 4:13:59 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r200214 r200215 1 2016-04-28 Manuel Rego Casasnovas <rego@igalia.com> 2 3 [css-grid] Add CSS Grid Layout runtime flag 4 https://bugs.webkit.org/show_bug.cgi?id=157134 5 6 Reviewed by Simon Fraser. 7 8 Add test to verify that CSS Grid Layout is disabled if the flag is off. 9 10 * fast/css-grid-layout/grid-disable-expected.txt: Added. 11 * fast/css-grid-layout/grid-disable.html: Added. 12 1 13 2016-04-28 Chris Fleizach <cfleizach@apple.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r200214 r200215 1 2016-04-28 Manuel Rego Casasnovas <rego@igalia.com> 2 3 [css-grid] Add CSS Grid Layout runtime flag 4 https://bugs.webkit.org/show_bug.cgi?id=157134 5 6 Reviewed by Simon Fraser. 7 8 Add CSS Grid Layout runtime flag enabled by default. 9 Disable parsing of CSS Grid Layout properties 10 if the runtime flag is not enabled. 11 Expose runtime flag through internals to verify that 12 it's working as expected. 13 14 Test: fast/css-grid-layout/grid-disable.html 15 16 * bindings/generic/RuntimeEnabledFeatures.cpp: 17 (WebCore::RuntimeEnabledFeatures::RuntimeEnabledFeatures): 18 * bindings/generic/RuntimeEnabledFeatures.h: 19 (WebCore::RuntimeEnabledFeatures::setCSSGridLayoutEnabled): 20 (WebCore::RuntimeEnabledFeatures::isCSSGridLayoutEnabled): 21 * css/CSSParser.cpp: 22 (WebCore::CSSParserContext::CSSParserContext): 23 (WebCore::operator==): 24 (WebCore::isValidKeywordPropertyAndValue): 25 (WebCore::CSSParser::parseValue): 26 (WebCore::CSSParser::parseIntegerOrCustomIdentFromGridPosition): 27 (WebCore::CSSParser::parseGridPosition): 28 (WebCore::CSSParser::parseGridItemPositionShorthand): 29 (WebCore::CSSParser::parseGridGapShorthand): 30 (WebCore::CSSParser::parseGridTemplateColumns): 31 (WebCore::CSSParser::parseGridTemplateRowsAndAreasAndColumns): 32 (WebCore::CSSParser::parseGridTemplateShorthand): 33 (WebCore::CSSParser::parseGridShorthand): 34 (WebCore::CSSParser::parseGridAreaShorthand): 35 (WebCore::CSSParser::parseSingleGridAreaLonghand): 36 (WebCore::CSSParser::parseGridLineNames): 37 (WebCore::CSSParser::parseGridTrackList): 38 (WebCore::CSSParser::parseGridTrackRepeatFunction): 39 (WebCore::CSSParser::parseGridTrackSize): 40 (WebCore::CSSParser::parseGridBreadth): 41 (WebCore::CSSParser::parseGridAutoFlow): 42 (WebCore::CSSParser::parseGridTemplateAreasRow): 43 (WebCore::CSSParser::parseGridTemplateAreas): 44 (WebCore::CSSParser::iscSSGridLayoutEnabled): 45 * css/CSSParser.h: 46 * css/CSSParserMode.h: 47 * dom/Document.cpp: 48 (WebCore::Document::isCSSGridLayoutEnabled): 49 * dom/Document.h: 50 * testing/Internals.cpp: 51 (WebCore::Internals::setCSSGridLayoutEnabled): 52 * testing/Internals.h: 53 * testing/Internals.idl: 54 1 55 2016-04-28 Chris Fleizach <cfleizach@apple.com> 2 56 -
trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp
r199779 r200215 114 114 , m_areWebAnimationsEnabled(false) 115 115 #endif 116 #if ENABLE(CSS_GRID_LAYOUT) 117 , m_cssGridLayoutEnabled(true) 118 #endif 116 119 { 117 120 } -
trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h
r199779 r200215 242 242 #endif 243 243 244 #if ENABLE(CSS_GRID_LAYOUT) 245 void setCSSGridLayoutEnabled(bool isEnabled) { m_cssGridLayoutEnabled = isEnabled; } 246 bool isCSSGridLayoutEnabled() const { return m_cssGridLayoutEnabled; } 247 #endif 248 244 249 WEBCORE_EXPORT static RuntimeEnabledFeatures& sharedFeatures(); 245 250 … … 355 360 #endif 356 361 362 #if ENABLE(CSS_GRID_LAYOUT) 363 bool m_cssGridLayoutEnabled; 364 #endif 365 357 366 friend class WTF::NeverDestroyed<RuntimeEnabledFeatures>; 358 367 }; -
trunk/Source/WebCore/css/CSSParser.cpp
r200043 r200215 249 249 , isCSSRegionsEnabled(RuntimeEnabledFeatures::sharedFeatures().cssRegionsEnabled()) 250 250 , isCSSCompositingEnabled(RuntimeEnabledFeatures::sharedFeatures().cssCompositingEnabled()) 251 #if ENABLE(CSS_GRID_LAYOUT) 252 , cssGridLayoutEnabled(RuntimeEnabledFeatures::sharedFeatures().isCSSGridLayoutEnabled()) 253 #endif 251 254 , needsSiteSpecificQuirks(false) 252 255 , enforcesCSSMIMETypeInNoQuirksMode(true) … … 268 271 , isCSSRegionsEnabled(document.cssRegionsEnabled()) 269 272 , isCSSCompositingEnabled(document.cssCompositingEnabled()) 273 #if ENABLE(CSS_GRID_LAYOUT) 274 , cssGridLayoutEnabled(document.isCSSGridLayoutEnabled()) 275 #endif 270 276 , needsSiteSpecificQuirks(document.settings() ? document.settings()->needsSiteSpecificQuirks() : false) 271 277 , enforcesCSSMIMETypeInNoQuirksMode(!document.settings() || document.settings()->enforceCSSMIMETypeInNoQuirksMode()) … … 288 294 && a.isCSSRegionsEnabled == b.isCSSRegionsEnabled 289 295 && a.isCSSCompositingEnabled == b.isCSSCompositingEnabled 296 #if ENABLE(CSS_GRID_LAYOUT) 297 && a.cssGridLayoutEnabled == b.cssGridLayoutEnabled 298 #endif 290 299 && a.needsSiteSpecificQuirks == b.needsSiteSpecificQuirks 291 300 && a.enforcesCSSMIMETypeInNoQuirksMode == b.enforcesCSSMIMETypeInNoQuirksMode … … 675 684 return true; 676 685 #if ENABLE(CSS_GRID_LAYOUT) 677 if ( valueID == CSSValueWebkitGrid || valueID == CSSValueWebkitInlineGrid)686 if (parserContext.cssGridLayoutEnabled && (valueID == CSSValueWebkitGrid || valueID == CSSValueWebkitInlineGrid)) 678 687 return true; 679 688 #endif … … 2790 2799 case CSSPropertyWebkitGridAutoColumns: 2791 2800 case CSSPropertyWebkitGridAutoRows: 2801 if (!isCSSGridLayoutEnabled()) 2802 return false; 2792 2803 parsedValue = parseGridTrackSize(*m_valueList); 2793 2804 break; … … 2795 2806 case CSSPropertyWebkitGridTemplateColumns: 2796 2807 case CSSPropertyWebkitGridTemplateRows: 2808 if (!isCSSGridLayoutEnabled()) 2809 return false; 2797 2810 parsedValue = parseGridTrackList(); 2798 2811 break; … … 2802 2815 case CSSPropertyWebkitGridRowStart: 2803 2816 case CSSPropertyWebkitGridRowEnd: 2817 if (!isCSSGridLayoutEnabled()) 2818 return false; 2804 2819 parsedValue = parseGridPosition(); 2805 2820 break; … … 2807 2822 case CSSPropertyWebkitGridColumnGap: 2808 2823 case CSSPropertyWebkitGridRowGap: 2824 if (!isCSSGridLayoutEnabled()) 2825 return false; 2809 2826 validPrimitive = validateUnit(valueWithCalculation, FLength | FNonNeg); 2810 2827 break; 2811 2828 2812 2829 case CSSPropertyWebkitGridGap: 2830 if (!isCSSGridLayoutEnabled()) 2831 return false; 2813 2832 return parseGridGapShorthand(important); 2814 2833 2815 2834 case CSSPropertyWebkitGridColumn: 2816 case CSSPropertyWebkitGridRow: { 2835 case CSSPropertyWebkitGridRow: 2836 if (!isCSSGridLayoutEnabled()) 2837 return false; 2817 2838 return parseGridItemPositionShorthand(propId, important); 2818 }2819 2839 2820 2840 case CSSPropertyWebkitGridTemplate: 2841 if (!isCSSGridLayoutEnabled()) 2842 return false; 2821 2843 return parseGridTemplateShorthand(important); 2822 2844 2823 2845 case CSSPropertyWebkitGrid: 2846 if (!isCSSGridLayoutEnabled()) 2847 return false; 2824 2848 return parseGridShorthand(important); 2825 2849 2826 2850 case CSSPropertyWebkitGridArea: 2851 if (!isCSSGridLayoutEnabled()) 2852 return false; 2827 2853 return parseGridAreaShorthand(important); 2828 2854 2829 2855 case CSSPropertyWebkitGridTemplateAreas: 2856 if (!isCSSGridLayoutEnabled()) 2857 return false; 2830 2858 parsedValue = parseGridTemplateAreas(); 2831 2859 break; 2832 2860 case CSSPropertyWebkitGridAutoFlow: 2861 if (!isCSSGridLayoutEnabled()) 2862 return false; 2833 2863 parsedValue = parseGridAutoFlow(*m_valueList); 2834 2864 break; … … 5423 5453 bool CSSParser::parseIntegerOrCustomIdentFromGridPosition(RefPtr<CSSPrimitiveValue>& numericValue, RefPtr<CSSPrimitiveValue>& gridLineName) 5424 5454 { 5455 ASSERT(isCSSGridLayoutEnabled()); 5456 5425 5457 ValueWithCalculation valueWithCalculation(*m_valueList->current()); 5426 5458 if (validateUnit(valueWithCalculation, FInteger) && valueWithCalculation.value().fValue) { … … 5451 5483 RefPtr<CSSValue> CSSParser::parseGridPosition() 5452 5484 { 5485 ASSERT(isCSSGridLayoutEnabled()); 5486 5453 5487 CSSParserValue* value = m_valueList->current(); 5454 5488 if (value->id == CSSValueAuto) { … … 5513 5547 bool CSSParser::parseGridItemPositionShorthand(CSSPropertyID shorthandId, bool important) 5514 5548 { 5549 ASSERT(isCSSGridLayoutEnabled()); 5550 5515 5551 ShorthandScope scope(this, shorthandId); 5516 5552 const StylePropertyShorthand& shorthand = shorthandForProperty(shorthandId); … … 5542 5578 bool CSSParser::parseGridGapShorthand(bool important) 5543 5579 { 5580 ASSERT(isCSSGridLayoutEnabled()); 5581 5544 5582 ShorthandScope scope(this, CSSPropertyWebkitGridGap); 5545 5583 ASSERT(shorthandForProperty(CSSPropertyWebkitGridGap).length() == 2); … … 5579 5617 RefPtr<CSSValue> CSSParser::parseGridTemplateColumns() 5580 5618 { 5619 ASSERT(isCSSGridLayoutEnabled()); 5620 5581 5621 if (!(m_valueList->current() && isForwardSlashOperator(*m_valueList->current()) && m_valueList->next())) 5582 5622 return nullptr; … … 5592 5632 bool CSSParser::parseGridTemplateRowsAndAreasAndColumns(bool important) 5593 5633 { 5634 ASSERT(isCSSGridLayoutEnabled()); 5635 5594 5636 // At least template-areas strings must be defined. 5595 5637 if (!m_valueList->current() || isForwardSlashOperator(*m_valueList->current())) … … 5655 5697 bool CSSParser::parseGridTemplateShorthand(bool important) 5656 5698 { 5699 ASSERT(isCSSGridLayoutEnabled()); 5700 5657 5701 ShorthandScope scope(this, CSSPropertyWebkitGridTemplate); 5658 5702 ASSERT(shorthandForProperty(CSSPropertyWebkitGridTemplate).length() == 3); … … 5699 5743 bool CSSParser::parseGridShorthand(bool important) 5700 5744 { 5745 ASSERT(isCSSGridLayoutEnabled()); 5746 5701 5747 ShorthandScope scope(this, CSSPropertyWebkitGrid); 5702 5748 ASSERT(shorthandForProperty(CSSPropertyWebkitGrid).length() == 8); … … 5763 5809 bool CSSParser::parseGridAreaShorthand(bool important) 5764 5810 { 5811 ASSERT(isCSSGridLayoutEnabled()); 5812 5765 5813 ShorthandScope scope(this, CSSPropertyWebkitGridArea); 5766 5814 ASSERT(shorthandForProperty(CSSPropertyWebkitGridArea).length() == 4); … … 5800 5848 bool CSSParser::parseSingleGridAreaLonghand(RefPtr<CSSValue>& property) 5801 5849 { 5850 ASSERT(isCSSGridLayoutEnabled()); 5851 5802 5852 if (!m_valueList->current()) 5803 5853 return true; … … 5815 5865 bool CSSParser::parseGridLineNames(CSSParserValueList& inputList, CSSValueList& valueList, CSSGridLineNamesValue* previousNamedAreaTrailingLineNames) 5816 5866 { 5867 ASSERT(isCSSGridLayoutEnabled()); 5817 5868 ASSERT(inputList.current() && inputList.current()->unit == CSSParserValue::ValueList); 5818 5869 … … 5866 5917 RefPtr<CSSValue> CSSParser::parseGridTrackList() 5867 5918 { 5919 ASSERT(isCSSGridLayoutEnabled()); 5920 5868 5921 CSSParserValue* value = m_valueList->current(); 5869 5922 if (value->id == CSSValueNone) { … … 5917 5970 bool CSSParser::parseGridTrackRepeatFunction(CSSValueList& list, bool& isAutoRepeat) 5918 5971 { 5972 ASSERT(isCSSGridLayoutEnabled()); 5973 5919 5974 CSSParserValueList* arguments = m_valueList->current()->function->args.get(); 5920 5975 if (!arguments || arguments->size() < 3 || !isComma(arguments->valueAt(1))) … … 5980 6035 RefPtr<CSSValue> CSSParser::parseGridTrackSize(CSSParserValueList& inputList, TrackSizeRestriction restriction) 5981 6036 { 6037 ASSERT(isCSSGridLayoutEnabled()); 6038 5982 6039 CSSParserValue& currentValue = *inputList.current(); 5983 6040 inputList.next(); … … 6011 6068 RefPtr<CSSPrimitiveValue> CSSParser::parseGridBreadth(CSSParserValue& value, TrackSizeRestriction restriction) 6012 6069 { 6070 ASSERT(isCSSGridLayoutEnabled()); 6071 6013 6072 if (value.id == CSSValueWebkitMinContent || value.id == CSSValueWebkitMaxContent || value.id == CSSValueAuto) { 6014 6073 if (restriction == FixedSizeOnly) … … 6044 6103 RefPtr<CSSValue> CSSParser::parseGridAutoFlow(CSSParserValueList& inputList) 6045 6104 { 6105 ASSERT(isCSSGridLayoutEnabled()); 6106 6046 6107 // [ row | column ] || dense 6047 6108 CSSParserValue* value = inputList.current(); … … 6264 6325 bool CSSParser::parseGridTemplateAreasRow(NamedGridAreaMap& gridAreaMap, const unsigned rowCount, unsigned& columnCount) 6265 6326 { 6327 ASSERT(isCSSGridLayoutEnabled()); 6328 6266 6329 CSSParserValue* currentValue = m_valueList->current(); 6267 6330 if (!currentValue || currentValue->unit != CSSPrimitiveValue::CSS_STRING) … … 6325 6388 RefPtr<CSSValue> CSSParser::parseGridTemplateAreas() 6326 6389 { 6390 ASSERT(isCSSGridLayoutEnabled()); 6391 6327 6392 if (m_valueList->current() && m_valueList->current()->id == CSSValueNone) { 6328 6393 m_valueList->next(); … … 10213 10278 } 10214 10279 10280 #if ENABLE(CSS_GRID_LAYOUT) 10281 bool CSSParser::isCSSGridLayoutEnabled() const 10282 { 10283 return m_context.cssGridLayoutEnabled; 10284 } 10285 #endif 10286 10215 10287 #if ENABLE(CSS_REGIONS) 10216 10288 -
trunk/Source/WebCore/css/CSSParser.h
r199343 r200215 209 209 210 210 #if ENABLE(CSS_GRID_LAYOUT) 211 bool isCSSGridLayoutEnabled() const; 211 212 RefPtr<CSSValue> parseGridPosition(); 212 213 bool parseGridItemPositionShorthand(CSSPropertyID, bool important); -
trunk/Source/WebCore/css/CSSParserMode.h
r181209 r200215 67 67 bool isCSSRegionsEnabled; 68 68 bool isCSSCompositingEnabled; 69 #if ENABLE(CSS_GRID_LAYOUT) 70 bool cssGridLayoutEnabled; 71 #endif 69 72 bool needsSiteSpecificQuirks; 70 73 bool enforcesCSSMIMETypeInNoQuirksMode; -
trunk/Source/WebCore/dom/Document.cpp
r200098 r200215 1139 1139 } 1140 1140 1141 #if ENABLE(CSS_GRID_LAYOUT) 1142 bool Document::isCSSGridLayoutEnabled() const 1143 { 1144 return RuntimeEnabledFeatures::sharedFeatures().isCSSGridLayoutEnabled(); 1145 } 1146 #endif 1147 1141 1148 #if ENABLE(CSS_REGIONS) 1142 1149 -
trunk/Source/WebCore/dom/Document.h
r200098 r200215 395 395 bool cssRegionsEnabled() const; 396 396 bool cssCompositingEnabled() const; 397 #if ENABLE(CSS_GRID_LAYOUT) 398 bool isCSSGridLayoutEnabled() const; 399 #endif 397 400 #if ENABLE(CSS_REGIONS) 398 401 RefPtr<DOMNamedFlowCollection> webkitGetNamedFlows(); -
trunk/Source/WebCore/testing/Internals.cpp
r200037 r200215 3319 3319 } 3320 3320 3321 } 3321 #if ENABLE(CSS_GRID_LAYOUT) 3322 void Internals::setCSSGridLayoutEnabled(bool enable) 3323 { 3324 RuntimeEnabledFeatures::sharedFeatures().setCSSGridLayoutEnabled(enable); 3325 } 3326 #endif 3327 3328 } -
trunk/Source/WebCore/testing/Internals.h
r200087 r200215 470 470 void setLinkPreloadSupport(bool); 471 471 472 #if ENABLE(CSS_GRID_LAYOUT) 473 void setCSSGridLayoutEnabled(bool); 474 #endif 475 472 476 private: 473 477 explicit Internals(Document&); -
trunk/Source/WebCore/testing/Internals.idl
r200087 r200215 447 447 void setViewportForceAlwaysUserScalable(boolean scalable); 448 448 void setLinkPreloadSupport(boolean scalable); 449 }; 449 450 #if defined(ENABLE_CSS_GRID_LAYOUT) && ENABLE_CSS_GRID_LAYOUT 451 void setCSSGridLayoutEnabled(boolean enable); 452 #endif 453 454 }; -
trunk/Source/WebKit/mac/ChangeLog
r200211 r200215 1 2016-04-28 Manuel Rego Casasnovas <rego@igalia.com> 2 3 [css-grid] Add CSS Grid Layout runtime flag 4 https://bugs.webkit.org/show_bug.cgi?id=157134 5 6 Reviewed by Simon Fraser. 7 8 Add CSS Grid Layout runtime flag based on preferences, 9 enabled by default. 10 11 * WebView/WebPreferenceKeysPrivate.h: 12 * WebView/WebPreferences.mm: 13 (+[WebPreferences initialize]): 14 (-[WebPreferences isCSSGridLayoutEnabled]): 15 (-[WebPreferences setCSSGridLayoutEnabled:]): 16 * WebView/WebPreferencesPrivate.h: 17 * WebView/WebView.mm: 18 (-[WebView _preferencesChanged:]): 19 1 20 2016-04-28 Daniel Bates <dabates@apple.com> 2 21 -
trunk/Source/WebKit/mac/WebView/WebPreferenceKeysPrivate.h
r199571 r200215 165 165 #define WebKitFetchAPIEnabledPreferenceKey @"WebKitFetchAPIEnabled" 166 166 #define WebKitDownloadAttributeEnabledPreferenceKey @"WebKitDownloadAttributeEnabled" 167 #define WebKitCSSGridLayoutEnabledPreferenceKey @"WebKitCSSGridLayoutEnabled" 167 168 168 169 #if !TARGET_OS_IPHONE -
trunk/Source/WebKit/mac/WebView/WebPreferences.mm
r199571 r200215 620 620 [NSNumber numberWithBool:NO], WebKitDownloadAttributeEnabledPreferenceKey, 621 621 #endif 622 #if ENABLE(CSS_GRID_LAYOUT) 623 [NSNumber numberWithBool:YES], WebKitCSSGridLayoutEnabledPreferenceKey, 624 #endif 622 625 nil]; 623 626 … … 2740 2743 } 2741 2744 2745 - (BOOL)isCSSGridLayoutEnabled 2746 { 2747 return [self _boolValueForKey:WebKitCSSGridLayoutEnabledPreferenceKey]; 2748 } 2749 2750 - (void)setCSSGridLayoutEnabled:(BOOL)flag 2751 { 2752 [self _setBoolValue:flag forKey:WebKitCSSGridLayoutEnabledPreferenceKey]; 2753 } 2754 2742 2755 @end 2743 2756 -
trunk/Source/WebKit/mac/WebView/WebPreferencesPrivate.h
r199571 r200215 491 491 - (BOOL)downloadAttributeEnabled; 492 492 493 - (void)setCSSGridLayoutEnabled:(BOOL)flag; 494 - (BOOL)isCSSGridLayoutEnabled; 495 493 496 @property (nonatomic) BOOL javaScriptMarkupEnabled; 494 497 @property (nonatomic) BOOL mediaDataLoadsAutomatically; -
trunk/Source/WebKit/mac/WebView/WebView.mm
r200130 r200215 2494 2494 #endif 2495 2495 2496 #if ENABLE(CSS_GRID_LAYOUT) 2497 RuntimeEnabledFeatures::sharedFeatures().setCSSGridLayoutEnabled([preferences isCSSGridLayoutEnabled]); 2498 #endif 2499 2496 2500 NSTimeInterval timeout = [preferences incrementalRenderingSuppressionTimeoutInSeconds]; 2497 2501 if (timeout > 0) -
trunk/Source/WebKit2/ChangeLog
r200201 r200215 1 2016-04-28 Manuel Rego Casasnovas <rego@igalia.com> 2 3 [css-grid] Add CSS Grid Layout runtime flag 4 https://bugs.webkit.org/show_bug.cgi?id=157134 5 6 Reviewed by Simon Fraser. 7 8 Add CSS Grid Layout runtime flag based on preferences, 9 enabled by default. 10 11 * Shared/WebPreferencesDefinitions.h: 12 * UIProcess/API/C/WKPreferences.cpp: 13 (WKPreferencesSetCSSGridLayoutEnabled): 14 (WKPreferencesGetCSSGridLayoutEnabled): 15 * UIProcess/API/C/WKPreferencesRefPrivate.h: 16 * WebProcess/InjectedBundle/InjectedBundle.cpp: 17 (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): 18 * WebProcess/WebPage/WebPage.cpp: 19 (WebKit::WebPage::updatePreferences): 20 1 21 2016-04-28 Daniel Bates <dabates@apple.com> 2 22 -
trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h
r200116 r200215 282 282 macro(ExperimentalShadowDOMEnabled, experimentalShadowDOMEnabled, Bool, bool, false, "Shadow DOM", "Support for the Shadow DOM feature") \ 283 283 macro(ExperimentalWebGL2Enabled, experimentalWebGL2Enabled, Bool, bool, false, "WebGL 2.0", "Prototype WebGL 2 Support") \ 284 macro(CSSGridLayoutEnabled, cssGridLayoutEnabled, Bool, bool, true, "", "") \ 284 285 \ 285 286 -
trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp
r200193 r200215 1541 1541 return toImpl(preferencesRef)->downloadAttributeEnabled(); 1542 1542 } 1543 1544 void WKPreferencesSetCSSGridLayoutEnabled(WKPreferencesRef preferencesRef, bool flag) 1545 { 1546 toImpl(preferencesRef)->setCSSGridLayoutEnabled(flag); 1547 } 1548 1549 bool WKPreferencesGetCSSGridLayoutEnabled(WKPreferencesRef preferencesRef) 1550 { 1551 return toImpl(preferencesRef)->cssGridLayoutEnabled(); 1552 } -
trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesRefPrivate.h
r199571 r200215 432 432 WK_EXPORT bool WKPreferencesGetDownloadAttributeEnabled(WKPreferencesRef); 433 433 434 // Defaults to true 435 WK_EXPORT void WKPreferencesSetCSSGridLayoutEnabled(WKPreferencesRef, bool flag); 436 WK_EXPORT bool WKPreferencesGetCSSGridLayoutEnabled(WKPreferencesRef); 437 434 438 #ifdef __cplusplus 435 439 } -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
r199571 r200215 218 218 RuntimeEnabledFeatures::sharedFeatures().setDownloadAttributeEnabled(enabled); 219 219 #endif 220 220 221 #if ENABLE(CSS_GRID_LAYOUT) 222 if (preference == "WebKitCSSGridLayoutEnabled") 223 RuntimeEnabledFeatures::sharedFeatures().setCSSGridLayoutEnabled(enabled); 224 #endif 225 221 226 // Map the names used in LayoutTests with the names used in WebCore::Settings and WebPreferencesStore. 222 227 #define FOR_EACH_OVERRIDE_BOOL_PREFERENCE(macro) \ -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r200116 r200215 3119 3119 #endif 3120 3120 3121 #if ENABLE(CSS_GRID_LAYOUT) 3122 RuntimeEnabledFeatures::sharedFeatures().setCSSGridLayoutEnabled(store.getBoolValueForKey(WebPreferencesKey::cssGridLayoutEnabledKey())); 3123 #endif 3124 3121 3125 bool processSuppressionEnabled = store.getBoolValueForKey(WebPreferencesKey::pageVisibilityBasedProcessSuppressionEnabledKey()); 3122 3126 if (m_processSuppressionEnabled != processSuppressionEnabled) {
Note: See TracChangeset
for help on using the changeset viewer.