Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
openkraken-bot committed Jan 27, 2022
1 parent 6996425 commit d8ea682
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion bridge/bindings/qjs/dom/element.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class SpaceSplitString {
std::vector<std::string> m_szData;
};


// TODO: refactor for better W3C standard support and higher performance.
// https://dom.spec.whatwg.org/#interface-namednodemap
class NamedNodeMap : public GarbageCollected<NamedNodeMap> {
Expand Down
4 changes: 0 additions & 4 deletions bridge/bindings/qjs/dom/style_declaration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ IMPL_FUNCTION(CSSStyleDeclaration, removeProperty)(JSContext* ctx, JSValue this_
return JS_UNDEFINED;
}


IMPL_FUNCTION(CSSStyleDeclaration, getPropertyValue)(JSContext* ctx, JSValue this_val, int argc, JSValue* argv) {
if (argc < 1)
return JS_ThrowTypeError(ctx, "Failed to execute 'getPropertyValue' on 'CSSStyleDeclaration': 1 arguments required, but only 0 present.");
Expand Down Expand Up @@ -159,7 +158,6 @@ JSValue StyleDeclaration::getPropertyValue(std::string& name) {
return JS_NewString(m_ctx, "");
}


void parseRules(std::string& source, ParseRuleCallback callback, void* context) {
uint32_t idx = 0;
uint32_t start = idx;
Expand Down Expand Up @@ -196,7 +194,6 @@ void parseRules(std::string& source, ParseRuleCallback callback, void* context)
}

void StyleDeclaration::setCssText(std::string& cssText) {

parseRules(
cssText,
[](void* p, std::string& key, std::string& value) {
Expand Down Expand Up @@ -264,7 +261,6 @@ JSValue StyleDeclaration::getObjectProperty(JSContext* ctx, JSValue obj, JSAtom
return result;
}


JSClassExoticMethods StyleDeclaration::m_exoticMethods{
nullptr, nullptr, nullptr, nullptr, nullptr, getObjectProperty, setObjectProperty,
};
Expand Down
2 changes: 1 addition & 1 deletion bridge/bindings/qjs/html_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void HTMLParser::parseProperty(ElementInstance* element, GumboElement* gumboElem
for (int j = 0; j < attributes->length; ++j) {
auto* attribute = (GumboAttribute*)attributes->data[j]

std::string strName = attribute->name;
std::string strName = attribute->name;
std::string strValue = attribute->value;

JSValue key = JS_NewString(ctx, strName.c_str());
Expand Down

0 comments on commit d8ea682

Please sign in to comment.