Archived
Configured colours and added additional images to ready app for iOS 13 dark mode
This commit is contained in:
Generated
+10
-4
@@ -750,9 +750,15 @@ open class Node: Equatable, Hashable {
|
||||
}
|
||||
|
||||
open func tail(_ node: Node, _ depth: Int)throws {
|
||||
// When compiling a release optimized swift linux 4.2 version the "saves a void hit."
|
||||
// causes a SIL error. Removing optimization on linux until a fix is found.
|
||||
#if os(Linux)
|
||||
try node.outerHtmlTail(accum, depth, out)
|
||||
#else
|
||||
if (!(node.nodeName() == OuterHtmlVisitor.text)) { // saves a void hit.
|
||||
try node.outerHtmlTail(accum, depth, out)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -772,10 +778,10 @@ open class Node: Equatable, Hashable {
|
||||
///
|
||||
/// Hash values are not guaranteed to be equal across different executions of
|
||||
/// your program. Do not save hash values to use during a future execution.
|
||||
public var hashValue: Int {
|
||||
return description.hashValue ^ (baseUri?.hashValue ?? 31)
|
||||
}
|
||||
|
||||
public func hash(into hasher: inout Hasher) {
|
||||
hasher.combine(description)
|
||||
hasher.combine(baseUri)
|
||||
}
|
||||
}
|
||||
|
||||
extension Node: CustomStringConvertible {
|
||||
|
||||
Reference in New Issue
Block a user