Code Duplication    Length = 33-33 lines in 2 locations

public/js/tinymce/themes/inlite/theme.js 1 location

@@ 9617-9649 (lines=33) @@
9614
          });
9615
        }
9616
      },
9617
      repaint: function () {
9618
        var self$$1 = this;
9619
        var style, rect, borderBox, borderW, borderH = 0, lastRepaintRect;
9620
        style = self$$1.getEl().style;
9621
        rect = self$$1._layoutRect;
9622
        lastRepaintRect = self$$1._lastRepaintRect || {};
9623
        var doc = document;
9624
        if (!self$$1.settings.multiline && doc.all && (!doc.documentMode || doc.documentMode <= 8)) {
9625
          style.lineHeight = rect.h - borderH + 'px';
9626
        }
9627
        borderBox = self$$1.borderBox;
9628
        borderW = borderBox.left + borderBox.right + 8;
9629
        borderH = borderBox.top + borderBox.bottom + (self$$1.settings.multiline ? 8 : 0);
9630
        if (rect.x !== lastRepaintRect.x) {
9631
          style.left = rect.x + 'px';
9632
          lastRepaintRect.x = rect.x;
9633
        }
9634
        if (rect.y !== lastRepaintRect.y) {
9635
          style.top = rect.y + 'px';
9636
          lastRepaintRect.y = rect.y;
9637
        }
9638
        if (rect.w !== lastRepaintRect.w) {
9639
          style.width = rect.w - borderW + 'px';
9640
          lastRepaintRect.w = rect.w;
9641
        }
9642
        if (rect.h !== lastRepaintRect.h) {
9643
          style.height = rect.h - borderH + 'px';
9644
          lastRepaintRect.h = rect.h;
9645
        }
9646
        self$$1._lastRepaintRect = lastRepaintRect;
9647
        self$$1.fire('repaint', {}, false);
9648
        return self$$1;
9649
      },
9650
      renderHtml: function () {
9651
        var self$$1 = this;
9652
        var settings = self$$1.settings;

public/js/tinymce/themes/modern/theme.js 1 location

@@ 9425-9457 (lines=33) @@
9422
          });
9423
        }
9424
      },
9425
      repaint: function () {
9426
        var self$$1 = this;
9427
        var style, rect, borderBox, borderW, borderH = 0, lastRepaintRect;
9428
        style = self$$1.getEl().style;
9429
        rect = self$$1._layoutRect;
9430
        lastRepaintRect = self$$1._lastRepaintRect || {};
9431
        var doc = document;
9432
        if (!self$$1.settings.multiline && doc.all && (!doc.documentMode || doc.documentMode <= 8)) {
9433
          style.lineHeight = rect.h - borderH + 'px';
9434
        }
9435
        borderBox = self$$1.borderBox;
9436
        borderW = borderBox.left + borderBox.right + 8;
9437
        borderH = borderBox.top + borderBox.bottom + (self$$1.settings.multiline ? 8 : 0);
9438
        if (rect.x !== lastRepaintRect.x) {
9439
          style.left = rect.x + 'px';
9440
          lastRepaintRect.x = rect.x;
9441
        }
9442
        if (rect.y !== lastRepaintRect.y) {
9443
          style.top = rect.y + 'px';
9444
          lastRepaintRect.y = rect.y;
9445
        }
9446
        if (rect.w !== lastRepaintRect.w) {
9447
          style.width = rect.w - borderW + 'px';
9448
          lastRepaintRect.w = rect.w;
9449
        }
9450
        if (rect.h !== lastRepaintRect.h) {
9451
          style.height = rect.h - borderH + 'px';
9452
          lastRepaintRect.h = rect.h;
9453
        }
9454
        self$$1._lastRepaintRect = lastRepaintRect;
9455
        self$$1.fire('repaint', {}, false);
9456
        return self$$1;
9457
      },
9458
      renderHtml: function () {
9459
        var self$$1 = this;
9460
        var settings = self$$1.settings;