Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Issue 1877763002: METER with -webkit-appearance:none should be rendered with the normal CSS way. (Closed)

Created:
4 years, 8 months ago by tkent
Modified:
4 years, 7 months ago
Reviewers:
hayato, kochi
CC:
blink-reviews, blink-reviews-html_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, dglazkov+blink, dshwang, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

METER with -webkit-appearance:none should be rendered with the normal CSS way. This CL changes the behavior of METER element with -webkit-appearance:none. Before this CL: -webkit-appearance:none had almost no effect because -webkit-appearance:meter has no theme painting. After this CL: -webkit-appearance:none disables all of UA-provided rendering of METER elements. meter::-webkit-meter-* pseudo elements don't work, and web authors need to render METER elements by themselves. This behavior follows appearance:none defined by css-ui-4 [1]. Implementation: Because we can't update METER Shadow DOM structure in response to CSS style resolution, a METER has the following structure. METER #shadow-root MeterInnerElement pseudo=-webkit-meter-inner-element DIV pseudo=-webkit-meter-bar DIV pseudo=-webkit-meter-*-value MeterFallbackElement CONTENT When the METER has -webkit-appearance:meter, MeterFallbackElement has display: none. Otherwise, MeterInnerElement has display:none. [1] https://www.w3.org/TR/css-ui-4/#appearance-switching BUG=51182 Committed: https://crrev.com/5bfffca95444ba872b0a7faeaf956e92ab18639f Cr-Commit-Position: refs/heads/master@{#390324}

Patch Set 1 : #

Patch Set 2 : Remove theme changes, etc. #

Patch Set 3 : Drop LayoutTheme change, add TODO comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -102 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/HTMLMeterElement/meter-element-markup-expected.txt View 1 3 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/HTMLMeterElement/meter-element-repaint-on-update-value.html View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/HTMLMeterElement/meter-styles.html View 1 2 chunks +10 lines, -18 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/HTMLMeterElement/meter-styles-changing-pseudo.html View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/HTMLMeterElement/meter-writing-mode.html View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/HTMLMeterElement/meter-writing-mode-expected.html View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/html/meter-user-modify.html View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/html/meter-user-modify-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/dom/HTMLMeterElement/meter-element-repaint-on-update-value-expected.png View Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/dom/HTMLMeterElement/meter-element-repaint-on-update-value-expected.txt View 1 chunk +1 line, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/dom/HTMLMeterElement/meter-styles-expected.txt View 1 3 chunks +31 lines, -62 lines 0 comments Download
M third_party/WebKit/Source/core/css/html.css View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMeterElement.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMeterElement.cpp View 1 2 5 chunks +77 lines, -1 line 0 comments Download

Messages

Total messages: 16 (10 generated)
tkent
hayato@, kochi@, would you review this please? After we confirm this CL is technically correct, ...
4 years, 8 months ago (2016-04-11 06:23:41 UTC) #5
kochi
HTMLMeterElement.cpp change lgtm
4 years, 8 months ago (2016-04-11 07:47:32 UTC) #7
tkent
On 2016/04/11 at 07:47:32, kochi wrote: > HTMLMeterElement.cpp change lgtm I dropped the LayoutTheme change, ...
4 years, 7 months ago (2016-04-28 07:49:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1877763002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1877763002/100001
4 years, 7 months ago (2016-04-28 07:49:48 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:100001)
4 years, 7 months ago (2016-04-28 07:54:44 UTC) #14
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:16:55 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5bfffca95444ba872b0a7faeaf956e92ab18639f
Cr-Commit-Position: refs/heads/master@{#390324}

Powered by Google App Engine
This is Rietveld 408576698