New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 636134 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

user-select and user-modify cause an unconditional repaint

Project Member Reported by esprehn@chromium.org, Aug 9 2016

Issue description

Google Chrome	54.0.2820.2 (Official Build) canary (64-bit)
Revision	eeda2a63b39ea71b74ec5497d8400ff7e81377c0-refs/branch-heads/2820@{#2}
OS	Mac OS X 

ComputedStyle::diffNeedsPaintInvalidationObject

    if (m_rareInheritedData.get() != other.m_rareInheritedData.get()) {
        if (m_rareInheritedData->userModify != other.m_rareInheritedData->userModify
            || m_rareInheritedData->userSelect != other.m_rareInheritedData->userSelect
            || m_rareInheritedData->m_imageRendering != other.m_rareInheritedData->m_imageRendering)
            return true;
    }

it looks like maybe we want to call LayoutObject::setShouldInvalidateSelection() ?


 
Cc: valdrin@google.com

Comment 2 by valdrin@google.com, Aug 9 2016

Here a test page to repro: changing user-select results in +10-11ms of paint time https://gist.github.com/valdrinkoshi/0e98ce7296939539043a2b67e0270edd

user-select-perf.png
12.7 KB View Download
Cc: tdres...@chromium.org
Firefox doesn't clear or hide the selection when you change user-select, perhaps we should change our behavior to match?
When would a developer want to change user-select on the fly?

Comment 5 by valdrin@google.com, Aug 10 2016

To temporarily disable a node e.g. for custom overlays, the content below them should not be selectable.

Comment 6 by valdrin@google.com, Aug 10 2016

*behind
In that context, leaving the current selection when user-select changes seems reasonable to me.
Owner: chrishtr@chromium.org
Status: Assigned (was: Untriaged)

Comment 9 by yosin@chromium.org, Feb 11 2017

Components: Blink>Editing>Selection
Status: Untriaged (was: Assigned)
Cc: chrishtr@chromium.org
Owner: ----
Status: Available (was: Untriaged)
Project Member

Comment 12 by sheriffbot@chromium.org, Nov 28

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment