MCPcopy Create free account
hub / github.com/Snapchat/Valdi / computeVisualFrameInRoot

Method computeVisualFrameInRoot

valdi/src/valdi/runtime/Context/ViewNode.cpp:1971–1975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1969}
1970
1971Frame ViewNode::computeVisualFrameInRoot() const {
1972 auto selfFrame = getCalculatedFrame();
1973 auto rootVisual = convertSelfVisualToRootVisual(Point(0, 0));
1974 return Frame(rootVisual.x, rootVisual.y, selfFrame.width, selfFrame.height);
1975}
1976
1977void ViewNode::ensureFrameIsVisibleWithinParentScrolls(ViewTransactionScope& viewTransactionScope,
1978 bool animated) const {

Callers 2

TESTFunction · 0.80
writeViewNodeMethod · 0.80

Calls 2

PointClass · 0.50
FrameClass · 0.50

Tested by 1

TESTFunction · 0.64