Changeset 202031 in webkit
- Timestamp:
- Jun 13, 2016, 11:18:32 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r202030 r202031 1 2016-06-13 Gavin & Ellie Barraclough <barraclough@apple.com> 2 3 Remove hasStaticPropertyTable (part 4: JSHTMLDocument & JSStorage) 4 https://bugs.webkit.org/show_bug.cgi?id=158431 5 6 Reviewed by Chris Dumez. 7 8 All uses of hasStaticPropertyTable flag generated by bindings are wrong. 9 10 JSHTMLDocument & JSStorage contain a number of static_asserts claiming that 11 various methods do not support static properties. These asserts were likely 12 correct at the time they were added, as JSObject::getOwnPropertySlot and 13 JSObject::deleteProperty did not support getting / deleting static value. 14 This is no longer the case, and these asserts are now incorrect. 15 16 * bindings/js/JSHTMLDocumentCustom.cpp: 17 (WebCore::JSHTMLDocument::getOwnPropertySlot): 18 * bindings/js/JSStorageCustom.cpp: 19 (WebCore::JSStorage::deleteProperty): 20 (WebCore::JSStorage::deletePropertyByIndex): 21 (WebCore::JSStorage::putDelegate): 22 - remove incorrect static_asserts. 23 1 24 2016-06-13 Gavin & Ellie Barraclough <barraclough@apple.com> 2 25 -
trunk/Source/WebCore/bindings/js/JSHTMLDocumentCustom.cpp
r201129 r202031 90 90 } 91 91 92 static_assert(!hasStaticPropertyTable, "This method does not handle static instance properties");93 94 92 return Base::getOwnPropertySlot(thisObject, exec, propertyName, slot); 95 93 } -
trunk/Source/WebCore/bindings/js/JSStorageCustom.cpp
r198023 r202031 60 60 PropertySlot slot(thisObject, PropertySlot::InternalMethodType::GetOwnProperty); 61 61 62 static_assert(!hasStaticPropertyTable, "This function does not handle static instance properties");63 64 62 JSValue prototype = thisObject->getPrototypeDirect(); 65 63 if (prototype.isObject() && asObject(prototype)->getPropertySlot(exec, propertyName, slot)) … … 77 75 bool JSStorage::deletePropertyByIndex(JSCell* cell, ExecState* exec, unsigned propertyName) 78 76 { 79 static_assert(!hasStaticPropertyTable, "This function does not handle static instance properties");80 77 return deleteProperty(cell, exec, Identifier::from(exec, propertyName)); 81 78 } … … 105 102 // the native property slots manually. 106 103 PropertySlot slot(this, PropertySlot::InternalMethodType::GetOwnProperty); 107 static_assert(!hasStaticPropertyTable, "This function does not handle static instance properties");108 104 109 105 JSValue prototype = this->getPrototypeDirect();
Note:
See TracChangeset
for help on using the changeset viewer.