1. 13 Oct, 2019 9 commits
    • Xianzhu Wang's avatar
      Remove multiple link highlight support · e8f230b9
      Xianzhu Wang authored
      We always have at most one link highlight in a page.
      
      Also move renderer/core/frame/link_highlights.* to
      renderer/core/page/link_highlight.*.
      
      Bug: 1012594
      Change-Id: I4d0308a2a5051d3ec41aa3763ae7d8230fc131e6
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1849989
      Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
      Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#705427}
      e8f230b9
    • Raul Tambre's avatar
      build/toolchain/win/midl.py: Python 3 support · 56415b77
      Raul Tambre authored
      * Use bytestrings for operations in cases where files are read in binary mode.
      * Output from subprocess is a bytestring in Python 3. Need to decode it before using in normal string operations.
      * Due to use of bytestrings need to encode UUID string.
      * Had to use branching code for ord() due to string vs bytestring in Py2/3.
      * array() typecode 'c' (char) has been removed in Python 3. Use 'B' (unsigned char) instead.
      * Use '//' for division where necessary. Add 'from __future__ import division' to avoid this in the future.
      * Import reduce() for Python 3.
      * Fixed open(mode='U') DeprecationWarnings. Use io.open for universal newlines on both Py2/3.
      
      The changes are backwards compatible with Python 2.
      Formatting changes are a result of running "git cl format --python".
      
      Errors fixed:
      Traceback (most recent call last):
        File "../../build/toolchain/win/midl.py", line 240, in <module>
          sys.exit(main(*sys.argv[1:]))
        File "../../build/toolchain/win/midl.py", line 205, in main
          processing = set(os.path.basename(x)
        File "../../build/toolchain/win/midl.py", line 206, in <genexpr>
          for x in lines if x.startswith(prefixes))
      TypeError: a bytes-like object is required, not 'str'
      
      Traceback (most recent call last):
        File "../../build/toolchain/win/midl.py", line 239, in <module>
          sys.exit(main(*sys.argv[1:]))
        File "../../build/toolchain/win/midl.py", line 213, in main
          ZapTimestamp(os.path.join(tmp_dir, f))
        File "../../build/toolchain/win/midl.py", line 71, in ZapTimestamp
          contents = re.sub(
        File "C:\Program Files\Python38\lib\re.py", line 208, in sub
          return _compile(pattern, flags).sub(repl, string, count)
      TypeError: cannot use a string pattern on a bytes-like object
      
      Traceback (most recent call last):
        File "../../build/toolchain/win/midl.py", line 241, in <module>
          sys.exit(main(*sys.argv[1:]))
        File "../../build/toolchain/win/midl.py", line 167, in main
          overwrite_cls_guid(os.path.join(outdir, h),
        File "../../build/toolchain/win/midl.py", line 152, in overwrite_cls_guid
          overwrite_cls_guid_h(h_file, dynamic_guid)
        File "../../build/toolchain/win/midl.py", line 99, in overwrite_cls_guid_h
          br'class DECLSPEC_UUID("%s")' % str(dynamic_guid), contents)
      TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'
      
      Traceback (most recent call last):
        File "../../build/toolchain/win/midl.py", line 241, in <module>
          sys.exit(main(*sys.argv[1:]))
        File "../../build/toolchain/win/midl.py", line 167, in main
          overwrite_cls_guid(os.path.join(outdir, h),
        File "../../build/toolchain/win/midl.py", line 153, in overwrite_cls_guid
          overwrite_cls_guid_iid(iid_file, dynamic_guid)
        File "../../build/toolchain/win/midl.py", line 106, in overwrite_cls_guid_iid
          hexuuid += ','.join('0x%02x' % ord(b) for b in dynamic_guid.bytes[8:])
        File "../../build/toolchain/win/midl.py", line 106, in <genexpr>
          hexuuid += ','.join('0x%02x' % ord(b) for b in dynamic_guid.bytes[8:])
      TypeError: ord() expected string of length 1, but int found
      
      Traceback (most recent call last):
        File "../../build/toolchain/win/midl.py", line 241, in <module>
          sys.exit(main(*sys.argv[1:]))
        File "../../build/toolchain/win/midl.py", line 167, in main
          overwrite_cls_guid(os.path.join(outdir, h),
        File "../../build/toolchain/win/midl.py", line 154, in overwrite_cls_guid
          overwrite_cls_guid_tlb(tlb_file, dynamic_guid)
        File "../../build/toolchain/win/midl.py", line 120, in overwrite_cls_guid_tlb
          assert ord(contents[type_off]) == 0x25, "expected coclass"
      TypeError: ord() expected string of length 1, but int found
      
      Traceback (most recent call last):
        File "../../build/toolchain/win/midl.py", line 241, in <module>
          sys.exit(main(*sys.argv[1:]))
        File "../../build/toolchain/win/midl.py", line 167, in main
          overwrite_cls_guid(os.path.join(outdir, h),
        File "../../build/toolchain/win/midl.py", line 154, in overwrite_cls_guid
          overwrite_cls_guid_tlb(tlb_file, dynamic_guid)
        File "../../build/toolchain/win/midl.py", line 125, in overwrite_cls_guid_tlb
          contents = array.array('c', contents)
      ValueError: bad typecode (must be b, B, u, h, H, i, I, l, L, q, Q, f or d)
      
      Traceback (most recent call last):
        File "../../build/toolchain/win/midl.py", line 241, in <module>
          sys.exit(main(*sys.argv[1:]))
        File "../../build/toolchain/win/midl.py", line 167, in main
          overwrite_cls_guid(os.path.join(outdir, h),
        File "../../build/toolchain/win/midl.py", line 154, in overwrite_cls_guid
          overwrite_cls_guid_tlb(tlb_file, dynamic_guid)
        File "../../build/toolchain/win/midl.py", line 131, in overwrite_cls_guid_tlb
          hashtab = [0xffffffff] * (0x80 / 4)
      TypeError: can't multiply sequence by non-int of type 'float'
      
      Traceback (most recent call last):
        File "../../build/toolchain/win/midl.py", line 242, in <module>
          sys.exit(main(*sys.argv[1:]))
        File "../../build/toolchain/win/midl.py", line 168, in main
          overwrite_cls_guid(os.path.join(outdir, h),
        File "../../build/toolchain/win/midl.py", line 155, in overwrite_cls_guid
          overwrite_cls_guid_tlb(tlb_file, dynamic_guid)
        File "../../build/toolchain/win/midl.py", line 138, in overwrite_cls_guid_tlb
          guidhash = reduce(operator.xor, [w for w in words]) % (0x80 // 4)
      NameError: name 'reduce' is not defined
      
      ../../build/toolchain/win/midl.py:231: DeprecationWarning: 'U' mode is deprecated
        open(fromfile, 'bU').readlines(),
      ../../build/toolchain/win/midl.py:232: DeprecationWarning: 'U' mode is deprecated
        open(tofile, 'bU').readlines(), fromfile, tofile)))
      
      Bug: 941669
      Change-Id: I3e5985c732db114eff2209e428ec9ee3f209e3b6
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1829205
      Commit-Queue: Raul Tambre <raul@tambre.ee>
      Reviewed-by: default avatarDirk Pranke <dpranke@chromium.org>
      Auto-Submit: Raul Tambre <raul@tambre.ee>
      Cr-Commit-Position: refs/heads/master@{#705426}
      56415b77
    • chromium-internal-autoroll's avatar
      Roll src-internal e74f8be31fac..1971773623d0 (1 commits) · fc9eb022
      chromium-internal-autoroll authored
      https://chrome-internal.googlesource.com/chrome/src-internal.git/+log/e74f8be31fac..1971773623d0
      
      
      Created with:
        gclient setdep -r src-internal@1971773623d0
      
      If this roll has caused a breakage, revert this CL and stop the roller
      using the controls here:
      https://skia-autoroll.corp.goog/r/src-internal-chromium-autoroll
      Please CC jbudorick@google.com on the revert to ensure that a human
      is aware of the problem.
      
      To report a problem with the AutoRoller itself, please file a bug:
      https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
      
      Documentation for the AutoRoller is here:
      https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
      
      CQ_INCLUDE_TRYBOTS=luci.chrome.try:linux-chromeos-chrome
      TBR=jbudorick@google.com
      
      Bug: chromium:None
      Change-Id: I0395eca80f50dbc2a1185e82ef2def50dab44498
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1857471Reviewed-by: default avatarchromium-internal-autoroll <chromium-internal-autoroll@skia-corp.google.com.iam.gserviceaccount.com>
      Commit-Queue: chromium-internal-autoroll <chromium-internal-autoroll@skia-corp.google.com.iam.gserviceaccount.com>
      Cr-Commit-Position: refs/heads/master@{#705425}
      fc9eb022
    • chrome-release-bot's avatar
      Updating trunk VERSION from 3941.0 to 3942.0 · e57610c9
      chrome-release-bot authored
      # This is an automated release commit.
      # Do not revert without consulting chrome-pmo@google.com.
      NOAUTOREVERT=true
      TBR=mmoss@chromium.org
      
      Change-Id: Ia5af05b6fe3d6855e6041a383c0806130603592c
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1857028Reviewed-by: default avatarChrome Release Bot (LUCI) <chrome-official-brancher@chops-service-accounts.iam.gserviceaccount.com>
      Cr-Commit-Position: refs/heads/master@{#705424}
      e57610c9
    • Julie Jeongeun Kim's avatar
      Convert MjpegDecodeAccelerator to new Mojo types · dd65edbf
      Julie Jeongeun Kim authored
      This CL converts MjpegDecodeAccelerator to new Mojo types
      using PendingReceiver, PendingRemote, and Remote.
      
      Bug: 955171
      Change-Id: If5df104401e04075180f447ac1474a80b147ecbe
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1849733Reviewed-by: default avatarKen Rockot <rockot@google.com>
      Reviewed-by: default avatarJonathan Backer <backer@chromium.org>
      Reviewed-by: default avatarGuido Urdaneta <guidou@chromium.org>
      Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
      Reviewed-by: default avatarRicky Liang <jcliang@chromium.org>
      Reviewed-by: default avatarSadrul Chowdhury <sadrul@chromium.org>
      Commit-Queue: Julie Kim <jkim@igalia.com>
      Cr-Commit-Position: refs/heads/master@{#705423}
      dd65edbf
    • Xianzhu Wang's avatar
      Remove GraphicsLayer-based link highlight path · 57f47476
      Xianzhu Wang authored
      Now we record foreign layers directly in LinkHighlightImpl::Paint()
      without GraphicsLayers, just like what we have been doing for
      CompositeAfterPaint.
      
      Bug: 1012594
      Change-Id: I448b4b109dae4778a9f4650639633d083e4a5e81
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1849252
      Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
      Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#705422}
      57f47476
    • Jinfeng Ma's avatar
      Paint overlay resizer in the dedicated paint phase. (3/3) · d2dc76de
      Jinfeng Ma authored
      Renaming the variables and functions related to the original kOverlayScrollbars
      paint phase.
      
      This is 3/3 of a series of patches:
        1. https://crrev.com/c/1816486
        2. https://crrev.com/c/1817874
        3. This patch.
      
      Bug: 1006173
      Change-Id: Ie34b71936d03ade4673fdcb8510de735276937ae
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1831917Reviewed-by: default avatarXianzhu Wang <wangxianzhu@chromium.org>
      Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#705421}
      d2dc76de
    • chromium-autoroll's avatar
      Roll Fuchsia SDK from 889979750783 to 889976850267 · f5842bda
      chromium-autoroll authored
      If this roll has caused a breakage, revert this CL and stop the roller
      using the controls here:
      https://autoroll.skia.org/r/fuchsia-sdk-chromium-autoroll
      Please CC cr-fuchsia+bot@chromium.org on the revert to ensure that a human
      is aware of the problem.
      
      To report a problem with the AutoRoller itself, please file a bug:
      https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
      
      Documentation for the AutoRoller is here:
      https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
      
      CQ_INCLUDE_TRYBOTS=luci.chromium.try:fuchsia-arm64-cast;luci.chromium.try:fuchsia-x64-cast
      TBR=cr-fuchsia+bot@chromium.org
      
      Change-Id: Ica60821676b7c7884c0f6c3cec9eb72ef390a684
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1857711Reviewed-by: default avatarchromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
      Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
      Cr-Commit-Position: refs/heads/master@{#705420}
      f5842bda
    • Kevin Marshall's avatar
      [web_engine] Clarify implementation of ContentDirectoryLoaderFactory. · 08a195c6
      Kevin Marshall authored
      Addresses wez's post-landing comments made to CL#1848411:
      * All paths from URLs are assumed to begin with slash.
        Conditional handling of relative paths is removed.
      * Add a comment explaining Fuchsia's lack of support for absolute paths.
      
      Bug: 1011180
      Change-Id: Idb4cbe0cfac2a7547f44488ee9133b8ca0ea8207
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1854801
      Commit-Queue: Wez <wez@chromium.org>
      Reviewed-by: default avatarWez <wez@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#705419}
      08a195c6
  2. 12 Oct, 2019 31 commits