-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add will-change CSS properties #2691
Conversation
@@ -89,6 +89,9 @@ ol.Overlay = function(options) { | |||
*/ | |||
this.element_ = goog.dom.createElement(goog.dom.TagName.DIV); | |||
this.element_.style.position = 'absolute'; | |||
if (goog.isDef(this.element_.style.willChange)) { | |||
this.element_.style.willChange = 'bottom, left, right, top'; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.element_
will be null
here if #2594 gets merged.
bd1eda2
to
0f7df18
Compare
Changed the implementation for css only solution |
212257a
to
09d21f0
Compare
@fredj are you interested in continuing this work? Closing for now. Feel free to reopen if you want to work on this again. |
This PR is ready |
Looks good to me. Please. PS: I hope this won't break anything. |
I'll wait for #2594 before merging |
Makes sense. |
80f43e5
to
52959ab
Compare
This has waited for a long time now. If no objection is raised I'll merge this PR. |
Yep, please merge. Thanks. |
Tested with Chrome 37; with this property the overlays are rendered into their own rendering layer.
This can be seen by checking the "Show composited layer borders" in the chrome dev tools