Skip to content

Commit

Permalink
Fix: use defined_properties for property
Browse files Browse the repository at this point in the history
  • Loading branch information
jwxbond authored and andycall committed Nov 15, 2024
1 parent be037ef commit 730da28
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 65 deletions.
25 changes: 0 additions & 25 deletions bridge/core/binding_call_methods.json5
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"x",
"y",
"z",
"w",
"screen",
"target",
"accessKey",
Expand Down Expand Up @@ -183,30 +182,6 @@
"pageXOffset",
"pageYOffset",
"title",
"is2D",
"isIdentity",
"m11",
"m12",
"m13",
"m14",
"m21",
"m22",
"m23",
"m24",
"m31",
"m32",
"m33",
"m34",
"m41",
"m42",
"m43",
"m44",
"a",
"b",
"c",
"d",
"e",
"f",
"flipX",
"flipY",
"inverse",
Expand Down
64 changes: 32 additions & 32 deletions bridge/core/geometry/dom_matrix_read_only.cc
Original file line number Diff line number Diff line change
Expand Up @@ -105,102 +105,102 @@ void DOMMatrixReadOnly::setMatrixProperty(const AtomicString& prop, double v, Ex
}

double DOMMatrixReadOnly::m11() const {
return getMatrixProperty(binding_call_methods::km11);
return getMatrixProperty(defined_properties::km11);
}
void DOMMatrixReadOnly::setM11(double v, ExceptionState& exception_state) {
setMatrixProperty(binding_call_methods::km11, v, exception_state);
setMatrixProperty(defined_properties::km11, v, exception_state);
}
double DOMMatrixReadOnly::m12() const {
return getMatrixProperty(binding_call_methods::km12);
return getMatrixProperty(defined_properties::km12);
}
void DOMMatrixReadOnly::setM12(double v, ExceptionState& exception_state) {
setMatrixProperty(binding_call_methods::km12, v, exception_state);
setMatrixProperty(defined_properties::km12, v, exception_state);
}
double DOMMatrixReadOnly::m13() const {
return getMatrixProperty(binding_call_methods::km13);
return getMatrixProperty(defined_properties::km13);
}
void DOMMatrixReadOnly::setM13(double v, ExceptionState& exception_state) {
setMatrixProperty(binding_call_methods::km13, v, exception_state);
setMatrixProperty(defined_properties::km13, v, exception_state);
}
double DOMMatrixReadOnly::m14() const {
return getMatrixProperty(binding_call_methods::km14);
return getMatrixProperty(defined_properties::km14);
}
void DOMMatrixReadOnly::setM14(double v, ExceptionState& exception_state) {
setMatrixProperty(binding_call_methods::km14, v, exception_state);
setMatrixProperty(defined_properties::km14, v, exception_state);
}

double DOMMatrixReadOnly::m21() const {
return getMatrixProperty(binding_call_methods::km21);
return getMatrixProperty(defined_properties::km21);
}
void DOMMatrixReadOnly::setM21(double v, ExceptionState& exception_state) {
setMatrixProperty(binding_call_methods::km21, v, exception_state);
setMatrixProperty(defined_properties::km21, v, exception_state);
}
double DOMMatrixReadOnly::m22() const {
return getMatrixProperty(binding_call_methods::km22);
return getMatrixProperty(defined_properties::km22);
}
void DOMMatrixReadOnly::setM22(double v, ExceptionState& exception_state) {
setMatrixProperty(binding_call_methods::km22, v, exception_state);
setMatrixProperty(defined_properties::km22, v, exception_state);
}
double DOMMatrixReadOnly::m23() const {
return getMatrixProperty(binding_call_methods::km23);
return getMatrixProperty(defined_properties::km23);
}
void DOMMatrixReadOnly::setM23(double v, ExceptionState& exception_state) {
setMatrixProperty(binding_call_methods::km23, v, exception_state);
setMatrixProperty(defined_properties::km23, v, exception_state);
}
double DOMMatrixReadOnly::m24() const {
return getMatrixProperty(binding_call_methods::km24);
return getMatrixProperty(defined_properties::km24);
}
void DOMMatrixReadOnly::setM24(double v, ExceptionState& exception_state) {
setMatrixProperty(binding_call_methods::km24, v, exception_state);
setMatrixProperty(defined_properties::km24, v, exception_state);
}

