Remove .get() calls in assertions as suggested by Darin Adler.

* platform/graphics/ca/mac/PlatformCALayerMac.mm:
(PlatformCALayer::appendSublayer):
(PlatformCALayer::insertSublayer):
(PlatformCALayer::replaceSublayer):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
IndexedDB: Hidden indexing events are visible to script via bubbling/capture
https://bugs.webkit.org/show_bug.cgi?id=96566

Reviewed by Tony Chang.

Source/WebCore:

Stop propagation of error events fired at internal indexing requests as a result of
aborting, as they should not be visible to scripts.

Test: storage/indexeddb/index-population.html

* Modules/indexeddb/IDBObjectStore.cpp:
(WebCore::IDBObjectStore::createIndex):
* Modules/indexeddb/IDBRequest.cpp:
(WebCore::IDBRequest::IDBRequest):
(WebCore::IDBRequest::dispatchEvent):
* Modules/indexeddb/IDBRequest.h:
(WebCore::IDBRequest::preventPropagation):
(IDBRequest):

LayoutTests:

Listen for unexpected events in both capture and bubble phases.

* storage/indexeddb/resources/index-population.js:
(deleteSuccess):
(doSetVersion1):
(setVersion2):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131967 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE macro in StyleResolver.
https://bugs.webkit.org/show_bug.cgi?id=99782

Reviewed by Sam Weinig.

Removes last usage of HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE macro, so that in future there will be no temptation
to use it instead of adding a line to StyleBuilder.
Also removes redundant checks for inital and inherit (HANDLE_INHERIT_AND_INTIAL already returns in those cases).
I don't want to move this code into StyleBuilder until the FIXME that is already there is fixed.

Covered by many existing writing mode tests (eg. fast/html/details-writing-mode.html)

* css/StyleResolver.cpp:
(WebCore):
(WebCore::StyleResolver::applyProperty):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Implement setRangeText() on text controls
https://bugs.webkit.org/show_bug.cgi?id=91907

Patch by Pablo Flouret <pablof@motorola.com> on 2012-10-19
Reviewed by Kent Tamura.

Source/WebCore:

setRangeText() replaces a range of text with some other text, and
adjusts the existing selection according to its parameters.

Spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#dom-textarea/input-setrangetext

Tests: fast/forms/color/color-setrangetext.html
       fast/forms/date/date-setrangetext.html
       fast/forms/datetime/datetime-setrangetext.html
       fast/forms/datetimelocal/datetimelocal-setrangetext.html
       fast/forms/file/file-setrangetext.html
       fast/forms/hidden/hidden-setrangetext.html
       fast/forms/image/image-setrangetext.html
       fast/forms/month/month-setrangetext.html
       fast/forms/number/number-setrangetext.html
       fast/forms/range/range-setrangetext.html
       fast/forms/search/search-setrangetext.html
       fast/forms/setrangetext.html
       fast/forms/textarea/textarea-setrangetext.html
       fast/forms/time/time-setrangetext.html
       fast/forms/week/week-setrangetext.html

* bindings/scripts/CodeGeneratorGObject.pm:
(SkipFunction):
    The GObject generator doesn't support function overloads, so skip the
    version of setRangeText() that has only one argument, its behavior
    can be emulated with the four-argument version.

* html/InputType.cpp:
(WebCore::InputType::supportsSelectionAPI):
(WebCore):
* html/InputType.h:
(InputType):
    Add supportsSelectionAPI() which indicates whether the various
    selection api functions like setRangeText, setSelectionRange, etc.
    are supported by this input element.

* html/BaseTextInputType.cpp:
(WebCore::BaseTextInputType::supportsSelectionAPI):
(WebCore):
* html/BaseTextInputType.h:
(BaseTextInputType):
    Text-based input types support the selection APIs.

* html/EmailInputType.cpp:
(WebCore::EmailInputType::supportsSelectionAPI):
(WebCore):
* html/EmailInputType.h:
(EmailInputType):
    Email inputs don't support the selection APIs.

* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::setRangeText):
* html/HTMLInputElement.h:
(HTMLInputElement):
    Add a setRangeText override which checks if it should apply to the
    input type, and calls the actual implementation on the parent class.
* html/HTMLInputElement.idl:
* html/HTMLTextAreaElement.idl:

* html/HTMLTextFormControlElement.cpp:
(WebCore::HTMLTextFormControlElement::setRangeText):
* html/HTMLTextFormControlElement.h:
(HTMLTextFormControlElement):
    setRangeText implementation.

LayoutTests:

* fast/forms/color/color-setrangetext-expected.txt: Added.
* fast/forms/color/color-setrangetext.html: Added.
* fast/forms/date/date-setrangetext-expected.txt: Added.
* fast/forms/date/date-setrangetext.html: Added.
* fast/forms/datetime/datetime-setrangetext-expected.txt: Added.
* fast/forms/datetime/datetime-setrangetext.html: Added.
* fast/forms/datetimelocal/datetimelocal-setrangetext-expected.txt: Added.
* fast/forms/datetimelocal/datetimelocal-setrangetext.html: Added.
* fast/forms/file/file-setrangetext-expected.txt: Added.
* fast/forms/file/file-setrangetext.html: Added.
* fast/forms/hidden/hidden-setrangetext-expected.txt: Added.
* fast/forms/hidden/hidden-setrangetext.html: Added.
* fast/forms/image/image-setrangetext-expected.txt: Added.
* fast/forms/image/image-setrangetext.html: Added.
* fast/forms/month/month-setrangetext-expected.txt: Added.
* fast/forms/month/month-setrangetext.html: Added.
* fast/forms/number/number-setrangetext-expected.txt: Added.
* fast/forms/number/number-setrangetext.html: Added.
* fast/forms/range/range-setrangetext-expected.txt: Added.
* fast/forms/range/range-setrangetext.html: Added.
* fast/forms/resources/common-setrangetext.js: Added.
(runTestsShouldPass):
(runTestsShouldFail):
* fast/forms/search/search-setrangetext-expected.txt: Added.
* fast/forms/search/search-setrangetext.html: Added.
* fast/forms/setrangetext-expected.txt: Added.
* fast/forms/setrangetext.html: Added.
* fast/forms/textarea/textarea-setrangetext-expected.txt: Added.
* fast/forms/textarea/textarea-setrangetext.html: Added.
* fast/forms/time/time-setrangetext-expected.txt: Added.
* fast/forms/time/time-setrangetext.html: Added.
* fast/forms/week/week-setrangetext-expected.txt: Added.
* fast/forms/week/week-setrangetext.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131969 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening. Marking platform/chromium/virtual/gpu/fast/canvas/webgl/array-bounds-clamping.html
failing on Chromium.

* platform/chromium/TestExpectations:


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