[CTTE] Node subclasses should take a Document by reference in their constructor (Part 7)
https://bugs.webkit.org/show_bug.cgi?id=121389

Reviewed by Andreas Kling.

Converts the following to take a Document reference:
    - Element
    - MathMLElement
    - MathMLInlineContainerElement
    - MathMLMathElement
    - MathMLTextElement


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155813 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] The web inspector is not rendered when docked in WebKit2 when AC is used
https://bugs.webkit.org/show_bug.cgi?id=121381

Reviewed by Martin Robinson.

When accelerated compositing results are rendered we return early
from webkitWebViewBaseDraw and other WebView children are not
drawn. We need to chain up the draw signal handler, so that the
GtkContainer propagates the draw to all its children.

* UIProcess/API/gtk/WebKitWebViewBase.cpp:
(webkitWebViewBaseDraw):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155814 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CTTE: Node subclasses should take a Document by reference in their constructor (Part 8)
https://bugs.webkit.org/show_bug.cgi?id=121393

Reviewed by Andreas Kling.

Converts the following to take a Document reference:
    - All of SVG


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155815 268f45cc-cd09-0410-ab3c-d52691b4dbfc
RenderWidget doesn't need to cache a FrameView pointer.
<https://webkit.org/b/121158>

Reviewed by Antti Koivisto.

The FrameView can be found through RenderObject::view().frameView().
This way also gets you a reference, so no need for null-checking.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155817 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CTTE: Node subclasses should take a Document by reference in their constructor (Part 9)
https://bugs.webkit.org/show_bug.cgi?id=121394

Reviewed by Andreas Kling.

Remove the 'constructorTakesDocumentReference' property. It is the default now.

* dom/make_names.pl:
Always use a Document reference.

* html/HTMLTagNames.in:
* mathml/mathtags.in:
* svg/svgtags.in:
Remove the 'constructorTakesDocumentReference' property.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155818 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CTTE: Node subclasses should take a Document by reference in their constructor (Part 10)
https://bugs.webkit.org/show_bug.cgi?id=121397

Reviewed by Andreas Kling.

Convert the bindings code to pass a Document reference for named constructors.

* bindings/js/JSImageConstructor.cpp:
(WebCore::constructImage):
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateConstructorDefinition):
* html/HTMLAudioElement.cpp:
(WebCore::HTMLAudioElement::createForJSConstructor):
* html/HTMLAudioElement.h:
* html/HTMLImageElement.cpp:
(WebCore::HTMLImageElement::createForJSConstructor):
* html/HTMLImageElement.h:
* html/HTMLOptionElement.cpp:
(WebCore::HTMLOptionElement::createForJSConstructor):
* html/HTMLOptionElement.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155819 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Deoptimize deoptimization: make DFGOSRExitCompiler64.cpp more hackable
https://bugs.webkit.org/show_bug.cgi?id=121374

Reviewed by Geoffrey Garen.
        
This reduces the size of DFGOSRExitCompiler64.cpp by almost 50%, and makes it
super easy to add new recovery kinds. For recoveries that involve reboxing, it
allows you to keep most of the code common between the on-stack and in-reg
cases: they all get funneled through the "load from scratch buffer, convert,
and then store to stack" logic.
        
This opens up a bunch of possibilities. It'll make adding Int48 much easier,
and it probably will come in handy as we do various DFG stack layout changes in
support of the FTL.

* bytecode/ValueRecovery.h:
(JSC::ValueRecovery::dumpInContext):
(JSC::ValueRecovery::dump):
* dfg/DFGOSRExitCompiler.cpp:
(JSC::DFG::shortOperandsDump):
* dfg/DFGOSRExitCompiler64.cpp:
(JSC::DFG::OSRExitCompiler::compileExit):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155820 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CTTE: RenderFrameSet is never anonymous.
<https://webkit.org/b/121396>

Reviewed by Antti Koivisto.

This renderer is never anonymous, and always has a corresponding HTMLFrameSetElement.
Replaced element() with a frameSetElement().

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Attempt to fix a local flakiness on Lion.

Rubber stamped by Andreas Kling.

* fast/history/history-back-while-pdf-in-pagecache.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155822 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CTTE: ContentData::createRenderer() should take references
https://bugs.webkit.org/show_bug.cgi?id=121399

Reviewed by Andreas Kling.

- Convert createRenderer(Document*, RenderStyle*) to createRenderer(Document&, RenderStyle&)
- Do a drive by final-ing of ContentData derived classes.

* dom/PseudoElement.cpp:
(WebCore::PseudoElement::didAttachRenderers):
* rendering/RenderImage.cpp:
(WebCore::RenderImage::createAnonymous):
* rendering/RenderImage.h:
* rendering/style/ContentData.cpp:
(WebCore::ImageContentData::createRenderer):
(WebCore::TextContentData::createRenderer):
(WebCore::CounterContentData::createRenderer):
(WebCore::QuoteContentData::createRenderer):
* rendering/style/ContentData.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155823 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make the GDB webkit.py script compatible with Python v3
https://bugs.webkit.org/show_bug.cgi?id=121395

Reviewed by Ryosuke Niwa.

GDB fails to load the printing helpers from the webkit.py script if Python v3 is used. To avoid that,
uses of xrange() in the script are replaced with range(), and the print statements are changed into
the print() function invocations.

* gdb/webkit.py:
(guess_string_length):
(ustring_to_string):
(lstring_to_string):
(WTFCStringPrinter.to_string):
(PrintPathToRootCommand.invoke):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155824 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CTTE: RenderObject's createAnonymous() and setDocumentForAnonymous() should take Document references
https://bugs.webkit.org/show_bug.cgi?id=121400

Reviewed by Andreas Kling.

The Document used for anonymous renderers is never null.

* dom/Document.cpp:
* page/FrameView.cpp:
* rendering/FlowThreadController.cpp:
* rendering/RenderBlock.cpp:
* rendering/RenderBlock.h:
* rendering/RenderFlexibleBox.cpp:
* rendering/RenderFlexibleBox.h:
* rendering/RenderFullScreen.cpp:
* rendering/RenderFullScreen.h:
* rendering/RenderImage.cpp:
* rendering/RenderInline.cpp:
* rendering/RenderInline.h:
* rendering/RenderLayer.cpp:
* rendering/RenderListMarker.cpp:
* rendering/RenderMultiColumnBlock.cpp:
* rendering/RenderMultiColumnFlowThread.cpp:
* rendering/RenderMultiColumnFlowThread.h:
* rendering/RenderMultiColumnSet.cpp:
* rendering/RenderMultiColumnSet.h:
* rendering/RenderNamedFlowThread.cpp:
* rendering/RenderNamedFlowThread.h:
* rendering/RenderObject.h:
* rendering/RenderReplica.cpp:
* rendering/RenderReplica.h:
* rendering/RenderRuby.cpp:
* rendering/RenderRubyBase.cpp:
* rendering/RenderRubyBase.h:
* rendering/RenderRubyRun.cpp:
* rendering/RenderScrollbar.cpp:
* rendering/RenderScrollbarPart.cpp:
* rendering/RenderScrollbarPart.h:
* rendering/RenderTable.cpp:
* rendering/RenderTableCell.cpp:
* rendering/RenderTableCell.h:
* rendering/RenderTableRow.cpp:
* rendering/RenderTableRow.h:
* rendering/RenderTableSection.cpp:
* rendering/RenderText.cpp:
* rendering/RenderView.cpp:
* rendering/RenderView.h:
* rendering/mathml/RenderMathMLBlock.cpp:
* rendering/mathml/RenderMathMLRow.cpp:
* rendering/mathml/RenderMathMLScripts.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155825 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed GTK gardening.

* GNUmakefile.list.am: remove FastAllocBase.h, this file disappeared
in r155251.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155826 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CTTE: EllipsisBox owner renderer is always a RenderBlock.
<https://webkit.org/b/121402>

