diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-04-18 16:56:54 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-04-18 16:56:54 +0200 |
commit | bdb8657cf68307249607b6abe9723c8577ea7621 (patch) | |
tree | 96b822d239e8e37770cb012dbf79c49d7e243b89 /components/script/dom/htmltablesectionelement.rs | |
parent | 39e3ace817572771d9df38ec125f754f800065b5 (diff) | |
download | servo-bdb8657cf68307249607b6abe9723c8577ea7621.tar.gz servo-bdb8657cf68307249607b6abe9723c8577ea7621.zip |
Use get_attr_for_layout in ghas_class_for_layout.
This fixes a panic if this code was ever called on an element with a class
attribute in a non-null namespace. In this case, the attribute would not have
been parsed into a list of tokens, so value_tokens_forever() would have
returned None.
However, this function is, as far as I can tell, never called, because of the
way selectors are evaluated in layout. ('Return the selectors that match this
node' rather than 'return the nodes that match this selector'; the latter
uses only each_class.)
Diffstat (limited to 'components/script/dom/htmltablesectionelement.rs')
0 files changed, 0 insertions, 0 deletions