Added JSScope::objectInScope(), and refactored callers to use it
https://bugs.webkit.org/show_bug.cgi?id=95281

Reviewed by Gavin Barraclough.

../JavaScriptCore: 

This is a step toward removing ScopeChainNode. We need a layer of
indirection so that 'with' scopes can proxy for an object.
JSScope::objectInScope() will be that layer.

* bytecode/EvalCodeCache.h:
(JSC::EvalCodeCache::tryGet):
(JSC::EvalCodeCache::getSlow):
* bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::resolve):
(JSC::BytecodeGenerator::resolveConstDecl): . vs ->

* interpreter/Interpreter.cpp:
(JSC::Interpreter::unwindCallFrame):
(JSC::Interpreter::execute):
* runtime/JSScope.cpp:
(JSC::JSScope::resolve):
(JSC::JSScope::resolveSkip):
(JSC::JSScope::resolveGlobalDynamic):
(JSC::JSScope::resolveBase):
(JSC::JSScope::resolveWithBase):
(JSC::JSScope::resolveWithThis): Added JSScope::objectAtScope() calls.

* runtime/JSScope.h:
(JSScope):
(JSC::JSScope::objectAtScope):
(JSC):
(ScopeChainIterator):
(JSC::ScopeChainIterator::ScopeChainIterator):
(JSC::ScopeChainIterator::get):
(JSC::ScopeChainIterator::operator->):
(JSC::ScopeChainIterator::operator++):
(JSC::ScopeChainIterator::operator==):
(JSC::ScopeChainIterator::operator!=):
(JSC::ScopeChainNode::begin):
(JSC::ScopeChainNode::end): I moved ScopeChainIterator to this file
to resolve a circular #include problem. Eventually, I'll probably rename
it to JSScope::iterator, so I think it belongs here.

* runtime/ScopeChain.cpp:
(JSC::ScopeChainNode::print):
(JSC::ScopeChainNode::localDepth): . vs ->

* runtime/ScopeChain.h:
(ScopeChainNode): I made the 'object' data member private because it's
no longer safe to access -- you need to call JSScope::objectAtScope()
instead.

The JITs need to be friends because of the private declaration.

Subtly, JIT/LLInt code is correct without any changes because JIT/LLInt
code never compiles direct access to a with scope.

../WebCore: 

* bindings/js/JSJavaScriptCallFrameCustom.cpp:
(WebCore::JSJavaScriptCallFrame::scopeChain):
(WebCore::JSJavaScriptCallFrame::scopeType):

../WebKit/mac: 

* WebView/WebScriptDebugDelegate.mm:
(-[WebScriptCallFrame scopeChain]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126962 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Forms] Make HTMLInputElement::blur()/focus() override-able by input type
https://bugs.webkit.org/show_bug.cgi?id=95279

Reviewed by Hajime Morrita.

This patch allows HTMLInputElement::focus() and blur() functions to be
override-able.

This patch is part of Shift+Tab focus navigation change for multiple
field time input UI, bug 95168.

No new tests. This patch doesn't change behavior.

* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::blur): Added to call InputType::blur().
(WebCore::HTMLInputElement::defaultBlur): Added for default implementation of blur().
(WebCore::HTMLInputElement::defaultFocus): Added for default implementation of focus().
(WebCore::HTMLInputElement::focus): Added to call InputType::focus()
* html/HTMLInputElement.h:
(HTMLInputElement): Added declarations of blur(), defaultBlur(), defaultFocus() and focus().
* html/InputType.cpp:
(WebCore::InputType::blur): Added to call HTMLInputElement::defaultBlur() as default implementation.
(WebCore::InputType::focus):  Added to call HTMLInputElement::defaultFocus() as default implementation.
* html/InputType.h:
(InputType): Added declarations of blur(), and focus().

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126963 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Enable the edge distance anti-aliasing for accelerated compositing layers
https://bugs.webkit.org/show_bug.cgi?id=95272

Reviewed by No'am Rosenthal.

Source/WebKit/gtk:

Turn on edge-distance anti-aliasing for GTK+ WebKit1. This
improves the quality of layer rendering.

* WebCoreSupport/AcceleratedCompositingContextGL.cpp:
(WebKit::AcceleratedCompositingContext::initialize):

Source/WebKit2:

Turn on edge-distance anti-aliasing for GTK+ WebKit2. This
improves the quality of layer rendering.

* WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
(WebKit::LayerTreeHostGtk::initialize):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126964 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r126963.
http://trac.webkit.org/changeset/126963
https://bugs.webkit.org/show_bug.cgi?id=95298