Reviewed by Antti Koivisto.

Let the constructor reflect this. Also out-of-line it because reasons.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155827 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WIN] Fix build without precompiled header after r154146.

* platform/win/WebCoreBundleWin.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155828 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix build with Visual Studio 2012 after r153764.
https://bugs.webkit.org/show_bug.cgi?id=121406

Reviewed by Brent Fulgham.

* wtf/MathExtras.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove dependency on CoreFoundation from WebIconDatabase
https://bugs.webkit.org/show_bug.cgi?id=119387

Reviewed by Brent Fulgham.

* COMVariantSetter.h:
(COMVariant::operator&):
(COMVariant::operator->):
* WebIconDatabase.cpp:
(WebIconDatabase::iconDatabaseNotificationUserInfoURLKey):
(postDidAddIconNotification):
* WebIconDatabase.h:
* WebView.cpp:
(WebView::notifyDidAddIcon):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155830 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[l10n] Updated Polish translation of WebKitGTK+
https://bugs.webkit.org/show_bug.cgi?id=121392

Patch by Piotr Drąg <piotrdrag@gmail.com> on 2013-09-15
Reviewed by Gustavo Noronha Silva.

* pl.po: updated.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155831 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed make distcheck fix.

Source/JavaScriptCore:

* GNUmakefile.list.am:

Source/WebCore:

* GNUmakefile.am:
* GNUmakefile.list.am:

Source/WebKit2:

* GNUmakefile.list.am:

Source/WTF:

* GNUmakefile.list.am:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Adding "explicit" keyword in rendering related constructors
https://bugs.webkit.org/show_bug.cgi?id=121398

Patch by Santosh Mahto <santosh.ma@samsung.com> on 2013-09-15
Reviewed by Andreas Kling.

Adding explicit in below constructor.
All files belong to Source/WebCore/rendering/ path.

* rendering/AutoTableLayout.h:
* rendering/ClipPathOperation.h:
(WebCore::ClipPathOperation::ClipPathOperation):
(WebCore::ShapeClipPathOperation::ShapeClipPathOperation):
* rendering/FixedTableLayout.h:
* rendering/FloatingObjects.h:
(WebCore::FloatingObject::FloatingObject):
* rendering/FlowThreadController.h:
* rendering/HitTestResult.h:
* rendering/ImageQualityController.h:
* rendering/InlineBox.h:
(WebCore::InlineBox::InlineBox):
(WebCore::InlineBox::InlineBoxBitfields::InlineBoxBitfields):
* rendering/InlineFlowBox.h:
(WebCore::InlineFlowBox::InlineFlowBox):
* rendering/InlineTextBox.h:
(WebCore::InlineTextBox::InlineTextBox):
* rendering/LayoutState.h:
* rendering/LogicalSelectionOffsetCaches.h:
(WebCore::LogicalSelectionOffsetCaches::LogicalSelectionOffsetCaches):
* rendering/RenderBoxModelObject.h:
* rendering/RenderFlexibleBox.h:
* rendering/RenderFrameSet.h:
(WebCore::FrameEdgeInfo::FrameEdgeInfo):
* rendering/RenderGeometryMap.h:
* rendering/RenderImage.h:
* rendering/RenderImageResourceStyleImage.h:
* rendering/RenderLayerFilterInfo.h:
* rendering/RenderMultiColumnSet.h:
* rendering/RenderNamedFlowThread.h:
* rendering/RenderReplaced.h:
* rendering/RenderSearchField.h:
* rendering/RenderSelectionInfo.h:
(WebCore::RenderSelectionInfoBase::RenderSelectionInfoBase):
(WebCore::RenderBlockSelectionInfo::RenderBlockSelectionInfo):
* rendering/RenderTableSection.h:
* rendering/RenderTextControl.h:
* rendering/RenderTextControlSingleLine.h:
* rendering/TrailingFloatsRootInlineBox.h:

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