LibWeb: replace some tab characters with spaces

also add missing "#pragma once" in StylePropertiesModel.h
This commit is contained in:
Emanuele Torre 2020-05-28 14:20:12 +02:00 committed by Andreas Kling
parent 97b5fbda7f
commit 0b0036f430
2 changed files with 8 additions and 6 deletions

View file

@ -24,10 +24,10 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "StylePropertiesModel.h"
#include <LibWeb/CSS/PropertyID.h>
#include <LibWeb/DOM/Document.h>
#include <LibWeb/CSS/StyleProperties.h>
#include <LibWeb/DOM/Document.h>
#include <LibWeb/StylePropertiesModel.h>
namespace Web {
@ -35,10 +35,10 @@ StylePropertiesModel::StylePropertiesModel(const StyleProperties& properties)
: m_properties(properties)
{
properties.for_each_property([&](auto property_id, auto& property_value) {
Value value;
value.name = CSS::string_from_property_id(property_id);
value.value = property_value.to_string();
m_values.append(value);
Value value;
value.name = CSS::string_from_property_id(property_id);
value.value = property_value.to_string();
m_values.append(value);
});
}

View file

@ -24,6 +24,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#pragma once
#include <AK/NonnullRefPtrVector.h>
#include <LibGUI/Model.h>