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

Issue 2571713002: DevTools: [SSP] do not autocomplete SVG properties for non-svg nodes (Closed)

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

Description

DevTools: [SSP] do not autocomplete SVG properties for non-svg nodes This patch does two things: - do not suggest SVG properties for non-svg nodes in StylesSidebarPane - suggest only SVG properties for SVG nodes BUG=389577 R=dgozman Committed: https://crrev.com/701e91a6709bb7849e51c8597da8e754079087e6 Cr-Commit-Position: refs/heads/master@{#438101}

Patch Set 1 #

Total comments: 4

Patch Set 2 : addres comments #

Total comments: 1

Messages

Total messages: 17 (10 generated)
lushnikov
please, take a look
4 years ago (2016-12-13 02:49:02 UTC) #1
dgozman
lgtm https://codereview.chromium.org/2571713002/diff/1/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2571713002/diff/1/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode2028 third_party/WebKit/Source/core/inspector/browser_protocol.json:2028: { "name": "isSVG", "type": "boolean", "optional": true, "description": ...
4 years ago (2016-12-13 03:16:46 UTC) #4
lushnikov
https://codereview.chromium.org/2571713002/diff/1/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2571713002/diff/1/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode2028 third_party/WebKit/Source/core/inspector/browser_protocol.json:2028: { "name": "isSVG", "type": "boolean", "optional": true, "description": "Whether ...
4 years ago (2016-12-13 07:05:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2571713002/20001
4 years ago (2016-12-13 07:05:51 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-13 08:35:50 UTC) #13
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/701e91a6709bb7849e51c8597da8e754079087e6 Cr-Commit-Position: refs/heads/master@{#438101}
4 years ago (2016-12-13 08:37:38 UTC) #15
PhistucK
4 years ago (2016-12-13 08:43:51 UTC) #17
Message was sent while issue was closed.
https://codereview.chromium.org/2571713002/diff/20001/third_party/WebKit/Sour...
File third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
(right):

https://codereview.chromium.org/2571713002/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js:2328:
cssCompletions.filter(property => SDK.cssMetadata().isSVGProperty(property) ===
this.node().isSVGNode());
Ouch! This seems very unnecessarily unfriendly to performance, can you just
store this.node().isSVGNode() in a const and use it instead?

I would say the same for SDK.cssMetadata(), but that might be a very simple
method (though the look-up-and-call is still more expensive than just getting it
from a variable).

Powered by Google App Engine
This is Rietveld 408576698