Changeset 94946 in webkit
- Timestamp:
- Sep 11, 2011 10:46:44 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r94945 r94946 1 2011-09-11 Kentaro Hara <haraken@google.com> 2 3 Implement a ProgressEvent constructor for V8 4 https://bugs.webkit.org/show_bug.cgi?id=67800 5 6 Reviewed by Sam Weinig. 7 8 Enabled fast/events/constructors/progress-event-constructor.html 9 10 * platform/chromium/test_expectations.txt: 11 1 12 2011-09-11 Fumitoshi Ukai <ukai@chromium.org> 2 13 -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r94945 r94946 514 514 // There's a missing glyph box in "full-time". 515 515 BUGCR20547 WIN : fast/text/capitalize-boundaries.html = FAIL 516 517 // This will soon be fixed after implementing a ProgressEvent constructor for V8.518 BUGWK67537 : fast/events/constructors/progress-event-constructor.html = FAIL519 516 520 517 // Different button line-heights, our behavior looks wrong. -
trunk/Source/WebCore/ChangeLog
r94938 r94946 1 2011-09-11 Kentaro Hara <haraken@google.com> 2 3 Implement a ProgressEvent constructor for V8 4 https://bugs.webkit.org/show_bug.cgi?id=67800 5 6 Reviewed by Sam Weinig. 7 8 Test: fast/events/constructors/progress-event-constructor.html 9 10 * bindings/js/JSDictionary.cpp: 11 (WebCore::JSDictionary::convertValue): Replaced UnsignedLongLongMax with std::numeric_limits<unsigned long long>::max(). 12 * bindings/v8/OptionsObject.cpp: 13 (WebCore::OptionsObject::getKeyValue): Returns an unsigned long long value corresponding to a given key. Spec: http://www.w3.org/TR/WebIDL/#es-unsigned-long-long 14 * bindings/v8/OptionsObject.h: 15 * bindings/v8/custom/V8EventConstructors.cpp: Added the ProgressEvent constructor. 16 * dom/ProgressEvent.idl: Added a 'V8CustomConstructor' attribute. 17 1 18 2011-09-11 Dimitri Glazkov <dglazkov@chromium.org> 2 19 -
trunk/Source/WebCore/bindings/js/JSDictionary.cpp
r94771 r94946 37 37 38 38 namespace WebCore { 39 40 static const double UnsignedLongLongMax = 18446744073709551616.0; // 2^6441 39 42 40 JSDictionary::GetPropertyResult JSDictionary::tryGetProperty(const char* propertyName, JSValue& finalResult) … … 84 82 result = 0; 85 83 else 86 result = static_cast<unsigned long long>(fmod(trunc(d), UnsignedLongLongMax));84 result = static_cast<unsigned long long>(fmod(trunc(d), std::numeric_limits<unsigned long long>::max() + 1.0)); 87 85 } 88 86 -
trunk/Source/WebCore/bindings/v8/OptionsObject.cpp
r94424 r94946 181 181 } 182 182 183 bool OptionsObject::getKeyValue(const String& key, unsigned long long& value) const 184 { 185 v8::Local<v8::Value> v8Value; 186 if (!getKey(key, v8Value)) 187 return false; 188 189 v8::Local<v8::Number> v8Number = v8Value->ToNumber(); 190 if (v8Number.IsEmpty()) 191 return false; 192 double d = v8Number->Value(); 193 if (isnan(d) || isinf(d)) 194 value = 0; 195 else 196 value = static_cast<unsigned long long>(fmod(trunc(d), std::numeric_limits<unsigned long long>::max() + 1.0)); 197 return true; 198 } 199 183 200 } // namespace WebCore -
trunk/Source/WebCore/bindings/v8/OptionsObject.h
r94480 r94946 78 78 return true; 79 79 } 80 bool getKeyValue(const String& key, unsigned long long& value) const; 80 81 81 82 private: -
trunk/Source/WebCore/bindings/v8/custom/V8EventConstructors.cpp
r94480 r94946 36 36 #include "DocumentFragment.h" 37 37 #include "Node.h" 38 #include "ProgressEvent.h" 38 39 39 40 #include "OptionsObject.h" … … 44 45 #include "V8Event.h" 45 46 #include "V8Node.h" 47 #include "V8ProgressEvent.h" 46 48 #include "V8Proxy.h" 47 49 … … 100 102 INSTANTIATE_INITIALIZING_CONSTRUCTOR_FOR_EVENT(DICTIONARY_START, DICTIONARY_END, FILL_PARENT_PROPERTIES, FILL_PROPERTY) 101 103 INSTANTIATE_INITIALIZING_CONSTRUCTOR_FOR_CUSTOM_EVENT(DICTIONARY_START, DICTIONARY_END, FILL_PARENT_PROPERTIES, FILL_PROPERTY) 104 INSTANTIATE_INITIALIZING_CONSTRUCTOR_FOR_PROGRESS_EVENT(DICTIONARY_START, DICTIONARY_END, FILL_PARENT_PROPERTIES, FILL_PROPERTY) 102 105 103 106 -
trunk/Source/WebCore/dom/ProgressEvent.idl
r94771 r94946 28 28 interface [ 29 29 CanBeConstructed, 30 CustomConstructFunction 30 CustomConstructFunction, 31 V8CustomConstructor 31 32 ] ProgressEvent : Event { 32 33 readonly attribute boolean lengthComputable;
Note: See TracChangeset
for help on using the changeset viewer.