]> source.dussan.org Git - vaadin-framework.git/commit
Improve performance of setNeedsMeasure (#16972).
authorFabian Lange <lange.fabian@gmail.com>
Mon, 2 Mar 2015 12:08:02 +0000 (13:08 +0100)
committerLeif Åstrand <leif@vaadin.com>
Wed, 11 Mar 2015 10:48:34 +0000 (12:48 +0200)
commitdef8dba5c6c153c5945b149ee7eec795d8779e91
treed904d6c679fa1c204e87cbcc2503f5b1b93db4b1
parentcb73dcbf43b48d14be3e56cef1082564d6de028b
Improve performance of setNeedsMeasure (#16972).

This change removes the method LayoutDependenyTree.setNeedsMeasure which
takes a connectorId as first param.
In all places where it is used, the ComponentConnector is actually known,
so this change avoids looking it up over and over again.
Also The lookup would need to lookup the ConnectorMap every time.

Change-Id: I2593b0bede05cd69889ba68aac854cfba43f70b1
client/src/com/vaadin/client/LayoutManager.java
client/src/com/vaadin/client/ui/layout/LayoutDependencyTree.java