⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Timeline



Aug 25, 2013:

11:20 PM Changeset in webkit [154587] by ryuan.choi@samsung.com
  • 2 edits in trunk/Tools

[EFL] EWebLauncher is executed as full screen with device pixel ratio
https://bugs.webkit.org/show_bug.cgi?id=120282

Reviewed by Gyuyoung Kim.

  • EWebLauncher/main.c:

Use double instead of float for device_pixel_ratio which is passed to ECORE_GETOPT_VALUE_DOUBLE.

11:05 PM Changeset in webkit [154586] by rniwa@webkit.org
  • 4 edits in trunk/Source/WebCore

JSHTMLFormElement::canGetItemsForName needlessly allocates a Vector
https://bugs.webkit.org/show_bug.cgi?id=120277

Reviewed by Sam Weinig.

Added HTMLFormElement::hasNamedElement and used it in JSHTMLFormElement::canGetItemsForName.

This required fixing a bug in HTMLFormElement::getNamedElements that the first call to getNamedElements
after replacing an element A with another element B of the same name caused it to erroneously append A
to namedItems via the aliases mapping. Because getNamedElements used to be always called in pairs, this
wrong behavior was never visible to the Web. Fixed the bug by not adding the old element to namedItem
when namedItem's size is 1.

Also renamed m_elementAliases to m_pastNamesMap along with related member functions.

No new tests are added since there should be no Web exposed behavioral change.

  • bindings/js/JSHTMLFormElementCustom.cpp:

(WebCore::JSHTMLFormElement::canGetItemsForName):

  • html/HTMLFormElement.cpp:

(WebCore::HTMLFormElement::elementFromPastNamesMap):
(WebCore::HTMLFormElement::addElementToPastNamesMap):
(WebCore::HTMLFormElement::hasNamedElement):
(WebCore::HTMLFormElement::getNamedElements):

  • html/HTMLFormElement.h:
7:21 PM Changeset in webkit [154585] by akling@apple.com
  • 3 edits in trunk/Source/WebCore

RenderLayerBacking::renderer() should return a reference.
<https://webkit.org/b/120280>

Reviewed by Anders Carlsson.

It's just a forwarding call to RenderLayer::renderer() which already returns a reference.

7:08 PM Changeset in webkit [154584] by gyuyoung.kim@samsung.com
  • 3 edits in trunk/Source/WebCore

Add toSVGMissingGlyphElement(), and use it.
https://bugs.webkit.org/show_bug.cgi?id=120197

Reviewed by Andreas Kling.

As a step to clean-up static_cast<SVGXXX>, toSVGMissingGlyphElement() is added to clean-up
static_cast<SVGMissingGlyphElement*>.

  • svg/SVGFontElement.cpp:

(WebCore::SVGFontElement::firstMissingGlyphElement):
(WebCore::SVGFontElement::ensureGlyphCache):

  • svg/SVGMissingGlyphElement.h:

(WebCore::toSVGMissingGlyphElement):

6:02 PM Changeset in webkit [154583] by akling@apple.com
  • 23 edits in trunk/Source

RenderLayer::renderer() should return a reference.
<https://webkit.org/b/120276>

Reviewed by Anders Carlsson.

RenderLayer is always created with a renderer, so make renderer() (and m_renderer) references.
Nuked an assortment of useless null checks.

2:43 PM Changeset in webkit [154582] by commit-queue@webkit.org
  • 8 edits
    19 adds
    13 deletes in trunk/LayoutTests

Improve srcset's layout tests
https://bugs.webkit.org/show_bug.cgi?id=120274

Moved srcset's tests to use js-test-pre, and output text with clear PASS/FAILED statements.
Added expected.txt files to the test directory, since there shouldn't be any platform variance in the results.
For some of the tests, added an equivalent 1x/2x test, to make sure the feature behaves on both DPRs.
Added preload tests on the "change-dynamically" tests, to make sure the 'src' resource is not loaded when it shouldn't.

Patch by Yoav Weiss <yoav@yoav.ws> on 2013-08-25
Reviewed by Andreas Kling.

  • fast/hidpi/image-srcset-change-dynamically-from-js-1x-expected.txt: Added.
  • fast/hidpi/image-srcset-change-dynamically-from-js-1x.html: Added.
  • fast/hidpi/image-srcset-change-dynamically-from-js-2x-expected.txt: Added.
  • fast/hidpi/image-srcset-change-dynamically-from-js-2x.html: Added.
  • fast/hidpi/image-srcset-change-dynamically-from-js.html: Removed.
  • fast/hidpi/image-srcset-data-src-expected.txt: Added.
  • fast/hidpi/image-srcset-data-src.html:
  • fast/hidpi/image-srcset-data-srcset-expected.txt: Added.
  • fast/hidpi/image-srcset-data-srcset.html:
  • fast/hidpi/image-srcset-invalid-inputs-correct-src-expected.txt: Added.
  • fast/hidpi/image-srcset-invalid-inputs-correct-src.html:
  • fast/hidpi/image-srcset-invalid-inputs-except-one-expected.txt: Added.
  • fast/hidpi/image-srcset-invalid-inputs-except-one.html:
  • fast/hidpi/image-srcset-remove-dynamically-from-js-expected.txt: Added.
  • fast/hidpi/image-srcset-remove-dynamically-from-js.html:
  • fast/hidpi/image-srcset-same-alternative-for-both-attributes-expected.txt: Added.
  • fast/hidpi/image-srcset-same-alternative-for-both-attributes.html:
  • fast/hidpi/image-srcset-simple-1x-expected.txt: Added.
  • fast/hidpi/image-srcset-simple-1x.html: Added.
  • fast/hidpi/image-srcset-simple-2x-expected.txt: Added.
  • fast/hidpi/image-srcset-simple-2x.html: Added.
  • fast/hidpi/image-srcset-simple.html: Removed.
  • fast/hidpi/image-srcset-src-selection-1x-expected.txt: Added.
  • fast/hidpi/image-srcset-src-selection-1x.html: Added.
  • fast/hidpi/image-srcset-src-selection-2x-expected.txt: Added.
  • fast/hidpi/image-srcset-src-selection-2x.html: Added.
  • fast/hidpi/image-srcset-src-selection.html: Removed.
  • fast/hidpi/image-srcset-viewport-modifiers-expected.txt: Added.
  • fast/hidpi/image-srcset-viewport-modifiers.html:
  • platform/mac/fast/hidpi/image-srcset-change-dynamically-from-js-expected.txt: Removed.
  • platform/mac/fast/hidpi/image-srcset-data-src-expected.txt: Removed.
  • platform/mac/fast/hidpi/image-srcset-data-srcset-expected.txt: Removed.
  • platform/mac/fast/hidpi/image-srcset-invalid-inputs-correct-src-expected.txt: Removed.
  • platform/mac/fast/hidpi/image-srcset-invalid-inputs-except-one-expected.txt: Removed.
  • platform/mac/fast/hidpi/image-srcset-remove-dynamically-from-js-expected.txt: Removed.
  • platform/mac/fast/hidpi/image-srcset-same-alternative-for-both-attributes-expected.txt: Removed.
  • platform/mac/fast/hidpi/image-srcset-simple-expected.txt: Removed.
  • platform/mac/fast/hidpi/image-srcset-src-selection-expected.txt: Removed.
  • platform/mac/fast/hidpi/image-srcset-viewport-modifiers-expected.txt: Removed.
2:30 PM Changeset in webkit [154581] by Antti Koivisto
  • 13 edits
    2 adds in trunk/Source/WebCore

Element child and descendant iterators
https://bugs.webkit.org/show_bug.cgi?id=120248

Reviewed by Sam Weinig and Andreas Kling.

Add iterators for Element children and descendants.

To iterate over element children:

#include "ChildIterator.h"

