Skip to content

Commit

Permalink
fix: fix url image css value parse.
Browse files Browse the repository at this point in the history
  • Loading branch information
andycall committed Oct 4, 2024
1 parent faa9e23 commit 3d8b0ca
Show file tree
Hide file tree
Showing 10 changed files with 484 additions and 44 deletions.
43 changes: 21 additions & 22 deletions bridge/core/css/css_image_value.cc
Original file line number Diff line number Diff line change
@@ -1,34 +1,33 @@
/*
* (C) 1999-2003 Lars Knoll (knoll@kde.org)
* Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
* (C) 1999-2003 Lars Knoll (knoll@kde.org)
* Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#include "core/css/css_image_value.h"

namespace webf {

CSSImageValue::CSSImageValue(CSSUrlData url_data, StyleImage* image)
: CSSValue(kImageClass)
{}
: CSSValue(kImageClass), url_data_(std::move(url_data)) {}

CSSImageValue::~CSSImageValue() = default;

std::string CSSImageValue::CustomCSSText() const {
return "";
return url_data_.CssText();
}

} // namespace blink
} // namespace webf
2 changes: 1 addition & 1 deletion bridge/core/css/css_image_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class CSSImageValue : public CSSValue {
// SVGResource* EnsureSVGResource() const;

private:
// CSSUrlData url_data_;
CSSUrlData url_data_;
// AtomicString initiator_name_;

// Cached image data.
Expand Down
Loading

0 comments on commit 3d8b0ca

Please sign in to comment.