Skip to content

Commit 286b89e

Browse files
committed
ch4
1 parent 0754044 commit 286b89e

File tree

4 files changed

+1
-10
lines changed

4 files changed

+1
-10
lines changed

app/browser-rs/src/gui.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use alloc::string::String;
22
use liumlib::gui::*;
33

4-
#[derive(Debug, Clone)]
54
pub struct ApplicationWindow {
65
width: u64,
76
height: u64,

app/browser-rs/src/renderer/html/dom.rs

-6
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,6 @@ impl HtmlParser {
359359
// https://html.spec.whatwg.org/multipage/parsing.html#the-before-html-insertion-mode
360360
InsertionMode::BeforeHtml => {
361361
match token {
362-
Some(HtmlToken::Doctype) => {
363-
token = self.t.next();
364-
continue;
365-
}
366362
Some(HtmlToken::Char(c)) => {
367363
if c == ' ' || c == '\n' {
368364
token = self.t.next();
@@ -488,7 +484,6 @@ impl HtmlParser {
488484
Some(HtmlToken::Eof) | None => {
489485
return self.root.clone();
490486
}
491-
_ => {}
492487
}
493488
self.mode = InsertionMode::AfterHead;
494489
self.pop_until(ElementKind::Head);
@@ -598,7 +593,6 @@ impl HtmlParser {
598593
Some(HtmlToken::Eof) | None => {
599594
return self.root.clone();
600595
}
601-
_ => {}
602596
}
603597
} // end of InsertionMode::InBody
604598

app/browser-rs/src/renderer/html/token.rs

-2
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@ pub enum State {
3939
SelfClosingStartTag,
4040
}
4141

42-
#[allow(dead_code)]
4342
#[derive(Debug, Clone, PartialEq, Eq)]
4443
pub enum HtmlToken {
45-
Doctype,
4644
StartTag {
4745
tag: String,
4846
self_closing: bool,

scripts/gen_tool_defs_macos.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
LLVM_PREFIX=`brew --prefix llvm@8`
1+
LLVM_PREFIX=`brew --prefix llvm`
22
echo "LLVM_CC:=${LLVM_PREFIX}/bin/clang"
33
echo "LLVM_CXX:=${LLVM_PREFIX}/bin/clang++"
44
echo "HOST_CC:=clang"

0 commit comments

Comments
 (0)