WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
126154
Add id matching to the Selector Code Generator
https://bugs.webkit.org/show_bug.cgi?id=126154
Summary
Add id matching to the Selector Code Generator
Benjamin Poulain
Reported
2013-12-23 03:12:30 PST
Add id matching to the Selector Code Generator
Attachments
Patch
(8.79 KB, patch)
2013-12-23 03:15 PST
,
Benjamin Poulain
koivisto
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Benjamin Poulain
Comment 1
2013-12-23 03:15:33 PST
Created
attachment 219903
[details]
Patch
Antti Koivisto
Comment 2
2013-12-23 10:39:59 PST
Comment on
attachment 219903
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=219903&action=review
> Source/WebCore/cssjit/SelectorCompiler.cpp:91 > , tagName(0) > + , id(0)
nullptr (both)
> Source/WebCore/cssjit/SelectorCompiler.cpp:216 > case CSSSelector::Id: > + { > + const AtomicString& id = selector->value();
I think we usually put { after case and indent only one level.
> Source/WebCore/cssjit/SelectorCompiler.cpp:763 > + > + // Generate: > + // elementDataAddress = element->elementData(); > + // if (!elementDataAddress) > + // failure! > + LocalRegister elementDataAddress(m_registerAllocator); > + m_assembler.loadPtr(Assembler::Address(elementAddressRegister, Element::elementDataMemoryOffset()), elementDataAddress); > + failureCases.append(m_assembler.branchTestPtr(Assembler::Zero, elementDataAddress)); > + > + generateElementHasId(failureCases, elementDataAddress, *fragment.id); > }
Would be nice if we could just write the C++ and have tooling do the rest!
Benjamin Poulain
Comment 3
2013-12-23 12:18:13 PST
Committed
r161010
: <
http://trac.webkit.org/changeset/161010
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug