Commit 0788b60c authored by darin@apple.com's avatar darin@apple.com
Browse files

Get rid of a couple unneeded NeverDestroyed::get() calls

https://bugs.webkit.org/show_bug.cgi?id=121500

Reviewed by Andreas Kling.

* css/CSSSelector.cpp:
(WebCore::CSSSelector::parsePseudoType): No need to call get() here.
* dom/make_names.pl:
(printFactoryCppFile): Ditto.
(printWrapperFactoryCppFile): Ditto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155967 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d51a806c
2013-09-17 Darin Adler <darin@apple.com>
Get rid of a couple unneeded NeverDestroyed::get() calls
https://bugs.webkit.org/show_bug.cgi?id=121500
Reviewed by Andreas Kling.
* css/CSSSelector.cpp:
(WebCore::CSSSelector::parsePseudoType): No need to call get() here.
* dom/make_names.pl:
(printFactoryCppFile): Ditto.
(printWrapperFactoryCppFile): Ditto.
2013-09-17 Hans Muller <hmuller@adobe.com>
 
Bad ASSERT() in RasterShapeIntervals::firstIncludedIntervalY()
......@@ -366,7 +366,7 @@ CSSSelector::PseudoType CSSSelector::parsePseudoType(const AtomicString& name)
static NeverDestroyed<HashMap<AtomicString, CSSSelector::PseudoType>> types;
if (types.get().isEmpty())
populatePseudoTypeByNameMap(types.get());
populatePseudoTypeByNameMap(types);
if (PseudoType type = types.get().get(name))
return type;
......
......@@ -978,7 +978,7 @@ END
static NeverDestroyed<HashMap<AtomicStringImpl*, $parameters{namespace}ConstructorFunction>> functions;
if (functions.get().isEmpty())
populate$parameters{namespace}FactoryMap(functions.get());
populate$parameters{namespace}FactoryMap(functions);
if ($parameters{namespace}ConstructorFunction function = functions.get().get(name.localName().impl())) {
END
;
......@@ -1212,7 +1212,7 @@ JSDOMWrapper* createJS$parameters{namespace}Wrapper(ExecState* exec, JSDOMGlobal
{
static NeverDestroyed<HashMap<AtomicStringImpl*, Create$parameters{namespace}ElementWrapperFunction>> functions;
if (functions.get().isEmpty())
populate$parameters{namespace}WrapperMap(functions.get());
populate$parameters{namespace}WrapperMap(functions);
if (auto function = functions.get().get(element->localName().impl()))
return function(exec, globalObject, element);
return CREATE_DOM_WRAPPER(exec, globalObject, $parameters{fallbackJSInterfaceName}, element.get());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment