DO NOT MERGE: Apply upstream Chromium patch for encoding changes

Give up looking up interned names if the encoding changed during parsing

NEXTL may process encoding changes by refilling the parser's input
buffer, which makes the accumulated length 'len' inaccurate.

Chromium bug: http://crbug.com/620679

Review-Url: https://codereview.chromium.org/2603933002
Cr-Commit-Position: refs/heads/master@{#442517}

Bug: 36553781
Change-Id: Id3484fbee201d1e19b684b109009d6590354b1d9
(cherry picked from commit 70529326c6a880a06d8029813fcce1ea49d3c104)
1 file changed
tree: 2241711070976d5276581d16ed4d5107302ec1a9
  1. .gitignore
  2. AUTHORS
  3. Android.mk
  4. ChangeLog
  5. CleanSpec.mk
  6. Copyright
  7. DOCBparser.c
  8. HACKING
  9. HTMLparser.c
  10. HTMLtree.c
  11. INSTALL.libxml2
  12. MAINTAINERS
  13. MODULE_LICENSE_MIT
  14. Makefile.am
  15. Makefile.tests
  16. Makefile.win
  17. NEWS
  18. README
  19. README.cvs-commits
  20. README.tests
  21. SAX.c
  22. SAX2.c
  23. TODO
  24. TODO_SCHEMAS
  25. VxWorks/
  26. acinclude.m4
  27. autogen.sh
  28. bakefile/
  29. buf.c
  30. buf.h
  31. build_glob.py
  32. c14n.c
  33. catalog.c
  34. check-relaxng-test-suite.py
  35. check-relaxng-test-suite2.py
  36. check-xinclude-test-suite.py
  37. check-xml-test-suite.py
  38. check-xsddata-test-suite.py
  39. chvalid.c
  40. chvalid.def
  41. config.h
  42. configure.ac
  43. dbgen.pl
  44. dbgenattr.pl
  45. debugXML.c
  46. dict.c
  47. doc/
  48. elfgcchack.h
  49. enc.h
  50. encoding.c
  51. entities.c
  52. error.c
  53. example/
  54. genChRanges.py
  55. genUnicode.py
  56. gentest.py
  57. global.data
  58. globals.c
  59. hash.c
  60. include/
  61. legacy.c
  62. libxml-2.0-uninstalled.pc.in
  63. libxml-2.0.pc.in
  64. libxml.3
  65. libxml.h
  66. libxml.m4
  67. libxml.spec.in
  68. libxml2-config.cmake.in
  69. libxml2.doap
  70. libxml2.syms
  71. list.c
  72. macos/
  73. nanoftp.c
  74. nanohttp.c
  75. optim/
  76. os400/
  77. parser.c
  78. parserInternals.c
  79. pattern.c
  80. python/
  81. regressions.py
  82. regressions.xml
  83. relaxng.c
  84. result/
  85. rngparser.c
  86. runsuite.c
  87. runtest.c
  88. runxmlconf.c
  89. save.h
  90. schematron.c
  91. test/
  92. testAutomata.c
  93. testC14N.c
  94. testHTML.c
  95. testModule.c
  96. testOOM.c
  97. testOOMlib.c
  98. testOOMlib.h
  99. testReader.c
  100. testRegexp.c
  101. testRelax.c
  102. testSAX.c
  103. testSchemas.c
  104. testThreads.c
  105. testThreadsWin32.c
  106. testURI.c
  107. testXPath.c
  108. testapi.c
  109. testchar.c
  110. testdict.c
  111. testdso.c
  112. testlimits.c
  113. testrecurse.c
  114. threads.c
  115. timsort.h
  116. tree.c
  117. trio.c
  118. trio.h
  119. triodef.h
  120. trionan.c
  121. trionan.h
  122. triop.h
  123. triostr.c
  124. triostr.h
  125. uri.c
  126. valid.c
  127. vms/
  128. win32/
  129. xinclude.c
  130. xlink.c
  131. xml2-config.1
  132. xml2-config.in
  133. xml2Conf.sh.in
  134. xmlIO.c
  135. xmlcatalog.c
  136. xmllint.c
  137. xmlmemory.c
  138. xmlmodule.c
  139. xmlreader.c
  140. xmlregexp.c
  141. xmlsave.c
  142. xmlschemas.c
  143. xmlschemastypes.c
  144. xmlstring.c
  145. xmlunicode.c
  146. xmlwriter.c
  147. xpath.c
  148. xpointer.c
  149. xstc/
  150. xzlib.c
  151. xzlib.h