Skip to content

Commit 14760f4

Browse files
committed
1 parent e512690 commit 14760f4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff --git a/node_modules/react-native-windows/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp b/node_modules/react-native-windows/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp
2+
index a9f0c1e..d472c0d 100644
3+
--- a/node_modules/react-native-windows/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp
4+
+++ b/node_modules/react-native-windows/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp
5+
@@ -897,11 +897,11 @@ bool CompositionBaseComponentView::TryUpdateSpecialBorderLayers(
6+
// We only handle a single borderStyle for now
7+
auto borderStyle = borderMetrics.borderStyles.left;
8+
9+
- if (borderMetrics.borderColors.isUniform()) {
10+
- if (!borderMetrics.borderWidths.left)
11+
- return false;
12+
- if (!facebook::react::isColorMeaningful(borderMetrics.borderColors.left))
13+
- return false;
14+
+ bool hasMeaningfulColor =
15+
+ !borderMetrics.borderColors.isUniform() || !facebook::react::isColorMeaningful(borderMetrics.borderColors.left);
16+
+ bool hasMeaningfulWidth = !borderMetrics.borderWidths.isUniform() || (borderMetrics.borderWidths.left != 0);
17+
+ if (!hasMeaningfulColor && !hasMeaningfulWidth) {
18+
+ return false;
19+
}
20+
21+
// Create the special border layers if they don't exist yet

0 commit comments

Comments
 (0)