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

Issue 106983004: Implement Element.matches(selectors) (Closed)

Created:
7 years ago by philipj_slow
Modified:
7 years ago
CC:
blink-reviews, caseq+blink_chromium.org, arv+blink, eustas+blink_chromium.org, alph+blink_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, adamk+blink_chromium.org, devtools-reviews_chromium.org, loislo+blink_chromium.org, aandrey+blink_chromium.org, watchdog-blink-watchlist_google.com, Inactive
Visibility:
Public.

Description

Implement Element.matches(selectors) http://dom.spec.whatwg.org/#dom-element-matches No tested browser (Firefox Nightly, IE11 Release Preview, Opera 12.16) has implemented the unprefixed API yet. Having verified that the other browsers throw an exception for *MatchesSelector(), make the argument to webkitMatchesSelector() non-optional to align with them and the unprefixed API. The spec requires throwing a TypeError when parsing the selectors fails, but we currently throw a SyntaxError. So do the other browsers for *MatchesSelector(), so file a spec bug instead of changing it: https://www.w3.org/Bugs/Public/show_bug.cgi?id=24028 BUG=326652 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163442

Patch Set 1 #

Patch Set 2 : add test #

Patch Set 3 : simplify #

Patch Set 4 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -10 lines) Patch
A LayoutTests/fast/dom/Element/matches.html View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Element/matches-expected.txt View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
M Source/core/dom/Element.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Element.cpp View 1 2 3 1 chunk +2 lines, -7 lines 0 comments Download
M Source/core/dom/Element.idl View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/inspector/InspectorCSSAgent.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
philipj_slow
7 years ago (2013-12-06 22:56:05 UTC) #1
philipj_slow
Does this need an intent to implement and ship? I invoke the trivial clause!
7 years ago (2013-12-06 22:56:52 UTC) #2
eseidel
Please provide a nicer description (as that becomes part of the permanent commit log record). ...
7 years ago (2013-12-07 00:41:22 UTC) #3
philipj_slow
On 2013/12/07 00:41:22, eseidel wrote: > Please provide a nicer description (as that becomes part ...
7 years ago (2013-12-07 10:05:31 UTC) #4
philipj_slow
PTAL, blink-dev thread and trybots both look good.
7 years ago (2013-12-08 08:11:25 UTC) #5
philipj_slow
7 years ago (2013-12-09 09:15:42 UTC) #6
arv (Not doing code reviews)
LGTM
7 years ago (2013-12-09 14:52:30 UTC) #7
jochen (gone - plz use gerrit)
lgtm
7 years ago (2013-12-09 14:53:35 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/106983004/40001
7 years ago (2013-12-09 15:13:22 UTC) #9
commit-bot: I haz the power
Change committed as 163442
7 years ago (2013-12-09 16:51:24 UTC) #10
adamk
On 2013/12/09 16:51:24, I haz the power (commit-bot) wrote: > Change committed as 163442 This ...
7 years ago (2013-12-09 21:23:01 UTC) #11
philipj_slow
On 2013/12/09 21:23:01, adamk wrote: > On 2013/12/09 16:51:24, I haz the power (commit-bot) wrote: ...
7 years ago (2013-12-09 21:39:16 UTC) #12
adamk
7 years ago (2013-12-09 21:47:26 UTC) #13
Message was sent while issue was closed.
On 2013/12/09 21:39:16, philipj wrote:
> On 2013/12/09 21:23:01, adamk wrote:
> > On 2013/12/09 16:51:24, I haz the power (commit-bot) wrote:
> > > Change committed as 163442
> > 
> > This change is causing failures on the linux_chromeos browser_tests:
> > 
> >
>
http://build.chromium.org/p/tryserver.chromium/builders/linux_chromeos/builds...
> > 
> > Those failures are blocking the Blink roll. I'd like to revert this patch
for
> > now to unblock the roll.
> 
> Please go ahead, will investigate what went wrong and try again.

Thanks, already reverted as
https://src.chromium.org/viewvc/blink?view=rev&revision=163457

To reproduce this on Linux, you simply need to have "chromeos=1" in your
GYP_DEFINES, and run browser_tests with --gtest_filter=VirtualKeyboad*

Powered by Google App Engine
This is Rietveld 408576698