Browse Source

remove useless crossframe paint check codes

Melon 11 months ago
parent
commit
273e061512
1 changed files with 0 additions and 27 deletions
  1. 0 27
      lib/process/items/top_item_feature.dart

+ 0 - 27
lib/process/items/top_item_feature.dart

@@ -13,38 +13,11 @@ abstract class TopMeasureItemFeature extends MeasureItemFeature {
 
   @override
   void paint(Canvas canvas, Size size) {
-    // int? currUrlHashCode;
-    // int? currFrameIndex;
-    // bool isCrossFrame = false;
-    // final app = refItem.application;
-    // if (app.crossFrameContext != null && !app.crossFrameContext!.isOver) {
-    //   isCrossFrame = true;
-    //   currUrlHashCode = app.crossFrameContext!.currentUrl.hashCode;
-    //   currFrameIndex = app.frameData?.index;
-    // }
-    // if (refItem.isCrossFrameMode && isActive) {
-    //   // 仅跨帧测量项活动时,才判断帧索引
-    //   isCrossFrame = true;
-    //   currUrlHashCode =
-    //       refItem.application.crossFrameContext!.currentUrl.hashCode;
-    //   currFrameIndex = refItem.application.frameData?.index;
-    // }
     for (var item in refItem.childItems) {
       for (var feature in item.measuredFeatures) {
         if (feature.checkCanPaint()) {
           feature.paint(canvas, size);
         }
-        // if (isCrossFrame) {
-        //   if (!_checkCrossFeatureCanPaint(
-        //     feature,
-        //     currUrlHashCode!,
-        //     currFrameIndex!,
-        //   )) {
-        //     continue;
-        //   }
-        // }
-
-        // feature.paint(canvas, size);
       }
       item.feature?.paint(canvas, size);
     }