[gtk: 18/60] Broadway: Fix handling of debug nodes




commit 5581f78f41880b53c2cf58c16f425ca44a034889
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Aug 26 14:01:00 2020 +0200

    Broadway: Fix handling of debug nodes
    
    The debug nodes have id BROADWAY_NODE_DEBUG, which happens to be "12".
    So, don't hardcode the wrong number "14".

 gdk/broadway/broadway.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js
index dcbe42f8d1..3dc6b7d914 100644
--- a/gdk/broadway/broadway.js
+++ b/gdk/broadway/broadway.js
@@ -809,7 +809,7 @@ TransformNodes.prototype.insertNode = function(parent, previousSibling, is_tople
         }
         break;
 
-    case 14:  // DEBUG
+    case BROADWAY_NODE_DEBUG:
         {
             var str = this.decode_string();
             var div = this.createDiv(id);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]