for (auto it = elementChildren(this).begin(), end = elementChildren(this).end(); it != end; ++it) {

Element& element = *it;
...

for (auto it = childrenOfType<HTMLAreaElement>(this).begin(), end = childrenOfType<HTMLAreaElement>(this).end(); it != end; ++it) {

HTMLAreaElement& area = *it;
...

To iteratate over element descendants in pre-order:

#include "DescendantIterator.h"

for (auto it = elementDescendants(this).begin(), end = elementDescendants(this).end(); it != end; ++it) {

Element& element = *it;
...

for (auto it = descendantsOfType<HTMLAreaElement>(this).begin(), end = descendantsOfType<HTMLAreaElement>(this).end(); it != end; ++it) {

HTMLAreaElement& area = *it;
...


The iterators assert against DOM mutations and event dispatch while iterating in debug builds.

They are compatible with C++11 range-based for loops. In the future we can use

for (auto& element : elementChildren(this))

...

etc.

The patch all uses the new iterators in a few places.

  • WebCore.xcodeproj/project.pbxproj:
  • accessibility/AccessibilityNodeObject.cpp:

(WebCore::AccessibilityNodeObject::canvasHasFallbackContent):
(WebCore::siblingWithAriaRole):

  • accessibility/AccessibilityRenderObject.cpp:
  • accessibility/AccessibilityTable.cpp:

(WebCore::AccessibilityTable::isDataTable):

  • dom/ChildIterator.h: Added.

(WebCore::ChildIterator::operator*):
(WebCore::ChildIterator::operator->):
(WebCore::::ChildIterator):
(WebCore::::operator):
(WebCore::=):
(WebCore::::ChildIteratorAdapter):
(WebCore::::begin):
(WebCore::::end):
(WebCore::elementChildren):
(WebCore::childrenOfType):

  • dom/DescendantIterator.h: Added.

(WebCore::DescendantIterator::operator*):
(WebCore::DescendantIterator::operator->):
(WebCore::::DescendantIterator):
(WebCore::::operator):
(WebCore::=):
(WebCore::::DescendantIteratorAdapter):
(WebCore::::begin):
(WebCore::::end):
(WebCore::elementDescendants):
(WebCore::descendantsOfType):

  • dom/Document.cpp:

(WebCore::Document::buildAccessKeyMap):
(WebCore::Document::childrenChanged):
(WebCore::Document::attach):
(WebCore::Document::detach):

  • editing/ApplyStyleCommand.cpp:

(WebCore::ApplyStyleCommand::cleanupUnstyledAppleStyleSpans):

  • editing/markup.cpp:

(WebCore::completeURLs):

  • html/HTMLMapElement.cpp:

(WebCore::HTMLMapElement::mapMouseEvent):

  • html/HTMLMediaElement.cpp:

(WebCore::HTMLMediaElement::selectMediaResource):
(WebCore::HTMLMediaElement::textTrackModeChanged):

2:22 PM Changeset in webkit [154580] by akling@apple.com
  • 87 edits in trunk/Source/WebCore

RenderObject::document() should return a reference.
<https://webkit.org/b/120272>

Reviewed by Antti Koivisto.

There's always a Document. We were allocated in someone's arena, after all.
Various null checks and assertions neutralized.

12:43 PM Changeset in webkit [154579] by ddkilzer@apple.com
  • 2 edits in trunk/Source/WebCore

BUILD FIX (r154578): Return Vector<String>() from Pasteboard::types() for iOS

  • platform/ios/PasteboardIOS.mm:

(WebCore::Pasteboard::types): Return Vector<String>() instead of
ListHashSet<String>() after r154578.

10:24 AM Changeset in webkit [154578] by Darin Adler
  • 12 edits in trunk/Source/WebCore

Make JavaScript binding for Clipboard::types more normal
https://bugs.webkit.org/show_bug.cgi?id=120271

Reviewed by Anders Carlsson.

  • bindings/js/JSClipboardCustom.cpp:

(WebCore::JSClipboard::types): Make a simple custom binding. Only needed because
there is a special value, null, this can return.

  • dom/Clipboard.cpp:

(WebCore::Clipboard::types): Return Vector<String> instead of ListHashSet<String>.

  • dom/Clipboard.h: Ditto.
  • platform/Pasteboard.h: Ditto.
  • platform/blackberry/PasteboardBlackBerry.cpp:

(WebCore::Pasteboard::types): Ditto.

  • platform/efl/PasteboardEfl.cpp:

(WebCore::Pasteboard::types): Ditto.

  • platform/gtk/PasteboardGtk.cpp:

(WebCore::Pasteboard::types): Ditto.

  • platform/ios/PasteboardIOS.mm:

(WebCore::Pasteboard::types): Ditto.

  • platform/mac/PasteboardMac.mm:

(WebCore::Pasteboard::types): Ditto.

  • platform/qt/PasteboardQt.cpp:

(WebCore::Pasteboard::types): Ditto.

  • platform/win/PasteboardWin.cpp:

(WebCore::Pasteboard::types): Ditto.

7:21 AM Changeset in webkit [154577] by ddkilzer@apple.com
  • 4 edits in trunk/Source/WebCore

Unreviewed rollout of r154571. Broke internal iOS build.

Reopened: No need for clearTimers function in Frame
https://bugs.webkit.org/show_bug.cgi?id=120265

  • history/CachedFrame.cpp:

(WebCore::CachedFrame::CachedFrame):
(WebCore::CachedFrame::destroy):

  • page/Frame.cpp:

(WebCore::Frame::clearTimers):

  • page/Frame.h:
3:28 AM Changeset in webkit [154576] by Darin Adler
  • 4 edits in trunk/Source/WebCore

No need for hasData in Clipboard
https://bugs.webkit.org/show_bug.cgi?id=120269

Reviewed by Andreas Kling.

This simple forwarder does not belong in the Clipboard class.
The drag code that uses it already works directly with Pasteboard.

  • dom/Clipboard.cpp: Removed hasData.
  • dom/Clipboard.h: Ditto.
  • page/DragController.cpp:

(WebCore::DragController::startDrag): Call through the pasteboard.

3:15 AM Changeset in webkit [154575] by Darin Adler
  • 10 edits in trunk/Source

Source/WebCore: No need for documentTypeString function in Frame
https://bugs.webkit.org/show_bug.cgi?id=120262

Reviewed by Andreas Kling.

  • WebCore.exp.in: Removed export of Frame::documentTypeString.
  • editing/markup.cpp:

(WebCore::documentTypeString): Added. Replaces the old Frame member function.
Makes more sense to have this here since it is both called by and calls code
in this file; somehow this function was left behind.
(WebCore::createFullMarkup): Changed to call the new function.

  • editing/markup.h: Added documentTypeString function. Has to be exported

because LegacyWebArchive uses it; might be worth fixing that later.

  • loader/archive/cf/LegacyWebArchive.cpp:

(WebCore::LegacyWebArchive::create): Changed to call the new function.
(WebCore::LegacyWebArchive::createFromSelection): Ditto.

  • page/Frame.cpp: Removed Frame::documentTypeString.
  • page/Frame.h: Ditto.

Source/WebKit/mac: Frame should not have a documentTypeString member function
https://bugs.webkit.org/show_bug.cgi?id=120262

Reviewed by Andreas Kling.

  • WebView/WebFrame.mm: Removed _stringWithDocumentTypeStringAndMarkupString:

internal method, which was not used anywhere in WebKit. Internal methods are
only for use within WebKit, as opposed to public and private methods that can
be used outside.

  • WebView/WebFrameInternal.h: Ditto.
3:00 AM Changeset in webkit [154574] by Darin Adler
  • 2 edits
    1 move in trunk/Source/WebCore

Clipboard is in DOM directory, but ClipboardMac is in platform directory
https://bugs.webkit.org/show_bug.cgi?id=120267

Reviewed by Andreas Kling.

This file is almost gone; has just one function in it. Move it for now, and later
we can delete it entirely.

  • WebCore.xcodeproj/project.pbxproj: Updated for new file location.
  • dom/ClipboardMac.mm: Moved from Source/WebCore/platform/mac/ClipboardMac.mm.
2:54 AM Changeset in webkit [154573] by Darin Adler
  • 7 edits in trunk/Source/WebCore

No need for notifyChromeClientWheelEventHandlerCountChanged in Frame
https://bugs.webkit.org/show_bug.cgi?id=120264

Reviewed by Andreas Kling.

  • dom/Document.cpp:

(WebCore::Document::createRenderTree): Renamed attach to this.
This made it practical to remove a comment that says the same thing and
also helps make the purpose of the function considerably more clear,
although the relationship to the attached and detach functions is now
less clear; should fix that soon.
(WebCore::pageWheelEventHandlerCountChanged): Added. Contains the code
from Frame::notifyChromeClientWheelEventHandlerCountChanged, minus some
assertions that were only needed because the function was passed a frame
rather than a page.
(WebCore::Document::didBecomeCurrentDocumentInFrame): Added. Contains
most of the code from Frame::setDocument. Looking at before and after,
we can see that most of the work is within the document class and matches
up with other code already in this class. Added FIXMEs about many problems
spotted in the code.
(WebCore::Document::topDocument): Added FIXME and tweaked formatting.
(WebCore::wheelEventHandlerCountChanged): Moved the call to the
pageWheelEventHandlerCountChanged in here from the two call sites.
Also added a FIXME.
(WebCore::Document::didAddWheelEventHandler): Removed the call to
notifyChromeClientWheelEventHandlerCountChanged, since that's now handled
inside wheelEventHandlerCountChanged.
(WebCore::Document::didRemoveWheelEventHandler): Ditto.

  • dom/Document.h: Renamed attach to createRenderTree, made it private,

and added a new didBecomeCurrentDocumentInFrame function.

  • loader/PlaceholderDocument.cpp:

(WebCore::PlaceholderDocument::createRenderTree): Renamed from attach.

  • loader/PlaceholderDocument.h: Did the rename and made the function a

private override.

  • page/Frame.cpp:

(WebCore::Frame::setDocument): Moved most of this function out of here
into the new Document::didBecomeCurrentDocumentInFrame function.
Also deleted notifyChromeClientWheelEventHandlerCountChanged.

  • page/Frame.h: Deleted notifyChromeClientWheelEventHandlerCountChanged.
2:51 AM Changeset in webkit [154572] by Darin Adler
  • 6 edits in trunk/Source/WebCore

No need for dispatchVisibilityStateChangeEvent function
https://bugs.webkit.org/show_bug.cgi?id=120261

Reviewed by Andreas Kling.

  • dom/Document.cpp: Removed dispatchVisibilityStateChangeEvent.
  • dom/Document.h: Ditto.
  • page/Frame.cpp: Ditto.
  • page/Frame.h: Ditto.
  • page/Page.cpp:

(WebCore::Page::setVisibilityState): Put all the logic for dispatching the
visibility state change event. Nothing here requires any special information
about the internals of Frame or Document.

2:33 AM Changeset in webkit [154571] by Darin Adler
  • 4 edits in trunk/Source/WebCore

No need for clearTimers function in Frame
https://bugs.webkit.org/show_bug.cgi?id=120265

Reviewed by Andreas Kling.

  • history/CachedFrame.cpp:

(WebCore::clearTimers): Added. Moved here from Frame.
(WebCore::CachedFrame::CachedFrame): Call above function.
(WebCore::CachedFrame::destroy): Ditto.

  • page/Frame.cpp: Removed the two clearTimers functions.
  • page/Frame.h: Ditto.
2:27 AM Changeset in webkit [154570] by zandobersek@gmail.com
  • 2 edits in trunk/Tools

[gdb] Remove the pretty printer for KURLGooglePrivate
https://bugs.webkit.org/show_bug.cgi?id=120263

Reviewed by Benjamin Poulain.

Remove the pretty printer for the WebCore::KURLGooglePrivate structure that
was usable inside the gdb debugger. The structure was remove from the codebase
along with the GoogleURL backend for KURL.

  • gdb/webkit.py:

(JSCJSStringPrinter.to_string):
(add_pretty_printers):

1:02 AM Changeset in webkit [154569] by fpizlo@apple.com
  • 12 edits
    16 adds in trunk

FloatTypedArrayAdaptor::toJSValue should almost certainly not use jsNumber() since that attempts int conversions
https://bugs.webkit.org/show_bug.cgi?id=120228

Source/JavaScriptCore:

Reviewed by Oliver Hunt.

It turns out that there were three problems:

  • Using jsNumber() meant that we were converting doubles to integers and then possibly back again whenever doing a set() between floating point arrays.


  • Slow-path accesses to double typed arrays were slower than necessary because of the to-int conversion attempt.


  • The use of JSValue as an intermediate for converting between differen types in typedArray.set() resulted in worse code than I had previously expected.


This patch solves the problem by using template double-dispatch to ensure that
that C++ compiler sees the simplest possible combination of casts between any
combination of typed array types, while still preserving JS and typed array
conversion semantics. Conversions are done as follows:

SourceAdaptor::convertTo<TargetAdaptor>(value)


Internally, convertTo() calls one of three possible methods on TargetAdaptor,
with one method for each of int32_t, uint32_t, and double. This means that the
C++ compiler will at worst see a widening cast to one of those types followed
by a narrowing conversion (not necessarily a cast - may have clamping or the
JS toInt32() function).

This change doesn't just affect typedArray.set(); it also affects slow-path
accesses to typed arrays as well. This patch also adds a bunch of new test
coverage.

This change is a ~50% speed-up on typedArray.set() involving floating point
types.

  • GNUmakefile.list.am:
  • JavaScriptCore.vcxproj/JavaScriptCore.vcxproj:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • runtime/GenericTypedArrayView.h:

(JSC::GenericTypedArrayView::set):

  • runtime/JSDataViewPrototype.cpp:

(JSC::setData):

  • runtime/JSGenericTypedArrayView.h:

(JSC::JSGenericTypedArrayView::setIndexQuicklyToDouble):
(JSC::JSGenericTypedArrayView::setIndexQuickly):

  • runtime/JSGenericTypedArrayViewInlines.h:

(JSC::::setWithSpecificType):
(JSC::::set):

  • runtime/ToNativeFromValue.h: Added.

(JSC::toNativeFromValue):

  • runtime/TypedArrayAdaptors.h:

(JSC::IntegralTypedArrayAdaptor::toJSValue):
(JSC::IntegralTypedArrayAdaptor::toDouble):
(JSC::IntegralTypedArrayAdaptor::toNativeFromInt32):
(JSC::IntegralTypedArrayAdaptor::toNativeFromUint32):
(JSC::IntegralTypedArrayAdaptor::toNativeFromDouble):
(JSC::IntegralTypedArrayAdaptor::convertTo):
(JSC::FloatTypedArrayAdaptor::toJSValue):
(JSC::FloatTypedArrayAdaptor::toDouble):
(JSC::FloatTypedArrayAdaptor::toNativeFromInt32):
(JSC::FloatTypedArrayAdaptor::toNativeFromUint32):
(JSC::FloatTypedArrayAdaptor::toNativeFromDouble):
(JSC::FloatTypedArrayAdaptor::convertTo):
(JSC::Uint8ClampedAdaptor::toJSValue):
(JSC::Uint8ClampedAdaptor::toDouble):
(JSC::Uint8ClampedAdaptor::toNativeFromInt32):
(JSC::Uint8ClampedAdaptor::toNativeFromUint32):
(JSC::Uint8ClampedAdaptor::toNativeFromDouble):
(JSC::Uint8ClampedAdaptor::convertTo):

LayoutTests:

Reviewed by Oliver Hunt.

Add coverage for three things:

  • Typed array accesses with corner-case values.


  • Typed array set() (i.e. copy) between arrays of different types.


  • Performance of typedArray.set() involving different types.


This required some changes to our test harnesses, since they previously
couldn't consistently do numerical array comparisons in a reliable way.

  • fast/js/regress/Float32Array-to-Float64Array-set-expected.txt: Added.
  • fast/js/regress/Float32Array-to-Float64Array-set.html: Added.
  • fast/js/regress/Float64Array-to-Int16Array-set-expected.txt: Added.
  • fast/js/regress/Float64Array-to-Int16Array-set.html: Added.
  • fast/js/regress/Int16Array-to-Int32Array-set-expected.txt: Added.
  • fast/js/regress/Int16Array-to-Int32Array-set.html: Added.
  • fast/js/regress/script-tests/Float32Array-to-Float64Array-set.js: Added.
  • fast/js/regress/script-tests/Float64Array-to-Int16Array-set.js: Added.
  • fast/js/regress/script-tests/Int16Array-to-Int32Array-set.js: Added.
  • fast/js/resources/js-test-pre.js:

(areNumbersEqual):
(areArraysEqual):
(isResultCorrect):

  • fast/js/resources/standalone-pre.js:

(areNumbersEqual):
(areArraysEqual):
(isTypedArray):
(isResultCorrect):
(stringify):
(shouldBe):

  • fast/js/script-tests/typed-array-access.js: Added.

(bitsToString):
(bitsToValue):
(valueToBits):
(roundTrip):

  • fast/js/script-tests/typed-array-set-different-types.js: Added.

(MyRandom):
(.reference):
(.usingConstruct):

  • fast/js/typed-array-access-expected.txt: Added.
  • fast/js/typed-array-access.html: Added.
  • fast/js/typed-array-set-different-types-expected.txt: Added.
  • fast/js/typed-array-set-different-types.html: Added.
12:20 AM Changeset in webkit [154568] by ryuan.choi@samsung.com
  • 2 edits in trunk/LayoutTests

Unreviewed EFL gardening.

  • platform/efl/TestExpectations:

Unskipped some accessibility tests which are already passed.

12:06 AM Changeset in webkit [154567] by zandobersek@gmail.com
  • 3 edits in trunk/Source/WebKit2

Unreviewed GTK build fix after r154565.

  • UIProcess/API/gtk/tests/TestInspector.cpp: Include the Vector header.
  • UIProcess/API/gtk/tests/TestResources.cpp: Ditto.

Aug 24, 2013:

10:32 PM Changeset in webkit [154566] by ryuan.choi@samsung.com
  • 2 edits in trunk/Source/WebCore

Unreviewed build fix after r154560

  • page/FrameTree.cpp:

(WebCore::FrameTree::scopedChild):
Use tree(). instead of tree()->.

9:39 PM Changeset in webkit [154565] by benjamin@webkit.org
  • 3 edits in trunk/Source/WTF

Save three bytes per CStringBuffer object
https://bugs.webkit.org/show_bug.cgi?id=120040

Reviewed by Darin Adler.

Merge https://chromium.googlesource.com/chromium/blink/+/894ae8eafdb64912aefd8f9c809f4ccda84f3b89

sizeof(CStringBuffer) was rounded up to 8 on account of struct size and
alignment rules. This is clearly not what was intended.

  • wtf/text/CString.cpp:

(WTF::CStringBuffer::createUninitialized):

  • wtf/text/CString.h:

(WTF::CStringBuffer::data):
(WTF::CStringBuffer::mutableData):

9:33 PM Changeset in webkit [154564] by Brent Fulgham
  • 3 edits in trunk/WebKitLibraries

[Windows] Another attempt to fix the Windows bots. Need to retain older
QuickTime player features for external builders.

  • win/include/WebKitSystemInterface/WebKitSystemInterface.h:
  • win/lib32/WebKitSystemInterface.lib:
9:20 PM Changeset in webkit [154563] by fpizlo@apple.com
  • 2 edits in trunk/Tools

Unreviewed, fix build-webkit --ftl-jit in the case that you have your own llvm directory. We need to
prune 'libgtest' and friends from the llvm build, since WebKit builds its own and none of the llvm
libraries depend on libgtest anyway.

  • Scripts/copy-webkitlibraries-to-product-directory:
9:19 PM Changeset in webkit [154562] by benjamin@webkit.org
  • 2 edits in trunk/Source/WebCore

<https://webkit.org/b/120102> Inline SelectorQuery's execution traits

Reviewed by Sam Weinig.

For some reason, clang does not always inline the trait. The operations are so simple
that it shows up in profile.
Force the inlining to match the original speed.

  • dom/SelectorQuery.cpp:

(WebCore::AllElementExtractorSelectorQueryTrait::appendOutputForElement):
(WebCore::SingleElementExtractorSelectorQueryTrait::appendOutputForElement):

9:17 PM Changeset in webkit [154561] by benjamin@webkit.org
  • 2 edits in trunk/Source/WebCore

Remove a useless #include from StyledElement
https://bugs.webkit.org/show_bug.cgi?id=120245

Reviewed by Andreas Kling.

  • dom/StyledElement.cpp:
8:41 PM Changeset in webkit [154560] by Darin Adler
  • 4 edits in trunk/Source/WebCore

Move Frame::inScope into FrameTree
https://bugs.webkit.org/show_bug.cgi?id=120257

Reviewed by Sam Weinig.

  • page/Frame.cpp: Removed inScope.
  • page/Frame.h: Ditto.
  • page/FrameTree.cpp:

(WebCore::inScope): Moved it here.
(WebCore::FrameTree::scopedChild): Changed to call new function.
(WebCore::FrameTree::scopedChildCount): Ditto.

8:08 PM Changeset in webkit [154559] by ddkilzer@apple.com
  • 2 edits in trunk/Source/WebCore

BUILD FIX: Include HTMLPlugInImageElement.h for ENABLE(PLUGIN_PROXY_FOR_VIDEO)

Fixes the following build failure for iOS:

In file included from Source/WebCore/accessibility/AccessibilityAllInOne.cpp:28:
In file included from Source/WebCore/accessibility/AXObjectCache.cpp:42:
In file included from Source/WebCore/accessibility/AccessibilityMediaControls.h:36:
In file included from Source/WebCore/html/shadow/MediaControlElements.h:34:
In file included from Source/WebCore/html/shadow/MediaControlElementTypes.h:37:
Source/WebCore/html/HTMLMediaElement.h:324:23: error: unknown type name 'PluginCreationOption'

void updateWidget(PluginCreationOption);


  • html/HTMLMediaElement.h:
7:28 PM Changeset in webkit [154558] by Darin Adler
  • 94 edits in trunk/Source

Frame::tree should return a reference instead of a pointer
https://bugs.webkit.org/show_bug.cgi?id=120259

Reviewed by Andreas Kling.

Source/WebCore:

  • page/Frame.h:

(WebCore::Frame::tree): Return a reference instead of a pointer.

  • bindings/js/JSDOMWindowCustom.cpp:

(WebCore::childFrameGetter):
(WebCore::indexGetter):
(WebCore::JSDOMWindow::getOwnPropertySlot):
(WebCore::JSDOMWindow::getOwnPropertySlotByIndex):
(WebCore::JSDOMWindow::setLocation):

  • bindings/js/PageScriptDebugServer.cpp:

(WebCore::PageScriptDebugServer::setJavaScriptPaused):

  • dom/Document.cpp:

(WebCore::canAccessAncestor):
(WebCore::Document::adoptNode):
(WebCore::Document::canNavigate):
(WebCore::Document::findUnsafeParentScrollPropagationBoundary):
(WebCore::Document::notifySeamlessChildDocumentsOfStylesheetUpdate):
(WebCore::Document::openSearchDescriptionURL):
(WebCore::Document::setDesignMode):
(WebCore::Document::parentDocument):
(WebCore::Document::initSecurityContext):
(WebCore::Document::initContentSecurityPolicy):
(WebCore::Document::requestFullScreenForElement):
(WebCore::Document::webkitExitFullscreen):
(WebCore::Document::didRemoveTouchEventHandler):

  • dom/TreeScope.cpp:

(WebCore::focusedFrameOwnerElement):

  • editing/FrameSelection.cpp:

(WebCore::FrameSelection::selectFrameElementInParentIfFullySelected):

  • history/CachedFrame.cpp:

(WebCore::CachedFrameBase::CachedFrameBase):
(WebCore::CachedFrameBase::restore):
(WebCore::CachedFrame::CachedFrame):

  • history/CachedPage.cpp:

(WebCore::CachedPage::restore):

  • history/PageCache.cpp:

(WebCore::logCanCacheFrameDecision):
(WebCore::PageCache::canCachePageContainingThisFrame):

  • html/HTMLDocument.cpp:

(WebCore::HTMLDocument::hasFocus):

  • html/HTMLPlugInImageElement.cpp:

(WebCore::HTMLPlugInImageElement::restartSimilarPlugIns):

  • inspector/InspectorApplicationCacheAgent.cpp:

(WebCore::InspectorApplicationCacheAgent::getFramesWithManifests):

  • inspector/InspectorCanvasAgent.cpp:

(WebCore::InspectorCanvasAgent::findFramesWithUninstrumentedCanvases):
(WebCore::InspectorCanvasAgent::frameNavigated):

  • inspector/InspectorDOMAgent.cpp:

(WebCore::InspectorDOMAgent::documents):

  • inspector/InspectorFileSystemAgent.cpp:

(WebCore::InspectorFileSystemAgent::assertScriptExecutionContextForOrigin):

  • inspector/InspectorPageAgent.cpp:

(WebCore::InspectorPageAgent::getCookies):
(WebCore::InspectorPageAgent::deleteCookie):
(WebCore::InspectorPageAgent::searchInResources):
(WebCore::InspectorPageAgent::findFrameWithSecurityOrigin):
(WebCore::InspectorPageAgent::buildObjectForFrame):
(WebCore::InspectorPageAgent::buildObjectForFrameTree):

  • inspector/PageRuntimeAgent.cpp:

(WebCore::PageRuntimeAgent::reportExecutionContextCreation):

  • loader/DocumentLoader.cpp:

(WebCore::DocumentLoader::willSendRequest):
(WebCore::DocumentLoader::mainResource):

  • loader/DocumentWriter.cpp:

(WebCore::DocumentWriter::createDecoderIfNeeded):

  • loader/FrameLoader.cpp:

(WebCore::FrameLoader::submitForm):
(WebCore::FrameLoader::allChildrenAreComplete):
(WebCore::FrameLoader::allAncestorsAreComplete):
(WebCore::FrameLoader::loadURLIntoChildFrame):
(WebCore::FrameLoader::outgoingReferrer):
(WebCore::FrameLoader::updateFirstPartyForCookies):
(WebCore::FrameLoader::setFirstPartyForCookies):
(WebCore::FrameLoader::completed):
(WebCore::FrameLoader::started):
(WebCore::FrameLoader::loadURL):
(WebCore::FrameLoader::loadWithDocumentLoader):
(WebCore::FrameLoader::stopAllLoaders):
(WebCore::FrameLoader::commitProvisionalLoad):
(WebCore::FrameLoader::closeOldDataSources):
(WebCore::FrameLoader::prepareForCachedPageRestore):
(WebCore::FrameLoader::subframeIsLoading):
(WebCore::FrameLoader::subresourceCachePolicy):
(WebCore::FrameLoader::detachChildren):
(WebCore::FrameLoader::closeAndRemoveChild):
(WebCore::FrameLoader::checkLoadComplete):
(WebCore::FrameLoader::numPendingOrLoadingRequests):
(WebCore::FrameLoader::detachFromParent):
(WebCore::FrameLoader::shouldClose):
(WebCore::FrameLoader::handleBeforeUnloadEvent):
(WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
(WebCore::FrameLoader::shouldInterruptLoadForXFrameOptions):
(WebCore::FrameLoader::findFrameForNavigation):
(WebCore::FrameLoader::effectiveSandboxFlags):
(WebCore::createWindow):

  • loader/HistoryController.cpp:

(WebCore::HistoryController::saveDocumentState):
(WebCore::HistoryController::saveDocumentAndScrollState):
(WebCore::HistoryController::restoreDocumentState):
(WebCore::HistoryController::goToItem):
(WebCore::HistoryController::updateForRedirectWithLockedBackForwardList):
(WebCore::HistoryController::recursiveUpdateForCommit):
(WebCore::HistoryController::recursiveUpdateForSameDocumentNavigation):
(WebCore::HistoryController::initializeItem):
(WebCore::HistoryController::createItemTree):
(WebCore::HistoryController::recursiveSetProvisionalItem):
(WebCore::HistoryController::recursiveGoToItem):
(WebCore::HistoryController::currentFramesMatchItem):

  • loader/NavigationScheduler.cpp:

(WebCore::NavigationScheduler::mustLockBackForwardList):
(WebCore::NavigationScheduler::scheduleFormSubmission):

  • loader/ProgressTracker.cpp:

(WebCore::ProgressTracker::progressStarted):
(WebCore::ProgressTracker::progressCompleted):
(WebCore::ProgressTracker::isMainLoadProgressing):

  • loader/appcache/ApplicationCacheGroup.cpp:

(WebCore::ApplicationCacheGroup::selectCache):
(WebCore::ApplicationCacheGroup::selectCacheWithoutManifestURL):

  • loader/archive/cf/LegacyWebArchive.cpp:

(WebCore::LegacyWebArchive::create):

  • loader/cache/CachedResourceLoader.cpp:

(WebCore::CachedResourceLoader::checkInsecureContent):

  • loader/icon/IconController.cpp:

(WebCore::IconController::urlsForTypes):
(WebCore::IconController::startLoader):

  • page/Chrome.cpp:

(WebCore::canRunModalIfDuringPageDismissal):
(WebCore::Chrome::windowScreenDidChange):

  • page/DOMWindow.cpp:

(WebCore::DOMWindow::length):
(WebCore::DOMWindow::name):
(WebCore::DOMWindow::setName):
(WebCore::DOMWindow::parent):
(WebCore::DOMWindow::top):
(WebCore::DOMWindow::open):

  • page/EventHandler.cpp:

(WebCore::EventHandler::scrollRecursively):
(WebCore::EventHandler::logicalScrollRecursively):
(WebCore::EventHandler::handleMouseMoveEvent):

  • page/FocusController.cpp:

(WebCore::FocusController::setContainingWindowIsVisible):

  • page/Frame.cpp:

(WebCore::parentPageZoomFactor):
(WebCore::parentTextZoomFactor):
(WebCore::Frame::setPrinting):
(WebCore::Frame::shouldUsePrintingLayout):
(WebCore::Frame::dispatchVisibilityStateChangeEvent):
(WebCore::Frame::willDetachPage):
(WebCore::Frame::setPageAndTextZoomFactors):
(WebCore::Frame::deviceOrPageScaleFactorChanged):
(WebCore::Frame::notifyChromeClientWheelEventHandlerCountChanged):
(WebCore::Frame::isURLAllowed):

  • page/FrameTree.cpp:

(WebCore::FrameTree::~FrameTree):
(WebCore::FrameTree::setName):
(WebCore::FrameTree::transferChild):
(WebCore::FrameTree::appendChild):
(WebCore::FrameTree::actuallyAppendChild):
(WebCore::FrameTree::removeChild):
(WebCore::FrameTree::uniqueChildName):
(WebCore::FrameTree::scopedChild):
(WebCore::FrameTree::scopedChildCount):
(WebCore::FrameTree::childCount):
(WebCore::FrameTree::child):
(WebCore::FrameTree::find):
(WebCore::FrameTree::isDescendantOf):
(WebCore::FrameTree::traverseNext):
(WebCore::FrameTree::traversePreviousWithWrap):
(WebCore::FrameTree::deepLastChild):
(WebCore::FrameTree::top):
(printFrames):
(showFrameTree):

  • page/FrameView.cpp:

(WebCore::FrameView::setFrameRect):
(WebCore::FrameView::hasCompositedContentIncludingDescendants):
(WebCore::FrameView::hasCompositingAncestor):
(WebCore::FrameView::flushCompositingStateIncludingSubframes):
(WebCore::FrameView::updateCanBlitOnScrollRecursively):
(WebCore::FrameView::setIsOverlapped):
(WebCore::FrameView::shouldUseLoadTimeDeferredRepaintDelay):
(WebCore::FrameView::updateLayerFlushThrottlingInAllFrames):
(WebCore::FrameView::serviceScriptedAnimations):
(WebCore::FrameView::updateBackgroundRecursively):
(WebCore::FrameView::parentFrameView):
(WebCore::FrameView::paintContentsForSnapshot):
(WebCore::FrameView::setTracksRepaints):
(WebCore::FrameView::notifyWidgetsInAllFrames):

  • page/Location.cpp:

(WebCore::Location::ancestorOrigins):

  • page/Page.cpp:

(WebCore::networkStateChanged):
(WebCore::Page::~Page):
(WebCore::Page::renderTreeSize):
(WebCore::Page::updateStyleForAllPagesAfterGlobalChangeInEnvironment):
(WebCore::Page::setNeedsRecalcStyleInAllFrames):
(WebCore::Page::refreshPlugins):
(WebCore::Page::takeAnyMediaCanStartListener):
(WebCore::incrementFrame):
(WebCore::Page::setDefersLoading):
(WebCore::Page::setMediaVolume):
(WebCore::Page::setDeviceScaleFactor):
(WebCore::Page::setShouldSuppressScrollbarAnimations):
(WebCore::Page::didMoveOnscreen):
(WebCore::Page::willMoveOffscreen):
(WebCore::Page::setIsInWindow):
(WebCore::Page::suspendScriptedAnimations):
(WebCore::Page::resumeScriptedAnimations):
(WebCore::Page::userStyleSheetLocationChanged):
(WebCore::Page::allVisitedStateChanged):
(WebCore::Page::visitedStateChanged):
(WebCore::Page::setDebugger):
(WebCore::Page::setMemoryCacheClientCallsEnabled):
(WebCore::Page::setMinimumTimerInterval):
(WebCore::Page::setTimerAlignmentInterval):
(WebCore::Page::dnsPrefetchingStateChanged):
(WebCore::Page::collectPluginViews):
(WebCore::Page::storageBlockingStateChanged):
(WebCore::Page::privateBrowsingStateChanged):
(WebCore::Page::checkSubframeCountConsistency):
(WebCore::Page::suspendActiveDOMObjectsAndAnimations):
(WebCore::Page::resumeActiveDOMObjectsAndAnimations):
(WebCore::Page::captionPreferencesChanged):

  • page/PageGroup.cpp:

(WebCore::PageGroup::invalidateInjectedStyleSheetCacheInAllFrames):

  • page/PageGroupLoadDeferrer.cpp:

(WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
(WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):

  • page/PageSerializer.cpp:

(WebCore::PageSerializer::serializeFrame):

  • page/PageThrottler.cpp:

(WebCore::PageThrottler::throttlePage):
(WebCore::PageThrottler::unthrottlePage):

  • page/Settings.cpp:

(WebCore::setImageLoadingSettings):
(WebCore::Settings::setTextAutosizingFontScaleFactor):

  • page/SpatialNavigation.cpp:

(WebCore::rectToAbsoluteCoordinates):

  • page/animation/AnimationController.cpp:

(WebCore::AnimationControllerPrivate::suspendAnimations):
(WebCore::AnimationControllerPrivate::resumeAnimations):

  • page/mac/PageMac.cpp:

(WebCore::Page::addSchedulePair):
(WebCore::Page::removeSchedulePair):

  • page/scrolling/ScrollingCoordinator.cpp:

(WebCore::ScrollingCoordinator::computeNonFastScrollableRegion):
(WebCore::ScrollingCoordinator::computeCurrentWheelEventHandlerCount):

  • plugins/PluginView.cpp:

(WebCore::PluginView::performRequest):
(WebCore::PluginView::load):

  • rendering/HitTestResult.cpp:

(WebCore::HitTestResult::targetFrame):

  • rendering/RenderLayerCompositor.cpp:

(WebCore::RenderLayerCompositor::enclosingCompositorFlushingLayers):
(WebCore::RenderLayerCompositor::updateCompositingLayers):
(WebCore::RenderLayerCompositor::notifyIFramesOfCompositingChange):

  • rendering/TextAutosizer.cpp:

(WebCore::TextAutosizer::processSubtree):

  • storage/StorageEventDispatcher.cpp:

(WebCore::StorageEventDispatcher::dispatchSessionStorageEvents):
(WebCore::StorageEventDispatcher::dispatchLocalStorageEvents):

  • svg/SVGSVGElement.cpp:

(WebCore::SVGSVGElement::currentScale):
(WebCore::SVGSVGElement::setCurrentScale):

  • testing/Internals.cpp:

(WebCore::Internals::formControlStateOfPreviousHistoryItem):
(WebCore::Internals::setFormControlStateOfPreviousHistoryItem):
(WebCore::Internals::numberOfScrollableAreas):

  • xml/parser/XMLDocumentParserLibxml2.cpp:

(WebCore::hasNoStyleInformation):
Use tree(). instead of tree()->.

Source/WebKit/blackberry:

  • Api/WebPage.cpp:

(BlackBerry::WebKit::closeURLRecursively):
(BlackBerry::WebKit::enableCrossSiteXHRRecursively):
(BlackBerry::WebKit::WebPagePrivate::setScreenOrientation):

  • WebCoreSupport/FrameLoaderClientBlackBerry.cpp:

(WebCore::FrameLoaderClientBlackBerry::createFrame):

  • WebKitSupport/DOMSupport.cpp:

(BlackBerry::WebKit::DOMSupport::convertPointToFrame):
(BlackBerry::WebKit::DOMSupport::incrementFrame):
Use tree(). instead of tree()->.

Source/WebKit/efl:

  • WebCoreSupport/DumpRenderTreeSupportEfl.cpp:

(DumpRenderTreeSupportEfl::clearFrameName):
(DumpRenderTreeSupportEfl::frameChildren):
(DumpRenderTreeSupportEfl::frameParent):

  • ewk/ewk_frame.cpp:

(_ewk_frame_children_iterator_next):
(ewk_frame_child_find):
(ewk_frame_name_get):
(ewk_frame_child_add):

  • ewk/ewk_view.cpp:

(ewk_view_frame_create):
Use tree(). instead of tree()->.

Source/WebKit/gtk:

  • WebCoreSupport/DumpRenderTreeSupportGtk.cpp:

(DumpRenderTreeSupportGtk::getFrameChildren):
(DumpRenderTreeSupportGtk::clearMainFrameName):

  • WebCoreSupport/FrameLoaderClientGtk.cpp:

(WebKit::FrameLoaderClient::createFrame):

  • webkit/webkitwebframe.cpp:

(webkit_web_frame_get_name):
(webkit_web_frame_get_parent):
(webkit_web_frame_find_frame):

  • webkit/webkitwebview.cpp:

(webkit_web_view_set_highlight_text_matches):
Use tree(). instead of tree()->.

Source/WebKit/mac:

  • Plugins/Hosted/NetscapePluginInstanceProxy.mm:

(WebKit::NetscapePluginInstanceProxy::performRequest):

  • Plugins/WebBaseNetscapePluginView.mm:

(-[WebBaseNetscapePluginView resolvedURLStringForURL:target:]):

  • Plugins/WebNetscapePluginView.mm:

(-[WebNetscapePluginView loadPluginRequest:]):

  • WebCoreSupport/WebFrameLoaderClient.mm:

(applyAppleDictionaryApplicationQuirkNonInlinePart):
(WebFrameLoaderClient::prepareForDataSourceReplacement):
(WebFrameLoaderClient::createFrame):

  • WebView/WebFrame.mm:

(+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]):
(-[WebFrame _updateBackgroundAndUpdatesWhileOffscreen]):
(-[WebFrame _unmarkAllBadGrammar]):
(-[WebFrame _unmarkAllMisspellings]):
(-[WebFrame _atMostOneFrameHasSelection]):
(-[WebFrame _findFrameWithSelection]):
(-[WebFrame _drawRect:contentsOnly:]):
(-[WebFrame _isDescendantOfFrame:]):
(-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
(-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]):
(-[WebFrame name]):
(-[WebFrame findFrameNamed:]):
(-[WebFrame parentFrame]):
(-[WebFrame childFrames]):

  • WebView/WebView.mm:

(-[WebView _attachScriptDebuggerToAllFrames]):
(-[WebView _detachScriptDebuggerFromAllFrames]):
(-[WebView _clearMainFrameName]):
(-[WebView _isUsingAcceleratedCompositing]):
(-[WebView _isSoftwareRenderable]):
(-[WebView setHostWindow:]):
(incrementFrame):
Use tree(). instead of tree()->.

Source/WebKit/qt:

  • WebCoreSupport/DumpRenderTreeSupportQt.cpp:

(DumpRenderTreeSupportQt::clearFrameName):

  • WebCoreSupport/FrameLoaderClientQt.cpp:

(drtDescriptionSuitableForTestResult):
(WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
(WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
(WebCore::FrameLoaderClientQt::postProgressStartedNotification):
(WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
(WebCore::FrameLoaderClientQt::createFrame):

  • WebCoreSupport/QWebFrameAdapter.cpp:

(QWebFrameData::QWebFrameData):
(QWebFrameAdapter::load):
(QWebFrameAdapter::uniqueName):
(QWebFrameAdapter::childFrames):

  • WebCoreSupport/QWebPageAdapter.cpp:

(QWebPageAdapter::findText):
Use tree(). instead of tree()->.

Source/WebKit/win:

  • WebCoreSupport/WebFrameLoaderClient.cpp:

(WebFrameLoaderClient::createFrame):

  • WebFrame.cpp:

(WebFrame::name):
(WebFrame::findFrameNamed):
(WebFrame::parentFrame):
(EnumChildFrames::EnumChildFrames):
(EnumChildFrames::Next):
(EnumChildFrames::Skip):
(EnumChildFrames::Reset):
(WebFrame::isDescendantOfFrame):
(WebFrame::unmarkAllMisspellings):
(WebFrame::unmarkAllBadGrammar):

  • WebView.cpp:

(WebView::initWithFrame):
(incrementFrame):
(WebView::clearMainFrameName):
Use tree(). instead of tree()->.

Source/WebKit/wince:

  • WebView.cpp:

(WebView::createFrame):
Use tree(). instead of tree()->.

Source/WebKit2:

  • WebProcess/Plugins/PluginView.cpp:

(WebKit::PluginView::performJavaScriptURLRequest):

  • WebProcess/Storage/StorageAreaMap.cpp:

(WebKit::StorageAreaMap::dispatchSessionStorageEvent):
(WebKit::StorageAreaMap::dispatchLocalStorageEvent):

  • WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:

(WebKit::WebFrameLoaderClient::createFrame):

  • WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:

(WebKit::WebContextMenuClient::searchWithSpotlight):

  • WebProcess/WebPage/FindController.cpp:

(WebKit::frameWithSelection):
(WebKit::FindController::rectsForTextMatches):

  • WebProcess/WebPage/WebFrame.cpp:

(WebKit::WebFrame::init):
(WebKit::WebFrame::contentsAsString):
(WebKit::WebFrame::name):
(WebKit::WebFrame::childFrames):

  • WebProcess/WebPage/WebPage.cpp:

(WebKit::WebPage::clearMainFrameName):
(WebKit::WebPage::setDrawsBackground):
(WebKit::WebPage::setDrawsTransparentBackground):
(WebKit::WebPage::setWindowResizerSize):
(WebKit::frameWithSelection):
(WebKit::WebPage::unmarkAllMisspellings):
(WebKit::WebPage::unmarkAllBadGrammar):
(WebKit::pageContainsAnyHorizontalScrollbars):

  • WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:

(WebKit::TiledCoreAnimationDrawingArea::forceRepaint):
Use tree(). instead of tree()->.

6:53 PM Changeset in webkit [154557] by mitz@apple.com
  • 3 edits in trunk/Source/JavaScriptCore

[mac] link against libz in a more civilized manner
https://bugs.webkit.org/show_bug.cgi?id=120258

Reviewed by Darin Adler.

  • Configurations/JavaScriptCore.xcconfig: Removed “-lz” from OTHER_LDFLAGS_BASE.
  • JavaScriptCore.xcodeproj/project.pbxproj: Added libz.dylib to the JavaScriptCore target’s

Link Binary With Libraries build phase.

5:07 PM Changeset in webkit [154556] by akling@apple.com
  • 5 edits in trunk/Source/WebCore

Merge Document::viewportSize() logic into RenderView::viewportSize().
<https://webkit.org/b/120254>

Reviewed by Darin Adler.

RenderView can just ask FrameView (the viewport) about its size directly, no need for
a weirdly-placed method on Document.

  • dom/Document.cpp:
  • rendering/RenderView.cpp:

(WebCore::RenderView::viewportSize):

  • rendering/RenderView.h:
4:40 PM Changeset in webkit [154555] by Darin Adler
  • 4 edits in trunk

RetainPtr lacks move constructor for case when argument is a RetainPtr of a different type
https://bugs.webkit.org/show_bug.cgi?id=120255

Reviewed by Andreas Kling.

Source/WTF:

  • wtf/RetainPtr.h: Added missing move constructor, modeled on the other move constructor,

and the one from RetPtr.

Tools:

  • TestWebKitAPI/Tests/WTF/ns/RetainPtr.mm: Added four tests covering move assignment and construction.
3:50 PM Changeset in webkit [154554] by akling@apple.com
  • 31 edits in trunk/Source/WebCore

RenderObject::frame() should return a reference.
<https://webkit.org/b/120251>

Reviewed by Darin Adler.

There is now always a Frame, and we can get to it by walking this path:

RenderObject -> Document -> RenderView -> FrameView -> Frame

Removed the customary horde of null checks.

1:32 PM Changeset in webkit [154553] by oliver@apple.com
  • 2 edits in trunk/Source/WTF

Make the world build.

1:07 PM Changeset in webkit [154552] by oliver@apple.com
  • 2 edits in trunk/Source/WTF

REGRESSION(r154498): Crashes on EFL, GTK, Qt on release configurations
https://bugs.webkit.org/show_bug.cgi?id=120246

Reviewed by Antti Koivisto.

Undestroy all the platforms that don't use the global new overload

  • wtf/Compression.h:
1:04 PM Changeset in webkit [154551] by commit-queue@webkit.org
  • 9 edits
    3 deletes in trunk/Source/WebKit2

Unreviewed, rolling out r154545.
http://trac.webkit.org/changeset/154545
https://bugs.webkit.org/show_bug.cgi?id=120252

Broke WebKit2 API tests (Requested by andersca on #webkit).

  • GNUmakefile.list.am:
  • UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
  • UIProcess/API/gtk/tests/TestWebExtensions.cpp:

(beforeAll):

  • UIProcess/API/gtk/tests/WebExtensionTest.cpp:

(methodCallCallback):

  • WebProcess/InjectedBundle/API/gtk/WebKitFrame.cpp:

(webkit_frame_get_javascript_global_context):

  • WebProcess/InjectedBundle/API/gtk/WebKitFrame.h:
  • WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.cpp: Removed.
  • WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.h: Removed.
  • WebProcess/InjectedBundle/API/gtk/WebKitScriptWorldPrivate.h: Removed.
  • WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:

(webkitWebPageCreate):

  • WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h:
11:58 AM Changeset in webkit [154550] by Joseph Pecoraro
  • 4 edits in trunk/Source/WebInspectorUI

Web Inspector: Breakpoints in the editors gutter should have a contextmenu
https://bugs.webkit.org/show_bug.cgi?id=120169

Reviewed by Timothy Hatcher.

Updated CodeMirror now has a gutterContextMenu event. Use that to give
breakpoint related context menus. Add, Edit, Enable/Disable, Delete, and
Reveal in Debugger Navigation Sidebar.

  • Localizations/en.lproj/localizedStrings.js:

"Add Breakpoint", and "Reveal in Debugger Navigation Sidebar".

  • UserInterface/SourceCodeTextEditor.js:

(WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.addBreakpoint):
(WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.revealInSidebar):
(WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.removeBreakpoints):
(WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.toggleBreakpoints):
(WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu):
Show a context menu when clicking on the gutter for 0 breakpoints,
1 breakpoint, or >1 breakpoints. The only tricky handler is addBreakpoint,
since that must update the TextEditor for the new breakpoint info.

  • UserInterface/TextEditor.js:

(WebInspector.TextEditor):
(WebInspector.TextEditor.prototype._gutterContextMenu):
Send to delegate if the delegate implements textEditorGutterContextMenu.

11:27 AM Changeset in webkit [154549] by akling@apple.com
  • 6 edits in trunk/Source/WebCore

RenderLayer::compositor() should return a reference.
<https://webkit.org/b/120250>

Reviewed by Anders Carlsson.

It was already converting from a reference to a pointer.

10:55 AM Changeset in webkit [154548] by commit-queue@webkit.org
  • 5 edits in trunk

Eliminate a useless comparison in srcset's candidate selection algorithm
https://bugs.webkit.org/show_bug.cgi?id=120235

Source/WebCore:

There is no point in comparing the last item in the candidates vector to the DPR, since it will be returned anyway. Therefore, the
iteration on the candidates vector now skips the last candidate.

Patch by Yoav Weiss <yoav@yoav.ws> on 2013-08-24
Reviewed by Andreas Kling.

  • html/parser/HTMLParserIdioms.cpp:

(WebCore::bestFitSourceForImageAttributes):

LayoutTests:

Removed MIME types from the test's output, since they're irrelevant for the test, and make it fragile.

Patch by Yoav Weiss <yoav@yoav.ws> on 2013-08-24
Reviewed by Andreas Kling.

  • fast/hidpi/image-srcset-fraction-expected.txt:
  • fast/hidpi/image-srcset-fraction.html:
9:39 AM Changeset in webkit [154547] by andersca@apple.com
  • 2 edits in trunk/Tools

Don't treat NSLocalizedDescriptionKey and NSLocalizedRecoverySuggestionErrorKey as NSLocalized macros
https://bugs.webkit.org/show_bug.cgi?id=120249

Reviewed by Andreas Kling.

  • Scripts/extract-localizable-strings:
9:33 AM Changeset in webkit [154546] by akling@apple.com
  • 65 edits in trunk/Source

RenderObject::view() should return a reference.
<https://webkit.org/b/120247>

Reviewed by Antti Koivisto.

Now that the lifetime and accessibility characteristics of RenderView are well-defined,
we can make RenderObject::view() return a reference, exposing a plethora of unnecessary
null checks.

5:02 AM Changeset in webkit [154545] by Carlos Garcia Campos
  • 9 edits
    3 adds in trunk/Source/WebKit2

[GTK] Add WebKit2 API for isolated worlds
https://bugs.webkit.org/show_bug.cgi?id=103377

Reviewed by Anders Carlsson.

  • GNUmakefile.list.am: Add new files to compilation.
  • UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbols.
  • UIProcess/API/gtk/tests/TestWebExtensions.cpp:

(testWebExtensionWindowObjectCleared):
(scriptDialogCallback):
(runJavaScriptInIsolatedWorldFinishedCallback):
(testWebExtensionIsolatedWorld):
(beforeAll):

  • UIProcess/API/gtk/tests/WebExtensionTest.cpp:

(echoCallback):
(windowObjectCleared):
(getWebPage):
(methodCallCallback):

  • WebProcess/InjectedBundle/API/gtk/WebKitFrame.cpp:

(webkit_frame_get_javascript_context_for_script_world): New public
method to tget the JavaScript execution context for a given script
world.

  • WebProcess/InjectedBundle/API/gtk/WebKitFrame.h:
  • WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.cpp: Added.

(scriptWorlds): Global WebKitScriptWorld map.
(_WebKitScriptWorldPrivate::~_WebKitScriptWorldPrivate):
(webkitScriptWorldGet): Get the WebKitScriptWorld wrapping the
given injected bundle script world.
(webkitScriptWorldGetInjectedBundleScriptWorld): Get the injected
bundle script world wrapped by the given WebKitScriptWorld.
(webkitScriptWorldWindowObjectCleared): Emit
WebKitScriptWorld::window-object-cleared signal.
(webkitScriptWorldCreate): Create a new WebKitScriptWorld wrapping
the given injected bundle script world.
(createDefaultScriptWorld): Create the default WebKitScriptWorld
wrapping the normal world.
(webkit_script_world_get_default): Return the default WebKitScriptWorld.
(webkit_script_world_new): Create a new isolated WebKitScriptWorld.

  • WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.h: Added.
  • WebProcess/InjectedBundle/API/gtk/WebKitScriptWorldPrivate.h: Added.
  • WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:

(didClearWindowObjectForFrame): Call webkitScriptWorldWindowObjectCleared().
(webkitWebPageCreate): Add implementation for callback
didClearWindowObjectForFrame in injected bundle loader client.

  • WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h:

Include WebKitScriptWorld.h.

4:54 AM Changeset in webkit [154544] by Carlos Garcia Campos
  • 2 edits in trunk

Unreviewed. Fix GTK+ build after r154541.

  • Source/autotools/symbols.filter: Export symbols required by

libWebCoreInternal.

4:24 AM Changeset in webkit [154543] by commit-queue@webkit.org
  • 3 edits in trunk/Source/WebCore

Web Inspector: Cleanup Inspector Agents a bit
https://bugs.webkit.org/show_bug.cgi?id=120218

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2013-08-24
Reviewed by Andreas Kling.

Merge https://chromium.googlesource.com/chromium/blink/+/8693dcb8ba42a5c225f516c664fb0f453c8ba6f0.

  • inspector/InspectorCSSAgent.cpp:

(WebCore::InspectorCSSAgent::elementForId):

  • inspector/InspectorStyleSheet.cpp:

(ParsedStyleSheet::ParsedStyleSheet):
(WebCore::InspectorStyle::setPropertyText):
(WebCore::InspectorStyle::populateAllProperties):
(WebCore::InspectorStyleSheet::inlineStyleSheetText):

4:21 AM Changeset in webkit [154542] by akling@apple.com
  • 4 edits in trunk/Source/WebCore

Let Document keep its RenderView during render tree detach.
<https://webkit.org/b/120233>

Reviewed by Antti Koivisto.

Instead of having "Document::renderer() == NULL" signify that the render tree is being
torn down, give Document an explicit flag for this instead.

This way, we can keep Document's RenderView in place during tree detach.

  • dom/Document.cpp:

(WebCore::Document::Document):
(WebCore::Document::detach):

  • dom/Document.h:

(WebCore::Document::renderTreeBeingDestroyed):

  • rendering/RenderObject.h:

(WebCore::RenderObject::documentBeingDestroyed):

4:09 AM Changeset in webkit [154541] by Antti Koivisto
  • 11 edits in trunk/Source/WebCore

Tighten before/after pseudo element accessors
https://bugs.webkit.org/show_bug.cgi?id=120204

Reviewed by Andreas Kling.

We have generic looking Element::pseudoElement(PseudoID) which only returns before/after pseudo elements.

Switch to Element::before/afterPseudoElement(), similarly for setters.

  • WebCore.exp.in:
  • css/CSSComputedStyleDeclaration.cpp:

(WebCore::ComputedStyleExtractor::styledNode):

  • dom/Element.cpp:

(WebCore::Element::~Element):
(WebCore::beforeOrAfterPseudeoElement):
(WebCore::Element::computedStyle):
(WebCore::Element::updatePseudoElement):
(WebCore::Element::createPseudoElementIfNeeded):
(WebCore::Element::updateBeforePseudoElement):
(WebCore::Element::updateAfterPseudoElement):
(WebCore::Element::beforePseudoElement):
(WebCore::Element::afterPseudoElement):
(WebCore::Element::setBeforePseudoElement):
(WebCore::Element::setAfterPseudoElement):
(WebCore::disconnectPseudoElement):
(WebCore::Element::clearBeforePseudoElement):
(WebCore::Element::clearAfterPseudoElement):
(WebCore::Element::clearStyleDerivedDataBeforeDetachingRenderer):

  • dom/Element.h:
  • dom/ElementRareData.h:

(WebCore::ElementRareData::beforePseudoElement):
(WebCore::ElementRareData::afterPseudoElement):
(WebCore::ElementRareData::hasPseudoElements):
(WebCore::ElementRareData::~ElementRareData):
(WebCore::ElementRareData::clearBeforePseudoElement):
(WebCore::ElementRareData::clearAfterPseudoElement):
(WebCore::ElementRareData::setBeforePseudoElement):
(WebCore::ElementRareData::setAfterPseudoElement):

Move detach logic to Element. ElementRareData should not implement semantics.

  • dom/Node.cpp:

(WebCore::Node::pseudoAwarePreviousSibling):
(WebCore::Node::pseudoAwareNextSibling):
(WebCore::Node::pseudoAwareFirstChild):
(WebCore::Node::pseudoAwareLastChild):

  • dom/NodeRenderingTraversal.cpp:

(WebCore::NodeRenderingTraversal::nextSiblingSlow):
(WebCore::NodeRenderingTraversal::previousSiblingSlow):

  • rendering/RenderTreeAsText.cpp:

(WebCore::writeCounterValuesFromChildren):
(WebCore::counterValueForElement):

  • style/StyleResolveTree.cpp:

(WebCore::Style::attachRenderTree):
(WebCore::Style::resolveTree):

  • testing/Internals.cpp:

(WebCore::Internals::pauseAnimationAtTimeOnPseudoElement):
(WebCore::Internals::pauseTransitionAtTimeOnPseudoElement):

1:44 AM Changeset in webkit [154540] by Carlos Garcia Campos
  • 18 edits
    1 copy
    4 adds in trunk

[GTK] Expose WebKitFrame in WebKit2GTK+ web extensions API
https://bugs.webkit.org/show_bug.cgi?id=119743

Reviewed by Anders Carlsson.

Source/WebKit2:

  • GNUmakefile.list.am: Add new files to compilation.
  • Shared/APIClientTraits.cpp: Update for new interface version.
  • Shared/APIClientTraits.h: Ditto.
  • UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: Add WebKitFrame

section.

  • UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new public

symbols.

  • UIProcess/API/gtk/docs/webkit2gtk.types: Add

webkit_frame_get_type.

  • UIProcess/API/gtk/tests/FrameTest.cpp: Added.

(WebKitFrameTest::create):
(WebKitFrameTest::webPageFromArgs):
(WebKitFrameTest::testMainFrame):
(WebKitFrameTest::testURI):
(WebKitFrameTest::testJavaScriptContext):
(WebKitFrameTest::runTest):
(registerTests):

  • UIProcess/API/gtk/tests/GNUmakefile.am: Add new test files.
  • UIProcess/API/gtk/tests/TestFrame.cpp: Added.

(webkitFrameTestRun):
(testWebKitFrameMainFrame):
(testWebKitFrameURI):
(testWebKitFrameJavaScriptContext):
(beforeAll):
(afterAll):

  • WebProcess/InjectedBundle/API/c/WKBundlePage.h: Add

willDestroyFrame callback to the injected bundle loader client, to
notify the client when a frame is about to be destroyed.

  • WebProcess/InjectedBundle/API/gtk/WebKitFrame.cpp: Added.

(webkit_frame_class_init):
(webkitFrameCreate):
(webkit_frame_is_main_frame):
(webkit_frame_get_uri):
(webkit_frame_get_javascript_global_context):

  • WebProcess/InjectedBundle/API/gtk/WebKitFrame.h: Added.
  • WebProcess/InjectedBundle/API/gtk/WebKitFramePrivate.h: Added.
  • WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:

(webkitFrameGetOrCreate): Helper function to create a WebKitFrame
wrapping the given WebFrame or returning the wrapper if it already
exists.
(willDestroyFrame): Remove the WebKitFrame wrapping the given
WebFrame if it exists.
(webkitWebPageCreate): Add willDestroyFrame implementation to
injected bundle loader client.
(webkit_web_page_get_main_frame): Return the main frame of the
page.

  • WebProcess/InjectedBundle/API/gtk/WebKitWebPage.h:
  • WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h:

Include WebKitFrame.h.

  • WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:

(WebKit::InjectedBundlePageLoaderClient::willDestroyFrame): New
callback to be called when a frame is about to be destroyed.

  • WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
  • WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:

(WebKit::WebFrameLoaderClient::frameLoaderDestroyed): Call
willDestroyFrame callback of injected bundle loader client.

  • WebProcess/qt/QtBuiltinBundlePage.cpp:

(WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage): Add
willDestroyFrame callback.

Tools:

  • WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:

(WTR::InjectedBundlePage::InjectedBundlePage): Add
willDestroyFrame.

12:41 AM Changeset in webkit [154539] by Antti Koivisto
  • 2 edits in trunk/Source/WebKit2

Revert accidental change.

Not reviewed.

  • WebProcess/com.apple.WebProcess.sb.in:
Note: See TracTimeline for information about the timeline view.