Avoid unnecessarily padding the FontDescription families vector.
<https://webkit.org/b/124267>

Use a bit of reserveInitialCapacity+uncheckedAppend grease to avoid
jumping all the way to capacity=16 when a style has more than just
a single font-family in it.

130 kB progression on HTML5-8266 locally.

Reviewed by Antti Koivisto.

* css/DeprecatedStyleBuilder.cpp:
(WebCore::ApplyPropertyFontFamily::applyValue):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
RenderTableSection: Cell structures don't need allocation padding.
<https://webkit.org/b/124263>

The row structure data gets shrunk-to-fit once we get to layout,
but per-row cell structures get no such luxury. Fortuntely we know
ahead of time how many cells a row needs to accomodate, so we can
just use Vector::resizeToFit() instead of Vector::grow().

1.25 MB progression on HTML5-8266 locally.

Reviewed by Antti Koivisto.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159186 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Refalize CSSCursorImageValue.
<https://webkit.org/b/124272>

Make CSSCursorImageValue constructor return a PassRef, and have it
take the image CSSValue as a PassRef (and store it internally in a
Ref<CSSValue>.)

Had to add a Ref version of compareCSSValuePtr() to make this work.

Reviewed by Antti Koivisto.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159187 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Cleanup the build from unused parameters in WebCore
https://bugs.webkit.org/show_bug.cgi?id=124199.

Patch by Tibor Meszaros <mtibor@inf.u-szeged.hu> on 2013-11-13
Reviewed by Csaba Osztrogonác.

* css/CSSCursorImageValue.cpp:
(WebCore::CSSCursorImageValue::cachedOrPendingImage):
* dom/Document.cpp:
(WebCore::Document::scriptedAnimationControllerSetThrottled):
* fileapi/ThreadableBlobRegistry.cpp:
(WebCore::ThreadableBlobRegistry::registerBlobURL):
* html/HTMLAnchorElement.cpp:
(WebCore::shouldProhibitLinks):
* html/parser/XSSAuditor.cpp:
(WebCore::isSemicolonSeparatedAttribute):
* inspector/InspectorConsoleInstrumentation.h:
(WebCore::InspectorInstrumentation::addMessageToConsole):
* loader/DocumentThreadableLoader.cpp:
(WebCore::DocumentThreadableLoader::didReceiveData):
(WebCore::DocumentThreadableLoader::didFail):
(WebCore::DocumentThreadableLoader::preflightFailure):
* loader/cache/CachedImage.cpp:
(WebCore::CachedImage::imageSizeForRenderer):
* page/animation/ImplicitAnimation.cpp:
(WebCore::ImplicitAnimation::animate):
* page/animation/KeyframeAnimation.cpp:
(WebCore::KeyframeAnimation::animate):
* platform/graphics/WidthIterator.cpp:
(WebCore::applyFontTransforms):
* rendering/RenderView.cpp:
(WebCore::RenderView::setIsInWindow):
* rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::changeRequiresLayout):
(WebCore::RenderStyle::changeRequiresLayerRepaint):
(WebCore::RenderStyle::changeRequiresRecompositeLayer):
* testing/Internals.cpp:
(WebCore::Internals::setHeaderHeight):
(WebCore::Internals::setCaptionsStyleSheetOverride):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159188 268f45cc-cd09-0410-ab3c-d52691b4dbfc
This was supposed to test overflow-wrap:break-word instead of word-break:break-all.

Rubber-stamped by Andreas Kling.

* Layout/line-layout-simple.html:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159189 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] Convert some more OwnPtr/PassOwnPtr to std::unique_ptr
https://bugs.webkit.org/show_bug.cgi?id=124241

Patch by Sergio Correia <sergio.correia@openbossa.org> on 2013-11-13
Reviewed by Gyuyoung Kim.

The modified files are located under UIProcess/{efl,API/efl}.

