Fix build for Qt by using ASSERT_UNUSED in DFGSpeculativeJIT
https://bugs.webkit.org/show_bug.cgi?id=86902

Reviewed by Andreas Kling.

* dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::silentSavePlanForGPR):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117629 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] [WK2] Memory leaks in WebKitBackForwardList
https://bugs.webkit.org/show_bug.cgi?id=86872

Patch by Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com> on 2012-05-18
Reviewed by Martin Robinson.

 Fix memory leaks by adopting WKArray of WebBackForwardListItems
 allocations using AdoptWK.

* UIProcess/API/gtk/WebKitBackForwardList.cpp:
(webkit_back_forward_list_get_back_list):
(webkit_back_forward_list_get_back_list_with_limit):
(webkit_back_forward_list_get_forward_list):
(webkit_back_forward_list_get_forward_list_with_limit):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Unreviewed gardening.

Work a bit on the infamous "Needs rebaseline" list by removing a few
tests which are actually passing and updating some expectations.

* platform/efl/Skipped:
* platform/efl/fast/forms/caret-rtl-expected.png:
* platform/efl/fast/forms/caret-rtl-expected.txt:
* platform/efl/fast/forms/listbox-clip-expected.png:
* platform/efl/fast/forms/listbox-clip-expected.txt:
* platform/efl/fast/forms/search-styled-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117631 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, fixing mac baselines after r117613.

* platform/mac/fast/css/getComputedStyle/computed-style-expected.txt:
* platform/mac/svg/css/getComputedStyle-basic-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117632 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Percentage height replaced elements sometimes cause overflow of table contents
https://bugs.webkit.org/show_bug.cgi?id=85581

Patch by Terry Anderson <tdanderson@chromium.org> on 2012-05-18
Reviewed by Eric Seidel.

Source/WebCore:

Test: fast/replaced/table-replaced-element.html

* rendering/RenderBox.cpp:
(WebCore::RenderBox::computeReplacedLogicalHeightUsing):
This change guarantees that the containing block of a replaced element with percentage
height will be marked as having a percentage height descendant.

LayoutTests:

* fast/replaced/table-replaced-element-expected.txt: Added.
* fast/replaced/table-replaced-element.html: Added.
New layout test.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117633 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Missing plugin msg becomes "insecure plugin version" after Real Player page refresh
https://bugs.webkit.org/show_bug.cgi?id=86903
<rdar://problem/11477163>

Reviewed by Andreas Kling.

Set blocked to false before returning early when the plug-in doesn't exist.

* UIProcess/WebContext.cpp:
(WebKit::WebContext::getPluginPath):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117634 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Support imageSmoothingEnabled
https://bugs.webkit.org/show_bug.cgi?id=82804

Patch by Keyar Hood <keyar@chromium.org> on 2012-05-18
Reviewed by Stephen White.

Source/WebCore:

Test: fast/canvas/canvas-imageSmoothingEnabled.html

Added the imageSmoothingEnabled parameter to the
CanvasRenderingContext2D object. When it is set to false, it sets
InterpolationQuality to InterpolationNone. When set to true, it sets
the InterpolationQuality to DefaultInterpolationQuality (as that is the
only other value used).

* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::CanvasRenderingContext2D):
(WebCore::CanvasRenderingContext2D::webkitImageSmoothingEnabled):
(WebCore):
(WebCore::CanvasRenderingContext2D::setWebkitImageSmoothingEnabled):
* html/canvas/CanvasRenderingContext2D.h:
(CanvasRenderingContext2D):
* html/canvas/CanvasRenderingContext2D.idl:

LayoutTests:

* fast/canvas/canvas-imageSmoothingEnabled-expected.txt: Added.
* fast/canvas/canvas-imageSmoothingEnabled.html: Added.
* fast/canvas/script-tests/canvas-imageSmoothingEnabled.js: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117635 268f45cc-cd09-0410-ab3c-d52691b4dbfc
DFG should have constant propagation
https://bugs.webkit.org/show_bug.cgi?id=84004

Reviewed by Gavin Barraclough.
        
Merge r114554 from dfgopt.
        
Changes AbstractValue to be able to hold a "set" of constants, where
the maximum set size is 1 - so merging a value containing constant A
with another value containing constant B where A != B will result in
the AbstractValue claiming that it does not know any constants (i.e.
it'll just have a predicted type and possible a structure).
        
Added a constant folding phase that uses this new information to
replace pure operations known to have constant results with
JSConstants. This is OSR-exit-aware, in that it will prepend a Phantom
that refers to all of the kids of the node we replaced.

* CMakeLists.txt:
* GNUmakefile.list.am:
* JavaScriptCore.xcodeproj/project.pbxproj:
* Target.pri:
* dfg/DFGAbstractState.cpp:
(JSC::DFG::AbstractState::beginBasicBlock):
(JSC::DFG::AbstractState::endBasicBlock):
(JSC::DFG::AbstractState::execute):
* dfg/DFGAbstractState.h:
(AbstractState):
* dfg/DFGAbstractValue.h:
(JSC::DFG::AbstractValue::clear):
(JSC::DFG::AbstractValue::isClear):
(JSC::DFG::AbstractValue::makeTop):
(JSC::DFG::AbstractValue::clobberValue):
(AbstractValue):
(JSC::DFG::AbstractValue::valueIsTop):
(JSC::DFG::AbstractValue::value):
(JSC::DFG::AbstractValue::set):
(JSC::DFG::AbstractValue::operator==):
(JSC::DFG::AbstractValue::merge):
(JSC::DFG::AbstractValue::filter):
(JSC::DFG::AbstractValue::validate):
(JSC::DFG::AbstractValue::checkConsistency):
(JSC::DFG::AbstractValue::dump):
* dfg/DFGAdjacencyList.h:
(JSC::DFG::AdjacencyList::initialize):
(AdjacencyList):
(JSC::DFG::AdjacencyList::reset):
* dfg/DFGBasicBlock.h:
(JSC::DFG::BasicBlock::BasicBlock):
(BasicBlock):
* dfg/DFGCSEPhase.cpp:
(JSC::DFG::CSEPhase::constantCSE):
(CSEPhase):
(JSC::DFG::CSEPhase::performNodeCSE):
* dfg/DFGConstantFoldingPhase.cpp: Added.
(DFG):
(ConstantFoldingPhase):
(JSC::DFG::ConstantFoldingPhase::ConstantFoldingPhase):
(JSC::DFG::ConstantFoldingPhase::run):
(JSC::DFG::performConstantFolding):
* dfg/DFGConstantFoldingPhase.h: Added.
(DFG):
* dfg/DFGDriver.cpp:
(JSC::DFG::compile):
* dfg/DFGGraph.h:
(Graph):
(JSC::DFG::Graph::convertToConstant):
* dfg/DFGInsertionSet.h:
(JSC::DFG::InsertionSet::execute):
* dfg/DFGNode.h:
(JSC::DFG::Node::convertToConstant):
(Node):
* runtime/JSValue.cpp:
(JSC::JSValue::description):
* runtime/JSValue.h:
(JSValue):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, build fix.

* dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::silentSavePlanForGPR):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117637 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Validation of Last Fat Finger result is needed for selection.
https://bugs.webkit.org/show_bug.cgi?id=86888

Reviewed by Antonio Gomes.

PR 128393.

Cached FatFingersResults must be validatible against
the desired request to ensure the result is both for
the same point and of the same type.

* WebKitSupport/FatFingers.h:
(WebKit):
(FatFingersResult):
(BlackBerry::WebKit::FatFingersResult::FatFingersResult):
(BlackBerry::WebKit::FatFingersResult::reset):
(BlackBerry::WebKit::FatFingersResult::resultMatches):
(BlackBerry::WebKit::FatFingersResult::originPosition):
(BlackBerry::WebKit::FatFingersResult::adjustedPosition):
(BlackBerry::WebKit::FatFingersResult::positionWasAdjusted):
(BlackBerry::WebKit::FatFingersResult::isTextInput):
(BlackBerry::WebKit::FatFingersResult::isValid):
(BlackBerry::WebKit::FatFingersResult::node):
(BlackBerry::WebKit::FatFingersResult::nodeAsElementIfApplicable):
* WebKitSupport/SelectionHandler.cpp:
(BlackBerry::WebKit::SelectionHandler::selectAtPoint):


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