OSDN Git Service

Workaround view info cookie bug
authorTor Norbye <tnorbye@google.com>
Fri, 10 Jun 2011 20:41:51 +0000 (13:41 -0700)
committerTor Norbye <tnorbye@google.com>
Fri, 10 Jun 2011 20:41:51 +0000 (13:41 -0700)
commit8f21dc3e82c298e727b8813e10896e55f82406f9
tree07ec8efd97986a62cb7bdaca3eaa5c1d0fde4c97
parentb051619189b4c0be377ea080a3f1d188d3f8c073
Workaround view info cookie bug

This changeset works around the case where a ViewInfo cookie is
identical to its parent. This is for example the case for a
ZoomControls widget, where the child views have MergeCookies whole
value points to the parent ZoomControl.

Change-Id: Ie0eb62750fba6eeaa7241edce68e05f853e08a75
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/CanvasViewInfo.java
eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/CanvasViewInfoTest.java