Changeset 215605 in webkit
- Timestamp:
- Apr 20, 2017, 11:04:20 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 3 deleted
- 14 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/TestExpectations (modified) (1 diff)
-
LayoutTests/fast/css/variables/constants (deleted)
-
LayoutTests/platform/ios-wk2/TestExpectations (modified) (1 diff)
-
Source/WebCore/CMakeLists.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/WebCore.xcodeproj/project.pbxproj (modified) (5 diffs)
-
Source/WebCore/css/CSSValueKeywords.in (modified) (1 diff)
-
Source/WebCore/css/CSSVariableData.cpp (modified) (2 diffs)
-
Source/WebCore/css/parser/CSSVariableParser.cpp (modified) (3 diffs)
-
Source/WebCore/dom/ConstantPropertyMap.cpp (deleted)
-
Source/WebCore/dom/ConstantPropertyMap.h (deleted)
-
Source/WebCore/dom/Document.cpp (modified) (3 diffs)
-
Source/WebCore/dom/Document.h (modified) (5 diffs)
-
Source/WebCore/page/Page.cpp (modified) (2 diffs)
-
Source/WebCore/page/Page.h (modified) (2 diffs)
-
Source/WebCore/style/StyleResolveForDocument.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r215597 r215605 1 2017-04-20 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r215597. 4 https://bugs.webkit.org/show_bug.cgi?id=171102 5 6 Made all tests crash under GuardMalloc (Requested by ap on 7 #webkit). 8 9 Reverted changeset: 10 11 "Expose obscured insets to web content (as "safe area 12 insets")" 13 https://bugs.webkit.org/show_bug.cgi?id=171013 14 http://trac.webkit.org/changeset/215597 15 1 16 2017-04-20 Timothy Horton <timothy_horton@apple.com> 2 17 -
trunk/LayoutTests/TestExpectations
r215597 r215605 35 35 media/controls/ipad [ Skip ] 36 36 fast/text-autosizing [ Skip ] 37 fast/css/variables/constants/ios [ Skip ]38 37 39 38 # window.showModalDialog is only tested in DumpRenderTree on Mac. -
trunk/LayoutTests/platform/ios-wk2/TestExpectations
r215597 r215605 15 15 tiled-drawing/ios [ Pass ] 16 16 editing/selection/character-granularity-rect.html [ Pass ] 17 fast/css/variables/constants/ios [ Pass ]18 17 19 18 fast/media/mq-inverted-colors-live-update.html [ Pass ] -
trunk/Source/WebCore/CMakeLists.txt
r215597 r215605 1454 1454 dom/ComposedTreeIterator.cpp 1455 1455 dom/CompositionEvent.cpp 1456 dom/ConstantPropertyMap.cpp1457 1456 dom/ContainerNode.cpp 1458 1457 dom/ContainerNodeAlgorithms.cpp -
trunk/Source/WebCore/ChangeLog
r215603 r215605 1 2017-04-20 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r215597. 4 https://bugs.webkit.org/show_bug.cgi?id=171102 5 6 Made all tests crash under GuardMalloc (Requested by ap on 7 #webkit). 8 9 Reverted changeset: 10 11 "Expose obscured insets to web content (as "safe area 12 insets")" 13 https://bugs.webkit.org/show_bug.cgi?id=171013 14 http://trac.webkit.org/changeset/215597 15 1 16 2017-04-20 Dean Jackson <dino@apple.com> 2 17 -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r215597 r215605 1259 1259 2D9BF74A1DBFDDFF007A7D99 /* JSMediaKeySessionCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2D9BF7481DBFDDF8007A7D99 /* JSMediaKeySessionCustom.cpp */; }; 1260 1260 2D9F0E1314FF1CBF00BA0FF7 /* linearSRGB.icc in Resources */ = {isa = PBXBuildFile; fileRef = 2D9F0E1214FF1CBF00BA0FF7 /* linearSRGB.icc */; }; 1261 2DAF343C1EA7E0F100382CD3 /* ConstantPropertyMap.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2DAF343A1EA7E0F100382CD3 /* ConstantPropertyMap.cpp */; };1262 2DAF343D1EA7E0F100382CD3 /* ConstantPropertyMap.h in Headers */ = {isa = PBXBuildFile; fileRef = 2DAF343B1EA7E0F100382CD3 /* ConstantPropertyMap.h */; };1263 1261 2DB9C4AA1B3231F40070F27F /* NSEventSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = 2DB9C4A91B3231F40070F27F /* NSEventSPI.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1264 1262 2DC4CF791D2DD98900ECCC94 /* DataDetectorsUISPI.h in Headers */ = {isa = PBXBuildFile; fileRef = 2DC4CF781D2DD98900ECCC94 /* DataDetectorsUISPI.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 8803 8801 2DAAE32C19DCAF6000E002D2 /* MockPageOverlayClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MockPageOverlayClient.cpp; sourceTree = "<group>"; }; 8804 8802 2DAAE32D19DCAF6000E002D2 /* MockPageOverlayClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MockPageOverlayClient.h; sourceTree = "<group>"; }; 8805 2DAF343A1EA7E0F100382CD3 /* ConstantPropertyMap.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ConstantPropertyMap.cpp; sourceTree = "<group>"; };8806 2DAF343B1EA7E0F100382CD3 /* ConstantPropertyMap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ConstantPropertyMap.h; sourceTree = "<group>"; };8807 8803 2DB9C4A91B3231F40070F27F /* NSEventSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NSEventSPI.h; sourceTree = "<group>"; }; 8808 8804 2DC4CF781D2DD98900ECCC94 /* DataDetectorsUISPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DataDetectorsUISPI.h; sourceTree = "<group>"; }; … … 25460 25456 79F2F59F1091939A000D87CB /* CompositionEvent.h */, 25461 25457 79F2F5A01091939A000D87CB /* CompositionEvent.idl */, 25462 2DAF343A1EA7E0F100382CD3 /* ConstantPropertyMap.cpp */,25463 2DAF343B1EA7E0F100382CD3 /* ConstantPropertyMap.h */,25464 25458 A81872140977D3C0005826D9 /* ContainerNode.cpp */, 25465 25459 A81872110977D3C0005826D9 /* ContainerNode.h */, … … 26494 26488 E1C94AF9191303F000D5A893 /* BlobPart.h in Headers */, 26495 26489 7C77C3D11DEE472400A50BFA /* BlobPropertyBag.h in Headers */, 26496 2DAF343D1EA7E0F100382CD3 /* ConstantPropertyMap.h in Headers */,26497 26490 2EDEF1F5121B0EFC00726DB2 /* BlobRegistry.h in Headers */, 26498 26491 2EDEF1F7121B0EFC00726DB2 /* BlobRegistryImpl.h in Headers */, … … 31840 31833 BC17F9660B64EBB8004A65CB /* JSHTMLSelectElementCustom.cpp in Sources */, 31841 31834 9B69D3B81B99100700E3512B /* JSHTMLSlotElement.cpp in Sources */, 31842 2DAF343C1EA7E0F100382CD3 /* ConstantPropertyMap.cpp in Sources */,31843 31835 E446143B0CD689CC00FADA75 /* JSHTMLSourceElement.cpp in Sources */, 31844 31836 9752D38D1413104B003305BD /* JSHTMLSpanElement.cpp in Sources */, -
trunk/Source/WebCore/css/CSSValueKeywords.in
r215597 r215605 845 845 846 846 // 847 // UA Constants848 //849 constant850 851 //852 847 // CSS_PROP_BREAK_BEFORE/AFTER/INSIDE 853 848 // -
trunk/Source/WebCore/css/CSSVariableData.cpp
r215597 r215605 102 102 { 103 103 while (!range.atEnd()) { 104 if (range.peek().functionId() == CSSValueVar || range.peek().functionId() == CSSValueConstant) {104 if (range.peek().functionId() == CSSValueVar) { 105 105 CSSParserTokenRange block = range.consumeBlock(); 106 106 … … 172 172 bool success = true; 173 173 while (!range.atEnd()) { 174 if (range.peek().functionId() == CSSValueVar || range.peek().functionId() == CSSValueConstant)174 if (range.peek().functionId() == CSSValueVar) 175 175 success &= resolveVariableReference(customProperties, range.consumeBlock(), result); 176 176 else -
trunk/Source/WebCore/css/parser/CSSVariableParser.cpp
r215597 r215605 50 50 } 51 51 52 static bool isValidConstantName(const CSSParserToken& token)53 {54 return token.type() == IdentToken;55 }56 57 52 bool isValidVariableReference(CSSParserTokenRange, bool& hasAtApplyRule); 58 bool isValidConstantReference(CSSParserTokenRange, bool& hasAtApplyRule);59 53 60 54 static bool classifyBlock(CSSParserTokenRange range, bool& hasReferences, bool& hasAtApplyRule, bool isTopLevelBlock = true) … … 66 60 if (token.functionId() == CSSValueVar) { 67 61 if (!isValidVariableReference(block, hasAtApplyRule)) 68 return false; // Bail if any references are invalid69 hasReferences = true;70 continue;71 }72 if (token.functionId() == CSSValueConstant) {73 if (!isValidConstantReference(block, hasAtApplyRule))74 62 return false; // Bail if any references are invalid 75 63 hasReferences = true; … … 135 123 } 136 124 137 bool isValidConstantReference(CSSParserTokenRange range, bool& hasAtApplyRule)138 {139 range.consumeWhitespace();140 if (!isValidConstantName(range.consumeIncludingWhitespace()))141 return false;142 if (range.atEnd())143 return true;144 145 if (range.consume().type() != CommaToken)146 return false;147 if (range.atEnd())148 return false;149 150 bool hasReferences = false;151 return classifyBlock(range, hasReferences, hasAtApplyRule);152 }153 154 125 static CSSValueID classifyVariableRange(CSSParserTokenRange range, bool& hasReferences, bool& hasAtApplyRule) 155 126 { -
trunk/Source/WebCore/dom/Document.cpp
r215597 r215605 44 44 #include "CommonVM.h" 45 45 #include "CompositionEvent.h" 46 #include "ConstantPropertyMap.h"47 46 #include "ContentSecurityPolicy.h" 48 47 #include "CookieJar.h" … … 454 453 , m_moduleLoader(std::make_unique<ScriptModuleLoader>(*this)) 455 454 , m_xmlVersion(ASCIILiteral("1.0")) 456 , m_constantPropertyMap(std::make_unique<ConstantPropertyMap>(*this))457 455 , m_documentClasses(documentClasses) 458 456 , m_eventQueue(*this) … … 2053 2051 void Document::fontsNeedUpdate(FontSelector&) 2054 2052 { 2055 invalidateMatchedPropertiesCacheAndForceStyleRecalc();2056 }2057 2058 void Document::invalidateMatchedPropertiesCacheAndForceStyleRecalc()2059 {2060 2053 if (auto* resolver = styleScope().resolverIfExists()) 2061 2054 resolver->invalidateMatchedPropertiesCache(); -
trunk/Source/WebCore/dom/Document.h
r215597 r215605 74 74 class Attr; 75 75 class CDATASection; 76 class CSSCustomPropertyValue;77 76 class CSSFontSelector; 78 77 class CSSStyleDeclaration; … … 85 84 class CharacterData; 86 85 class Comment; 87 class ConstantPropertyMap;88 86 class DOMImplementation; 89 87 class DOMNamedFlowCollection; … … 1209 1207 DocumentSharedObjectPool* sharedObjectPool() { return m_sharedObjectPool.get(); } 1210 1208 1211 void invalidateMatchedPropertiesCacheAndForceStyleRecalc();1212 1213 1209 void didRemoveAllPendingStylesheet(); 1214 1210 void didClearStyleResolver(); … … 1304 1300 void detachFromCachedFrame(CachedFrameBase&); 1305 1301 1306 ConstantPropertyMap& constantProperties() const { return *m_constantPropertyMap; }1307 1308 1302 protected: 1309 1303 enum ConstructionFlags { Synthesized = 1, NonRenderedPlaceholder = 1 << 1 }; … … 1541 1535 1542 1536 DocumentOrderedMap m_imagesByUsemap; 1543 1544 std::unique_ptr<ConstantPropertyMap> m_constantPropertyMap;1545 1537 1546 1538 std::unique_ptr<SelectorQueryCache> m_selectorQueryCache; -
trunk/Source/WebCore/page/Page.cpp
r215597 r215605 30 30 #include "ChromeClient.h" 31 31 #include "ClientRectList.h" 32 #include "ConstantPropertyMap.h"33 32 #include "ContextMenuClient.h" 34 33 #include "ContextMenuController.h" … … 2291 2290 } 2292 2291 2293 void Page::setObscuredInsets(const FloatBoxExtent& insets)2294 {2295 if (m_obscuredInsets == insets)2296 return;2297 2298 m_obscuredInsets = insets;2299 2300 for (Frame* frame = &mainFrame(); frame; frame = frame->tree().traverseNext()) {2301 if (!frame->document())2302 continue;2303 frame->document()->constantProperties().didChangeObscuredInsets();2304 }2305 }2306 2307 2292 #if ENABLE(DATA_INTERACTION) 2308 2293 -
trunk/Source/WebCore/page/Page.h
r215597 r215605 330 330 WEBCORE_EXPORT void setTopContentInset(float); 331 331 332 #if PLATFORM(IOS) 332 333 const FloatBoxExtent& obscuredInsets() const { return m_obscuredInsets; } 333 WEBCORE_EXPORT void setObscuredInsets(const FloatBoxExtent&); 334 335 #if PLATFORM(IOS) 334 void setObscuredInsets(FloatBoxExtent insets) { m_obscuredInsets = insets; } 335 336 336 bool enclosedInScrollableAncestorView() const { return m_enclosedInScrollableAncestorView; } 337 337 void setEnclosedInScrollableAncestorView(bool f) { m_enclosedInScrollableAncestorView = f; } … … 687 687 688 688 float m_topContentInset; 689 690 #if PLATFORM(IOS) 691 // This is only used for history scroll position restoration. 689 692 FloatBoxExtent m_obscuredInsets; 690 691 #if PLATFORM(IOS)692 693 bool m_enclosedInScrollableAncestorView { false }; 693 694 #endif -
trunk/Source/WebCore/style/StyleResolveForDocument.cpp
r215597 r215605 31 31 32 32 #include "CSSFontSelector.h" 33 #include "ConstantPropertyMap.h"34 33 #include "Document.h" 35 34 #include "Frame.h" … … 126 125 documentStyle.fontCascade().update(&const_cast<Document&>(document).fontSelector()); 127 126 128 for (auto& it : document.constantProperties().values())129 documentStyle.setCustomPropertyValue(it.key, makeRef(it.value.get()));130 131 127 return documentStyle; 132 128 }
Note:
See TracChangeset
for help on using the changeset viewer.