* UIProcess/API/efl/EwkView.cpp:
* UIProcess/API/efl/EwkView.h:
* UIProcess/API/efl/GestureRecognizer.cpp:
* UIProcess/API/efl/GestureRecognizer.h:
* UIProcess/API/efl/ewk_back_forward_list_private.h:
* UIProcess/API/efl/ewk_color_picker_private.h:
* UIProcess/API/efl/ewk_context.cpp:
* UIProcess/API/efl/ewk_context_menu.cpp:
* UIProcess/API/efl/ewk_context_menu_item.cpp:
* UIProcess/API/efl/ewk_context_menu_item_private.h:
* UIProcess/API/efl/ewk_context_private.h:
* UIProcess/API/efl/ewk_cookie_manager.cpp:
* UIProcess/API/efl/ewk_cookie_manager_private.h:
* UIProcess/API/efl/ewk_database_manager_private.h:
* UIProcess/API/efl/ewk_favicon_database_private.h:
* UIProcess/API/efl/ewk_popup_menu.cpp:
* UIProcess/API/efl/ewk_popup_menu_item_private.h:
* UIProcess/API/efl/ewk_popup_menu_private.h:
* UIProcess/API/efl/ewk_settings_private.h:
* UIProcess/API/efl/ewk_storage_manager.cpp:
* UIProcess/API/efl/ewk_storage_manager_private.h:
* UIProcess/API/efl/ewk_view.cpp:
* UIProcess/API/efl/tests/test_ewk2_auth_request.cpp:
* UIProcess/API/efl/tests/test_ewk2_back_forward_list.cpp:
* UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp:
* UIProcess/API/efl/tests/test_ewk2_download_job.cpp:
* UIProcess/API/efl/tests/test_ewk2_favicon_database.cpp:
* UIProcess/API/efl/tests/test_ewk2_refptr_evas_object.cpp:
* UIProcess/API/efl/tests/test_ewk2_view.cpp:
* UIProcess/efl/ContextHistoryClientEfl.h:
* UIProcess/efl/ContextMenuClientEfl.h:
* UIProcess/efl/DownloadManagerEfl.h:
* UIProcess/efl/FindClientEfl.h:
* UIProcess/efl/FormClientEfl.h:
* UIProcess/efl/PageLoadClientEfl.h:
* UIProcess/efl/PagePolicyClientEfl.h:
* UIProcess/efl/PageUIClientEfl.h:
* UIProcess/efl/PageViewportControllerClientEfl.h:
* UIProcess/efl/RequestManagerClientEfl.h:
* UIProcess/efl/VibrationClientEfl.cpp:
* UIProcess/efl/VibrationClientEfl.h:
* UIProcess/efl/ViewClientEfl.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159190 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Turn some not-so-rare ElementRareData bits into Node flags.
<https://webkit.org/b/124275>

The following 4 bits seem to be the most commonly set:

- childrenAffectedByHover()
- childrenAffectedByFirstChildRules()
- childrenAffectedByLastChildRules()
- childrenAffectedByDirectAdjacentRules()

Turning them into Node flags means we don't have to allocate full
ElementRareData object in many cases. I also took this opportunity
to make Node's flag twiddling functions available to subclasses.

1.38 MB progression on HTML5-8266 locally.

Reviewed by Antti Koivisto.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Support overflow-wrap:break-word on simple line path
https://bugs.webkit.org/show_bug.cgi?id=124206

Source/WebCore: 

Reviewed by Andreas Kling.

Pure text documents are rendered with break-word. It is also common in discussion board type sites.
        
This also makes many <textarea>'s rendered using the simple line path.

Tests: fast/forms/basic-textareas-quirks-simple-lines.html
       fast/forms/linebox-overflow-in-textarea-padding-simple-lines.html
       fast/forms/negativeLineHeight-simple-lines.html
       fast/forms/textAreaLineHeight-simple-lines.html

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::updateShapeInsideInfoAfterStyleChange):
(WebCore::RenderBlock::markShapeInsideDescendantsForLayout):
        
    Invalidate the cached line layout mode on shape-inside style change.

* rendering/SimpleLineLayout.cpp:
(WebCore::SimpleLineLayout::canUseForText):
(WebCore::SimpleLineLayout::canUseFor):
(WebCore::SimpleLineLayout::createTextRuns):

LayoutTests: 

Reviewed by Andreas Kling.
        
Force these to use line boxes, add ref test versions comparing the paths.

* fast/forms/basic-textareas-quirks-simple-lines-expected.html: Added.
* fast/forms/basic-textareas-quirks-simple-lines.html: Added.
* fast/forms/basic-textareas-quirks.html:
* fast/forms/linebox-overflow-in-textarea-padding-simple-lines-expected.html: Added.
* fast/forms/linebox-overflow-in-textarea-padding-simple-lines.html: Added.
* fast/forms/linebox-overflow-in-textarea-padding.html:
* fast/forms/negativeLineHeight-simple-lines-expected.html: Added.
* fast/forms/negativeLineHeight-simple-lines.html: Added.
* fast/forms/negativeLineHeight.html:
* fast/forms/textAreaLineHeight-simple-lines-expected.html: Added.
* fast/forms/textAreaLineHeight-simple-lines.html: Added.
* fast/forms/textAreaLineHeight.html:
* fast/parser/entity-comment-in-textarea.html: Made this independent of line layout mode.
* fast/replaced/width100percent-textarea.html:
* platform/mac/fast/parser/entity-comment-in-textarea-expected.txt:



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