diff options
| author | Christian Clauss <cclauss@me.com> | 2025-10-07 20:58:04 +0200 |
|---|---|---|
| committer | Yuri Kobets <yuri.kobets@gmail.com> | 2025-10-07 23:22:00 +0300 |
| commit | 91b12df37f5e0d7b2ae6e187e6559ff96b163b77 (patch) | |
| tree | a7a4fb5eecc16b6fd7093bb297064dfdce95d606 /src | |
| parent | d1a2e1fec363f341a2c4722b9c20b3ab05f20562 (diff) | |
Fix typos discovered by codespellupstream/master
Diffstat (limited to 'src')
| -rw-r--r-- | src/css_parser.cpp | 2 | ||||
| -rw-r--r-- | src/encodings.cpp | 2 | ||||
| -rw-r--r-- | src/gumbo/tokenizer.c | 4 | ||||
| -rw-r--r-- | src/line_box.cpp | 4 | ||||
| -rw-r--r-- | src/style.cpp | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/src/css_parser.cpp b/src/css_parser.cpp index 3a78b006..fb595216 100644 --- a/src/css_parser.cpp +++ b/src/css_parser.cpp @@ -141,7 +141,7 @@ css_token_vector normalize(string input, int options, keep_whitespace_fn keep_wh } // https://www.w3.org/TR/css-syntax-3/#parse-stylesheet -// I don't create a stylesheet because its only perpose is to pass a list of rules to +// I don't create a stylesheet because its only purpose is to pass a list of rules to // parse_css_stylesheet. I just return the list of rules directly instead. raw_rule::vector css_parser::parse_stylesheet(const string& input, bool top_level) { diff --git a/src/encodings.cpp b/src/encodings.cpp index f56c0f10..3159eaf9 100644 --- a/src/encodings.cpp +++ b/src/encodings.cpp @@ -2031,7 +2031,7 @@ void encoding_sniffing_algorithm(estring& str) if (str.encoding == encoding::null) { str.encoding = encoding::utf_8; - str.confidence = confidence::tentative; // tentative means it will be overriden by <meta> encoding if present + str.confidence = confidence::tentative; // tentative means it will be overridden by <meta> encoding if present } // otherwise use str.encoding (tentative) } diff --git a/src/gumbo/tokenizer.c b/src/gumbo/tokenizer.c index 71b5d32a..a4e72d57 100644 --- a/src/gumbo/tokenizer.c +++ b/src/gumbo/tokenizer.c @@ -83,7 +83,7 @@ typedef struct GumboInternalTagState { const char* _original_text; // The current tag enum, computed once the tag name state has finished so that - // the buffer can be re-used for building up attributes. + // the buffer can be reused for building up attributes. GumboTag _tag; // The starting location of the text in the buffer. @@ -409,7 +409,7 @@ static void reset_token_start_point(GumboTokenizerState* tokenizer) { // Sets the tag buffer original text and start point to the current iterator // position. This is necessary because attribute names & values may have -// whitespace preceeding them, and so we can't assume that the actual token +// whitespace preceding them, and so we can't assume that the actual token // starting point was the end of the last tag buffer usage. static void reset_tag_buffer_start_point(GumboParser* parser) { GumboTokenizerState* tokenizer = parser->_tokenizer_state; diff --git a/src/line_box.cpp b/src/line_box.cpp index 675607a7..f29bf4ca 100644 --- a/src/line_box.cpp +++ b/src/line_box.cpp @@ -435,7 +435,7 @@ std::list< std::unique_ptr<litehtml::line_box_item> > litehtml::line_box::finish { case va_bottom: case va_top: - // Align by base line 0 all inline boxes with top and bottom vertical aling + // Align by base line 0 all inline boxes with top and bottom vertical align bl = 0; is_top_bottom_box = true; break; @@ -584,7 +584,7 @@ std::list< std::unique_ptr<litehtml::line_box_item> > litehtml::line_box::finish } } else { - // Add inline boxes dimentions + // Add inline boxes dimensions line_max_height.top = std::min(line_max_height.top, inline_boxes_dims.top); line_max_height.bottom = std::max(line_max_height.bottom, inline_boxes_dims.bottom); diff --git a/src/style.cpp b/src/style.cpp index 65aefdaf..f93745fb 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -1663,7 +1663,7 @@ void style::subst_vars(const html_tag* el) auto& value = prop.second.get<css_token_vector>(); subst_vars_(prop.first, value, el); // re-adding the same property - // if it is a custom property it will be readded as a css_token_vector + // if it is a custom property it will be re-added as a css_token_vector // if it is a standard css property it will be parsed and properly added as typed property add_property(prop.first, value, "", prop.second.m_important, el->get_document()->container()); } |
