A few notes: - I don't have a repro yet so can't put together a ...
4 years, 10 months ago
(2015-06-18 20:03:20 UTC)
#2
A few notes:
- I don't have a repro yet so can't put together a test.
- It feels strange adding a DrawingRecorder in layout/ code, but there are a
couple of precedents and it is calling paint() here.
- We could move the recorder into ThemePainterMac.mm but having it here seems
more consistent with rest of codebase.
chrishtr
Also, let's get a test. https://codereview.chromium.org/1177043016/diff/1/Source/core/layout/LayoutTextControlSingleLine.cpp File Source/core/layout/LayoutTextControlSingleLine.cpp (right): https://codereview.chromium.org/1177043016/diff/1/Source/core/layout/LayoutTextControlSingleLine.cpp#newcode89 Source/core/layout/LayoutTextControlSingleLine.cpp:89: LayoutObjectDrawingRecorder recorder(*paintInfo.context, *this, paintInfo.phase, ...
4 years, 10 months ago
(2015-06-18 20:09:02 UTC)
#3
4 years, 10 months ago
(2015-06-18 22:26:04 UTC)
#4
Added tests.
https://codereview.chromium.org/1177043016/diff/1/Source/core/layout/LayoutTe...
File Source/core/layout/LayoutTextControlSingleLine.cpp (right):
https://codereview.chromium.org/1177043016/diff/1/Source/core/layout/LayoutTe...
Source/core/layout/LayoutTextControlSingleLine.cpp:89:
LayoutObjectDrawingRecorder recorder(*paintInfo.context, *this, paintInfo.phase,
snappedRect);
On 2015/06/18 at 20:09:02, chrishtr wrote:
> visual overflow rect instead?
Discussed in person, sticking with contentsRect as it's been transformed and
should be what's needed for this case. We have risk if painting this ends up
making use of the visual overflow rect down the line, but let's cross that
bridge if we come to it.
https://codereview.chromium.org/1177043016/diff/20001/Source/core/testing/Internals.cpp File Source/core/testing/Internals.cpp (right): https://codereview.chromium.org/1177043016/diff/20001/Source/core/testing/Internals.cpp#newcode2442 Source/core/testing/Internals.cpp:2442: PlatformKeyboardEvent::setCurrentCapsLockState(enabled ? In the past we've had issues with ...
4 years, 10 months ago
(2015-06-18 22:33:48 UTC)
#6
https://codereview.chromium.org/1177043016/diff/20001/Source/core/testing/Internals.cpp File Source/core/testing/Internals.cpp (right): https://codereview.chromium.org/1177043016/diff/20001/Source/core/testing/Internals.cpp#newcode2442 Source/core/testing/Internals.cpp:2442: PlatformKeyboardEvent::setCurrentCapsLockState(enabled ? On 2015/06/18 at 22:33:48, leviw wrote: > ...
4 years, 10 months ago
(2015-06-18 22:49:38 UTC)
#7
https://codereview.chromium.org/1177043016/diff/20001/Source/core/testing/Int...
File Source/core/testing/Internals.cpp (right):
https://codereview.chromium.org/1177043016/diff/20001/Source/core/testing/Int...
Source/core/testing/Internals.cpp:2442:
PlatformKeyboardEvent::setCurrentCapsLockState(enabled ?
On 2015/06/18 at 22:33:48, leviw wrote:
> In the past we've had issues with this sort of state outlasting the layout
test. If a test sets this to true, where is it reset to false?
Good catch, added to Internals::resetToConsistentState() and tested that
manually running one content shell with two layout tests with --run-layout-test
flag calls the resetToConsistentState() method after each test.
chrishtr
lgtm Check strict cull rect before committing. https://codereview.chromium.org/1177043016/diff/60001/Source/core/testing/Internals.h File Source/core/testing/Internals.h (right): https://codereview.chromium.org/1177043016/diff/60001/Source/core/testing/Internals.h#newcode366 Source/core/testing/Internals.h:366: void setCurrentCapsLockState(bool ...
4 years, 10 months ago
(2015-06-18 23:21:31 UTC)
#8
Issue 1177043016: [SP] Add a drawing recorder before painting caps lock indicator in password fields.
(Closed)
Created 4 years, 10 months ago by wkorman
Modified 4 years, 10 months ago
Reviewers: chrishtr, leviw_travelin_and_unemployed
Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Comments: 6