CSSStyleValue* FilteredComputedStylePropertyMap::get( const String& propertyName, ExceptionState& exceptionState) { CSSPropertyID propertyID = cssPropertyID(propertyName); if (propertyID >= firstCSSProperty && m_nativeProperties.contains(propertyID)) { CSSStyleValueVector styleVector = getAllInternal(propertyID); if (styleVector.isEmpty()) return nullptr; return styleVector[0]; } if (propertyID == CSSPropertyVariable && m_customProperties.contains(AtomicString(propertyName))) { CSSStyleValueVector styleVector = getAllInternal(AtomicString(propertyName)); if (styleVector.isEmpty()) return nullptr; return styleVector[0]; } exceptionState.throwTypeError("Invalid propertyName: " + propertyName); return nullptr; }
bool FilteredComputedStylePropertyMap::has(const String& propertyName, ExceptionState& exceptionState) { CSSPropertyID propertyID = cssPropertyID(propertyName); if (propertyID >= firstCSSProperty && m_nativeProperties.contains(propertyID)) return !getAllInternal(propertyID).isEmpty(); if (propertyID == CSSPropertyVariable && m_customProperties.contains(AtomicString(propertyName))) return !getAllInternal(AtomicString(propertyName)).isEmpty(); exceptionState.throwTypeError("Invalid propertyName: " + propertyName); return false; }
IDBRequest* IDBIndex::getAllKeys(ScriptState* scriptState, const ScriptValue& range, uint32_t maxCount, ExceptionState& exceptionState) { IDB_TRACE("IDBIndex::getAllKeys"); return getAllInternal(scriptState, range, maxCount, exceptionState, true /* keyOnly */); }
IDBRequest* IDBIndex::getAll(ScriptState* scriptState, const ScriptValue& range, unsigned long maxCount, ExceptionState& exceptionState) { IDB_TRACE("IDBIndex::getAll"); return getAllInternal(scriptState, range, maxCount, exceptionState, false); }