Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ bool isRootShadowNode(const ShadowNode& shadowNode) {
NativeDOM::NativeDOM(std::shared_ptr<CallInvoker> jsInvoker)
: NativeDOMCxxSpec(std::move(jsInvoker)) {}

#pragma mark - Methods from the `Node` interface (for `ReadOnlyNode`).
#pragma mark - Methods from the Node interface (for ReadOnlyNode).

double NativeDOM::compareDocumentPosition(
jsi::Runtime& rt,
Expand All @@ -119,7 +119,7 @@ double NativeDOM::compareDocumentPosition(

if (isRootShadowNode(*otherShadowNode)) {
// If the other is a root node, we just need to check if it is its
// `documentElement`
// documentElement
return (surfaceId == otherShadowNode->getSurfaceId())
? dom::DOCUMENT_POSITION_CONTAINED_BY |
dom::DOCUMENT_POSITION_FOLLOWING
Expand Down Expand Up @@ -232,7 +232,7 @@ bool NativeDOM::isConnected(jsi::Runtime& rt, jsi::Value nativeNodeReference) {
return dom::isConnected(currentRevision, *shadowNode);
}

#pragma mark - Methods from the `Element` interface (for `ReactNativeElement`).
#pragma mark - Methods from the Element interface (for ReactNativeElement).

std::tuple<
/* topWidth: */ int,
Expand Down Expand Up @@ -358,7 +358,7 @@ void NativeDOM::setPointerCapture(
static_cast<PointerIdentifier>(pointerId), shadowNode);
}

#pragma mark - Methods from the `HTMLElement` interface (for `ReactNativeElement`).
#pragma mark - Methods from the HTMLElement interface (for ReactNativeElement).

std::tuple<
/* offsetParent: */ jsi::Value,
Expand Down Expand Up @@ -401,7 +401,7 @@ jsi::Value NativeDOM::linkRootNode(
return Bridging<std::shared_ptr<const ShadowNode>>::toJs(rt, currentRevision);
}

#pragma mark - Legacy layout APIs (for `ReactNativeElement`).
#pragma mark - Legacy layout APIs (for ReactNativeElement).

void NativeDOM::measure(
jsi::Runtime& rt,
Expand Down Expand Up @@ -466,7 +466,7 @@ void NativeDOM::measureLayout(
onSuccess(rect.x, rect.y, rect.width, rect.height);
}

#pragma mark - Legacy direct manipulation APIs (for `ReactNativeElement`).
#pragma mark - Legacy direct manipulation APIs (for ReactNativeElement).

void NativeDOM::setNativeProps(
jsi::Runtime& rt,
Expand Down
Loading