Skip to content
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

Merged
merged 3 commits into from
Mar 11, 2015
Merged

Add will-change CSS properties #2691

merged 3 commits into from
Mar 11, 2015

Conversation

fredj
Copy link
Member

@fredj fredj commented Sep 8, 2014

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

@@ -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';
}
Copy link
Member

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.

@fredj fredj force-pushed the will-change branch 2 times, most recently from bd1eda2 to 0f7df18 Compare October 8, 2014 14:09
@fredj
Copy link
Member Author

fredj commented Oct 8, 2014

Changed the implementation for css only solution

@fredj fredj force-pushed the will-change branch 2 times, most recently from 212257a to 09d21f0 Compare October 25, 2014 12:49
@tschaub tschaub modified the milestone: v3.2.0 Dec 22, 2014
@fredj fredj changed the title Add will-change CSS property to ol.Overlay element Add will-change CSS properties Jan 5, 2015
@elemoine
Copy link
Member

@fredj are you interested in continuing this work? Closing for now. Feel free to reopen if you want to work on this again.

@elemoine elemoine closed this Jan 30, 2015
@fredj fredj reopened this Feb 2, 2015
@fredj
Copy link
Member Author

fredj commented Feb 2, 2015

This PR is ready

@elemoine
Copy link
Member

elemoine commented Feb 2, 2015

Looks good to me. Please.

PS: I hope this won't break anything.

@fredj
Copy link
Member Author

fredj commented Feb 2, 2015

I'll wait for #2594 before merging

@elemoine
Copy link
Member

elemoine commented Feb 2, 2015

Makes sense.

@fredj fredj modified the milestones: v3.3.0, v3.2.0 Feb 4, 2015
@fredj fredj force-pushed the will-change branch 2 times, most recently from 80f43e5 to 52959ab Compare February 26, 2015 09:38
@ahocevar ahocevar modified the milestones: v3.4.0, v3.3.0 Mar 3, 2015
@fredj
Copy link
Member Author

fredj commented Mar 11, 2015

This has waited for a long time now. If no objection is raised I'll merge this PR.

@elemoine
Copy link
Member

Yep, please merge. Thanks.

fredj added a commit that referenced this pull request Mar 11, 2015
Add will-change CSS properties
@fredj fredj merged commit b26bea8 into openlayers:master Mar 11, 2015
@fredj fredj deleted the will-change branch March 11, 2015 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants