Browse Source

Return inline (this time with noinline)

DOM_REFACTORING
Shagen Ogandzhanian 5 years ago
parent
commit
0522f038a6
  1. 8
      web/core/src/jsMain/kotlin/androidx/compose/web/elements/Elements.kt

8
web/core/src/jsMain/kotlin/androidx/compose/web/elements/Elements.kt

@ -878,8 +878,8 @@ fun Tfoot( @@ -878,8 +878,8 @@ fun Tfoot(
* Usually, it's [androidx.compose.web.css.StyleSheet] instance
*/
@Composable
fun Style(
applyAttrs: (AttrsBuilder<HTMLStyleElement>.() -> Unit)? = null,
inline fun Style(
noinline applyAttrs: (AttrsBuilder<HTMLStyleElement>.() -> Unit)? = null,
cssRules: CSSRuleDeclarationList
) {
TagElement(
@ -907,8 +907,8 @@ fun Style( @@ -907,8 +907,8 @@ fun Style(
* @param rulesBuild allows to define the style rules using [StyleSheetBuilder]
*/
@Composable
fun Style(
applyAttrs: (AttrsBuilder<HTMLStyleElement>.() -> Unit)? = null,
inline fun Style(
noinline applyAttrs: (AttrsBuilder<HTMLStyleElement>.() -> Unit)? = null,
rulesBuild: StyleSheetBuilder.() -> Unit
) {
val builder = StyleSheetBuilderImpl()

Loading…
Cancel
Save