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

Issue 1308663002: DevTools: simplify WI.CSSProperty and WI.CSSStyleDeclaration interfaces (Closed)

Created:
5 years, 4 months ago by lushnikov
Modified:
5 years, 4 months ago
Reviewers:
pfeldman
CC:
blink-reviews, caseq+blink_chromium.org, blink-reviews-style_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

DevTools: simplify WI.CSSProperty and WI.CSSStyleDeclaration interfaces This patch reduces interfaces of WI.CSSProperty and WI.CSSStyleDeclaration classes. The patch removes: - remove style.getLiveProperty() method and the whole notion of "live" properties - removes tripple state defined via property.active()/property.inactive() flags. (The state was tripple as !property.active() !== property.inactive()). - style.shorthandValue/style.shorthandIsImportant public methods - removes property.styleBased() property The patch adds: - property.activeInStyle() method which defines if the current property has any effect in style. - style.leadingProperties() method which computes those properties which should be displayed in StylesSidebarPane. BUG=496263 R=pfeldman NOTRY=true Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201104

Patch Set 1 #

Total comments: 9

Patch Set 2 : address comments #

Patch Set 3 : fix test #

Total comments: 1

Messages

Total messages: 10 (3 generated)
lushnikov
ptal!
5 years, 4 months ago (2015-08-21 03:52:08 UTC) #1
pfeldman
https://codereview.chromium.org/1308663002/diff/1/LayoutTests/inspector/elements/styles-1/cssom-media-insert-crash-expected.txt File LayoutTests/inspector/elements/styles-1/cssom-media-insert-crash-expected.txt (right): https://codereview.chromium.org/1308663002/diff/1/LayoutTests/inspector/elements/styles-1/cssom-media-insert-crash-expected.txt#newcode9 LayoutTests/inspector/elements/styles-1/cssom-media-insert-crash-expected.txt:9: color: white; Why was the order reversed? https://codereview.chromium.org/1308663002/diff/1/LayoutTests/inspector/elements/styles-2/inject-stylesheet-expected.txt File ...
5 years, 4 months ago (2015-08-21 17:40:42 UTC) #2
lushnikov
https://codereview.chromium.org/1308663002/diff/1/LayoutTests/inspector/elements/styles-1/cssom-media-insert-crash-expected.txt File LayoutTests/inspector/elements/styles-1/cssom-media-insert-crash-expected.txt (right): https://codereview.chromium.org/1308663002/diff/1/LayoutTests/inspector/elements/styles-1/cssom-media-insert-crash-expected.txt#newcode9 LayoutTests/inspector/elements/styles-1/cssom-media-insert-crash-expected.txt:9: color: white; On 2015/08/21 17:40:42, pfeldman wrote: > Why ...
5 years, 4 months ago (2015-08-21 21:25:03 UTC) #3
pfeldman
lgtm https://codereview.chromium.org/1308663002/diff/40001/Source/devtools/front_end/sdk/CSSStyleModel.js File Source/devtools/front_end/sdk/CSSStyleModel.js (right): https://codereview.chromium.org/1308663002/diff/40001/Source/devtools/front_end/sdk/CSSStyleModel.js#newcode756 Source/devtools/front_end/sdk/CSSStyleModel.js:756: return !!property.range; This will always be this.range.
5 years, 4 months ago (2015-08-25 02:00:24 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308663002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308663002/40001
5 years, 4 months ago (2015-08-25 02:01:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308663002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308663002/40001
5 years, 4 months ago (2015-08-25 05:18:33 UTC) #9
commit-bot: I haz the power
5 years, 4 months ago (2015-08-25 05:22:59 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201104

Powered by Google App Engine
This is Rietveld 408576698