1. 21 Jan, 2020 2 commits
    • Patrick Monette's avatar
      [Workers] Replace RenderProcessHostDestroyed with RenderProcessExited · 1024108d
      Patrick Monette authored
      This change is necessary to add dedicated workers to the performance
      manager graph.
      
      An invariant of the WorkerNode is that its ProcessNode is always valid.
      This can only be accomplished by making sure that the WorkerNode is
      destroyed before its ProcessNode.
      
      Because the performance_manager::RenderProcessUserData class also
      subscribes to the RenderProcessHostObserver interface and deletes the
      ProcessNode when its RenderProcessHost is destroyed, we can't use
      RenderProcessHostDestroyed in DedicatedWorkerHost because there are no
      guaranteed ordering on the notification. In fact, since the
      DedicatedWorkerHost always subscribe to the RenderProcessHost after the
      performance_manager::RenderProcessUserData class, we always get the
      wrong ordering in practice.
      
      This can be easily fixed by replacing the usage of
      RenderProcessHostDestroyed by RenderProcessExited in the
      DedicatedWorkerHost class, which is always invoked first.
      
      It also happens that it is a correct change to make because it is when
      the process exits that the mojo connections with the renderer are
      closed, not when the RenderProcessHost is destroyed.
      
      For consistency, the same change is done with the SharedWorkerHost.
      
      Bug: 993029, 1035555
      Change-Id: Ib7d71e810cbb8d41f7a7475818d16428eff4e74f
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2006069
      Commit-Queue: Patrick Monette <pmonette@chromium.org>
      Reviewed-by: default avatarHiroki Nakagawa <nhiroki@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#733481}
      1024108d
    • Koji Ishii's avatar
      [FragmentItem] Implement hit-testing floating objects · 178a82eb
      Koji Ishii authored
      The logic copied from the version for |NGPaintFragment|.
      
      Fixes ~36 tests.
      
      Bug: 982194
      Change-Id: Ib2b8c55c66429097a38b6f818ab4dd2480f9ba06
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2010465Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
      Commit-Queue: Koji Ishii <kojii@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#733480}
      178a82eb
  2. 20 Jan, 2020 38 commits