Import devel/llvm50 version 5.0.0_1
[dports.git] / www / chromium / dragonfly / patch-third__party_WebKit_Source_core_dom_NodeFilter.h
1 The stupid blink generator blindly assumes bindings are always signed
2 integers but SHOW_ALL is unsigned.  Actually I do not think SHOW_ALL has
3 to be, so I will set this to the highest signed value to make chromium
4 build on gcc5.  There is a good chance this will work (maybe better than
5 it has been).  Let us see (surely Google will have to fix this though)
6
7 --- third_party/WebKit/Source/core/dom/NodeFilter.h.orig        2016-12-09 07:04:31.000000000 +0200
8 +++ third_party/WebKit/Source/core/dom/NodeFilter.h
9 @@ -49,7 +49,7 @@ class NodeFilter final : public GarbageC
10       * to the value of NodeType for the equivalent node type.
11       */
12    enum {
13 -    kShowAll = 0xFFFFFFFF,
14 +    kShowAll = 0x7FFFFFFF,
15      kShowElement = 0x00000001,
16      kShowAttribute = 0x00000002,
17      kShowText = 0x00000004,
18 --- third_party/WebKit/Source/core/dom/NodeFilter.idl.orig      2016-12-09 07:04:31.000000000 +0200
19 +++ third_party/WebKit/Source/core/dom/NodeFilter.idl
20 @@ -30,7 +30,7 @@
21      const unsigned short FILTER_SKIP = 3;
22  
23      // Constants for whatToShow
24 -    const unsigned long SHOW_ALL = 0xFFFFFFFF;
25 +    const unsigned long SHOW_ALL = 0x7FFFFFFF;
26      const unsigned long SHOW_ELEMENT = 0x1;
27      const unsigned long SHOW_ATTRIBUTE = 0x2; // historical
28      const unsigned long SHOW_TEXT = 0x4;