Skip to content

Commit

Permalink
a little more unsafety.
Browse files Browse the repository at this point in the history
  • Loading branch information
dyoo committed Nov 10, 2012
1 parent 0bd740c commit 99792ff
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 1 addition & 2 deletions collects/scribble/base-render.rkt
Expand Up @@ -10,8 +10,7 @@
setup/path-relativize
file/convertible
net/url-structs
"render-struct.rkt"
racket/unsafe/ops)
"render-struct.rkt")

(provide render%
render<%>)
Expand Down
8 changes: 7 additions & 1 deletion collects/scribble/html-properties.rkt
Expand Up @@ -2,7 +2,8 @@
(require "private/provide-structs.rkt"
racket/contract/base
xml/xexpr
net/url-structs)
net/url-structs
racket/unsafe/ops)

(provide-structs
[body-id ([value string?])]
Expand All @@ -21,3 +22,8 @@
[column-attributes ([assoc (listof (cons/c symbol? string?))])]

[head-extra ([xexpr xexpr/c])])


(provide unsafe-css-addition-path unsafe-js-addition-path)
(define (unsafe-css-addition-path a) (unsafe-struct-ref a 0))
(define (unsafe-js-addition-path a) (unsafe-struct-ref a 0))
4 changes: 2 additions & 2 deletions collects/scribble/html-render.rkt
Expand Up @@ -684,7 +684,7 @@
'css
(lambda (p) (part-whole-page? p ri))
css-addition?
css-addition-path)
unsafe-css-addition-path)
(list style-file)
style-extra-files))
,(scribble-js-contents script-file (lookup-path script-file alt-paths))
Expand All @@ -700,7 +700,7 @@
'css
(lambda (p) (part-whole-page? p ri))
js-addition?
js-addition-path))
unsafe-js-addition-path))
,(xml:comment "[if IE 6]><style type=\"text/css\">.SIEHidden { overflow: hidden; }</style><![endif]")
,@(for/list ([p (style-properties (part-style d))]
#:when (head-extra? p))
Expand Down

0 comments on commit 99792ff

Please sign in to comment.