Skip to content

Commit 065af66

Browse files
Emil SjolanderFacebook Github Bot
authored andcommitted
Remove Style prefix in java and cs apis
Reviewed By: splhack Differential Revision: D4232920 fbshipit-source-id: 6e2ff21bbb7e0e441892023c14df579d1bc7aa49
1 parent b20b206 commit 065af66

File tree

4 files changed

+47
-47
lines changed

4 files changed

+47
-47
lines changed

ReactAndroid/src/main/java/com/facebook/csslayout/CSSNode.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -401,83 +401,83 @@ public void setPosition(int spacingType, float position) {
401401

402402
private native float jni_CSSNodeStyleGetWidth(long nativePointer);
403403
@Override
404-
public float getStyleWidth() {
404+
public float getWidth() {
405405
return jni_CSSNodeStyleGetWidth(mNativePointer);
406406
}
407407

408408
private native void jni_CSSNodeStyleSetWidth(long nativePointer, float width);
409409
@Override
410-
public void setStyleWidth(float width) {
410+
public void setWidth(float width) {
411411
jni_CSSNodeStyleSetWidth(mNativePointer, width);
412412
}
413413

414414
private native float jni_CSSNodeStyleGetHeight(long nativePointer);
415415
@Override
416-
public float getStyleHeight() {
416+
public float getHeight() {
417417
return jni_CSSNodeStyleGetHeight(mNativePointer);
418418
}
419419

420420
private native void jni_CSSNodeStyleSetHeight(long nativePointer, float height);
421421
@Override
422-
public void setStyleHeight(float height) {
422+
public void setHeight(float height) {
423423
jni_CSSNodeStyleSetHeight(mNativePointer, height);
424424
}
425425

426426
private native float jni_CSSNodeStyleGetMinWidth(long nativePointer);
427427
@Override
428-
public float getStyleMinWidth() {
428+
public float getMinWidth() {
429429
return jni_CSSNodeStyleGetMinWidth(mNativePointer);
430430
}
431431

432432
private native void jni_CSSNodeStyleSetMinWidth(long nativePointer, float minWidth);
433433
@Override
434-
public void setStyleMinWidth(float minWidth) {
434+
public void setMinWidth(float minWidth) {
435435
jni_CSSNodeStyleSetMinWidth(mNativePointer, minWidth);
436436
}
437437

438438
private native float jni_CSSNodeStyleGetMinHeight(long nativePointer);
439439
@Override
440-
public float getStyleMinHeight() {
440+
public float getMinHeight() {
441441
return jni_CSSNodeStyleGetMinHeight(mNativePointer);
442442
}
443443

444444
private native void jni_CSSNodeStyleSetMinHeight(long nativePointer, float minHeight);
445445
@Override
446-
public void setStyleMinHeight(float minHeight) {
446+
public void setMinHeight(float minHeight) {
447447
jni_CSSNodeStyleSetMinHeight(mNativePointer, minHeight);
448448
}
449449

450450
private native float jni_CSSNodeStyleGetMaxWidth(long nativePointer);
451451
@Override
452-
public float getStyleMaxWidth() {
452+
public float getMaxWidth() {
453453
return jni_CSSNodeStyleGetMaxWidth(mNativePointer);
454454
}
455455

456456
private native void jni_CSSNodeStyleSetMaxWidth(long nativePointer, float maxWidth);
457457
@Override
458-
public void setStyleMaxWidth(float maxWidth) {
458+
public void setMaxWidth(float maxWidth) {
459459
jni_CSSNodeStyleSetMaxWidth(mNativePointer, maxWidth);
460460
}
461461

462462
private native float jni_CSSNodeStyleGetMaxHeight(long nativePointer);
463463
@Override
464-
public float getStyleMaxHeight() {
464+
public float getMaxHeight() {
465465
return jni_CSSNodeStyleGetMaxHeight(mNativePointer);
466466
}
467467

468468
private native void jni_CSSNodeStyleSetMaxHeight(long nativePointer, float maxheight);
469469
@Override
470-
public void setStyleMaxHeight(float maxheight) {
470+
public void setMaxHeight(float maxheight) {
471471
jni_CSSNodeStyleSetMaxHeight(mNativePointer, maxheight);
472472
}
473473

474474
private native float jni_CSSNodeStyleGetAspectRatio(long nativePointer);
475-
public float getStyleAspectRatio() {
475+
public float getAspectRatio() {
476476
return jni_CSSNodeStyleGetAspectRatio(mNativePointer);
477477
}
478478

479479
private native void jni_CSSNodeStyleSetAspectRatio(long nativePointer, float aspectRatio);
480-
public void setStyleAspectRatio(float aspectRatio) {
480+
public void setAspectRatio(float aspectRatio) {
481481
jni_CSSNodeStyleSetAspectRatio(mNativePointer, aspectRatio);
482482
}
483483

ReactAndroid/src/main/java/com/facebook/csslayout/CSSNodeAPI.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,18 @@ long measure(
6868
void setBorder(int spacingType, float border);
6969
float getPosition(int spacingType);
7070
void setPosition(int spacingType, float position);
71-
float getStyleWidth();
72-
void setStyleWidth(float width);
73-
float getStyleHeight();
74-
void setStyleHeight(float height);
75-
float getStyleMaxWidth();
76-
void setStyleMaxWidth(float maxWidth);
77-
float getStyleMinWidth();
78-
void setStyleMinWidth(float minWidth);
79-
float getStyleMaxHeight();
80-
void setStyleMaxHeight(float maxHeight);
81-
float getStyleMinHeight();
82-
void setStyleMinHeight(float minHeight);
71+
float getWidth();
72+
void setWidth(float width);
73+
float getHeight();
74+
void setHeight(float height);
75+
float getMaxWidth();
76+
void setMaxWidth(float maxWidth);
77+
float getMinWidth();
78+
void setMinWidth(float minWidth);
79+
float getMaxHeight();
80+
void setMaxHeight(float maxHeight);
81+
float getMinHeight();
82+
void setMinHeight(float minHeight);
8383
float getLayoutX();
8484
float getLayoutY();
8585
float getLayoutWidth();

ReactAndroid/src/main/java/com/facebook/csslayout/CSSNodeDEPRECATED.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -464,12 +464,12 @@ public void setPosition(int spacingType, float position) {
464464
* Get this node's width, as defined in the style.
465465
*/
466466
@Override
467-
public float getStyleWidth() {
467+
public float getWidth() {
468468
return style.dimensions[DIMENSION_WIDTH];
469469
}
470470

471471
@Override
472-
public void setStyleWidth(float width) {
472+
public void setWidth(float width) {
473473
if (!valuesEqual(style.dimensions[DIMENSION_WIDTH], width)) {
474474
style.dimensions[DIMENSION_WIDTH] = width;
475475
dirty();
@@ -480,12 +480,12 @@ public void setStyleWidth(float width) {
480480
* Get this node's height, as defined in the style.
481481
*/
482482
@Override
483-
public float getStyleHeight() {
483+
public float getHeight() {
484484
return style.dimensions[DIMENSION_HEIGHT];
485485
}
486486

487487
@Override
488-
public void setStyleHeight(float height) {
488+
public void setHeight(float height) {
489489
if (!valuesEqual(style.dimensions[DIMENSION_HEIGHT], height)) {
490490
style.dimensions[DIMENSION_HEIGHT] = height;
491491
dirty();
@@ -496,12 +496,12 @@ public void setStyleHeight(float height) {
496496
* Get this node's max width, as defined in the style
497497
*/
498498
@Override
499-
public float getStyleMaxWidth() {
499+
public float getMaxWidth() {
500500
return style.maxWidth;
501501
}
502502

503503
@Override
504-
public void setStyleMaxWidth(float maxWidth) {
504+
public void setMaxWidth(float maxWidth) {
505505
if (!valuesEqual(style.maxWidth, maxWidth)) {
506506
style.maxWidth = maxWidth;
507507
dirty();
@@ -512,12 +512,12 @@ public void setStyleMaxWidth(float maxWidth) {
512512
* Get this node's min width, as defined in the style
513513
*/
514514
@Override
515-
public float getStyleMinWidth() {
515+
public float getMinWidth() {
516516
return style.minWidth;
517517
}
518518

519519
@Override
520-
public void setStyleMinWidth(float minWidth) {
520+
public void setMinWidth(float minWidth) {
521521
if (!valuesEqual(style.minWidth, minWidth)) {
522522
style.minWidth = minWidth;
523523
dirty();
@@ -528,12 +528,12 @@ public void setStyleMinWidth(float minWidth) {
528528
* Get this node's max height, as defined in the style
529529
*/
530530
@Override
531-
public float getStyleMaxHeight() {
531+
public float getMaxHeight() {
532532
return style.maxHeight;
533533
}
534534

535535
@Override
536-
public void setStyleMaxHeight(float maxHeight) {
536+
public void setMaxHeight(float maxHeight) {
537537
if (!valuesEqual(style.maxHeight, maxHeight)) {
538538
style.maxHeight = maxHeight;
539539
dirty();
@@ -544,12 +544,12 @@ public void setStyleMaxHeight(float maxHeight) {
544544
* Get this node's min height, as defined in the style
545545
*/
546546
@Override
547-
public float getStyleMinHeight() {
547+
public float getMinHeight() {
548548
return style.minHeight;
549549
}
550550

551551
@Override
552-
public void setStyleMinHeight(float minHeight) {
552+
public void setMinHeight(float minHeight) {
553553
if (!valuesEqual(style.minHeight, minHeight)) {
554554
style.minHeight = minHeight;
555555
dirty();

ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -529,35 +529,35 @@ public void setLayoutDirection(CSSDirection direction) {
529529
}
530530

531531
public final float getStyleWidth() {
532-
return mCSSNode.getStyleWidth();
532+
return mCSSNode.getWidth();
533533
}
534534

535535
public void setStyleWidth(float widthPx) {
536-
mCSSNode.setStyleWidth(widthPx);
536+
mCSSNode.setWidth(widthPx);
537537
}
538538

539539
public void setStyleMinWidth(float widthPx) {
540-
mCSSNode.setStyleMinWidth(widthPx);
540+
mCSSNode.setMinWidth(widthPx);
541541
}
542542

543543
public void setStyleMaxWidth(float widthPx) {
544-
mCSSNode.setStyleMaxWidth(widthPx);
544+
mCSSNode.setMaxWidth(widthPx);
545545
}
546546

547547
public final float getStyleHeight() {
548-
return mCSSNode.getStyleHeight();
548+
return mCSSNode.getHeight();
549549
}
550550

551551
public void setStyleHeight(float heightPx) {
552-
mCSSNode.setStyleHeight(heightPx);
552+
mCSSNode.setHeight(heightPx);
553553
}
554554

555555
public void setStyleMinHeight(float widthPx) {
556-
mCSSNode.setStyleMinHeight(widthPx);
556+
mCSSNode.setMinHeight(widthPx);
557557
}
558558

559559
public void setStyleMaxHeight(float widthPx) {
560-
mCSSNode.setStyleMaxHeight(widthPx);
560+
mCSSNode.setMaxHeight(widthPx);
561561
}
562562

563563
public void setFlex(float flex) {
@@ -577,7 +577,7 @@ public void setFlexBasis(float flexBasis) {
577577
}
578578

579579
public void setStyleAspectRatio(float aspectRatio) {
580-
mCSSNode.setStyleAspectRatio(aspectRatio);
580+
mCSSNode.setAspectRatio(aspectRatio);
581581
}
582582

583583
public void setFlexDirection(CSSFlexDirection flexDirection) {

0 commit comments

Comments
 (0)