X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Flayouting%2Flayout-item-impl.cpp;h=e31045f9303d91a30eb71c73900450a539dc3140;hp=f6bd7f8ad1313bfcb2431a0885c3c40d936cade1;hb=c87446dd57403afc21d11544d162df31c00922ee;hpb=a2a0b8577e0a8ac8f2c5180fe0557c68a069fdaa diff --git a/dali-toolkit/devel-api/layouting/layout-item-impl.cpp b/dali-toolkit/devel-api/layouting/layout-item-impl.cpp index f6bd7f8..e31045f 100644 --- a/dali-toolkit/devel-api/layouting/layout-item-impl.cpp +++ b/dali-toolkit/devel-api/layouting/layout-item-impl.cpp @@ -141,19 +141,9 @@ void LayoutItem::Measure( MeasureSpec widthMeasureSpec, MeasureSpec heightMeasur { mImpl->ClearPrivateFlag( Impl::PRIVATE_FLAG_MEASURED_DIMENSION_SET ); - //resolveRtlPropertiesIfNeeded(); - - int cacheIndex = -1; // = forceLayout ? -1 : mMeasureCache.indexOfKey(key); - if( cacheIndex < 0 ) //|| sIgnoreMeasureCache ) - { - // measure ourselves, this should set the measured dimension flag back - OnMeasure( widthMeasureSpec, heightMeasureSpec ); - mImpl->ClearPrivateFlag( Impl::PRIVATE_FLAG_MEASURE_NEEDED_BEFORE_LAYOUT ); - } - else - { - mImpl->SetPrivateFlag( Impl::PRIVATE_FLAG_MEASURE_NEEDED_BEFORE_LAYOUT ); - } + // measure ourselves, this should set the measured dimension flag back + OnMeasure( widthMeasureSpec, heightMeasureSpec ); + mImpl->ClearPrivateFlag( Impl::PRIVATE_FLAG_MEASURE_NEEDED_BEFORE_LAYOUT ); // flag not set, setMeasuredDimension() was not invoked, we raise an exception to warn the developer DALI_ASSERT_ALWAYS( mImpl->GetPrivateFlag( Impl::PRIVATE_FLAG_MEASURED_DIMENSION_SET ) && @@ -163,8 +153,6 @@ void LayoutItem::Measure( MeasureSpec widthMeasureSpec, MeasureSpec heightMeasur mImpl->mOldWidthMeasureSpec = widthMeasureSpec; mImpl->mOldHeightMeasureSpec = heightMeasureSpec; - - //mMeasureCache.put(key, ((long) mMeasuredWidth) << 32 | (long) mMeasuredHeight & 0xffffffffL); // suppress sign extension } void LayoutItem::Layout( LayoutLength l, LayoutLength t, LayoutLength r, LayoutLength b )