Changeset 218458 in webkit


Ignore:
Timestamp:
Jun 17, 2017 3:34:28 PM (7 years ago)
Author:
Simon Fraser
Message:

Implement DOMQuad
https://bugs.webkit.org/show_bug.cgi?id=163534

Reviewed by Sam Weinig.
LayoutTests/imported/w3c:

Implement DOMQuad per https://drafts.fxtf.org/geometry/#DOMQuad.

  • web-platform-tests/css/geometry-1/DOMQuad-001-expected.txt: Tests against an older version

of the spec, so some failures.

  • web-platform-tests/css/geometry-1/DOMQuad-002-expected.txt: All tests pass other than a NaN

propagation issue which needs spec clarification.

  • web-platform-tests/css/geometry-1/structured-serialization-expected.txt:

Source/WebCore:

Implement DOMQuad per https://drafts.fxtf.org/geometry/#DOMQuad, other than serialization
which requires some bindings changes.

web-platform-tests/css/geometry-1/DOMRect-001.html tests against an older version of the spec,
so has some failures. DOMQuad-002.html passes, other than a NaN propagation issue that requires
spec clarification.

  • CMakeLists.txt:
  • DerivedSources.make:
  • WebCore.xcodeproj/project.pbxproj:
  • bindings/js/JSDOMQuadCustom.cpp: Added.

(WebCore::JSDOMQuad::getBounds):

  • bindings/scripts/CodeGenerator.pm:

(IsSerializableDOMType):
(IsSerializableAttribute):

  • dom/DOMPoint.h:
  • dom/DOMQuad.cpp: Added.

(WebCore::DOMQuad::DOMQuad):
(WebCore::DOMQuad::getBounds):

  • dom/DOMQuad.h: Added.

(WebCore::DOMQuad::create):
(WebCore::DOMQuad::fromRect):
(WebCore::DOMQuad::fromQuad):
(WebCore::DOMQuad::p1):
(WebCore::DOMQuad::p2):
(WebCore::DOMQuad::p3):
(WebCore::DOMQuad::p4):

  • dom/DOMQuad.idl: Added.
  • dom/DOMQuadInit.h: Added.
  • dom/DOMQuadInit.idl: Added.

LayoutTests:

Implement DOMQuad per https://drafts.fxtf.org/geometry/#DOMQuad.

  • js/dom/global-constructors-attributes-dedicated-worker-expected.txt:
  • platform/mac/js/dom/global-constructors-attributes-expected.txt:
Location:
trunk
Files:
6 added
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r218451 r218458  
     12017-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
    1132017-06-17  Antti Koivisto  <antti@apple.com>
    214
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r218446 r218458  
     12017-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
    1162017-06-17  Ryosuke Niwa  <rniwa@webkit.org>
    217
  • trunk/LayoutTests/imported/w3c/web-platform-tests/css/geometry-1/DOMQuad-001-expected.txt

    r216878 r218458  
    22
    33
    4 FAIL testConstructor0: points Can't find variable: DOMQuad
    5 FAIL testConstructor0: bounds Can't find variable: DOMQuad
    6 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: DOMQuad
    11 FAIL testConstructor5: bounds Can't find variable: DOMQuad
    12 FAIL testConstructor6: points Can't find variable: DOMQuad
    13 FAIL testConstructor6: bounds Can't find variable: DOMQuad
    14 FAIL testConstructor7: points Can't find variable: DOMQuad
    15 FAIL testConstructor7: bounds Can't find variable: DOMQuad
    16 FAIL testConstructor8: points Can't find variable: DOMQuad
    17 FAIL testConstructor8: bounds Can't find variable: DOMQuad
    18 FAIL testConstructor9: points Can't find variable: DOMQuad
    19 FAIL testConstructor9: bounds Can't find variable: DOMQuad
    20 FAIL testConstructor10: points Can't find variable: DOMQuad
    21 FAIL testConstructor10: bounds Can't find variable: DOMQuad
    22 FAIL testConstructor11: points Can't find variable: DOMQuad
    23 FAIL testConstructor11: bounds Can't find variable: DOMQuad
    24 FAIL testConstructor12: points Can't find variable: DOMQuad
    25 FAIL testConstructor12: bounds Can't find variable: DOMQuad
    26 FAIL testConstructor13: points Can't find variable: DOMQuad
    27 FAIL testConstructor13: bounds Can't find variable: DOMQuad
    28 FAIL testConstructor14: points Can't find variable: DOMQuad
    29 FAIL testConstructor14: bounds Can't find variable: DOMQuad
    30 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: DOMQuad
    33 FAIL p1Top4Attributes0: points Can't find variable: DOMQuad
    34 FAIL p1Top4Attributes0: bounds Can't find variable: DOMQuad
    35 FAIL p1Top4Attributes1: points Can't find variable: DOMQuad
    36 FAIL p1Top4Attributes1: bounds Can't find variable: DOMQuad
    37 FAIL boundsAttribute0: points Can't find variable: DOMQuad
    38 FAIL boundsAttribute0: bounds Can't find variable: DOMQuad
    39 FAIL boundsAttribute1: points Can't find variable: DOMQuad
    40 FAIL boundsAttribute1: bounds Can't find variable: DOMQuad
     4PASS testConstructor0: points
     5FAIL testConstructor0: bounds undefined is not an object (evaluating 'q.bounds.x')
     6PASS testConstructor1
     7PASS testConstructor2
     8PASS testConstructor3
     9PASS testConstructor4
     10FAIL testConstructor5: points assert_equals: Expected value for p2.x is 110 expected 110 but got 0
     11FAIL testConstructor5: bounds undefined is not an object (evaluating 'q.bounds.x')
     12FAIL testConstructor6: points assert_equals: Expected value for p2.x is -90 expected -90 but got 0
     13FAIL testConstructor6: bounds undefined is not an object (evaluating 'q.bounds.x')
     14FAIL testConstructor7: points assert_equals: Expected value for p2.x is NaN expected NaN but got 0
     15FAIL testConstructor7: bounds undefined is not an object (evaluating 'q.bounds.x')
     16PASS testConstructor8: points
     17FAIL testConstructor8: bounds undefined is not an object (evaluating 'q.bounds.x')
     18PASS testConstructor9: points
     19FAIL testConstructor9: bounds undefined is not an object (evaluating 'q.bounds.x')
     20PASS testConstructor10: points
     21FAIL testConstructor10: bounds undefined is not an object (evaluating 'q.bounds.x')
     22PASS testConstructor11: points
     23FAIL testConstructor11: bounds undefined is not an object (evaluating 'q.bounds.x')
     24PASS testConstructor12: points
     25FAIL testConstructor12: bounds undefined is not an object (evaluating 'q.bounds.x')
     26PASS testConstructor13: points
     27FAIL testConstructor13: bounds undefined is not an object (evaluating 'q.bounds.x')
     28PASS testConstructor14: points
     29FAIL testConstructor14: bounds undefined is not an object (evaluating 'q.bounds.x')
     30PASS testConstructor15
     31PASS testConstructor16: points
     32FAIL testConstructor16: bounds undefined is not an object (evaluating 'q.bounds.x')
     33PASS p1Top4Attributes0: points
     34FAIL p1Top4Attributes0: bounds undefined is not an object (evaluating 'q.bounds.x')
     35PASS p1Top4Attributes1: points
     36FAIL p1Top4Attributes1: bounds undefined is not an object (evaluating 'q.bounds.x')
     37PASS boundsAttribute0: points
     38FAIL boundsAttribute0: bounds assert_equals: Expected value for bounds.x is 0 expected 0 but got 10
     39FAIL boundsAttribute1: points undefined is not an object (evaluating 'q.bounds.x = 10')
     40FAIL boundsAttribute1: bounds undefined is not an object (evaluating 'q.bounds.x = 10')
    4141
  • trunk/LayoutTests/imported/w3c/web-platform-tests/css/geometry-1/DOMQuad-002-expected.txt

    r216878 r218458  
    22
    33
    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
     4PASS test Constructor no args
     5PASS test Constructor with one init DOMPoint arg
     6PASS test Constructor with two init DOMPoint args
     7PASS test Constructor with three init DOMPoint args
     8PASS test Constructor with four init DOMPoint args
     9PASS test Constructor with one DOMPoint arg
     10PASS test Constructor with two DOMPoint args
     11PASS test Constructor with three DOMPoint args
     12PASS test Constructor with four DOMPoint args
     13PASS test Constructor with invaild integer args
     14PASS test Constructor with invaild string args
     15PASS test Constructor with NaN
     16PASS test fromRect
     17PASS test fromRect with Infinity
     18PASS test fromQuad
     19PASS test p1, p2, p3, p4 are readonly
     20PASS test getBounds
    2121
  • trunk/LayoutTests/imported/w3c/web-platform-tests/css/geometry-1/structured-serialization-expected.txt

    r216959 r218458  
    1616FAIL DOMRect clone: throwing getters promise_test: Unhandled rejection with value: object "DataCloneError (DOM Exception 25): The object can not be cloned."
    1717FAIL 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]')
     18FAIL DOMQuad clone: basic promise_test: Unhandled rejection with value: object "DataCloneError (DOM Exception 25): The object can not be cloned."
     19FAIL DOMQuad clone: custom property promise_test: Unhandled rejection with value: object "DataCloneError (DOM Exception 25): The object can not be cloned."
     20FAIL DOMQuad clone: throwing getters promise_test: Unhandled rejection with value: object "DataCloneError (DOM Exception 25): The object can not be cloned."
     21FAIL DOMQuad clone: non-initial values promise_test: Unhandled rejection with value: object "DataCloneError (DOM Exception 25): The object can not be cloned."
    2222FAIL DOMMatrixReadOnly clone: basic promise_test: Unhandled rejection with value: object "DataCloneError (DOM Exception 25): The object can not be cloned."
    2323FAIL 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  
    6060PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DOMPointReadOnly').enumerable is false
    6161PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DOMPointReadOnly').configurable is true
     62PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DOMQuad').value is DOMQuad
     63PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DOMQuad').hasOwnProperty('get') is false
     64PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DOMQuad').hasOwnProperty('set') is false
     65PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DOMQuad').enumerable is false
     66PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DOMQuad').configurable is true
    6267PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DOMRect').value is DOMRect
    6368PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DOMRect').hasOwnProperty('get') is false
  • trunk/LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt

    r217491 r218458  
    354354PASS Object.getOwnPropertyDescriptor(global, 'DOMPointReadOnly').enumerable is false
    355355PASS Object.getOwnPropertyDescriptor(global, 'DOMPointReadOnly').configurable is true
     356PASS Object.getOwnPropertyDescriptor(global, 'DOMQuad').value is DOMQuad
     357PASS Object.getOwnPropertyDescriptor(global, 'DOMQuad').hasOwnProperty('get') is false
     358PASS Object.getOwnPropertyDescriptor(global, 'DOMQuad').hasOwnProperty('set') is false
     359PASS Object.getOwnPropertyDescriptor(global, 'DOMQuad').enumerable is false
     360PASS Object.getOwnPropertyDescriptor(global, 'DOMQuad').configurable is true
    356361PASS Object.getOwnPropertyDescriptor(global, 'DOMRect').value is DOMRect
    357362PASS Object.getOwnPropertyDescriptor(global, 'DOMRect').hasOwnProperty('get') is false
  • trunk/Source/WebCore/CMakeLists.txt

    r218440 r218458  
    425425    dom/DOMPointInit.idl
    426426    dom/DOMPointReadOnly.idl
     427    dom/DOMQuad.idl
     428    dom/DOMQuadInit.idl
    427429    dom/DOMRect.idl
    428430    dom/DOMRectInit.idl
     
    11611163    bindings/js/JSDOMConstructorBase.cpp
    11621164    bindings/js/JSDOMConstructorWithDocument.cpp
     1165    bindings/js/JSDOMQuadCustom.cpp
    11631166    bindings/js/JSDOMExceptionHandling.cpp
    11641167    bindings/js/JSDOMGlobalObject.cpp
     
    14561459    dom/DOMNamedFlowCollection.cpp
    14571460    dom/DOMPointReadOnly.cpp
     1461    dom/DOMQuad.cpp
    14581462    dom/DOMRectList.cpp
    14591463    dom/DOMStringList.cpp
  • trunk/Source/WebCore/ChangeLog

    r218457 r218458  
     12017-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
    1392017-06-17  Chris Dumez  <cdumez@apple.com>
    240
  • trunk/Source/WebCore/DerivedSources.make

    r217576 r218458  
    365365    $(WebCore)/dom/DOMPointInit.idl \
    366366    $(WebCore)/dom/DOMPointReadOnly.idl \
     367    $(WebCore)/dom/DOMQuad.idl \
     368    $(WebCore)/dom/DOMQuadInit.idl \
    367369    $(WebCore)/dom/DOMRect.idl \
    368370    $(WebCore)/dom/DOMRectInit.idl \
  • trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj

    r218440 r218458  
    493493                0F8B45751DC41DBA00443C3F /* JSIntersectionObserverCallback.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0F8B45731DC41DBA00443C3F /* JSIntersectionObserverCallback.cpp */; };
    494494                0F8B45761DC41DBA00443C3F /* JSIntersectionObserverCallback.h in Headers */ = {isa = PBXBuildFile; fileRef = 0F8B45741DC41DBA00443C3F /* JSIntersectionObserverCallback.h */; };
     495                0F94A3961EF1B10500FBAFFB /* JSDOMQuadCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0F94A3951EF1B10500FBAFFB /* JSDOMQuadCustom.cpp */; };
    495496                0F97A658155DA81E00FADD4C /* DisplayRefreshMonitorIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0F97A657155DA81E00FADD4C /* DisplayRefreshMonitorIOS.mm */; };
    496497                0FA24D79162DF91900A3F4C0 /* GraphicsLayerUpdater.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FA24D77162DF91900A3F4C0 /* GraphicsLayerUpdater.cpp */; };
     
    559560                0FEF20D01BD4A64F00128E5D /* RenderStyleConstants.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FEF20CF1BD4A64F00128E5D /* RenderStyleConstants.cpp */; };
    560561                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 */; };
    561566                0FF50269102BA9430066F39A /* JSStyleMedia.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FF50267102BA9430066F39A /* JSStyleMedia.cpp */; };
    562567                0FF5026A102BA9430066F39A /* JSStyleMedia.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FF50268102BA9430066F39A /* JSStyleMedia.h */; };
     
    564569                0FF50272102BA96A0066F39A /* StyleMedia.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FF5026F102BA96A0066F39A /* StyleMedia.h */; };
    565570                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 */; };
    566574                0FFD4D6018651FA300512F6E /* AsyncScrollingCoordinator.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FFD4D5E18651FA300512F6E /* AsyncScrollingCoordinator.cpp */; };
    567575                0FFD4D6118651FA300512F6E /* AsyncScrollingCoordinator.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FFD4D5F18651FA300512F6E /* AsyncScrollingCoordinator.h */; settings = {ATTRIBUTES = (Private, ); }; };
     
    79337941                0F8B45731DC41DBA00443C3F /* JSIntersectionObserverCallback.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSIntersectionObserverCallback.cpp; sourceTree = "<group>"; };
    79347942                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>"; };
    79357944                0F97A657155DA81E00FADD4C /* DisplayRefreshMonitorIOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = DisplayRefreshMonitorIOS.mm; sourceTree = "<group>"; };
    79367945                0FA0852B1E6FB55A00975FDD /* CSSProperties.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = CSSProperties.json; sourceTree = "<group>"; };
     
    80018010                0FEF20CF1BD4A64F00128E5D /* RenderStyleConstants.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderStyleConstants.cpp; sourceTree = "<group>"; };
    80028011                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>"; };
    80038016                0FF50267102BA9430066F39A /* JSStyleMedia.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSStyleMedia.cpp; sourceTree = "<group>"; };
    80048017                0FF50268102BA9430066F39A /* JSStyleMedia.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSStyleMedia.h; sourceTree = "<group>"; };
     
    80078020                0FF50270102BA96A0066F39A /* StyleMedia.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = StyleMedia.idl; sourceTree = "<group>"; };
    80088021                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>"; };
    80098027                0FFD4D5E18651FA300512F6E /* AsyncScrollingCoordinator.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AsyncScrollingCoordinator.cpp; sourceTree = "<group>"; };
    80108028                0FFD4D5F18651FA300512F6E /* AsyncScrollingCoordinator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AsyncScrollingCoordinator.h; sourceTree = "<group>"; };
     
    2209922117                                0F4966A81DB40C4300A274BB /* JSDOMPointReadOnly.cpp */,
    2210022118                                0F4966A91DB40C4300A274BB /* JSDOMPointReadOnly.h */,
     22119                                0FF3B9241EE3B6DE00B84144 /* JSDOMQuad.cpp */,
     22120                                0FF3B9251EE3B6DE00B84144 /* JSDOMQuad.h */,
     22121                                0FF3B9261EE3B6DE00B84144 /* JSDOMQuadInit.cpp */,
     22122                                0FF3B9271EE3B6DE00B84144 /* JSDOMQuadInit.h */,
    2210122123                                0F4710B51DB56BE8002DCEC3 /* JSDOMRect.cpp */,
    2210222124                                0F4710B61DB56BE8002DCEC3 /* JSDOMRect.h */,
     
    2366523687                                49C7BA8C1042F5B10009D447 /* JSDocumentCustom.cpp */,
    2366623688                                ADDA94BF19686F8000453029 /* JSDocumentCustom.h */,
     23689                                0F94A3951EF1B10500FBAFFB /* JSDOMQuadCustom.cpp */,
    2366723690                                BCD9C25E0C17AA67005C90A2 /* JSDOMWindowCustom.cpp */,
    2366823691                                652FBBBB0DE27CB60001D386 /* JSDOMWindowCustom.h */,
     
    2574125764                                0F49669B1DB408C100A274BB /* DOMPointReadOnly.h */,
    2574225765                                0F49669C1DB408C100A274BB /* DOMPointReadOnly.idl */,
     25766                                0FF835BD1EE354DA008B4CC7 /* DOMQuad.cpp */,
     25767                                0FF835BE1EE354DA008B4CC7 /* DOMQuad.h */,
     25768                                0FF835BF1EE354DA008B4CC7 /* DOMQuad.idl */,
     25769                                0FF835C01EE354DA008B4CC7 /* DOMQuadInit.h */,
     25770                                0FF835C11EE354DA008B4CC7 /* DOMQuadInit.idl */,
    2574325771                                0F4710A91DB56AFC002DCEC3 /* DOMRect.h */,
    2574425772                                0F4710AA1DB56AFC002DCEC3 /* DOMRect.idl */,
     
    2720827236                                0F4966A31DB4091000A274BB /* DOMPointInit.h in Headers */,
    2720927237                                0F49669F1DB408C100A274BB /* DOMPointReadOnly.h in Headers */,
     27238                                0FF835C31EE354DA008B4CC7 /* DOMQuad.h in Headers */,
     27239                                0FF835C51EE354DA008B4CC7 /* DOMQuadInit.h in Headers */,
    2721027240                                0F4710AF1DB56AFC002DCEC3 /* DOMRect.h in Headers */,
    2721127241                                0F4710B11DB56AFC002DCEC3 /* DOMRectInit.h in Headers */,
     
    2798328013                                E37C86501EB63E3F0087C6CA /* JSDOMPromise.h in Headers */,
    2798428014                                E172AF901811BC3700FBADB9 /* JSDOMPromiseDeferred.h in Headers */,
     28015                                0FF3B9291EE3B6DE00B84144 /* JSDOMQuad.h in Headers */,
     28016                                0FF3B92B1EE3B6DE00B84144 /* JSDOMQuadInit.h in Headers */,
    2798528017                                0F4710BC1DB56BE8002DCEC3 /* JSDOMRect.h in Headers */,
    2798628018                                0F4710BE1DB56BE8002DCEC3 /* JSDOMRectInit.h in Headers */,
     
    3123431266                                A9C6E4EF0D745E38006442E9 /* DOMPluginArray.cpp in Sources */,
    3123531267                                0FF835B81EE3274F008B4CC7 /* DOMPointReadOnly.cpp in Sources */,
     31268                                0FF835C21EE354DA008B4CC7 /* DOMQuad.cpp in Sources */,
    3123631269                                468344DF1EDDFAAA00B7795B /* DOMRectList.cpp in Sources */,
    3123731270                                BC5A86840C33676000EEA649 /* DOMSelection.cpp in Sources */,
     
    3195631989                                0F4966AE1DB40C4300A274BB /* JSDOMPointReadOnly.cpp in Sources */,
    3195731990                                E172AF8F1811BC3700FBADB9 /* JSDOMPromiseDeferred.cpp in Sources */,
     31991                                0FF3B9281EE3B6DE00B84144 /* JSDOMQuad.cpp in Sources */,
     31992                                0F94A3961EF1B10500FBAFFB /* JSDOMQuadCustom.cpp in Sources */,
     31993                                0FF3B92A1EE3B6DE00B84144 /* JSDOMQuadInit.cpp in Sources */,
    3195831994                                0F4710BB1DB56BE8002DCEC3 /* JSDOMRect.cpp in Sources */,
    3195931995                                0F4710BD1DB56BE8002DCEC3 /* JSDOMRectInit.cpp in Sources */,
  • trunk/Source/WebCore/dom/DOMPoint.h

    r209677 r218458  
    3838    WTF_MAKE_FAST_ALLOCATED;
    3939public:
    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)); }
    4141    static Ref<DOMPoint> create(const DOMPointInit& init) { return create(init.x, init.y, init.z, init.w); }
    4242    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.