Searched refs:marginLeft (Results 1 - 2 of 2) sorted by relevance
/base/web/webview/ohos_nweb/include/ |
H A D | nweb_init_params.h | 281 const double marginBottom, const double marginRight, const double marginLeft, const bool shouldPrintBackground) in NWebPDFConfigArgsImpl() 283 marginRight_(marginRight), marginLeft_(marginLeft), shouldPrintBackground_(shouldPrintBackground) in NWebPDFConfigArgsImpl() 280 NWebPDFConfigArgsImpl(const double width, const double height, const double scale, const double marginTop, const double marginBottom, const double marginRight, const double marginLeft, const bool shouldPrintBackground) NWebPDFConfigArgsImpl() argument
|
/base/web/webview/interfaces/kits/napi/webviewcontroller/ |
H A D | napi_webview_controller.cpp | 379 double marginLeft = TEN_MILLIMETER_TO_INCH; in ParsePDFMarginConfigArgs() local 380 napi_get_named_property(env, preArgs, "marginLeft", &marginLeftObj); in ParsePDFMarginConfigArgs() 381 if (!NapiParseUtils::ParseDouble(env, marginLeftObj, marginLeft)) { in ParsePDFMarginConfigArgs() 383 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "marginLeft", "number")); in ParsePDFMarginConfigArgs() 386 marginLeft = (marginLeft >= width / HALF || marginLeft <= 0.0) ? 0.0 : marginLeft; in ParsePDFMarginConfigArgs() 388 return { marginTop, marginBottom, marginRight, marginLeft }; in ParsePDFMarginConfigArgs()
|
Completed in 11 milliseconds