Changeset 218458 in webkit
- Timestamp:
- Jun 17, 2017 3:34:28 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r218451 r218458 1 2017-06-17 Simon Fraser <simon.fraser@apple.com> 2 3 Implement DOMQuad 4 https://bugs.webkit.org/show_bug.cgi?id=163534 5 6 Reviewed by Sam Weinig. 7 8 Implement DOMQuad per https://drafts.fxtf.org/geometry/#DOMQuad. 9 10 * js/dom/global-constructors-attributes-dedicated-worker-expected.txt: 11 * platform/mac/js/dom/global-constructors-attributes-expected.txt: 12 1 13 2017-06-17 Antti Koivisto <antti@apple.com> 2 14 -
trunk/LayoutTests/imported/w3c/ChangeLog
r218446 r218458 1 2017-06-17 Simon Fraser <simon.fraser@apple.com> 2 3 Implement DOMQuad 4 https://bugs.webkit.org/show_bug.cgi?id=163534 5 6 Reviewed by Sam Weinig. 7 8 Implement DOMQuad per https://drafts.fxtf.org/geometry/#DOMQuad. 9 10 * web-platform-tests/css/geometry-1/DOMQuad-001-expected.txt: Tests against an older version 11 of the spec, so some failures. 12 * web-platform-tests/css/geometry-1/DOMQuad-002-expected.txt: All tests pass other than a NaN 13 propagation issue which needs spec clarification. 14 * web-platform-tests/css/geometry-1/structured-serialization-expected.txt: 15 1 16 2017-06-17 Ryosuke Niwa <rniwa@webkit.org> 2 17 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/geometry-1/DOMQuad-001-expected.txt
r216878 r218458 2 2 3 3 4 FAIL testConstructor0: points Can't find variable: DOMQuad 5 FAIL testConstructor0: bounds Can't find variable: DOMQuad6 FAIL testConstructor1 assert_throws: function "function () { new DOMQuad(1); }" threw object "ReferenceError: Can't find variable: DOMQuad" ("ReferenceError") expected object "TypeError" ("TypeError") 7 FAIL testConstructor2 assert_throws: function "function () { new DOMQuad(1, 2); }" threw object "ReferenceError: Can't find variable: DOMQuad" ("ReferenceError") expected object "TypeError" ("TypeError") 8 FAIL testConstructor3 assert_throws: function "function () { new DOMQuad(1, 2, 3); }" threw object "ReferenceError: Can't find variable: DOMQuad" ("ReferenceError") expected object "TypeError" ("TypeError") 9 FAIL testConstructor4 assert_throws: function "function () { new DOMQuad(1, 2, 3, 4); }" threw object "ReferenceError: Can't find variable: DOMQuad" ("ReferenceError") expected object "TypeError" ("TypeError") 10 FAIL testConstructor5: points Can't find variable: DOMQuad11 FAIL testConstructor5: bounds Can't find variable: DOMQuad12 FAIL testConstructor6: points Can't find variable: DOMQuad13 FAIL testConstructor6: bounds Can't find variable: DOMQuad14 FAIL testConstructor7: points Can't find variable: DOMQuad15 FAIL testConstructor7: bounds Can't find variable: DOMQuad16 FAIL testConstructor8: points Can't find variable: DOMQuad 17 FAIL testConstructor8: bounds Can't find variable: DOMQuad18 FAIL testConstructor9: points Can't find variable: DOMQuad 19 FAIL testConstructor9: bounds Can't find variable: DOMQuad20 FAIL testConstructor10: points Can't find variable: DOMQuad 21 FAIL testConstructor10: bounds Can't find variable: DOMQuad22 FAIL testConstructor11: points Can't find variable: DOMQuad 23 FAIL testConstructor11: bounds Can't find variable: DOMQuad24 FAIL testConstructor12: points Can't find variable: DOMQuad 25 FAIL testConstructor12: bounds Can't find variable: DOMQuad26 FAIL testConstructor13: points Can't find variable: DOMQuad 27 FAIL testConstructor13: bounds Can't find variable: DOMQuad28 FAIL testConstructor14: points Can't find variable: DOMQuad 29 FAIL testConstructor14: bounds Can't find variable: DOMQuad30 FAIL testConstructor15 assert_throws: function "function () { new DOMQuad({}, {}, {}, NaN); }" threw object "ReferenceError: Can't find variable: DOMQuad" ("ReferenceError") expected object "TypeError" ("TypeError") 31 FAIL testConstructor16: points Can't find variable: DOMQuad 32 FAIL testConstructor16: bounds Can't find variable: DOMQuad33 FAIL p1Top4Attributes0: points Can't find variable: DOMQuad 34 FAIL p1Top4Attributes0: bounds Can't find variable: DOMQuad35 FAIL p1Top4Attributes1: points Can't find variable: DOMQuad 36 FAIL p1Top4Attributes1: bounds Can't find variable: DOMQuad37 FAIL boundsAttribute0: points Can't find variable: DOMQuad 38 FAIL boundsAttribute0: bounds Can't find variable: DOMQuad39 FAIL boundsAttribute1: points Can't find variable: DOMQuad40 FAIL boundsAttribute1: bounds Can't find variable: DOMQuad4 PASS testConstructor0: points 5 FAIL testConstructor0: bounds undefined is not an object (evaluating 'q.bounds.x') 6 PASS testConstructor1 7 PASS testConstructor2 8 PASS testConstructor3 9 PASS testConstructor4 10 FAIL testConstructor5: points assert_equals: Expected value for p2.x is 110 expected 110 but got 0 11 FAIL testConstructor5: bounds undefined is not an object (evaluating 'q.bounds.x') 12 FAIL testConstructor6: points assert_equals: Expected value for p2.x is -90 expected -90 but got 0 13 FAIL testConstructor6: bounds undefined is not an object (evaluating 'q.bounds.x') 14 FAIL testConstructor7: points assert_equals: Expected value for p2.x is NaN expected NaN but got 0 15 FAIL testConstructor7: bounds undefined is not an object (evaluating 'q.bounds.x') 16 PASS testConstructor8: points 17 FAIL testConstructor8: bounds undefined is not an object (evaluating 'q.bounds.x') 18 PASS testConstructor9: points 19 FAIL testConstructor9: bounds undefined is not an object (evaluating 'q.bounds.x') 20 PASS testConstructor10: points 21 FAIL testConstructor10: bounds undefined is not an object (evaluating 'q.bounds.x') 22 PASS testConstructor11: points 23 FAIL testConstructor11: bounds undefined is not an object (evaluating 'q.bounds.x') 24 PASS testConstructor12: points 25 FAIL testConstructor12: bounds undefined is not an object (evaluating 'q.bounds.x') 26 PASS testConstructor13: points 27 FAIL testConstructor13: bounds undefined is not an object (evaluating 'q.bounds.x') 28 PASS testConstructor14: points 29 FAIL testConstructor14: bounds undefined is not an object (evaluating 'q.bounds.x') 30 PASS testConstructor15 31 PASS testConstructor16: points 32 FAIL testConstructor16: bounds undefined is not an object (evaluating 'q.bounds.x') 33 PASS p1Top4Attributes0: points 34 FAIL p1Top4Attributes0: bounds undefined is not an object (evaluating 'q.bounds.x') 35 PASS p1Top4Attributes1: points 36 FAIL p1Top4Attributes1: bounds undefined is not an object (evaluating 'q.bounds.x') 37 PASS boundsAttribute0: points 38 FAIL boundsAttribute0: bounds assert_equals: Expected value for bounds.x is 0 expected 0 but got 10 39 FAIL boundsAttribute1: points undefined is not an object (evaluating 'q.bounds.x = 10') 40 FAIL boundsAttribute1: bounds undefined is not an object (evaluating 'q.bounds.x = 10') 41 41 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/geometry-1/DOMQuad-002-expected.txt
r216878 r218458 2 2 3 3 4 FAIL test Constructor no args Can't find variable: DOMQuad 5 FAIL test Constructor with one init DOMPoint arg Can't find variable: DOMQuad 6 FAIL test Constructor with two init DOMPoint args Can't find variable: DOMQuad 7 FAIL test Constructor with three init DOMPoint args Can't find variable: DOMQuad 8 FAIL test Constructor with four init DOMPoint args Can't find variable: DOMQuad 9 FAIL test Constructor with one DOMPoint arg Can't find variable: DOMQuad 10 FAIL test Constructor with two DOMPoint args Can't find variable: DOMQuad 11 FAIL test Constructor with three DOMPoint args Can't find variable: DOMQuad 12 FAIL test Constructor with four DOMPoint args Can't find variable: DOMQuad 13 FAIL test Constructor with invaild integer args assert_throws: function "function () { new DOMQuad(1, 2, 3, 4); }" threw object "ReferenceError: Can't find variable: DOMQuad" ("ReferenceError") expected object "TypeError" ("TypeError") 14 FAIL test Constructor with invaild string args assert_throws: function "function () { new DOMQuad("1", "2", "3", "4"); }" threw object "ReferenceError: Can't find variable: DOMQuad" ("ReferenceError") expected object "TypeError" ("TypeError") 15 FAIL test Constructor with NaN assert_throws: function "function () { new DOMQuad({}, {}, {}, NaN); }" threw object "ReferenceError: Can't find variable: DOMQuad" ("ReferenceError") expected object "TypeError" ("TypeError") 16 FAIL test fromRect Can't find variable: DOMQuad 17 FAIL test fromRect with Infinity Can't find variable: DOMQuad 18 FAIL test fromQuad Can't find variable: DOMQuad 19 FAIL test p1, p2, p3, p4 are readonly Can't find variable: DOMQuad 20 FAIL test getBounds Can't find variable: DOMQuad 4 PASS test Constructor no args 5 PASS test Constructor with one init DOMPoint arg 6 PASS test Constructor with two init DOMPoint args 7 PASS test Constructor with three init DOMPoint args 8 PASS test Constructor with four init DOMPoint args 9 PASS test Constructor with one DOMPoint arg 10 PASS test Constructor with two DOMPoint args 11 PASS test Constructor with three DOMPoint args 12 PASS test Constructor with four DOMPoint args 13 PASS test Constructor with invaild integer args 14 PASS test Constructor with invaild string args 15 PASS test Constructor with NaN 16 PASS test fromRect 17 PASS test fromRect with Infinity 18 PASS test fromQuad 19 PASS test p1, p2, p3, p4 are readonly 20 PASS test getBounds 21 21 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/geometry-1/structured-serialization-expected.txt
r216959 r218458 16 16 FAIL DOMRect clone: throwing getters promise_test: Unhandled rejection with value: object "DataCloneError (DOM Exception 25): The object can not be cloned." 17 17 FAIL DOMRect clone: non-initial values promise_test: Unhandled rejection with value: object "DataCloneError (DOM Exception 25): The object can not be cloned." 18 FAIL DOMQuad clone: basic undefined is not a constructor (evaluating 'new self[constr]()')19 FAIL DOMQuad clone: custom property undefined is not a constructor (evaluating 'new self[constr]()')20 FAIL DOMQuad clone: throwing getters undefined is not a constructor (evaluating 'new self[constr]()')21 FAIL DOMQuad clone: non-initial values undefined is not a constructor (evaluating 'new self[constr]')18 FAIL DOMQuad clone: basic promise_test: Unhandled rejection with value: object "DataCloneError (DOM Exception 25): The object can not be cloned." 19 FAIL DOMQuad clone: custom property promise_test: Unhandled rejection with value: object "DataCloneError (DOM Exception 25): The object can not be cloned." 20 FAIL DOMQuad clone: throwing getters promise_test: Unhandled rejection with value: object "DataCloneError (DOM Exception 25): The object can not be cloned." 21 FAIL DOMQuad clone: non-initial values promise_test: Unhandled rejection with value: object "DataCloneError (DOM Exception 25): The object can not be cloned." 22 22 FAIL DOMMatrixReadOnly clone: basic promise_test: Unhandled rejection with value: object "DataCloneError (DOM Exception 25): The object can not be cloned." 23 23 FAIL DOMMatrixReadOnly clone: custom property promise_test: Unhandled rejection with value: object "DataCloneError (DOM Exception 25): The object can not be cloned." -
trunk/LayoutTests/js/dom/global-constructors-attributes-dedicated-worker-expected.txt
r217181 r218458 60 60 PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DOMPointReadOnly').enumerable is false 61 61 PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DOMPointReadOnly').configurable is true 62 PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DOMQuad').value is DOMQuad 63 PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DOMQuad').hasOwnProperty('get') is false 64 PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DOMQuad').hasOwnProperty('set') is false 65 PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DOMQuad').enumerable is false 66 PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DOMQuad').configurable is true 62 67 PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DOMRect').value is DOMRect 63 68 PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DOMRect').hasOwnProperty('get') is false -
trunk/LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt
r217491 r218458 354 354 PASS Object.getOwnPropertyDescriptor(global, 'DOMPointReadOnly').enumerable is false 355 355 PASS Object.getOwnPropertyDescriptor(global, 'DOMPointReadOnly').configurable is true 356 PASS Object.getOwnPropertyDescriptor(global, 'DOMQuad').value is DOMQuad 357 PASS Object.getOwnPropertyDescriptor(global, 'DOMQuad').hasOwnProperty('get') is false 358 PASS Object.getOwnPropertyDescriptor(global, 'DOMQuad').hasOwnProperty('set') is false 359 PASS Object.getOwnPropertyDescriptor(global, 'DOMQuad').enumerable is false 360 PASS Object.getOwnPropertyDescriptor(global, 'DOMQuad').configurable is true 356 361 PASS Object.getOwnPropertyDescriptor(global, 'DOMRect').value is DOMRect 357 362 PASS Object.getOwnPropertyDescriptor(global, 'DOMRect').hasOwnProperty('get') is false -
trunk/Source/WebCore/CMakeLists.txt
r218440 r218458 425 425 dom/DOMPointInit.idl 426 426 dom/DOMPointReadOnly.idl 427 dom/DOMQuad.idl 428 dom/DOMQuadInit.idl 427 429 dom/DOMRect.idl 428 430 dom/DOMRectInit.idl … … 1161 1163 bindings/js/JSDOMConstructorBase.cpp 1162 1164 bindings/js/JSDOMConstructorWithDocument.cpp 1165 bindings/js/JSDOMQuadCustom.cpp 1163 1166 bindings/js/JSDOMExceptionHandling.cpp 1164 1167 bindings/js/JSDOMGlobalObject.cpp … … 1456 1459 dom/DOMNamedFlowCollection.cpp 1457 1460 dom/DOMPointReadOnly.cpp 1461 dom/DOMQuad.cpp 1458 1462 dom/DOMRectList.cpp 1459 1463 dom/DOMStringList.cpp -
trunk/Source/WebCore/ChangeLog
r218457 r218458 1 2017-06-17 Simon Fraser <simon.fraser@apple.com> 2 3 Implement DOMQuad 4 https://bugs.webkit.org/show_bug.cgi?id=163534 5 6 Reviewed by Sam Weinig. 7 8 Implement DOMQuad per https://drafts.fxtf.org/geometry/#DOMQuad, other than serialization 9 which requires some bindings changes. 10 11 web-platform-tests/css/geometry-1/DOMRect-001.html tests against an older version of the spec, 12 so has some failures. DOMQuad-002.html passes, other than a NaN propagation issue that requires 13 spec clarification. 14 15 * CMakeLists.txt: 16 * DerivedSources.make: 17 * WebCore.xcodeproj/project.pbxproj: 18 * bindings/js/JSDOMQuadCustom.cpp: Added. 19 (WebCore::JSDOMQuad::getBounds): 20 * bindings/scripts/CodeGenerator.pm: 21 (IsSerializableDOMType): 22 (IsSerializableAttribute): 23 * dom/DOMPoint.h: 24 * dom/DOMQuad.cpp: Added. 25 (WebCore::DOMQuad::DOMQuad): 26 (WebCore::DOMQuad::getBounds): 27 * dom/DOMQuad.h: Added. 28 (WebCore::DOMQuad::create): 29 (WebCore::DOMQuad::fromRect): 30 (WebCore::DOMQuad::fromQuad): 31 (WebCore::DOMQuad::p1): 32 (WebCore::DOMQuad::p2): 33 (WebCore::DOMQuad::p3): 34 (WebCore::DOMQuad::p4): 35 * dom/DOMQuad.idl: Added. 36 * dom/DOMQuadInit.h: Added. 37 * dom/DOMQuadInit.idl: Added. 38 1 39 2017-06-17 Chris Dumez <cdumez@apple.com> 2 40 -
trunk/Source/WebCore/DerivedSources.make
r217576 r218458 365 365 $(WebCore)/dom/DOMPointInit.idl \ 366 366 $(WebCore)/dom/DOMPointReadOnly.idl \ 367 $(WebCore)/dom/DOMQuad.idl \ 368 $(WebCore)/dom/DOMQuadInit.idl \ 367 369 $(WebCore)/dom/DOMRect.idl \ 368 370 $(WebCore)/dom/DOMRectInit.idl \ -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r218440 r218458 493 493 0F8B45751DC41DBA00443C3F /* JSIntersectionObserverCallback.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0F8B45731DC41DBA00443C3F /* JSIntersectionObserverCallback.cpp */; }; 494 494 0F8B45761DC41DBA00443C3F /* JSIntersectionObserverCallback.h in Headers */ = {isa = PBXBuildFile; fileRef = 0F8B45741DC41DBA00443C3F /* JSIntersectionObserverCallback.h */; }; 495 0F94A3961EF1B10500FBAFFB /* JSDOMQuadCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0F94A3951EF1B10500FBAFFB /* JSDOMQuadCustom.cpp */; }; 495 496 0F97A658155DA81E00FADD4C /* DisplayRefreshMonitorIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0F97A657155DA81E00FADD4C /* DisplayRefreshMonitorIOS.mm */; }; 496 497 0FA24D79162DF91900A3F4C0 /* GraphicsLayerUpdater.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FA24D77162DF91900A3F4C0 /* GraphicsLayerUpdater.cpp */; }; … … 559 560 0FEF20D01BD4A64F00128E5D /* RenderStyleConstants.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FEF20CF1BD4A64F00128E5D /* RenderStyleConstants.cpp */; }; 560 561 0FF2E80D1EE0D430009EABD4 /* PerformanceLoggingClient.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FF2E80C1EE0D430009EABD4 /* PerformanceLoggingClient.cpp */; }; 562 0FF3B9281EE3B6DE00B84144 /* JSDOMQuad.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FF3B9241EE3B6DE00B84144 /* JSDOMQuad.cpp */; }; 563 0FF3B9291EE3B6DE00B84144 /* JSDOMQuad.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FF3B9251EE3B6DE00B84144 /* JSDOMQuad.h */; }; 564 0FF3B92A1EE3B6DE00B84144 /* JSDOMQuadInit.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FF3B9261EE3B6DE00B84144 /* JSDOMQuadInit.cpp */; }; 565 0FF3B92B1EE3B6DE00B84144 /* JSDOMQuadInit.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FF3B9271EE3B6DE00B84144 /* JSDOMQuadInit.h */; }; 561 566 0FF50269102BA9430066F39A /* JSStyleMedia.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FF50267102BA9430066F39A /* JSStyleMedia.cpp */; }; 562 567 0FF5026A102BA9430066F39A /* JSStyleMedia.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FF50268102BA9430066F39A /* JSStyleMedia.h */; }; … … 564 569 0FF50272102BA96A0066F39A /* StyleMedia.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FF5026F102BA96A0066F39A /* StyleMedia.h */; }; 565 570 0FF835B81EE3274F008B4CC7 /* DOMPointReadOnly.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FF835B71EE3274F008B4CC7 /* DOMPointReadOnly.cpp */; }; 571 0FF835C21EE354DA008B4CC7 /* DOMQuad.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FF835BD1EE354DA008B4CC7 /* DOMQuad.cpp */; }; 572 0FF835C31EE354DA008B4CC7 /* DOMQuad.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FF835BE1EE354DA008B4CC7 /* DOMQuad.h */; }; 573 0FF835C51EE354DA008B4CC7 /* DOMQuadInit.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FF835C01EE354DA008B4CC7 /* DOMQuadInit.h */; }; 566 574 0FFD4D6018651FA300512F6E /* AsyncScrollingCoordinator.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FFD4D5E18651FA300512F6E /* AsyncScrollingCoordinator.cpp */; }; 567 575 0FFD4D6118651FA300512F6E /* AsyncScrollingCoordinator.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FFD4D5F18651FA300512F6E /* AsyncScrollingCoordinator.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 7933 7941 0F8B45731DC41DBA00443C3F /* JSIntersectionObserverCallback.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSIntersectionObserverCallback.cpp; sourceTree = "<group>"; }; 7934 7942 0F8B45741DC41DBA00443C3F /* JSIntersectionObserverCallback.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSIntersectionObserverCallback.h; sourceTree = "<group>"; }; 7943 0F94A3951EF1B10500FBAFFB /* JSDOMQuadCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMQuadCustom.cpp; sourceTree = "<group>"; }; 7935 7944 0F97A657155DA81E00FADD4C /* DisplayRefreshMonitorIOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = DisplayRefreshMonitorIOS.mm; sourceTree = "<group>"; }; 7936 7945 0FA0852B1E6FB55A00975FDD /* CSSProperties.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = CSSProperties.json; sourceTree = "<group>"; }; … … 8001 8010 0FEF20CF1BD4A64F00128E5D /* RenderStyleConstants.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderStyleConstants.cpp; sourceTree = "<group>"; }; 8002 8011 0FF2E80C1EE0D430009EABD4 /* PerformanceLoggingClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PerformanceLoggingClient.cpp; sourceTree = "<group>"; }; 8012 0FF3B9241EE3B6DE00B84144 /* JSDOMQuad.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMQuad.cpp; sourceTree = "<group>"; }; 8013 0FF3B9251EE3B6DE00B84144 /* JSDOMQuad.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDOMQuad.h; sourceTree = "<group>"; }; 8014 0FF3B9261EE3B6DE00B84144 /* JSDOMQuadInit.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMQuadInit.cpp; sourceTree = "<group>"; }; 8015 0FF3B9271EE3B6DE00B84144 /* JSDOMQuadInit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDOMQuadInit.h; sourceTree = "<group>"; }; 8003 8016 0FF50267102BA9430066F39A /* JSStyleMedia.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSStyleMedia.cpp; sourceTree = "<group>"; }; 8004 8017 0FF50268102BA9430066F39A /* JSStyleMedia.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSStyleMedia.h; sourceTree = "<group>"; }; … … 8007 8020 0FF50270102BA96A0066F39A /* StyleMedia.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = StyleMedia.idl; sourceTree = "<group>"; }; 8008 8021 0FF835B71EE3274F008B4CC7 /* DOMPointReadOnly.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DOMPointReadOnly.cpp; sourceTree = "<group>"; }; 8022 0FF835BD1EE354DA008B4CC7 /* DOMQuad.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DOMQuad.cpp; sourceTree = "<group>"; }; 8023 0FF835BE1EE354DA008B4CC7 /* DOMQuad.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMQuad.h; sourceTree = "<group>"; }; 8024 0FF835BF1EE354DA008B4CC7 /* DOMQuad.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DOMQuad.idl; sourceTree = "<group>"; }; 8025 0FF835C01EE354DA008B4CC7 /* DOMQuadInit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMQuadInit.h; sourceTree = "<group>"; }; 8026 0FF835C11EE354DA008B4CC7 /* DOMQuadInit.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DOMQuadInit.idl; sourceTree = "<group>"; }; 8009 8027 0FFD4D5E18651FA300512F6E /* AsyncScrollingCoordinator.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AsyncScrollingCoordinator.cpp; sourceTree = "<group>"; }; 8010 8028 0FFD4D5F18651FA300512F6E /* AsyncScrollingCoordinator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AsyncScrollingCoordinator.h; sourceTree = "<group>"; }; … … 22099 22117 0F4966A81DB40C4300A274BB /* JSDOMPointReadOnly.cpp */, 22100 22118 0F4966A91DB40C4300A274BB /* JSDOMPointReadOnly.h */, 22119 0FF3B9241EE3B6DE00B84144 /* JSDOMQuad.cpp */, 22120 0FF3B9251EE3B6DE00B84144 /* JSDOMQuad.h */, 22121 0FF3B9261EE3B6DE00B84144 /* JSDOMQuadInit.cpp */, 22122 0FF3B9271EE3B6DE00B84144 /* JSDOMQuadInit.h */, 22101 22123 0F4710B51DB56BE8002DCEC3 /* JSDOMRect.cpp */, 22102 22124 0F4710B61DB56BE8002DCEC3 /* JSDOMRect.h */, … … 23665 23687 49C7BA8C1042F5B10009D447 /* JSDocumentCustom.cpp */, 23666 23688 ADDA94BF19686F8000453029 /* JSDocumentCustom.h */, 23689 0F94A3951EF1B10500FBAFFB /* JSDOMQuadCustom.cpp */, 23667 23690 BCD9C25E0C17AA67005C90A2 /* JSDOMWindowCustom.cpp */, 23668 23691 652FBBBB0DE27CB60001D386 /* JSDOMWindowCustom.h */, … … 25741 25764 0F49669B1DB408C100A274BB /* DOMPointReadOnly.h */, 25742 25765 0F49669C1DB408C100A274BB /* DOMPointReadOnly.idl */, 25766 0FF835BD1EE354DA008B4CC7 /* DOMQuad.cpp */, 25767 0FF835BE1EE354DA008B4CC7 /* DOMQuad.h */, 25768 0FF835BF1EE354DA008B4CC7 /* DOMQuad.idl */, 25769 0FF835C01EE354DA008B4CC7 /* DOMQuadInit.h */, 25770 0FF835C11EE354DA008B4CC7 /* DOMQuadInit.idl */, 25743 25771 0F4710A91DB56AFC002DCEC3 /* DOMRect.h */, 25744 25772 0F4710AA1DB56AFC002DCEC3 /* DOMRect.idl */, … … 27208 27236 0F4966A31DB4091000A274BB /* DOMPointInit.h in Headers */, 27209 27237 0F49669F1DB408C100A274BB /* DOMPointReadOnly.h in Headers */, 27238 0FF835C31EE354DA008B4CC7 /* DOMQuad.h in Headers */, 27239 0FF835C51EE354DA008B4CC7 /* DOMQuadInit.h in Headers */, 27210 27240 0F4710AF1DB56AFC002DCEC3 /* DOMRect.h in Headers */, 27211 27241 0F4710B11DB56AFC002DCEC3 /* DOMRectInit.h in Headers */, … … 27983 28013 E37C86501EB63E3F0087C6CA /* JSDOMPromise.h in Headers */, 27984 28014 E172AF901811BC3700FBADB9 /* JSDOMPromiseDeferred.h in Headers */, 28015 0FF3B9291EE3B6DE00B84144 /* JSDOMQuad.h in Headers */, 28016 0FF3B92B1EE3B6DE00B84144 /* JSDOMQuadInit.h in Headers */, 27985 28017 0F4710BC1DB56BE8002DCEC3 /* JSDOMRect.h in Headers */, 27986 28018 0F4710BE1DB56BE8002DCEC3 /* JSDOMRectInit.h in Headers */, … … 31234 31266 A9C6E4EF0D745E38006442E9 /* DOMPluginArray.cpp in Sources */, 31235 31267 0FF835B81EE3274F008B4CC7 /* DOMPointReadOnly.cpp in Sources */, 31268 0FF835C21EE354DA008B4CC7 /* DOMQuad.cpp in Sources */, 31236 31269 468344DF1EDDFAAA00B7795B /* DOMRectList.cpp in Sources */, 31237 31270 BC5A86840C33676000EEA649 /* DOMSelection.cpp in Sources */, … … 31956 31989 0F4966AE1DB40C4300A274BB /* JSDOMPointReadOnly.cpp in Sources */, 31957 31990 E172AF8F1811BC3700FBADB9 /* JSDOMPromiseDeferred.cpp in Sources */, 31991 0FF3B9281EE3B6DE00B84144 /* JSDOMQuad.cpp in Sources */, 31992 0F94A3961EF1B10500FBAFFB /* JSDOMQuadCustom.cpp in Sources */, 31993 0FF3B92A1EE3B6DE00B84144 /* JSDOMQuadInit.cpp in Sources */, 31958 31994 0F4710BB1DB56BE8002DCEC3 /* JSDOMRect.cpp in Sources */, 31959 31995 0F4710BD1DB56BE8002DCEC3 /* JSDOMRectInit.cpp in Sources */, -
trunk/Source/WebCore/dom/DOMPoint.h
r209677 r218458 38 38 WTF_MAKE_FAST_ALLOCATED; 39 39 public: 40 static Ref<DOMPoint> create(double x, double y, double z , double w) { return adoptRef(*new DOMPoint(x, y, z, w)); }40 static Ref<DOMPoint> create(double x, double y, double z = 0, double w = 1) { return adoptRef(*new DOMPoint(x, y, z, w)); } 41 41 static Ref<DOMPoint> create(const DOMPointInit& init) { return create(init.x, init.y, init.z, init.w); } 42 42 static Ref<DOMPoint> fromPoint(const DOMPointInit& init) { return create(init.x, init.y, init.z, init.w); }
Note: See TracChangeset
for help on using the changeset viewer.