double DOMMatrixReadOnly::m31() const {
return getMatrixProperty(binding_call_methods::km31);
return getMatrixProperty(defined_properties::km31);
}
void DOMMatrixReadOnly::setM31(double v, ExceptionState& exception_state) {
setMatrixProperty(binding_call_methods::km31, v, exception_state);
setMatrixProperty(defined_properties::km31, v, exception_state);
}
double DOMMatrixReadOnly::m32() const {
return getMatrixProperty(binding_call_methods::km32);
return getMatrixProperty(defined_properties::km32);
}
void DOMMatrixReadOnly::setM32(double v, ExceptionState& exception_state) {
setMatrixProperty(binding_call_methods::km32, v, exception_state);
setMatrixProperty(defined_properties::km32, v, exception_state);
}
double DOMMatrixReadOnly::m33() const {
return getMatrixProperty(binding_call_methods::km33);
return getMatrixProperty(defined_properties::km33);
}
void DOMMatrixReadOnly::setM33(double v, ExceptionState& exception_state) {
setMatrixProperty(binding_call_methods::km33, v, exception_state);
setMatrixProperty(defined_properties::km33, v, exception_state);
}
double DOMMatrixReadOnly::m34() const {
return getMatrixProperty(binding_call_methods::km34);
return getMatrixProperty(defined_properties::km34);
}
void DOMMatrixReadOnly::setM34(double v, ExceptionState& exception_state) {
setMatrixProperty(binding_call_methods::km34, v, exception_state);
setMatrixProperty(defined_properties::km34, v, exception_state);
}
double DOMMatrixReadOnly::m41() const {
return getMatrixProperty(binding_call_methods::km41);
return getMatrixProperty(defined_properties::km41);
}
void DOMMatrixReadOnly::setM41(double v, ExceptionState& exception_state) {
setMatrixProperty(binding_call_methods::km41, v, exception_state);
setMatrixProperty(defined_properties::km41, v, exception_state);
}
double DOMMatrixReadOnly::m42() const {
return getMatrixProperty(binding_call_methods::km42);
return getMatrixProperty(defined_properties::km42);
}
void DOMMatrixReadOnly::setM42(double v, ExceptionState& exception_state) {
setMatrixProperty(binding_call_methods::km42, v, exception_state);
setMatrixProperty(defined_properties::km42, v, exception_state);
}
double DOMMatrixReadOnly::m43() const {
return getMatrixProperty(binding_call_methods::km43);
return getMatrixProperty(defined_properties::km43);
}
void DOMMatrixReadOnly::setM43(double v, ExceptionState& exception_state) {
setMatrixProperty(binding_call_methods::km43, v, exception_state);
setMatrixProperty(defined_properties::km43, v, exception_state);
}
double DOMMatrixReadOnly::m44() const {
return getMatrixProperty(binding_call_methods::km44);
return getMatrixProperty(defined_properties::km44);
}
void DOMMatrixReadOnly::setM44(double v, ExceptionState& exception_state) {
setMatrixProperty(binding_call_methods::km44, v, exception_state);
setMatrixProperty(defined_properties::km44, v, exception_state);
}

DOMMatrix* DOMMatrixReadOnly::flipX(ExceptionState& exception_state) const {
Expand Down
16 changes: 8 additions & 8 deletions bridge/core/geometry/dom_point_read_only.cc
Original file line number Diff line number Diff line change
Expand Up @@ -147,28 +147,28 @@ void DOMPointReadOnly::setPointProperty(const AtomicString& prop, double v, Exce
}

double DOMPointReadOnly::x() const {
return getPointProperty(binding_call_methods::kx);
return getPointProperty(defined_properties::kx);
}
void DOMPointReadOnly::setX(double v, ExceptionState& exception_state) {
setPointProperty(binding_call_methods::kx, v, exception_state);
setPointProperty(defined_properties::kx, v, exception_state);
}
double DOMPointReadOnly::y() {
return getPointProperty(binding_call_methods::ky);
return getPointProperty(defined_properties::ky);
}
void DOMPointReadOnly::setY(double v, ExceptionState& exception_state) {
setPointProperty(binding_call_methods::ky, v, exception_state);
setPointProperty(defined_properties::ky, v, exception_state);
}
double DOMPointReadOnly::z() const {
return getPointProperty(binding_call_methods::kz);
return getPointProperty(defined_properties::kz);
}
void DOMPointReadOnly::setZ(double v, ExceptionState& exception_state) {
setPointProperty(binding_call_methods::kz, v, exception_state);
setPointProperty(defined_properties::kz, v, exception_state);
}
double DOMPointReadOnly::w() const {
return getPointProperty(binding_call_methods::kw);
return getPointProperty(defined_properties::kw);
}
void DOMPointReadOnly::setW(double v, ExceptionState& exception_state) {
setPointProperty(binding_call_methods::kw, v, exception_state);
setPointProperty(defined_properties::kw, v, exception_state);
}

DOMPoint* DOMPointReadOnly::matrixTransform(DOMMatrix* matrix, ExceptionState& exception_state) const {
Expand Down

0 comments on commit 730da28

Please sign in to comment.