mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
stylo: Make URLs work in inline style
MozReview-Commit-ID: 6Tc0kBw4V8c
This commit is contained in:
parent
06f99c13f2
commit
4deae33ab1
3 changed files with 13 additions and 10 deletions
|
@ -296,13 +296,10 @@ impl<'le> fmt::Debug for GeckoElement<'le> {
|
|||
|
||||
impl<'le> GeckoElement<'le> {
|
||||
/// Parse the style attribute of an element.
|
||||
pub fn parse_style_attribute(value: &str) -> PropertyDeclarationBlock {
|
||||
// FIXME(bholley): Real base URL and error reporter.
|
||||
let base_url = &*DUMMY_BASE_URL;
|
||||
// FIXME(heycam): Needs real ParserContextExtraData so that URLs parse
|
||||
// properly.
|
||||
let extra_data = ParserContextExtraData::default();
|
||||
parse_style_attribute(value, &base_url, Box::new(StdoutErrorReporter), extra_data)
|
||||
pub fn parse_style_attribute(value: &str,
|
||||
base_url: &ServoUrl,
|
||||
extra_data: ParserContextExtraData) -> PropertyDeclarationBlock {
|
||||
parse_style_attribute(value, base_url, Box::new(StdoutErrorReporter), extra_data)
|
||||
}
|
||||
|
||||
fn flags(&self) -> u32 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue