| 3217 | } |
| 3218 | |
| 3219 | void ViewNode::setUpdatingScrollSpecs(bool updatingScrollSpecs) { |
| 3220 | _flags[kUpdatingScrollSpecs] = updatingScrollSpecs; |
| 3221 | } |
| 3222 | |
| 3223 | bool ViewNode::isUpdatingScrollSpecs() const { |
| 3224 | return _flags[kUpdatingScrollSpecs]; |
| 3225 | } |
| 3226 | |
| 3227 | void ViewNode::applyFrame(ViewTransactionScope& viewTransactionScope, |
| 3228 | const SharedAnimator& animator, |
| 3229 | const Frame& frame, |
| 3230 | bool notifyAssetHandler) const { |
| 3231 | if (!hasParent() || !hasView()) { |
| 3232 | // Root node doesn't need to call onViewFrameChanged. |
| 3233 | // Its frame is driven by native code. |
| 3234 | return; |
| 3235 | } |
| 3236 | |
| 3237 | if (parentManagesChildFrames()) { |
| 3238 | if (notifyAssetHandler && _assetHandler != nullptr) { |
| 3239 | _assetHandler->onContainerSizeChanged(frame.width, frame.height); |
| 3240 | } |
| 3241 | return; |