黄区代码修复处理

Signed-off-by: xucheng57 <xucheng57@huawei.com>
This commit is contained in:
xucheng57
2022-04-08 17:03:12 +08:00
parent 1c7a45f49c
commit 163f3244d5
@@ -23,7 +23,6 @@
#include "jerryscript.h"
#include "modules/presets/image_module.h"
#include "image_component.h"
#include <sstream>
namespace OHOS {
namespace ACELite {
@@ -264,7 +263,6 @@ jerry_value_t CanvasComponent::FillStyleSetter(const jerry_value_t func,
uint32_t color = 0;
uint8_t alpha = OPA_OPAQUE;
uint16_t fillStyleId = KeyParser::ParseKeyId(component->fillStyleValue_, fillStyleLength);
if (ParseColor(component->fillStyleValue_, color, alpha)) {
component->paint_.SetFillColor(component->GetRGBColor(color));
component->paint_.SetOpacity(alpha);
@@ -326,7 +324,6 @@ jerry_value_t CanvasComponent::StrokeStyleSetter(const jerry_value_t func,
uint32_t color = 0;
uint8_t alpha = OPA_OPAQUE;
uint16_t strokeStyleId = KeyParser::ParseKeyId(component->strokeStyleValue_, strokeStyleLength);
if (ParseColor(component->strokeStyleValue_, color, alpha)) {
component->paint_.SetStrokeColor(component->GetRGBColor(color));
component->paint_.SetOpacity(alpha);