mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2025-02-25 23:28:49 +00:00
commit
b575e2da6c
@ -399,7 +399,12 @@ void SetBgImgPosition(const DimensionUnit& typeX, const DimensionUnit& typeY, co
|
||||
|
||||
std::string GetReplaceContentStr(int pos, const std::string& type, JSRef<JSArray> params, int32_t containCount)
|
||||
{
|
||||
JSRef<JSVal> item = params->GetValueAt(pos + containCount);
|
||||
auto index = pos + containCount;
|
||||
if (index < 0) {
|
||||
return std::string();
|
||||
}
|
||||
|
||||
JSRef<JSVal> item = params->GetValueAt(static_cast<size_t>(index));
|
||||
if (type == "d") {
|
||||
if (item->IsNumber()) {
|
||||
return std::to_string(item->ToNumber<int32_t>());
|
||||
|
@ -4491,7 +4491,7 @@ void ViewAbstract::SetJSFrameNodeOnVisibleAreaApproximateChange(FrameNode* frame
|
||||
frameNode->CleanVisibleAreaUserCallback(true);
|
||||
|
||||
constexpr uint32_t minInterval = 100; // 100ms
|
||||
if (interval < 0 || interval < minInterval) {
|
||||
if (interval < 0 || static_cast<uint32_t>(interval) < minInterval) {
|
||||
interval = minInterval;
|
||||
}
|
||||
VisibleCallbackInfo callback;
|
||||
|
Loading…
x
Reference in New Issue
Block a user