Does not compile with clang (Requested by abarth on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-08-29

* html/HTMLInputElement.cpp:
* html/HTMLInputElement.h:
(HTMLInputElement):
* html/InputType.cpp:
* html/InputType.h:
(InputType):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126965 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Forms] Make HTMLInputElement::blur()/focus() override-able by input type
https://bugs.webkit.org/show_bug.cgi?id=95279

Reviewed by Hajime Morrita.

This patch allows HTMLInputElement::focus() and blur() functions to be
override-able.

This patch is part of Shift+Tab focus navigation change for multiple
field time input UI, bug 95168.

No new tests. This patch doesn't change behavior.

* dom/Element.h:
(WebCore::Element): Changed blur() to virtual function.
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::blur): Added to call InputType::blur().
(WebCore::HTMLInputElement::defaultBlur): Added for default implementation of blur().
(WebCore::HTMLInputElement::defaultFocus): Added for default implementation of focus().
(WebCore::HTMLInputElement::focus): Added to call InputType::focus()
* html/HTMLInputElement.h:
(HTMLInputElement): Added declarations of blur(), defaultBlur(), defaultFocus() and focus().
* html/InputType.cpp:
(WebCore::InputType::blur): Added to call HTMLInputElement::defaultBlur() as default implementation.
(WebCore::InputType::focus):  Added to call HTMLInputElement::defaultFocus() as default implementation.
* html/InputType.h:
(InputType): Added declarations of blur(), and focus().

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Deploy ASCIILiteral and StringBuilder in more places in WebCore
https://bugs.webkit.org/show_bug.cgi?id=95291

Reviewed by Benjamin Poulain.

I wanted to deploy ASCIILiteral in more places in WebCore, but there's
a bunch of code that should be using StringBuilder, which I couldn't
resist deploying as well.

* Modules/mediastream/PeerConnection00.cpp:
(WebCore::PeerConnection00::createIceOptions):
* bindings/js/JSBlobCustom.cpp:
(WebCore::JSBlobConstructor::constructJSBlob):
* bindings/v8/V8LazyEventListener.cpp:
(WebCore::V8LazyEventListener::prepareListenerObject):
* bindings/v8/custom/V8BlobCustom.cpp:
(WebCore::V8Blob::constructorCallback):
* css/CSSCanvasValue.cpp:
(WebCore::CSSCanvasValue::customCssText):
* css/CSSCrossfadeValue.cpp:
(WebCore::CSSCrossfadeValue::customCssText):
* css/CSSPageRule.cpp:
(WebCore::CSSPageRule::selectorText):
* css/CSSSelector.cpp:
(WebCore::CSSSelector::selectorText):
* editing/EditorCommand.cpp:
(WebCore::executeToggleStyleInList):
* editing/SmartReplaceICU.cpp:
(WebCore::getSmartSet):
* editing/markup.cpp:
(WebCore::fillContainerFromString):
* html/HTMLTitleElement.cpp:
(WebCore::HTMLTitleElement::text):
* inspector/InspectorConsoleAgent.cpp:
(WebCore::InspectorConsoleAgent::didFailLoading):
* page/EventSource.cpp:
(WebCore::EventSource::didReceiveResponse):
* platform/blackberry/LocalizedStringsBlackBerry.cpp:
(WebCore::platformLanguage):
* platform/graphics/GraphicsLayer.cpp:
(WebCore::GraphicsLayer::animationNameForTransition):
* platform/network/blackberry/rss/RSSAtomParser.cpp:
(WebCore::RSSAtomParser::parseContent):
* platform/sql/SQLiteDatabase.cpp:
(WebCore::SQLiteDatabase::open):
(WebCore::SQLiteDatabase::setFullsync):
(WebCore::SQLiteDatabase::maximumSize):
(WebCore::SQLiteDatabase::pageSize):
(WebCore::SQLiteDatabase::freeSpaceSize):
(WebCore::SQLiteDatabase::totalSize):
(WebCore::SQLiteDatabase::tableExists):
(WebCore::SQLiteDatabase::clearAllTables):
(WebCore::SQLiteDatabase::runVacuumCommand):
(WebCore::SQLiteDatabase::runIncrementalVacuumCommand):
(WebCore::SQLiteDatabase::turnOnIncrementalAutoVacuum):
* platform/win/FileSystemWin.cpp:
(WebCore::bundleName):
(WebCore::storageDirectory):
* plugins/PluginStream.cpp:
(WebCore::PluginStream::startStream):
* rendering/RenderMenuList.cpp:
(WebCore::RenderMenuList::setTextFromOption):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126967 268f45cc-cd09-0410-ab3c-d52691b4dbfc