7#include "xfa/fxfa/parser/cxfa_margin.h"
9#include "fxjs/xfa/cjx_node.h"
10#include "xfa/fxfa/parser/cxfa_document.h"
33 {XFA_XDPPACKET::kTemplate, XFA_XDPPACKET::kForm},
38 cppgc::MakeGarbageCollected<CJX_Node>(
39 doc->GetHeap()->GetAllocationHandle(),
45 return TryLeftInset().value_or(0);
49 return TryTopInset().value_or(0);
53 return TryRightInset().value_or(0);
57 return TryBottomInset().value_or(0);
61 return JSObject()->TryMeasureAsFloat(
XFA_Attribute::LeftInset);
65 return JSObject()->TryMeasureAsFloat(
XFA_Attribute::TopInset);
69 return JSObject()->TryMeasureAsFloat(
XFA_Attribute::RightInset);
73 return JSObject()->TryMeasureAsFloat(
XFA_Attribute::BottomInset);
float GetBottomInset() const
absl::optional< float > TryTopInset() const
absl::optional< float > TryBottomInset() const
absl::optional< float > TryRightInset() const
absl::optional< float > TryLeftInset() const
float GetLeftInset() const
float GetTopInset() const
float GetRightInset() const