webengine/osswebengine/WebCore/rendering/bidi.cpp
changeset 10 a359256acfc6
parent 5 10e98eab6f85
child 36 c711bdda59f4
equal deleted inserted replaced
5:10e98eab6f85 10:a359256acfc6
    93 
    93 
    94 static bool isLineEmpty = true;
    94 static bool isLineEmpty = true;
    95 static bool previousLineBrokeCleanly = true;
    95 static bool previousLineBrokeCleanly = true;
    96 static int numSpaces;
    96 static int numSpaces;
    97 
    97 
    98 struct cleanupMidpoints {
    98 void cleanupMidpoints() 
    99     ~cleanupMidpoints() {
    99 {
   100     	if(smidpoints)
   100     if(smidpoints)
   101     		{
   101     	{
   102     		smidpoints->clear();
   102     	smidpoints->clear();
   103     		delete smidpoints;
   103     	delete smidpoints;
   104     		smidpoints = 0;
   104     	smidpoints = 0;
   105     		}
   105     	}
   106     }
   106 }
   107 };
       
   108 static cleanupMidpoints deleteMidPoints;
       
   109 
       
   110 
   107 
   111 static int getBPMWidth(int childValue, Length cssUnit)
   108 static int getBPMWidth(int childValue, Length cssUnit)
   112 {
   109 {
   113     if (!cssUnit.isIntrinsicOrAuto())
   110     if (!cssUnit.isIntrinsicOrAuto())
   114         return (cssUnit.isFixed() ? cssUnit.value() : childValue);
   111         return (cssUnit.isFixed() ? cssUnit.value() : childValue);