Skip to content

🏗 Replace hack to prevent inlining of cssText with a @noinline annotation#23373

Merged
rsimha merged 1 commit intoampproject:masterfrom
rsimha:2019-07-17-CssTextNoinline
Jul 17, 2019
Merged

🏗 Replace hack to prevent inlining of cssText with a @noinline annotation#23373
rsimha merged 1 commit intoampproject:masterfrom
rsimha:2019-07-17-CssTextNoinline

Conversation

@rsimha
Copy link
Copy Markdown
Contributor

@rsimha rsimha commented Jul 17, 2019

#10121 added a hack to AmpCodingConvention.java to prevent the inlining of CSS. This is no longer required because closure supports the @noinline annotation. (See google/closure-compiler#2751 and google/closure-compiler@5698304)

This PR replaces the hack with a @noinline annotation wherever cssText is defined.

Follow up to #23363
Partial fix for #17120 and #22452

@rsimha
Copy link
Copy Markdown
Contributor Author

rsimha commented Jul 17, 2019

Verified that this does not break the current inlining behavior of cssText in v0.js.

@rsimha rsimha merged commit 718adba into ampproject:master Jul 17, 2019
@rsimha rsimha deleted the 2019-07-17-CssTextNoinline branch July 17, 2019 19:04
rindo pushed a commit to logly/amphtml that referenced this pull request Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants