Skip to content

Commit cf53746

Browse files
committed
add FIX comments
1 parent a786549 commit cf53746

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

src/components/script/dom/htmliframeelement.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ impl HTMLIFrameElement {
116116
if "sandbox" == name {
117117
let mut modes = AllowNothing as u8;
118118
for word in value.split_iter(' ') {
119+
// FIXME: Workaround for https://github.com/mozilla/rust/issues/10683
119120
let word_lower = word.to_ascii_lower();
120121
modes |= match word_lower.as_slice() {
121122
"allow-same-origin" => AllowSameOrigin,

src/components/style/common_types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ pub mod specified {
5050
Length::parse_internal(input, /* negative_ok = */ false)
5151
}
5252
pub fn parse_dimension(value: CSSFloat, unit: &str) -> Option<Length> {
53+
// FIXME: Workaround for https://github.com/mozilla/rust/issues/10683
5354
let unit_lower = unit.to_ascii_lower();
5455
match unit_lower.as_slice() {
5556
"px" => Some(Length::from_px(value)),

src/components/style/media_queries.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ pub fn parse_media_query_list(input: &[ComponentValue]) -> MediaQueryList {
8282
loop {
8383
let mq = match next {
8484
Some(&Ident(ref value)) => {
85+
// FIXME: Workaround for https://github.com/mozilla/rust/issues/10683
8586
let value_lower = value.to_ascii_lower();
8687
match value_lower.as_slice() {
8788
"screen" => Some(MediaQuery{ media_type: MediaType(Screen) }),

src/components/style/properties.rs.mako

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ pub mod longhands {
190190
pub fn parse_border_width(component_value: &ComponentValue) -> Option<specified::Length> {
191191
match component_value {
192192
&Ident(ref value) => {
193+
// FIXME: Workaround for https://github.com/mozilla/rust/issues/10683
193194
let value_lower = value.to_ascii_lower();
194195
match value_lower.as_slice() {
195196
"thin" => Some(specified::Length::from_px(1.)),
@@ -336,6 +337,7 @@ pub mod longhands {
336337
pub fn from_component_value(input: &ComponentValue) -> Option<SpecifiedValue> {
337338
match input {
338339
&Ident(ref value) => {
340+
// FIXME: Workaround for https://github.com/mozilla/rust/issues/10683
339341
let value_lower = value.to_ascii_lower();
340342
match value_lower.as_slice() {
341343
% for keyword in vertical_align_keywords:
@@ -460,6 +462,7 @@ pub mod longhands {
460462
// TODO: avoid copying strings?
461463
Some(&String(ref value)) => add!(FamilyName(value.to_owned())),
462464
Some(&Ident(ref value)) => {
465+
// FIXME: Workaround for https://github.com/mozilla/rust/issues/10683
463466
let value = value.as_slice();
464467
let value_lower = value.to_ascii_lower();
465468
match value_lower.as_slice() {
@@ -511,6 +514,7 @@ pub mod longhands {
511514
pub fn from_component_value(input: &ComponentValue) -> Option<SpecifiedValue> {
512515
match input {
513516
&Ident(ref value) => {
517+
// FIXME: Workaround for https://github.com/mozilla/rust/issues/10683
514518
let value_lower = value.to_ascii_lower();
515519
match value_lower.as_slice() {
516520
"bold" => Some(SpecifiedWeight700),

src/components/style/selectors.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ fn parse_one_simple_selector(iter: &mut Iter, namespaces: &NamespaceMap, inside_
309309
match iter.next() {
310310
Some(Ident(name)) => match parse_simple_pseudo_class(name) {
311311
None => {
312+
// FIXME: Workaround for https://github.com/mozilla/rust/issues/10683
312313
let name_lower = name.to_ascii_lower();
313314
match name_lower.as_slice() {
314315
// Supported CSS 2.1 pseudo-elements only.
@@ -446,6 +447,7 @@ fn parse_attribute_selector(content: ~[ComponentValue], namespaces: &NamespaceMa
446447

447448

448449
fn parse_simple_pseudo_class(name: &str) -> Option<SimpleSelector> {
450+
// FIXME: Workaround for https://github.com/mozilla/rust/issues/10683
449451
let name_lower = name.to_ascii_lower();
450452
match name_lower.as_slice() {
451453
"any-link" => Some(AnyLink),
@@ -467,6 +469,7 @@ fn parse_simple_pseudo_class(name: &str) -> Option<SimpleSelector> {
467469
fn parse_functional_pseudo_class(name: ~str, arguments: ~[ComponentValue],
468470
namespaces: &NamespaceMap, inside_negation: bool)
469471
-> Option<SimpleSelector> {
472+
// FIXME: Workaround for https://github.com/mozilla/rust/issues/10683
470473
let name_lower = name.to_ascii_lower();
471474
match name_lower.as_slice() {
472475
// "lang" => parse_lang(arguments),
@@ -481,6 +484,7 @@ fn parse_functional_pseudo_class(name: ~str, arguments: ~[ComponentValue],
481484

482485

483486
fn parse_pseudo_element(name: ~str) -> Option<PseudoElement> {
487+
// FIXME: Workaround for https://github.com/mozilla/rust/issues/10683
484488
let name_lower = name.to_ascii_lower();
485489
match name_lower.as_slice() {
486490
// All supported pseudo-elements

0 commit comments

Comments
 (0)