Faster selector

This commit is contained in:
Nicolas Stepien 2012-01-04 14:31:06 +01:00
parent ed1184c9a1
commit 2196ea2c73
2 changed files with 10 additions and 10 deletions

View File

@ -3067,7 +3067,7 @@
return $.prepend(form, controls); return $.prepend(form, controls);
}, },
resize: function() { resize: function() {
return imgExpand.style.innerHTML = ".fitheight [md5] + img {max-height:" + d.body.clientHeight + "px;}"; return imgExpand.style.innerHTML = ".fitheight img[md5] + img {max-height:" + d.body.clientHeight + "px;}";
} }
}; };
@ -3270,14 +3270,14 @@
float: left;\ float: left;\
pointer-events: none;\ pointer-events: none;\
}\ }\
[md5], [md5] + img {\ img[md5], img[md5] + img {\
pointer-events: all;\ pointer-events: all;\
}\ }\
.fitwidth [md5] + img {\ .fitwidth img[md5] + img {\
max-width: 100%;\ max-width: 100%;\
}\ }\
.gecko > .fitwidth [md5] + img,\ .gecko > .fitwidth img[md5] + img,\
.presto > .fitwidth [md5] + img {\ .presto > .fitwidth img[md5] + img {\
width: 100%;\ width: 100%;\
}\ }\
\ \

View File

@ -2375,7 +2375,7 @@ imgExpand =
$.prepend form, controls $.prepend form, controls
resize: -> resize: ->
imgExpand.style.innerHTML = ".fitheight [md5] + img {max-height:#{d.body.clientHeight}px;}" imgExpand.style.innerHTML = ".fitheight img[md5] + img {max-height:#{d.body.clientHeight}px;}"
Main = Main =
init: -> init: ->
@ -2616,14 +2616,14 @@ Main =
float: left; float: left;
pointer-events: none; pointer-events: none;
} }
[md5], [md5] + img { img[md5], img[md5] + img {
pointer-events: all; pointer-events: all;
} }
.fitwidth [md5] + img { .fitwidth img[md5] + img {
max-width: 100%; max-width: 100%;
} }
.gecko > .fitwidth [md5] + img, .gecko > .fitwidth img[md5] + img,
.presto > .fitwidth [md5] + img { .presto > .fitwidth img[md5] + img {
width: 100%; width: 100%;
} }