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

Timeline



Nov 2, 2011:

11:55 PM Changeset in webkit [99144] by fpizlo@apple.com
  • 6 edits
    3 adds in trunk/Source/JavaScriptCore

ValueRecovery should be moved out of the DFG JIT
https://bugs.webkit.org/show_bug.cgi?id=71439

Reviewed by Oliver Hunt.

  • JavaScriptCore.xcodeproj/project.pbxproj:
  • bytecode/DataFormat.h: Added.

(JSC::dataFormatToString):
(JSC::needDataFormatConversion):
(JSC::isJSFormat):
(JSC::isJSInteger):
(JSC::isJSDouble):
(JSC::isJSCell):
(JSC::isJSBoolean):

  • bytecode/ValueRecovery.h: Added.

(JSC::ValueRecovery::ValueRecovery):
(JSC::ValueRecovery::alreadyInRegisterFile):
(JSC::ValueRecovery::alreadyInRegisterFileAsUnboxedInt32):
(JSC::ValueRecovery::alreadyInRegisterFileAsUnboxedCell):
(JSC::ValueRecovery::alreadyInRegisterFileAsUnboxedBoolean):
(JSC::ValueRecovery::inGPR):
(JSC::ValueRecovery::inPair):
(JSC::ValueRecovery::inFPR):
(JSC::ValueRecovery::displacedInRegisterFile):
(JSC::ValueRecovery::constant):
(JSC::ValueRecovery::technique):
(JSC::ValueRecovery::isInRegisters):
(JSC::ValueRecovery::gpr):
(JSC::ValueRecovery::tagGPR):
(JSC::ValueRecovery::payloadGPR):
(JSC::ValueRecovery::fpr):
(JSC::ValueRecovery::virtualRegister):
(JSC::ValueRecovery::dump):

  • bytecode/VirtualRegister.h: Added.
  • dfg/DFGGenerationInfo.h:

(JSC::DFG::GenerationInfo::isJSFormat):

  • dfg/DFGSpeculativeJIT.cpp:

(JSC::DFG::ValueSource::dump):

  • dfg/DFGSpeculativeJIT.h:
  • dfg/DFGVariableAccessData.h:
11:46 PM Changeset in webkit [99143] by abarth@webkit.org
  • 3 edits
    6 adds in trunk

CSP should handle empty URLs as agreed at TPAC
https://bugs.webkit.org/show_bug.cgi?id=71426

Reviewed by Eric Seidel.

Source/WebCore:

It was somewhat unclear how CSP should treat plugins that lacked a URL
because most of the CSP rules are URL-based. At TPAC, we decided to
treat "empty" URLs as if there were the URL of the document. That
means you can use plugins with no URL if you've included 'self' in
object-src, but you can also block them by using 'none' as your
object-src.

Tests: http/tests/security/contentSecurityPolicy/object-src-no-url-allowed.html

http/tests/security/contentSecurityPolicy/object-src-no-url-blocked.html
http/tests/security/contentSecurityPolicy/object-src-none-allowed.html
http/tests/security/contentSecurityPolicy/object-src-none-blocked.html

  • page/ContentSecurityPolicy.cpp:

(WebCore::CSPDirective::CSPDirective):
(WebCore::CSPDirective::allows):
(WebCore::ContentSecurityPolicy::createCSPDirective):

LayoutTests:

  • http/tests/security/contentSecurityPolicy/object-src-no-url-allowed-expected.txt: Added.
  • http/tests/security/contentSecurityPolicy/object-src-no-url-allowed.html: Added.
  • http/tests/security/contentSecurityPolicy/object-src-no-url-blocked-expected.txt: Added.
  • http/tests/security/contentSecurityPolicy/object-src-no-url-blocked.html: Added.
    • Test the allow and block cases for plugins with no URL.
  • http/tests/security/contentSecurityPolicy/object-src-none-allowed.html: Added.
  • http/tests/security/contentSecurityPolicy/object-src-none-blocked.html: Added.
    • Somehow these tests got deleted from the repository. This patch just re-adds them.
11:40 PM Changeset in webkit [99142] by caseq@chromium.org
  • 2 edits
    3 adds in trunk/LayoutTests

Unerviewed gardening.

  • platform/chromium-cg-mac-leopard/fast/borders/block-mask-overlay-image-outset-expected.png: Added.
  • platform/chromium-cg-mac-leopard/fast/borders/inline-mask-overlay-image-outset-expected.png: Added.
  • platform/chromium-cg-mac-leopard/fast/borders/inline-mask-overlay-image-outset-vertical-rl-expected.png: Added.
  • platform/chromium/test_expectations.txt: fixed qualifiers limit-layer-bounds-transformed-overflow.html
11:33 PM Changeset in webkit [99141] by commit-queue@webkit.org
  • 3 edits in trunk/Source/WebKit2

[Qt] [WK] Debug build broken
https://bugs.webkit.org/show_bug.cgi?id=71417

Add WKNumber.h for WKBooleanGetTypeID
Replace WKGetTypeId with WKGetTypeID
Add initialization for didDetectXSSForFrame member in WKBundlePageLoaderClient
instance.

Patch by Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com> on 2011-11-02
Reviewed by Noam Rosenthal.

  • WebProcess/qt/QtBuiltinBundle.cpp:

(WebKit::QtBuiltinBundle::handleSetNavigatorQtObjectEnabled):

  • WebProcess/qt/QtBuiltinBundlePage.cpp:

(WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage):

11:16 PM Changeset in webkit [99140] by eric@webkit.org
  • 38 edits
    9 copies
    5 adds in trunk/Tools

Move Mocks into _mock files near their implementations
https://bugs.webkit.org/show_bug.cgi?id=71425

Reviewed by Adam Barth.

This entire change is splitting mocktool.py into separate _mock.py files
and placing them next to their real implementations.

I also deleted MockPortFactory (since it was wrong) and was just hiding
the fact that the "skipped-ports" command was broken (and has been for a long time).
So I made MockHost use a real PortFactory (passed a MockHost) and changed
the skipped-ports implementation to use modern PortFactory methods.

  • Scripts/webkitpy/common/checkout/baselineoptimizer_unittest.py:
  • Scripts/webkitpy/common/checkout/checkout_mock.py: Added.
  • Scripts/webkitpy/common/checkout/checkout_unittest.py:
  • Scripts/webkitpy/common/checkout/deps_mock.py: Copied from Tools/Scripts/webkitpy/layout_tests/port/init.py.
  • Scripts/webkitpy/common/checkout/scm/scm_mock.py: Added.
  • Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
  • Scripts/webkitpy/common/config/ports_mock.py: Copied from Tools/Scripts/webkitpy/layout_tests/port/gtk_unittest.py.
  • Scripts/webkitpy/common/host.py:
  • Scripts/webkitpy/common/host_mock.py: Added.
  • Scripts/webkitpy/common/net/bugzilla/bugzilla_mock.py: Added.
  • Scripts/webkitpy/common/net/bugzilla/bugzilla_unittest.py:
  • Scripts/webkitpy/common/net/buildbot/buildbot_mock.py: Added.
  • Scripts/webkitpy/common/net/credentials_unittest.py:
  • Scripts/webkitpy/common/net/failuremap_unittest.py:
  • Scripts/webkitpy/common/net/irc/irc_mock.py: Copied from Tools/Scripts/webkitpy/layout_tests/port/init.py.
  • Scripts/webkitpy/common/net/statusserver_mock.py: Copied from Tools/Scripts/webkitpy/layout_tests/port/gtk_unittest.py.
  • Scripts/webkitpy/common/net/statusserver_unittest.py:
  • Scripts/webkitpy/common/net/web_mock.py: Copied from Tools/Scripts/webkitpy/layout_tests/port/gtk_unittest.py.
  • Scripts/webkitpy/common/system/executive.py:
  • Scripts/webkitpy/common/system/executive_mock.py:
  • Scripts/webkitpy/common/system/platforminfo_mock.py: Copied from Tools/Scripts/webkitpy/layout_tests/port/init.py.
  • Scripts/webkitpy/common/system/user_mock.py: Copied from Tools/Scripts/webkitpy/layout_tests/port/gtk_unittest.py.
  • Scripts/webkitpy/common/system/workspace_mock.py: Copied from Tools/Scripts/webkitpy/layout_tests/port/init.py.
  • Scripts/webkitpy/common/system/workspace_unittest.py:
  • Scripts/webkitpy/common/watchlist/watchlist_mock.py: Copied from Tools/Scripts/webkitpy/layout_tests/port/init.py.
  • Scripts/webkitpy/layout_tests/controllers/manager_unittest.py:
  • Scripts/webkitpy/layout_tests/controllers/test_expectations_editor_unittest.py:
  • Scripts/webkitpy/layout_tests/port/init.py:
  • Scripts/webkitpy/layout_tests/port/base_unittest.py:
  • Scripts/webkitpy/layout_tests/port/efl_unittest.py:
  • Scripts/webkitpy/layout_tests/port/factory.py:
  • Scripts/webkitpy/layout_tests/port/factory_unittest.py:
  • Scripts/webkitpy/layout_tests/port/gtk_unittest.py:
  • Scripts/webkitpy/layout_tests/port/http_lock_unittest.py:
  • Scripts/webkitpy/layout_tests/port/leakdetector_unittest.py:
  • Scripts/webkitpy/layout_tests/port/mac_unittest.py:
  • Scripts/webkitpy/layout_tests/port/port_testcase.py:
  • Scripts/webkitpy/layout_tests/port/qt_unittest.py:
  • Scripts/webkitpy/layout_tests/port/webkit_unittest.py:
  • Scripts/webkitpy/layout_tests/port/win_unittest.py:
  • Scripts/webkitpy/test/main.py:
  • Scripts/webkitpy/tool/bot/botinfo_unittest.py:
  • Scripts/webkitpy/tool/bot/flakytestreporter_unittest.py:
  • Scripts/webkitpy/tool/bot/irc_command_unittest.py:
  • Scripts/webkitpy/tool/commands/queries_unittest.py:
  • Scripts/webkitpy/tool/commands/rebaseline_unittest.py:
  • Scripts/webkitpy/tool/mocktool.py:
  • Scripts/webkitpy/tool/servers/gardeningserver_unittest.py:
10:28 PM Changeset in webkit [99139] by commit-queue@webkit.org
  • 4 edits in trunk/Source/WebKit/mac

Move NSRange / DOMRange conversion functions to WebFramePrivate
https://bugs.webkit.org/show_bug.cgi?id=71435

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2011-11-02
Reviewed by Sam Weinig.

Move conversion functions to WebFramePrivate,
and remove the no longer used versions.

  • WebView/WebFrame.mm:

(-[WebFrame _convertNSRangeToDOMRange:]):
(-[WebFrame _convertDOMRangeToNSRange:]):

  • WebView/WebFrameInternal.h:
  • WebView/WebFramePrivate.h:
9:39 PM Changeset in webkit [99138] by abarth@webkit.org
  • 10 edits
    6 adds in trunk

Implement allow-popups for iframe@sandbox
https://bugs.webkit.org/show_bug.cgi?id=66505

Reviewed by Eric Seidel.

Source/WebCore:

There's been some discussion in the HTML working group about adding an
allow-popups directive to the iframe sandbox. Microsoft has added it
to IE10 platform preview and is fairly adamant about this feature
because it's needed by one or their products that's planning to use
iframe sandbox. Hixie says he'll add it to the spec once we implement
it, so here's our implementation. (See discussion in the W3C linked in
the bug for more details.)

Tests: http/tests/security/popup-allowed-by-sandbox-is-sandboxed-control.html

http/tests/security/popup-allowed-by-sandbox-is-sandboxed.html
http/tests/security/popup-allowed-by-sandbox-when-allowed.html

  • html/HTMLIFrameElement.cpp:

(WebCore::HTMLIFrameElement::parseMappedAttribute):

  • loader/FrameLoader.cpp:

(WebCore::FrameLoader::setOpener):
(WebCore::createWindow):

  • loader/FrameLoader.h:

(WebCore::FrameLoader::forceSandboxFlags):

  • loader/FrameLoaderTypes.h:
  • loader/PolicyChecker.cpp:

(WebCore::PolicyChecker::checkNewWindowPolicy):

  • page/SecurityOrigin.cpp:

(WebCore::SecurityOrigin::parseSandboxPolicy):

  • page/SecurityOrigin.h:

(WebCore::SecurityOrigin::sandboxFlags):

  • svg/graphics/SVGImage.cpp:

(WebCore::SVGImage::dataChanged):

LayoutTests:

Test that the allow-popups directive works as expected. Note:
no-popup-from-sandbox.html verifies that we still block popups without
the directive.

  • http/tests/security/popup-allowed-by-sandbox-is-sandboxed-control-expected.txt: Added.
  • http/tests/security/popup-allowed-by-sandbox-is-sandboxed-control.html: Added.
  • http/tests/security/popup-allowed-by-sandbox-is-sandboxed-expected.txt: Added.
  • http/tests/security/popup-allowed-by-sandbox-is-sandboxed.html: Added.
  • http/tests/security/popup-allowed-by-sandbox-when-allowed-expected.txt: Added.
  • http/tests/security/popup-allowed-by-sandbox-when-allowed.html: Added.
9:21 PM Changeset in webkit [99137] by weinig@apple.com
  • 2 edits in trunk/Source/WebCore

Remove the ability to generate custom lookupGetter/lookupSetter functions,
now that they can not be overridden

Reviewed by Adam Roben.

  • bindings/scripts/CodeGeneratorJS.pm:

(GenerateHeader):

9:17 PM Changeset in webkit [99136] by weinig@apple.com
  • 4 edits in trunk

Source/JavaScriptCore: Object.getOwnPropertyDescriptor() does not retrieve the getter/setter from a property on the window that has been overridden with a getter/setter
https://bugs.webkit.org/show_bug.cgi?id=71333

Reviewed by Gavin Barraclough.

Tested by fast/dom/getter-on-window-object2.html

  • runtime/PropertyDescriptor.cpp:

(JSC::PropertyDescriptor::setDescriptor):
The attributes returned from Structure::get do not include Getter or Setter, so
instead check if the value is a GetterSetter like we do elsewhere. If it is, update
the descriptor's attributes accordingly.

LayoutTests: Object.getOwnPropertyDescriptor() does not retrieve the getter/setter from a property on the window that has been overridden with a getter/setter/
https://bugs.webkit.org/show_bug.cgi?id=71333

Reviewed by Gavin Barraclough.

  • fast/dom/getter-on-window-object2-expected.txt:

Update for now correct results.

8:33 PM Changeset in webkit [99135] by weinig@apple.com
  • 2 edits in trunk/Source/WebCore

Fix crashing tests after r99126 (commit for https://bugs.webkit.org/show_bug.cgi?id=71307)

Reviewed by Adam Roben.

  • bindings/js/JSDOMWindowShell.cpp:

(WebCore::JSDOMWindowShell::getOwnPropertyNames):
Since we are proxying to the window, we need to pass it as the this object,
not the shell.

8:13 PM Changeset in webkit [99134] by mitz@apple.com
  • 3 edits
    1 delete in trunk/Tools

Fixed the build and removed another copy to ColorBits.ttf.

  • DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
  • WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
  • WebKitTestRunner/fonts/ColorBits.ttf: Removed.
8:13 PM Changeset in webkit [99133] by commit-queue@webkit.org
  • 2 edits in trunk/Source/JavaScriptCore

FunctionPtr should accept FASTCALL functions on X86
https://bugs.webkit.org/show_bug.cgi?id=71434

Patch by Yuqiang Xian <yuqiang.xian@intel.com> on 2011-11-02
Reviewed by Filip Pizlo.

On X86 we sometimes use FASTCALL convention functions, for example the
cti functions, and we may need the pointers to such functions, e.g.,
in current DFG register file check and arity check, though long term
we may avoid such usage of cti calls in DFG.

  • assembler/MacroAssemblerCodeRef.h:

(JSC::FunctionPtr::FunctionPtr):

7:58 PM Changeset in webkit [99132] by fpizlo@apple.com
  • 4 edits in trunk/Source/JavaScriptCore

Inlined uses of the global object should use the right global object
https://bugs.webkit.org/show_bug.cgi?id=71427

Reviewed by Oliver Hunt.

  • dfg/DFGJITCompiler.h:

(JSC::DFG::JITCompiler::globalObjectFor):

  • dfg/DFGSpeculativeJIT64.cpp:

(JSC::DFG::SpeculativeJIT::compile):

7:19 PM Changeset in webkit [99131] by arv@chromium.org
  • 6 edits in trunk/LayoutTests

Add new StorageInfo test to the respective skip lists.

Unreviewed.

  • platform/gtk/Skipped:
  • platform/mac/Skipped:
  • platform/qt/Skipped:
  • platform/win/Skipped:
  • platform/wincairo/Skipped:
6:56 PM Changeset in webkit [99130] by arv@chromium.org
  • 19 edits
    4 adds in trunk

Remove LegacyDefaultOptionalArguments flag from storage IDL files
https://bugs.webkit.org/show_bug.cgi?id=65744

Reviewed by Adam Barth.

Source/WebCore:

Test: storage/domstorage/localstorage/missing-arguments.html

  • storage/DatabaseCallback.idl:
  • storage/IDBRequest.idl:
  • storage/IDBTransaction.idl:
  • storage/SQLResultSetRowList.idl:
  • storage/SQLStatementCallback.idl:
  • storage/SQLStatementErrorCallback.idl:
  • storage/SQLTransaction.idl:
  • storage/SQLTransactionCallback.idl:
  • storage/SQLTransactionErrorCallback.idl:
  • storage/SQLTransactionSync.idl:
  • storage/SQLTransactionSyncCallback.idl:
  • storage/Storage.idl:
  • storage/StorageInfo.idl:
  • storage/StorageInfoErrorCallback.idl:
  • storage/StorageInfoQuotaCallback.idl:
  • storage/StorageInfoUsageCallback.idl:

LayoutTests:

  • storage/domstorage/localstorage/missing-arguments-expected.txt: Added.
  • storage/domstorage/localstorage/missing-arguments.html: Added.
6:53 PM Changeset in webkit [99129] by commit-queue@webkit.org
  • 3 edits in trunk/Source/JavaScriptCore

Remove some unnecessary loads/stores in DFG JIT 32_64
https://bugs.webkit.org/show_bug.cgi?id=71090

Patch by Yuqiang Xian <yuqiang.xian@intel.com> on 2011-11-02
Reviewed by Filip Pizlo.

In fillSpeculateCell and OSR exit, some unnecessary loads/stores can
be eliminated.

  • dfg/DFGJITCompiler32_64.cpp:

(JSC::DFG::JITCompiler::exitSpeculativeWithOSR):

  • dfg/DFGSpeculativeJIT32_64.cpp:

(JSC::DFG::SpeculativeJIT::fillSpeculateCell):

6:28 PM Changeset in webkit [99128] by adamk@chromium.org
  • 6 edits in trunk/Source

Replace usage of StringImpl with String where possible in CharacterData and Text
https://bugs.webkit.org/show_bug.cgi?id=71383

Reviewed by Darin Adler.

Source/JavaScriptCore:

  • wtf/text/WTFString.h:

(WTF::String::containsOnlyWhitespace): Added new method.

Source/WebCore:

Ryosuke Niwa, in http://webkit.org/b/70862, asked me to replace usages
of String with StringImpl. I've done more than what he asked in this
patch, the biggest change being that CharacterData now holds a String
instead of a RefPtr<StringImpl>.

No new tests, as this should have no effect on behavior.

  • dom/CharacterData.cpp:

(WebCore::CharacterData::setData):
(WebCore::CharacterData::substringData):
(WebCore::CharacterData::parserAppendData):
(WebCore::CharacterData::appendData):
(WebCore::CharacterData::insertData):
(WebCore::CharacterData::deleteData):
(WebCore::CharacterData::replaceData):
(WebCore::CharacterData::containsOnlyWhitespace):
(WebCore::CharacterData::setDataAndUpdate):
(WebCore::CharacterData::updateRenderer):
(WebCore::CharacterData::dispatchModifiedEvent):

  • dom/CharacterData.h:

(WebCore::CharacterData::length):
(WebCore::CharacterData::dataImpl):
(WebCore::CharacterData::CharacterData):
(WebCore::CharacterData::setDataWithoutUpdate):

  • dom/Text.cpp:

(WebCore::Text::splitText):

5:55 PM Changeset in webkit [99127] by mitz@apple.com
  • 5 edits
    5 deletes in trunk

REGRESSION (r98759-r98773): platform/mac/fonts/color-bitmap.html failing on Lion Intel Debug (Tests)
https://bugs.webkit.org/show_bug.cgi?id=71424

Reviewed by Sam Weinig.

Tools:

Removed the ColorBits font and the code to register it in the process
running the tests. The font was only used by the aforementioned test,
which is now being removed.

  • DumpRenderTree/fonts/ColorBits-A.png: Removed.
  • DumpRenderTree/fonts/ColorBits.ttf: Removed.
  • DumpRenderTree/mac/DumpRenderTree.mm:

(allowedFontFamilySet):
(activateTestingFonts):

  • WebKitTestRunner/InjectedBundle/gtk/ActivateFontsGtk.cpp:

(WTR::inititializeFontConfigSetting):

  • WebKitTestRunner/InjectedBundle/mac/ActivateFonts.mm:

(WTR::allowedFontFamilySet):
(WTR::activateFonts):

LayoutTests:

Removed this test and its results, because it was relying on a feature
that is no longer present in any OS X version. The color bitmap font
rendering code is now covered by another test.

  • platform/mac/fonts/color-bitmap-expected.png: Removed.
  • platform/mac/fonts/color-bitmap-expected.txt: Removed.
  • platform/mac/fonts/color-bitmap.html: Removed.
5:25 PM Changeset in webkit [99126] by mhahnenberg@apple.com
  • 56 edits in trunk/Source

De-virtualize JSObject::getOwnPropertyNames
https://bugs.webkit.org/show_bug.cgi?id=71307

Reviewed by Darin Adler.

Source/JavaScriptCore:

Added getOwnPropertyNames to the MethodTable, changed all the virtual
implementations of getOwnPropertyNames to static ones, and replaced
all call sites with corresponding lookups in the MethodTable.

  • API/JSCallbackObject.h:
  • API/JSCallbackObjectFunctions.h:

(JSC::::getOwnPropertyNames):

(JSC::DebuggerActivation::getOwnPropertyNames):

  • debugger/DebuggerActivation.h:
  • runtime/Arguments.cpp:

(JSC::Arguments::getOwnPropertyNames):

  • runtime/Arguments.h:
  • runtime/ClassInfo.h:
  • runtime/JSActivation.cpp:

(JSC::JSActivation::getOwnPropertyNames):

  • runtime/JSActivation.h:
  • runtime/JSArray.cpp:

(JSC::JSArray::getOwnPropertyNames):

  • runtime/JSArray.h:
  • runtime/JSByteArray.cpp:

(JSC::JSByteArray::getOwnPropertyNames):

  • runtime/JSByteArray.h:
  • runtime/JSCell.cpp:

(JSC::JSCell::getOwnPropertyNames):

  • runtime/JSCell.h:
  • runtime/JSFunction.cpp:

(JSC::JSFunction::getOwnPropertyNames):

  • runtime/JSFunction.h:
  • runtime/JSNotAnObject.cpp:

(JSC::JSNotAnObject::getOwnPropertyNames):

  • runtime/JSNotAnObject.h:
  • runtime/JSONObject.cpp:

(JSC::Stringifier::Holder::appendNextProperty):
(JSC::Walker::walk):

  • runtime/JSObject.cpp:

(JSC::JSObject::getPropertyNames):
(JSC::JSObject::getOwnPropertyNames):

  • runtime/JSObject.h:
  • runtime/JSVariableObject.cpp:

(JSC::JSVariableObject::~JSVariableObject):
(JSC::JSVariableObject::getOwnPropertyNames):

  • runtime/JSVariableObject.h:
  • runtime/ObjectConstructor.cpp:

(JSC::objectConstructorGetOwnPropertyNames):
(JSC::objectConstructorKeys):
(JSC::defineProperties):

  • runtime/RegExpMatchesArray.h:

(JSC::RegExpMatchesArray::getOwnPropertyNames):

  • runtime/StringObject.cpp:

(JSC::StringObject::getOwnPropertyNames):

  • runtime/StringObject.h:
  • runtime/Structure.h:

Source/JavaScriptGlue:

Added getOwnPropertyNames to the MethodTable, changed all the virtual
implementations of getOwnPropertyNames to static ones, and replaced
all call sites with corresponding lookups in the MethodTable.

  • UserObjectImp.cpp:

(UserObjectImp::getOwnPropertyNames):

  • UserObjectImp.h:

Source/WebCore:

No new tests.

Added getOwnPropertyNames to the MethodTable, changed all the virtual
implementations of getOwnPropertyNames to static ones, and replaced
all call sites with corresponding lookups in the MethodTable.

  • WebCore.exp.in:
  • bindings/js/JSDOMStringMapCustom.cpp:

(WebCore::JSDOMStringMap::getOwnPropertyNames):

  • bindings/js/JSDOMWindowCustom.cpp:

(WebCore::JSDOMWindow::getOwnPropertyNames):

  • bindings/js/JSDOMWindowShell.cpp:

(WebCore::JSDOMWindowShell::getOwnPropertyNames):

  • bindings/js/JSDOMWindowShell.h:
  • bindings/js/JSHistoryCustom.cpp:

(WebCore::JSHistory::getOwnPropertyNames):

  • bindings/js/JSLocationCustom.cpp:

(WebCore::JSLocation::getOwnPropertyNames):

  • bindings/js/JSStorageCustom.cpp:

(WebCore::JSStorage::getOwnPropertyNames):

  • bindings/js/ScriptValue.cpp:

(WebCore::jsToInspectorValue):

  • bindings/js/SerializedScriptValue.cpp:

(WebCore::CloneSerializer::serialize):

  • bindings/scripts/CodeGeneratorJS.pm:

(GenerateHeader):
(GenerateImplementation):

  • bridge/qt/qt_runtime.cpp:

(JSC::Bindings::QtRuntimeMetaMethod::getOwnPropertyNames):
(JSC::Bindings::QtRuntimeConnectionMethod::getOwnPropertyNames):

  • bridge/qt/qt_runtime.h:
  • bridge/runtime_array.cpp:

(JSC::RuntimeArray::getOwnPropertyNames):

  • bridge/runtime_array.h:
  • bridge/runtime_object.cpp:

(JSC::Bindings::RuntimeObject::getOwnPropertyNames):

  • bridge/runtime_object.h:

Source/WebKit2:

Added getOwnPropertyNames to the MethodTable, changed all the virtual
implementations of getOwnPropertyNames to static ones, and replaced
all call sites with corresponding lookups in the MethodTable.

  • WebProcess/Plugins/Netscape/JSNPObject.cpp:

(WebKit::JSNPObject::getOwnPropertyNames):

  • WebProcess/Plugins/Netscape/JSNPObject.h:
5:16 PM Changeset in webkit [99125] by Simon Fraser
  • 2 edits in trunk/LayoutTests

REGRESSION (r97496-r97499): 6 fast/workers tests failing on SnowLeopard Intel Release (Tests)
https://bugs.webkit.org/show_bug.cgi?id=70619

Skip some failing worker tests.

  • platform/mac/Skipped:
5:12 PM Changeset in webkit [99124] by mitz@apple.com
  • 2 edits in trunk/Tools

Fix an intermittent hang in RenderedImageFromDOMRange.

Reviewed by Anders Carlsson.

  • TestWebKitAPI/mac/PlatformUtilitiesMac.mm:

(TestWebKitAPI::Util::run): Made the call to -runMode:beforeDate: return
immediately if there are no sources by passing a date in the distant past.

5:02 PM Changeset in webkit [99123] by Adam Roben
  • 1 edit
    1 add in trunk/Tools

Add git-add-reviewer

I've been using this script for a while to add reviewers to git commits in my local
repository before pushing them to the Subversion repository. Basic usage is:

git-add-reviewer HEAD "Joe Schmoe"
or
git-add-reviewer -i trunk

Fixes <http://webkit.org/b/71419> Would like an easy way to add reviewer names to existing
git commits

Reviewed by Sam Weinig.

  • Scripts/git-add-reviewer: Added.

(top level): Parse options, check that the working tree is clean, then run in either
interactive or non-interactive mode as appropriate.
(interactive): Write out a temp file that contains each commit with "NOBODY" next to it and
open it in the user's editor. The user can replace "NOBODY" with reviewer names. When the
editor exits, we check out the commit just before the earliest one we're modifying. Then
for each commit, we check it out, update the reviewer, and amend the commit to contain the
new reviewer. Finally, we update the branch that was originally checked out to point to the
last amended commit.
(nonInteractive): Check out the commit to modify, write the current commit message to the
MERGE_MSG file so addReviewer will update it, add the reviewer to the ChangeLog(s), amend
the commit, and rebase the original branch on top of the amended commit. (usage): Print out
a usage message and exit.
(requireCleanWorkTree): Do the same steps git-rebase does to ensure that the working tree
and index are clean.
(fail): Print out the specified error message, if any, and return false. This function is
used as a return value in various error cases throughout the script.
(cherryPick): Cherry-pick the specified commit and return 1 if we succeeded.
(addReviewer): Add the specified reviewer to all the ChangeLogs modified in this commit, and
to .git/MERGE_MSG, which will be used as the commit message for the next commit.
(commit): Call git-commit and use .git/MERGE_MSG as the commit message.

(addReviewerToChangeLog):
(addReviewerToCommitMessage):
These just call through to addReviewerToFile.

(addReviewerToFile): Read in the file, replacing any "NOBODY" text with the reviewer name(s)
and replacing "Reviewed" with "Rubber-stamped" if specified. Write the resulting text to a
temp file, then move the temp file over the original file and stage it for the next commit.
(head): Returns the name of the currently-checked-out branch.
(isAncestor): Returns true if the first commit is an ancestor of the second.
(toCommit): Converts a commitish to a commit ID using git-rev-parse.
(changeLogsForCommit): Returns a list of all the ChangeLogs modified in the given commit.
(resetToCommit): Checks out the given commit, throwing away any local changes.
(writeCommitMessageToFile): Gets the commit message for the current commit and writes it to
the specified file.
(rebaseOntoHead): Rebases the specified branch onto HEAD.
(checkout): Checks out the given commit.
(getConfigValue): Reads the specified config variable from git-config.

4:57 PM Changeset in webkit [99122] by andersca@apple.com
  • 2 edits in trunk/Source/WebKit2

Don't call NPP_SetWindow if the plug-in size or clip rect hasn't changed if the plug-in isn't using window relative coordinates
https://bugs.webkit.org/show_bug.cgi?id=71418

Reviewed by Adam Roben.

This avoids calling into the plug-in when only the plug-in position relative to the window changes.

  • WebProcess/Plugins/Netscape/NetscapePlugin.cpp:

(WebKit::NetscapePlugin::geometryDidChange):

4:43 PM Changeset in webkit [99121] by jonlee@apple.com
  • 2 edits in trunk/Source/WebKit2

Fix syntax error.

  • WebProcess/WebPage/WebPage.cpp:

(WebKit::WebPage::performDragControllerAction):

4:30 PM Changeset in webkit [99120] by tony@chromium.org
  • 3 edits
    2 adds in trunk

force inline flexitems to be wrapped in anonymous blocks
https://bugs.webkit.org/show_bug.cgi?id=71314

Reviewed by Ojan Vafai.

Source/WebCore:

If there is a mix of inline and block items, all the inline items were already getting wrapped
(see RenderBlock::addChildIgnoringAnonymousColumnBlocks). However, if there are only inline items,
we need to force them into an anonymous block.

There are still lots of bugs because we're trying to read style values from the anonymous block,
but this at least causes layout to be called on all the render objects.

Tests: css3/flexbox/anonymous-block.html

  • rendering/RenderFlexibleBox.cpp:

(WebCore::RenderFlexibleBox::TreeOrderIterator::next):
(WebCore::RenderFlexibleBox::FlexOrderIterator::next):
(WebCore::RenderFlexibleBox::RenderFlexibleBox): force children into blocks

LayoutTests:

  • css3/flexbox/anonymous-block-expected.html: Added.
  • css3/flexbox/anonymous-block.html: Added.
4:22 PM Changeset in webkit [99119] by jonlee@apple.com
  • 2 edits in trunk/Source/WebKit2

Fix build error from r99108.

  • WebProcess/WebPage/WebPage.cpp:

(WebKit::WebPage::performDragControllerAction):

4:17 PM Changeset in webkit [99118] by dino@apple.com
  • 13 edits in trunk

Add ENABLE_CSS_SHADERS flag
https://bugs.webkit.org/show_bug.cgi?id=71394

Reviewed by Sam Weinig.

Source/JavaScriptCore:

  • Configurations/FeatureDefines.xcconfig:

Source/WebCore:

  • Configurations/FeatureDefines.xcconfig:

Source/WebKit/mac:

  • Configurations/FeatureDefines.xcconfig:

Source/WebKit2:

  • Configurations/FeatureDefines.xcconfig:

Tools:

  • Scripts/build-webkit:

WebKitLibraries:

  • win/tools/vsprops/FeatureDefines.vsprops:
  • win/tools/vsprops/FeatureDefinesCairo.vsprops:
4:14 PM Changeset in webkit [99117] by andersca@apple.com
  • 6 edits in trunk/Source/WebKit2

Allow the various plug-in ports to decide whether NPWindow coordinates should be window-relative
https://bugs.webkit.org/show_bug.cgi?id=71415

Reviewed by Darin Adler.

  • WebProcess/Plugins/Netscape/NetscapePlugin.cpp:

(WebKit::NetscapePlugin::callSetWindow):
Remove the PLUGIN_ARCHITECTURE(X11) ifdef and set the NPWindow members
based on the return value of wantsWindowRelativeNPWindowCoordinates.

  • WebProcess/Plugins/Netscape/NetscapePlugin.h:
  • WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:

(WebKit::NetscapePlugin::wantsWindowRelativeNPWindowCoordinates):

  • WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:

(WebKit::NetscapePlugin::wantsWindowRelativeNPWindowCoordinates):

  • WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:

(WebKit::NetscapePlugin::wantsWindowRelativeNPWindowCoordinates):
Add platform specific implementations.

4:02 PM Changeset in webkit [99116] by commit-queue@webkit.org
  • 2 edits in trunk/Source/WebKit2

[Qt] [WK] Debug build broken after r99065
https://bugs.webkit.org/show_bug.cgi?id=71397

Remove reference to panGestureActive becuase it is not defined anywhere.

Patch by Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com> on 2011-11-02
Reviewed by Simon Hausmann.

  • UIProcess/qt/QtViewportInteractionEngine.cpp:

(WebKit::QtViewportInteractionEngine::panGestureStarted):

4:01 PM Changeset in webkit [99115] by leviw@chromium.org
  • 3 copies in branches/chromium/874/LayoutTests

Merge 98263 - <svg> fails to use explicit width and height inside <html> inside IFRAME
https://bugs.webkit.org/show_bug.cgi?id=64823

Reviewed by Nikolas Zimmermann.

Source/WebCore:

Checking that embedded SVG is in an SVG document before negotiating size
with the host document.

Test: svg/as-object/svg-embedded-in-html-in-iframe.html

  • rendering/svg/RenderSVGRoot.cpp:

(WebCore::isEmbeddedThroughFrameContainingSVGDocument):
(WebCore::RenderSVGRoot::computeReplacedLogicalWidth):
(WebCore::RenderSVGRoot::computeReplacedLogicalHeight):

LayoutTests:

Fixing a bug where SVG negotiated size when embedded in html inside an iframe.

  • platform/chromium/test_expectations.txt: Will update with results on other platforms.
  • platform/mac/svg/as-object/svg-embedded-in-html-in-iframe-expected.png: Added.
  • platform/mac/svg/as-object/svg-embedded-in-html-in-iframe-expected.txt: Added.
  • svg/as-object/svg-embedded-in-html-in-iframe.html: Added.

TBR=leviw@chromium.org
Review URL: http://codereview.chromium.org/8439060

4:00 PM Changeset in webkit [99114] by arv@chromium.org
  • 7 edits in trunk/LayoutTests

Remove references to non existing file; js-test-post-function.js
https://bugs.webkit.org/show_bug.cgi?id=71398

Reviewed by Ojan Vafai.

This js file no longer exists and the code it defined is now in js-test-pre.js.

  • fast/events/touch/gesture/gesture-scroll.html:
  • storage/indexeddb/factory-deletedatabase-interactions.html:
  • storage/indexeddb/factory-deletedatabase.html:
  • storage/indexeddb/open-during-transaction.html:
  • storage/indexeddb/version-change-abort-expected.txt:
  • storage/indexeddb/version-change-abort.html:
3:53 PM Changeset in webkit [99113] by eae@chromium.org
  • 4 edits in trunk/Source/WebCore

Switch RenderText to new layout types
https://bugs.webkit.org/show_bug.cgi?id=71389

Reviewed by Eric Seidel.

Switch RenderText methods (and overriden methods in related classes) to
LayoutRect/LayoutUnit.

No new tests.

  • rendering/RenderText.cpp:

(WebCore::RenderText::absoluteRectsForRange):
(WebCore::RenderText::linesBoundingBox):
(WebCore::RenderText::linesVisualOverflowBoundingBox):

  • rendering/RenderText.h:

Change RenderText to expose its bounding box, selection and caret rects
as LayoutRects.

  • rendering/svg/RenderSVGInlineText.cpp:

(WebCore::RenderSVGInlineText::localCaretRect):

  • rendering/svg/RenderSVGInlineText.h:

Change localCaretRect to return a LayoutRect.

3:47 PM Changeset in webkit [99112] by jonlee@apple.com
  • 2 edits in trunk/Source/WebKit2

Update dragging info on mac when user is dragging files into view
https://bugs.webkit.org/show_bug.cgi?id=71325
<rdar://problem/10379193>

Reviewed by Darin Adler.

  • UIProcess/API/mac/WKView.mm:

(-[WKView draggingUpdated:]): Based on the DragSession, we update NSDraggingInfo
to update the badge and dragging formation.

3:44 PM Changeset in webkit [99111] by tony@chromium.org
  • 2 edits
    3 moves
    29 adds
    3 deletes in trunk/LayoutTests

Land chromium baselines for tests added in r94912.

  • fast/borders/border-image-outset-split-inline-vertical-lr-expected.txt: Renamed from LayoutTests/platform/gtk/fast/borders/border-image-outset-split-inline-vertical-lr-expected.txt.
  • fast/borders/inline-mask-overlay-image-outset-expected.txt: Renamed from LayoutTests/platform/gtk/fast/borders/inline-mask-overlay-image-outset-expected.txt.
  • fast/borders/inline-mask-overlay-image-outset-vertical-rl-expected.txt: Renamed from LayoutTests/platform/gtk/fast/borders/inline-mask-overlay-image-outset-vertical-rl-expected.txt.
  • platform/chromium-cg-mac-snowleopard/fast/borders/block-mask-overlay-image-outset-expected.png: Added.
  • platform/chromium-cg-mac-snowleopard/fast/borders/border-image-outset-expected.png: Added.
  • platform/chromium-cg-mac-snowleopard/fast/borders/border-image-outset-in-shorthand-expected.png: Added.
  • platform/chromium-cg-mac-snowleopard/fast/borders/inline-mask-overlay-image-outset-expected.png: Added.
  • platform/chromium-cg-mac-snowleopard/fast/borders/inline-mask-overlay-image-outset-vertical-rl-expected.png: Added.
  • platform/chromium-linux/fast/borders/block-mask-overlay-image-outset-expected.png: Added.
  • platform/chromium-linux/fast/borders/border-image-outset-expected.png: Added.
  • platform/chromium-linux/fast/borders/border-image-outset-in-shorthand-expected.png: Added.
  • platform/chromium-linux/fast/borders/inline-mask-overlay-image-outset-expected.png: Added.
  • platform/chromium-linux/fast/borders/inline-mask-overlay-image-outset-vertical-rl-expected.png: Added.
  • platform/chromium-mac-leopard/fast/borders/block-mask-overlay-image-outset-expected.png: Added.
  • platform/chromium-mac-snowleopard/fast/borders/block-mask-overlay-image-outset-expected.png: Added.
  • platform/chromium-mac-snowleopard/fast/borders/border-image-outset-expected.png: Added.
  • platform/chromium-mac-snowleopard/fast/borders/border-image-outset-in-shorthand-expected.png: Added.
  • platform/chromium-mac-snowleopard/fast/borders/inline-mask-overlay-image-outset-expected.png: Added.
  • platform/chromium-mac-snowleopard/fast/borders/inline-mask-overlay-image-outset-vertical-rl-expected.png: Added.
  • platform/chromium-win/fast/borders/block-mask-overlay-image-outset-expected.png: Added.
  • platform/chromium-win/fast/borders/block-mask-overlay-image-outset-expected.txt: Added.
  • platform/chromium-win/fast/borders/border-image-outset-expected.png: Added.
  • platform/chromium-win/fast/borders/border-image-outset-expected.txt: Added.
  • platform/chromium-win/fast/borders/border-image-outset-in-shorthand-expected.png: Added.
  • platform/chromium-win/fast/borders/border-image-outset-in-shorthand-expected.txt: Added.
  • platform/chromium-win/fast/borders/border-image-outset-split-inline-vertical-lr-expected.png: Added.
  • platform/chromium-win/fast/borders/inline-mask-overlay-image-outset-expected.png: Added.
  • platform/chromium-win/fast/borders/inline-mask-overlay-image-outset-expected.txt: Added.
  • platform/chromium-win/fast/borders/inline-mask-overlay-image-outset-vertical-rl-expected.png: Added.
  • platform/chromium-win/fast/borders/inline-mask-overlay-image-outset-vertical-rl-expected.txt: Added.
  • platform/chromium/fast/borders/border-image-outset-split-inline-vertical-lr-expected.png: Added.
  • platform/chromium/test_expectations.txt:
  • platform/mac/fast/borders/border-image-outset-split-inline-vertical-lr-expected.txt: Removed.
  • platform/mac/fast/borders/inline-mask-overlay-image-outset-expected.txt: Removed.
  • platform/mac/fast/borders/inline-mask-overlay-image-outset-vertical-rl-expected.txt: Removed.
3:42 PM Changeset in webkit [99110] by annacc@chromium.org
  • 7 edits
    64 deletes in trunk/LayoutTests

Remove <track>-related LayoutTests that don't actually work yet.
https://bugs.webkit.org/show_bug.cgi?id=71378

Reviewed by Eric Carlson.

  • media/track/track-mutable-expected.txt: Removed.
  • media/track/track-mutable.html: Removed.
  • media/track/track-text-track-cue-list-expected.txt: Removed.
  • media/track/track-text-track-cue-list.html: Removed.
  • media/track/track-text-track-expected.txt: Removed.
  • media/track/track-text-track.html: Removed.
  • media/track/track-webvtt-tc000-empty-expected.txt: Removed.
  • media/track/track-webvtt-tc000-empty.html: Removed.
  • media/track/track-webvtt-tc001-utf8-expected.txt: Removed.
  • media/track/track-webvtt-tc001-utf8.html: Removed.
  • media/track/track-webvtt-tc002-bom-expected.txt: Removed.
  • media/track/track-webvtt-tc002-bom.html: Removed.
  • media/track/track-webvtt-tc003-newlines-expected.txt: Removed.
  • media/track/track-webvtt-tc003-newlines.html: Removed.
  • media/track/track-webvtt-tc004-magic-header-expected.txt: Removed.
  • media/track/track-webvtt-tc004-magic-header.html: Removed.
  • media/track/track-webvtt-tc005-header-comment-expected.txt: Removed.
  • media/track/track-webvtt-tc005-header-comment.html: Removed.
  • media/track/track-webvtt-tc006-cue-identifiers-expected.txt: Removed.
  • media/track/track-webvtt-tc006-cue-identifiers.html: Removed.
  • media/track/track-webvtt-tc007-cue-no-id-expected.txt: Removed.
  • media/track/track-webvtt-tc007-cue-no-id.html: Removed.
  • media/track/track-webvtt-tc008-timings-no-hours-expected.txt: Removed.
  • media/track/track-webvtt-tc008-timings-no-hours.html: Removed.
  • media/track/track-webvtt-tc009-timings-hour-expected.txt: Removed.
  • media/track/track-webvtt-tc009-timings-hour.html: Removed.
  • media/track/track-webvtt-tc010-no-timings-expected.txt: Removed.
  • media/track/track-webvtt-tc010-no-timings.html: Removed.
  • media/track/track-webvtt-tc011-blank-lines-expected.txt: Removed.
  • media/track/track-webvtt-tc011-blank-lines.html: Removed.
  • media/track/track-webvtt-tc012-out-of-order-expected.txt: Removed.
  • media/track/track-webvtt-tc012-out-of-order.html: Removed.
  • media/track/track-webvtt-tc013-settings-expected.txt: Removed.
  • media/track/track-webvtt-tc013-settings.html: Removed.
  • media/track/track-webvtt-tc014-alignment-expected.txt: Removed.
  • media/track/track-webvtt-tc014-alignment.html: Removed.
  • media/track/track-webvtt-tc015-positioning-expected.txt: Removed.
  • media/track/track-webvtt-tc015-positioning.html: Removed.
  • media/track/track-webvtt-tc016-align-positioning-expected.txt: Removed.
  • media/track/track-webvtt-tc016-align-positioning.html: Removed.
  • media/track/track-webvtt-tc017-line-position-expected.txt: Removed.
  • media/track/track-webvtt-tc017-line-position.html: Removed.
  • media/track/track-webvtt-tc018-align-text-line-position-expected.txt: Removed.
  • media/track/track-webvtt-tc018-align-text-line-position.html: Removed.
  • media/track/track-webvtt-tc019-cue-size-expected.txt: Removed.
  • media/track/track-webvtt-tc019-cue-size.html: Removed.
  • media/track/track-webvtt-tc020-cue-size-align-expected.txt: Removed.
  • media/track/track-webvtt-tc020-cue-size-align.html: Removed.
  • media/track/track-webvtt-tc021-valign-expected.txt: Removed.
  • media/track/track-webvtt-tc021-valign.html: Removed.
  • media/track/track-webvtt-tc022-entities-expected.txt: Removed.
  • media/track/track-webvtt-tc022-entities.html: Removed.
  • media/track/track-webvtt-tc023-markup-expected.txt: Removed.
  • media/track/track-webvtt-tc023-markup.html: Removed.
  • media/track/track-webvtt-tc024-timestamp-expected.txt: Removed.
  • media/track/track-webvtt-tc024-timestamp.html: Removed.
  • media/track/track-webvtt-tc025-class-markup-expected.txt: Removed.
  • media/track/track-webvtt-tc025-class-markup.html: Removed.
  • media/track/track-webvtt-tc026-voice-expected.txt: Removed.
  • media/track/track-webvtt-tc026-voice.html: Removed.
  • media/track/track-webvtt-tc027-empty-cue-expected.txt: Removed.
  • media/track/track-webvtt-tc027-empty-cue.html: Removed.
  • media/track/track-webvtt-tc028-unsupported-markup-expected.txt: Removed.
  • media/track/track-webvtt-tc028-unsupported-markup.html: Removed.
  • platform/chromium/test_expectations.txt: Remove all, remaining tests currently pass.
  • platform/gtk/Skipped: Remove all, remaining tests currently pass.
  • platform/mac/Skipped: Make sure all are skipped, <track> not enabled.
  • platform/qt/Skipped: Remove all, remaining tests currently pass.
  • platform/win/Skipped: Make sure all are skipped, <track> not enabled.
  • platform/wk2/Skipped: Remove all, remaining tests currently pass.
3:35 PM Changeset in webkit [99109] by leviw@chromium.org
  • 4 edits
    3 adds in trunk

Infinite recursion in RenderSVGResourceContainer::markAllClientsForInvalidation
https://bugs.webkit.org/show_bug.cgi?id=71384

Reviewed by Darin Adler.

Source/WebCore:

Adding a reentrancy guard to RenderSVGResourceContainer to prevent infinite recursion when
resources reference one another and share ids.

Test: svg/custom/resource-invalidation-crash.svg

  • rendering/svg/RenderSVGResourceContainer.cpp:

(WebCore::RenderSVGResourceContainer::RenderSVGResourceContainer):
(WebCore::RenderSVGResourceContainer::markAllClientsForInvalidation):

  • rendering/svg/RenderSVGResourceContainer.h:

LayoutTests:

Fixes a stack overflow when SVG resources reference one another and share ids.

  • svg/custom/resource-invalidation-crash-expected.png: Added.
  • svg/custom/resource-invalidation-crash-expected.txt: Added.
  • svg/custom/resource-invalidation-crash.svg: Added.
3:32 PM Changeset in webkit [99108] by jonlee@apple.com
  • 35 edits
    1 copy in trunk

Expand DragController to provide more information about the dragging session
https://bugs.webkit.org/show_bug.cgi?id=71324
<rdar://problem/10379175>

Reviewed by Darin Adler.

Source/WebCore:

  • WebCore.xcodeproj/project.pbxproj:
  • page/DragController.cpp:

(WebCore::DragController::dragEntered):
(WebCore::DragController::dragUpdated):
(WebCore::DragController::dragEnteredOrUpdated):
(WebCore::DragController::tryDocumentDrag): In addition to determining the
drag operation, DragSession is updated with data regarding whether the mouse
is over a file input, and the number of items that would be accepted based on
the mouse's location.

  • page/DragController.h:
  • page/DragSession.h: Added.

(WebCore::DragSession::DragSession): Keep track of current operation, whether
the mouse is over a file input element, and how many files would be accepted if
dropped.

  • platform/DragData.h: Added numberOfFiles()
  • platform/chromium/DragDataChromium.cpp:

(WebCore::DragData::numberOfFiles):

  • platform/efl/DragDataEfl.cpp:

(WebCore::DragData::numberOfFiles):

  • platform/gtk/DragDataGtk.cpp:

(WebCore::DragData::numberOfFiles):

  • platform/mac/DragDataMac.mm:

(WebCore::DragData::numberOfFiles):

  • platform/qt/DragDataQt.cpp:

(WebCore::DragData::numberOfFiles):

  • platform/win/DragDataWin.cpp:

(WebCore::DragData::numberOfFiles):

  • platform/wince/DragDataWinCE.cpp:

(WebCore::DragData::numberOfFiles):

  • platform/wx/DragDataWx.cpp:

(WebCore::DragData::numberOfFiles):

Source/WebKit/chromium:

  • src/WebViewImpl.cpp:

(WebKit::WebViewImpl::dragTargetDragEnterOrOver): The drag operation is contained
within the new DragSession struct. Minor refactor.

Source/WebKit/gtk:

  • webkit/webkitwebview.cpp:

(webkit_web_view_drag_motion): Minor refactoring.
(webkit_web_view_drag_data_received): Minor refactoring.

Source/WebKit/mac:

  • WebView/WebView.mm:

(-[WebView draggingEntered:]): DragOperation is now inside the DragSession struct.
(-[WebView draggingUpdated:]):

Source/WebKit/qt:

  • Api/qwebpage.cpp:

(QWebPagePrivate::dragEnterEvent): Minor refactoring because operation is stored in
new DragSession struct.
(QWebPagePrivate::dragMoveEvent): Ditto.

Source/WebKit/win:

  • WebView.cpp:

(WebView::DragEnter): Minor refactoring because operation is stored in
new DragSession struct.
(WebView::DragOver): Ditto.

Source/WebKit2:

We now pass the DragSession struct from the Web to the UI process, instead of the
DragOperation enum.

  • Scripts/webkit2/messages.py:
  • Shared/WebCoreArgumentCoders.cpp:

(CoreIPC::::encode):
(CoreIPC::::decode):

  • Shared/WebCoreArgumentCoders.h:
  • UIProcess/API/mac/WKView.mm:

(-[WKView draggingUpdated:]):

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::WebPageProxy): We now cache the last known DragSession state
(WebKit::WebPageProxy::didPerformDragControllerAction):

  • UIProcess/WebPageProxy.h:

(WebKit::WebPageProxy::dragSession):
(WebKit::WebPageProxy::resetDragOperation):

  • UIProcess/WebPageProxy.messages.in:
  • UIProcess/win/WebView.cpp:

(WebKit::WebView::keyStateToDragOperation):
(WebKit::WebView::DragEnter):
(WebKit::WebView::DragOver):

  • WebProcess/WebPage/WebPage.cpp:

(WebKit::WebPage::performDragControllerAction):

LayoutTests:

  • editing/pasteboard/script-tests/file-input-files-access.js:

(runTest): Change the expected behavior of the test-- dragging a file over a disabled
control should not load that file. Instead, the file should be ignored, and the page
remains as is.

3:26 PM Changeset in webkit [99107] by andersca@apple.com
  • 9 edits in trunk/Source/WebKit2

Get rid of Plugin::deprecatedGeometryDidChange
https://bugs.webkit.org/show_bug.cgi?id=71411

Reviewed by Sam Weinig.

Now that all Plugin subclasses implement geometryDidChange and do all the work there
we can get rid of deprecatedGeometryDidChange.

  • WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
  • WebProcess/Plugins/Netscape/NetscapePlugin.h:
  • WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
  • WebProcess/Plugins/PDF/BuiltInPDFView.h:
  • WebProcess/Plugins/Plugin.h:
  • WebProcess/Plugins/PluginProxy.cpp:
  • WebProcess/Plugins/PluginProxy.h:
  • WebProcess/Plugins/PluginView.cpp:

(WebKit::PluginView::viewGeometryDidChange):

3:25 PM Changeset in webkit [99106] by eric@webkit.org
  • 5 edits in trunk/Tools

BaselineOptimizer tests should use mocks instead of real Executive/FileSystem objects
https://bugs.webkit.org/show_bug.cgi?id=71237

Reviewed by Adam Barth.

Calling the static version of factory.get() with proper mocking
requires passsing an explict filesystem, executive, etc.
So instead, we use a PortFactory instance and pass it a Host pointer.
I had to add a MockHost since we'd not needed a non-host tool before now.

  • Scripts/webkitpy/common/checkout/baselineoptimizer.py:
  • Scripts/webkitpy/common/checkout/baselineoptimizer_unittest.py:
  • Scripts/webkitpy/tool/commands/rebaseline.py:
  • Scripts/webkitpy/tool/mocktool.py:
3:25 PM Changeset in webkit [99105] by tony@chromium.org
  • 3 edits
    1 delete in trunk/LayoutTests

Update chromium results for printing tests.

  • platform/chromium-linux/printing/single-line-must-not-be-split-into-two-pages-expected.txt: Removed.
  • platform/chromium-win/printing/single-line-must-not-be-split-into-two-pages-expected.txt:
  • platform/chromium/test_expectations.txt:
3:24 PM Changeset in webkit [99104] by ap@apple.com
  • 2 edits in trunk/Source/WebCore

Emedded PDFs cannot be opened from Web archives
https://bugs.webkit.org/show_bug.cgi?id=70954

Reviewed by Oliver Hunt.

BuiltInPDFPlugin doesn't have access to original ResourceResponse and has to re-create it
It doesn't seem to be possible to create an NSURLResponse with a non-null HTTP status code,
and NetscapePlugInStreamLoader becomes unhappy.

  • loader/NetscapePlugInStreamLoader.cpp: (WebCore::NetscapePlugInStreamLoader::didReceiveResponse):

Allow 0 status code, it's not a real error to have one in response.

3:13 PM Changeset in webkit [99103] by andersca@apple.com
  • 3 edits in trunk/Tools

Update for the WebKit2 API fixage.

  • MiniBrowser/mac/BrowserWindowController.m:

(-[BrowserWindowController awakeFromNib]):

  • WebKitTestRunner/TestController.cpp:

(WTR::TestController::initialize):

3:06 PM Changeset in webkit [99102] by andersca@apple.com
  • 2 edits in trunk/Source/WebKit2

Move back functions that were not added.

  • UIProcess/API/C/WKPage.h:
3:01 PM Changeset in webkit [99101] by andersca@apple.com
  • 7 edits in trunk

Source/WebKit2: Fix build and WebKit2 ABI.

  • Shared/APIClientTraits.cpp:
  • Shared/APIClientTraits.h:

Add page loader client sizes.

  • UIProcess/API/C/WKPage.h:

Move the newly added callback functions in the loader client last and bump the
WKPageLoaderClient version.

Tools: Fix build.

Add new functions to the page loader client.

  • MiniBrowser/mac/BrowserWindowController.m:

(-[BrowserWindowController awakeFromNib]):

  • WebKitTestRunner/TestController.cpp:

(WTR::TestController::initialize):

2:57 PM Changeset in webkit [99100] by nduca@chromium.org
  • 11 edits in trunk/Source

[chromium] Slow down commit and draw rate based on visibility and draw completion
https://bugs.webkit.org/show_bug.cgi?id=71267

Reviewed by James Robinson.

Source/WebCore:

  • platform/graphics/chromium/cc/CCLayerTreeHost.h:

(WebCore::CCLayerTreeHost::visible):

  • platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:

(WebCore::CCLayerTreeHostImpl::visible):

  • platform/graphics/chromium/cc/CCScheduler.cpp:

(WebCore::CCScheduler::beginFrame):
(WebCore::CCScheduler::processScheduledActions):

  • platform/graphics/chromium/cc/CCScheduler.h:
  • platform/graphics/chromium/cc/CCSchedulerStateMachine.cpp:

(WebCore::CCSchedulerStateMachine::nextAction):
(WebCore::CCSchedulerStateMachine::updateState):

  • platform/graphics/chromium/cc/CCSchedulerStateMachine.h:
  • platform/graphics/chromium/cc/CCThreadProxy.cpp:

(WebCore::CCThreadProxy::visible):

  • platform/graphics/chromium/cc/CCThreadProxy.h:

Source/WebKit/chromium:

  • tests/CCSchedulerStateMachineTest.cpp:

(WebCore::TEST):

  • tests/CCSchedulerTest.cpp:

(WebKitTests::FakeCCSchedulerClient::reset):
(WebKitTests::FakeCCSchedulerClient::setVisible):
(WebKitTests::FakeCCSchedulerClient::visible):
(WebKitTests::TEST):

2:46 PM Changeset in webkit [99099] by mitz@apple.com
  • 9 edits
    1 add in trunk

<rdar://problem/10336700> Add API to get rendered text image without having to select it
https://bugs.webkit.org/show_bug.cgi?id=71407

Reviewed by Simon Fraser.

Source/WebCore:

Test: TestWebKitAPI/Tests/mac/RenderedImageFromDOMRange.mm

  • bindings/objc/DOM.mm:

(-[DOMRange renderedImageForcingBlackText:]): Added.

  • bindings/objc/DOMPrivate.h:
  • page/Frame.h:
  • page/mac/FrameMac.mm:

(WebCore::Frame::rangeImage): Added. Sets the selection in the RenderView (only) based on the
given range and gets a selection-only rendering of the view, then restores the selection.

  • rendering/RenderView.cpp:

(WebCore::RenderView::setSelection): Skip all invalidation if the repaint behavior is RepaintNothing.
(WebCore::RenderView::getSelection): Added this getter.

  • rendering/RenderView.h:

Tools:

  • TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
  • TestWebKitAPI/Tests/mac/RenderedImageFromDOMRange.mm: Added.

(-[RenderedImageFromDOMRangeFrameLoadDelegate webView:didFinishLoadForFrame:]):
(TestWebKitAPI::TEST):

2:43 PM Changeset in webkit [99098] by benjamin@webkit.org
  • 2 edits in trunk/Tools

Make the main frame's base path more explicit in _drt_descriptionSuitableForTestResult
https://bugs.webkit.org/show_bug.cgi?id=71351

Reviewed by Darin Adler.

Add the delimiter "/" at the end of the path instead of adding +1 when using
the path.

  • DumpRenderTree/mac/ResourceLoadDelegate.mm:

(-[NSURL _drt_descriptionSuitableForTestResult]):

2:36 PM Changeset in webkit [99097] by andersca@apple.com
  • 2 edits in trunk/Source/WebKit2

Fix build.

  • WebProcess/Plugins/PluginView.h:
2:05 PM Changeset in webkit [99096] by commit-queue@webkit.org
  • 54 edits
    2 adds in trunk

XSSAuditor is silent
https://bugs.webkit.org/show_bug.cgi?id=70973

Patch by Tom Sepez <tsepez@chromium.org> on 2011-11-02
Reviewed by Adam Barth.

Source/WebCore:

Test: http/tests/security/xssAuditor/script-tag-with-callbacks.html

  • html/parser/XSSAuditor.cpp:

(WebCore::XSSAuditor::XSSAuditor):
(WebCore::XSSAuditor::filterToken):

  • html/parser/XSSAuditor.h:
  • loader/EmptyClients.h:

(WebCore::EmptyFrameLoaderClient::didDetectXSS):

  • loader/FrameLoaderClient.h:

Source/WebKit/chromium:

  • public/WebFrameClient.h:

(WebKit::WebFrameClient::didDetectXSS):

  • src/FrameLoaderClientImpl.cpp:

(WebKit::FrameLoaderClientImpl::didDetectXSS):

  • src/FrameLoaderClientImpl.h:

Source/WebKit/efl:

  • WebCoreSupport/FrameLoaderClientEfl.cpp:

(WebCore::FrameLoaderClientEfl::didDetectXSS):

  • WebCoreSupport/FrameLoaderClientEfl.h:

Source/WebKit/gtk:

  • WebCoreSupport/FrameLoaderClientGtk.cpp:

(WebKit::FrameLoaderClient::didDetectXSS):

  • WebCoreSupport/FrameLoaderClientGtk.h:

Source/WebKit/mac:

  • WebCoreSupport/WebFrameLoaderClient.h:
  • WebCoreSupport/WebFrameLoaderClient.mm:

(WebFrameLoaderClient::didRunInsecureContent):
(WebFrameLoaderClient::didDetectXSS):

  • WebView/WebDelegateImplementationCaching.h:
  • WebView/WebFrameLoadDelegatePrivate.h:
  • WebView/WebView.mm:

(-[WebView _cacheFrameLoadDelegateImplementations]):

Source/WebKit/qt:

  • WebCoreSupport/FrameLoaderClientQt.cpp:

(WebCore::FrameLoaderClientQt::didDetectXSS):

  • WebCoreSupport/FrameLoaderClientQt.h:

Source/WebKit/win:

  • WebCoreSupport/WebFrameLoaderClient.cpp:

(WebFrameLoaderClient::didDetectXSS):

  • WebCoreSupport/WebFrameLoaderClient.h:

Source/WebKit/wince:

  • WebCoreSupport/FrameLoaderClientWinCE.cpp:

(WebKit::FrameLoaderClientWinCE::didDetectXSS):

  • WebCoreSupport/FrameLoaderClientWinCE.h:

Source/WebKit/wx:

  • WebKitSupport/FrameLoaderClientWx.cpp:

(WebCore::FrameLoaderClientWx::didDetectXSS):

  • WebKitSupport/FrameLoaderClientWx.h:

Source/WebKit2:

  • UIProcess/API/C/WKPage.h:
  • UIProcess/API/gtk/WebKitWebLoaderClient.cpp:

(webkitWebLoaderClientAttachLoaderClientToPage):

  • UIProcess/WebLoaderClient.cpp:

(WebKit::WebLoaderClient::didDetectXSSForFrame):

  • UIProcess/WebLoaderClient.h:
  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::didDetectXSSForFrame):

  • UIProcess/WebPageProxy.h:
  • UIProcess/WebPageProxy.messages.in:
  • WebProcess/InjectedBundle/API/c/WKBundlePage.h:
  • WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:

(WebKit::InjectedBundlePageLoaderClient::didDetectXSSForFrame):

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

(WebKit::WebFrameLoaderClient::didDetectXSS):

  • WebProcess/WebCoreSupport/WebFrameLoaderClient.h:

Tools:

  • DumpRenderTree/chromium/WebViewHost.cpp:

(WebViewHost::didDetectXSS):

  • DumpRenderTree/chromium/WebViewHost.h:
  • DumpRenderTree/mac/FrameLoadDelegate.mm:

(-[FrameLoadDelegate webView:didDetectXSS:]):

  • MiniBrowser/mac/BrowserWindowController.m:

(didDetectXSSForFrame):
(-[BrowserWindowController awakeFromNib]):

  • WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:

(WTR::InjectedBundlePage::InjectedBundlePage):
(WTR::InjectedBundlePage::didDetectXSSForFrame):

  • WebKitTestRunner/InjectedBundle/InjectedBundlePage.h:

LayoutTests:

  • http/tests/security/xssAuditor/script-tag-with-callbacks-expected.txt: Added.
  • http/tests/security/xssAuditor/script-tag-with-callbacks.html: Added.
2:02 PM Changeset in webkit [99095] by Simon Fraser
  • 2 edits in trunk/Source/WebCore

Assertion in FontCache::getCachedFontData() when painting into composited layer
https://bugs.webkit.org/show_bug.cgi?id=71377

Reviewed by Anders Carlsson.

Add one of the mysterious FontCachePurgePreventers on the stack when painting
compositing layers, just as FrameView::paintContents does, to fix an assertion
seen on the bots with some layout tests.

  • rendering/RenderLayerBacking.cpp:

(WebCore::RenderLayerBacking::paintIntoLayer):

2:01 PM Changeset in webkit [99094] by andersca@apple.com
  • 3 edits in trunk/Source/WebKit2

More window relative coordinate usage removal
https://bugs.webkit.org/show_bug.cgi?id=71393

Reviewed by Adam Roben.

  • WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:

(WebKit::NetscapePlugin::scheduleWindowedGeometryUpdate):
Just use m_clipRect instead of converting m_clipRectInWindowCoordinates to plug-in coordinates.

(WebKit::NetscapePlugin::platformPaint):
Use m_pluginSize instead of m_frameRectInWindowCoordinates.size().

  • WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:

(WebKit::NetscapePlugin::platformPaint):
Ditto.

1:57 PM Changeset in webkit [99093] by andersca@apple.com
  • 14 edits in trunk/Source/WebKit2

Fix non-Mac builds and remove #if PLATFORM(MAC) around all contents scale factor functions.

  • PluginProcess/PluginControllerProxy.cpp:

(WebKit::PluginControllerProxy::PluginControllerProxy):
(WebKit::PluginControllerProxy::contentsScaleFactor):
(WebKit::PluginControllerProxy::geometryDidChange):

  • PluginProcess/PluginControllerProxy.h:
  • PluginProcess/PluginCreationParameters.cpp:

(WebKit::PluginCreationParameters::PluginCreationParameters):
(WebKit::PluginCreationParameters::encode):
(WebKit::PluginCreationParameters::decode):

  • PluginProcess/PluginCreationParameters.h:
  • PluginProcess/mac/PluginControllerProxyMac.mm:
  • WebProcess/Plugins/Netscape/NetscapePlugin.cpp:

(WebKit::NetscapePlugin::contentsScaleFactor):
(WebKit::NetscapePlugin::getAuthenticationInfo):
(WebKit::NetscapePlugin::snapshot):
(WebKit::NetscapePlugin::contentsScaleFactorChanged):

  • WebProcess/Plugins/Netscape/NetscapePlugin.h:
  • WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
  • WebProcess/Plugins/Plugin.h:
  • WebProcess/Plugins/PluginController.h:
  • WebProcess/Plugins/PluginProxy.cpp:

(WebKit::PluginProxy::initialize):
(WebKit::PluginProxy::contentsScaleFactorChanged):
(WebKit::PluginProxy::contentsScaleFactor):

  • WebProcess/Plugins/PluginProxy.h:
  • WebProcess/Plugins/PluginView.cpp:

(WebKit::PluginView::contentsScaleFactor):

1:28 PM Changeset in webkit [99092] by andersca@apple.com
  • 2 edits in trunk/Source/WebKit2

Use m_pluginSize instead of m_frameRectInWindowCoordinates.size() in NetscapePlugin.
https://bugs.webkit.org/show_bug.cgi?id=71390

Reviewed by Adam Roben.

m_pluginSize is always equal to m_frameRectInWindowCoordinates.size() and this moves us one
sall step further towards eliminating m_frameRectInWindowCoordinates.

  • WebProcess/Plugins/Netscape/NetscapePlugin.cpp:

(WebKit::NetscapePlugin::invalidate):
(WebKit::NetscapePlugin::snapshot):

1:12 PM Changeset in webkit [99091] by andersca@apple.com
  • 2 edits in trunk/Source/WebKit2

Fix non-Mac builds.

  • WebProcess/Plugins/Netscape/NetscapePlugin.cpp:

(WebKit::NetscapePlugin::snapshot):

1:05 PM Changeset in webkit [99090] by andersca@apple.com
  • 3 edits in trunk/Source/WebKit2

Plug-in snapshots are blurry in HiDPI
https://bugs.webkit.org/show_bug.cgi?id=71387
<rdar://problem/10385393>

Reviewed by Adam Roben.

  • WebProcess/Plugins/Netscape/NetscapePlugin.cpp:

(WebKit::NetscapePlugin::snapshot):
Create the backing store in the right size and apply the contents scale factor
to the newly created graphics context.

  • WebProcess/Plugins/PluginView.cpp:

(WebKit::PluginView::paint):
Pass the scale factor to ShareableBitmap::paint.

12:28 PM Changeset in webkit [99089] by Martin Robinson
  • 4 edits in trunk/Source/JavaScriptCore

TEXTREL in libjavascriptcoregtk-1.0.so.0.11.0 on x86 (or i586)
https://bugs.webkit.org/show_bug.cgi?id=70610

Patch by Alexey Shabalin <a.shabalin@gmail.com> on 2011-11-02
Reviewed by Martin Robinson.

Properly annotate ASM on BSD and Linux x86 systems.

  • dfg/DFGOperations.cpp: Add annotation for X86.
  • jit/JITStubs.cpp: Ditto.
  • jit/ThunkGenerators.cpp: Ditto.
12:12 PM Changeset in webkit [99088] by tony@chromium.org
  • 4 edits
    7 moves
    9 adds
    2 deletes in trunk/LayoutTests

Land chromium win/leopard baselines for printing/setPrinting.html and printing single-line-must-not-be-split-into-two-pages.html.

  • platform/chromium-cg-mac-leopard/printing/setPrinting-expected.png: Added.
  • platform/chromium-cg-mac-leopard/printing/single-line-must-not-be-split-into-two-pages-expected.png: Added.
  • platform/chromium-cg-mac-snowleopard/printing/setPrinting-expected.png: Renamed from LayoutTests/platform/chromium-cg-mac/printing/setPrinting-expected.png.
  • platform/chromium-cg-mac-snowleopard/printing/single-line-must-not-be-split-into-two-pages-expected.png: Renamed from LayoutTests/platform/chromium-cg-mac/printing/single-line-must-not-be-split-into-two-pages-expected.png.
  • platform/chromium-linux/printing/setPrinting-expected.txt: Removed.
  • platform/chromium-mac-leopard/printing/setPrinting-expected.png: Added.
  • platform/chromium-mac-leopard/printing/setPrinting-expected.txt: Added.
  • platform/chromium-mac-leopard/printing/single-line-must-not-be-split-into-two-pages-expected.png: Added.
  • platform/chromium-mac-leopard/printing/single-line-must-not-be-split-into-two-pages-expected.txt: Renamed from LayoutTests/platform/chromium-mac/printing/single-line-must-not-be-split-into-two-pages-expected.txt.
  • platform/chromium-mac-snowleopard/printing/setPrinting-expected.png: Renamed from LayoutTests/platform/chromium-mac/printing/setPrinting-expected.png.
  • platform/chromium-mac-snowleopard/printing/single-line-must-not-be-split-into-two-pages-expected.png: Renamed from LayoutTests/platform/chromium-mac/printing/single-line-must-not-be-split-into-two-pages-expected.png.
  • platform/chromium-mac/printing/setPrinting-expected.txt: Removed.
  • platform/chromium-win/printing/single-line-must-not-be-split-into-two-pages-expected.png:
  • platform/chromium-win/printing/single-line-must-not-be-split-into-two-pages-expected.txt:
  • platform/chromium/printing/setPrinting-expected.txt: Renamed from LayoutTests/platform/chromium-cg-mac/printing/setPrinting-expected.txt.
  • platform/chromium/printing/single-line-must-not-be-split-into-two-pages-expected.txt: Renamed from LayoutTests/platform/chromium-cg-mac/printing/single-line-must-not-be-split-into-two-pages-expected.txt.
  • platform/chromium/test_expectations.txt:
12:11 PM Changeset in webkit [99087] by commit-queue@webkit.org
  • 3 edits in trunk/Source/WebCore

MediaStreamRegistry should hold references to MediaStreamDescriptor rather than MediaStream
https://bugs.webkit.org/show_bug.cgi?id=70896

Patch by Tommy Widenflycht <tommyw@google.com> on 2011-11-02
Reviewed by Adam Barth.

Tests for the Media Stream API will be provided by the bug 56587, pending enough landed code.

  • mediastream/MediaStreamRegistry.cpp:

(WebCore::MediaStreamRegistry::registerMediaStreamURL):
(WebCore::MediaStreamRegistry::unregisterMediaStreamURL):
(WebCore::MediaStreamRegistry::lookupMediaStreamDescriptor):

  • mediastream/MediaStreamRegistry.h:
11:53 AM Changeset in webkit [99086] by zherczeg@webkit.org
  • 3 edits
    2 adds in trunk

Match allowed CSS string characters to Firefox and Opera browsers
https://bugs.webkit.org/show_bug.cgi?id=71000

Reviewed by Darin Adler.

Source/WebCore:

Firefox and Opera accepts any character inside a string except
newline and starting quote character. This behaviour matches to
the CSS 2.1 grammar: http://www.w3.org/TR/CSS2/grammar.html
WebKit should follow them.

Test: fast/css/parsing-css-allowed-string-characters.html

  • css/tokenizer.flex:

LayoutTests:

Add a new test case which contains various uncommon characters.

  • fast/css/parsing-css-allowed-string-characters-expected.txt: Added.
  • fast/css/parsing-css-allowed-string-characters.html: Added.
11:43 AM Changeset in webkit [99085] by commit-queue@webkit.org
  • 3 edits
    2 adds in trunk

Assert in MoveSelectionCommand::doApply
https://bugs.webkit.org/show_bug.cgi?id=70277

Patch by Devdatta Deshpande <pwjd73@motorola.com> on 2011-11-02
Reviewed by Ryosuke Niwa.

Source/WebCore:

A MoveSelectionCommand should be fired only if the selection type is
RangeSelection, since nothing is selected in other cases.

Test: fast/events/drag-link.html

  • page/DragController.cpp:

(WebCore::DragController::dragIsMove):

LayoutTests:

Test to drag-drop anchor element on an already focused editable div
element.

  • fast/events/drag-link-expected.txt: Added.
  • fast/events/drag-link.html: Added.
11:40 AM Changeset in webkit [99084] by tony@chromium.org
  • 2 edits in trunk/LayoutTests

Try to deflake http/tests/multipart/policy-ignore-crash.php by
flushing the output buffer. For some reason, the <script> in the
first frame isn't running.

  • http/tests/multipart/policy-ignore-crash.php:
11:35 AM Changeset in webkit [99083] by jonlee@apple.com
  • 28 edits in trunk/Source

<input=file multiple> default text uses singular instead of plural
https://bugs.webkit.org/show_bug.cgi?id=71319
<rdar://problem/10379021>

Reviewed by Darin Adler.

Source/WebCore:

Added a new method to return the label text for a file upload control that
allows multiple files. Needed to extend the RenderTheme function to pass down
a boolean representing whether multiple files are allowed in the file list.

  • English.lproj/Localizable.strings:
  • html/FileInputType.cpp:

(WebCore::FileInputType::defaultToolTip):

  • platform/DefaultLocalizationStrategy.cpp:

(WebCore::DefaultLocalizationStrategy::fileButtonNoFilesSelectedLabel):

  • platform/DefaultLocalizationStrategy.h:
  • platform/LocalizationStrategy.h:
  • platform/LocalizedStrings.cpp:

(WebCore::fileButtonNoFilesSelectedLabel):

  • platform/LocalizedStrings.h:
  • platform/efl/LocalizedStringsEfl.cpp:

(WebCore::fileButtonNoFilesSelectedLabel):

  • platform/gtk/LocalizedStringsGtk.cpp:

(WebCore::fileButtonNoFilesSelectedLabel):

  • platform/gtk/RenderThemeGtk.cpp:

(WebCore::RenderThemeGtk::fileListNameForWidth):

  • platform/gtk/RenderThemeGtk.h:
  • platform/qt/RenderThemeQt.cpp:

(WebCore::RenderThemeQt::fileListNameForWidth):

  • platform/qt/RenderThemeQt.h:
  • platform/wx/LocalizedStringsWx.cpp:

(WebCore::fileButtonNoFilesSelectedLabel):

  • rendering/RenderFileUploadControl.cpp:

(WebCore::RenderFileUploadControl::fileTextValue):

  • rendering/RenderTheme.cpp:

(WebCore::RenderTheme::fileListNameForWidth):

  • rendering/RenderTheme.h:
  • rendering/RenderThemeMac.h:
  • rendering/RenderThemeMac.mm:

(WebCore::RenderThemeMac::fileListNameForWidth):

Source/WebKit/chromium:

  • src/LocalizedStrings.cpp:

(WebCore::fileButtonNoFilesSelectedLabel):

Source/WebKit/qt:

  • WebCoreSupport/WebPlatformStrategies.cpp:

(WebPlatformStrategies::fileButtonNoFilesSelectedLabel):

  • WebCoreSupport/WebPlatformStrategies.h:

Source/WebKit/wince:

  • WebCoreSupport/PlatformStrategiesWinCE.cpp:

(PlatformStrategiesWinCE::fileButtonNoFilesSelectedLabel):

  • WebCoreSupport/PlatformStrategiesWinCE.h:
11:10 AM Changeset in webkit [99082] by Martin Robinson
  • 35 edits in trunk

[GTK] Visited links of a page group should be removed when clearing back/forward list
https://bugs.webkit.org/show_bug.cgi?id=71052

Patch by Zan Dobersek <zandobersek@gmail.com> on 2011-11-02
Reviewed by Martin Robinson.

Source/WebKit/gtk:

When clearing back-forward list, also remove the visited links from page's page group.

  • webkit/webkitwebbackforwardlist.cpp:

(webkit_web_back_forward_list_clear):

LayoutTests:

Rebaseline Gtk-related expectations now that links to previously loaded tests do not
appear as visited after enhancing the clearing of back-forward list that is done after
each test.

  • platform/gtk/fast/block/margin-collapse/010-expected.txt:
  • platform/gtk/fast/block/margin-collapse/011-expected.txt:
  • platform/gtk/fast/block/margin-collapse/012-expected.txt:
  • platform/gtk/fast/block/margin-collapse/015-expected.txt:
  • platform/gtk/fast/block/margin-collapse/016-expected.txt:
  • platform/gtk/fast/block/margin-collapse/020-expected.txt:
  • platform/gtk/fast/block/margin-collapse/056-expected.txt:
  • platform/gtk/fast/block/margin-collapse/059-expected.txt:
  • platform/gtk/fast/block/margin-collapse/block-inside-inline/010-expected.txt:
  • platform/gtk/fast/block/margin-collapse/block-inside-inline/011-expected.txt:
  • platform/gtk/fast/block/margin-collapse/block-inside-inline/012-expected.txt:
  • platform/gtk/fast/block/margin-collapse/block-inside-inline/015-expected.txt:
  • platform/gtk/fast/block/margin-collapse/block-inside-inline/016-expected.txt:
  • platform/gtk/fast/block/margin-collapse/block-inside-inline/020-expected.txt:
  • platform/gtk/tables/mozilla/marvin/backgr_layers-opacity-expected.txt:
  • platform/gtk/tables/mozilla/marvin/backgr_position-table-expected.txt:
  • platform/gtk/tables/mozilla/marvin/backgr_simple-table-cell-expected.txt:
  • platform/gtk/tables/mozilla/marvin/backgr_simple-table-column-expected.txt:
  • platform/gtk/tables/mozilla/marvin/backgr_simple-table-column-group-expected.txt:
  • platform/gtk/tables/mozilla/marvin/backgr_simple-table-expected.txt:
  • platform/gtk/tables/mozilla/marvin/backgr_simple-table-row-expected.txt:
  • platform/gtk/tables/mozilla/marvin/backgr_simple-table-row-group-expected.txt:
  • platform/gtk/tables/mozilla_expected_failures/marvin/backgr_border-table-column-expected.txt:
  • platform/gtk/tables/mozilla_expected_failures/marvin/backgr_border-table-expected.txt:
  • platform/gtk/tables/mozilla_expected_failures/marvin/backgr_border-table-row-expected.txt:
  • platform/gtk/tables/mozilla_expected_failures/marvin/backgr_border-table-row-group-expected.txt:
  • platform/gtk/tables/mozilla_expected_failures/marvin/backgr_layers-hide-expected.txt:
  • platform/gtk/tables/mozilla_expected_failures/marvin/backgr_layers-show-expected.txt:
  • platform/gtk/tables/mozilla_expected_failures/marvin/backgr_position-table-cell-expected.txt:
  • platform/gtk/tables/mozilla_expected_failures/marvin/backgr_position-table-column-expected.txt:
  • platform/gtk/tables/mozilla_expected_failures/marvin/backgr_position-table-row-expected.txt:
  • platform/gtk/tables/mozilla_expected_failures/marvin/backgr_position-table-row-group-expected.txt:
11:09 AM Changeset in webkit [99081] by Simon Hausmann
  • 4 edits in trunk

[Qt] REGRESSION: 5 editing tests fail
https://bugs.webkit.org/show_bug.cgi?id=71117

Reviewed by Andreas Kling.

Tools:

Make sure that the view is properly focused, in order to get the
didBeginEditing DRT calls.

This requires activating the window (the call will result in a FocusIn
event to the window as well as setting QGuiApplication::focusWindow())
as well as enabling the focus on the view item. The signature of
setFocus has changed to take a boolean.

  • WebKitTestRunner/qt/PlatformWebViewQt.cpp:

(WTR::WrapperWindow::handleStatusChanged):

LayoutTests:

  • platform/qt-5.0/Skipped: Unskip tests that now pass.
11:07 AM Changeset in webkit [99080] by caseq@chromium.org
  • 2 edits in trunk/LayoutTests

Unreviewed. Brought back suppressions for setPrinting.html and printing/single-line-must-not-be-split-into-two-pages.html for
Win and 10.5.

  • platform/chromium/test_expectations.txt:
10:54 AM Changeset in webkit [99079] by abecsi@webkit.org
  • 2 edits in trunk/Source/WebCore

[Qt] Fix the build with NO_LISTBOX_RENDERING

Unreviewed build fix after r99035.

Patch by Michael Bruning <michael.bruning@nokia.com>

No new tests needed.

  • html/HTMLSelectElement.cpp:

(WebCore::HTMLSelectElement::listBoxSelectItem):

10:52 AM Changeset in webkit [99078] by tony@chromium.org
  • 2 edits in trunk/LayoutTests

Cleanup chromium test_expectations.txt.

  • platform/chromium/test_expectations.txt: Remove stale commented out lines.

Mark fast/frames/calculate-fixed.html as slow for mac debug (based on flakiness dashboard).

10:49 AM Changeset in webkit [99077] by caio.oliveira@openbossa.org
  • 17 edits
    2 adds in trunk/Source/WebKit2

[Qt] Implement message exchange between WebView and the web page
https://bugs.webkit.org/show_bug.cgi?id=70545

Reviewed by Noam Rosenthal.

Adds a mechanism for the WebView to send messages to the JavaScript environment
of the web page. In the WebView we have a method postMessage() and a signal
messageReceived(), while in the web page we expose a navigator.qt object with a
postMessage() method and a onmessage property. The messages are objects that
follow the same structure as MessageEvents.

The feature is disabled by default, and can be enabled by setting
QWebPreferences::navigatorQtObjectEnabled property to true. Changes take effect
after the next load(). QML tests are included.

  • UIProcess/qt/ClientImpl.h:
  • UIProcess/qt/ClientImpl.cpp:

(setupContextInjectedBundleClient): Helper to register the injected bundle client.
(qt_wk_didReceiveMessageFromInjectedBundle): Decode and dispatch a message received
from the WebProcess to the WebPageProxy.

  • UIProcess/PageClient.h:

(WebKit::PageClient::didReceiveMessageFromNavigatorQtObject):

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::didReceiveMessageFromNavigatorQtObject):

  • UIProcess/WebPageProxy.h:

Handle messages received from the navigator.qt object via the injected bundle. Called
from the ClientImpl.

  • UIProcess/API/qt/qbasewebview.cpp:

(QBaseWebView::postMessage):
(QBaseWebViewPrivate::setPageProxy):

  • UIProcess/API/qt/qbasewebview.h:
  • UIProcess/API/qt/qwebpreferences.cpp:

(QWebPreferences::navigatorQtObjectEnabled):
(QWebPreferences::setNavigatorQtObjectEnabled):

  • UIProcess/API/qt/qwebpreferences.h:

The signal, slot and the setting to enable the feature.

  • UIProcess/qt/QtWebPageProxy.cpp:

(QtWebPageProxy::defaultWKContext): setup the injected bundle client for this the
default context so we can listen to messages from it.

(QtWebPageProxy::QtWebPageProxy):
(QtWebPageProxy::didReceiveMessageFromNavigatorQtObject):
(QtWebPageProxy::setNavigatorQtObjectEnabled):
(QtWebPageProxy::postMessageToNavigatorQtObject):

  • UIProcess/qt/QtWebPageProxy.h:

(QtWebPageProxy::navigatorQtObjectEnabled):
Enabling and sending messages to the navigator.qt object are done by sending messages to
the injected bundle, identifying the page that we want to act on.

  • UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_messaging.qml: Added.
  • UIProcess/API/qt/tests/qmltests/common/messaging.html: Added.
  • UIProcess/API/qt/tests/qmltests/qmltests.pro:
  • WebProcess/qt/QtBuiltinBundle.cpp:

(WebKit::QtBuiltinBundle::initialize):
(WebKit::QtBuiltinBundle::didReceiveMessage):
(WebKit::QtBuiltinBundle::handleMessageToNavigatorQtObject):
(WebKit::QtBuiltinBundle::handleSetNavigatorQtObjectEnabled):

  • WebProcess/qt/QtBuiltinBundle.h:
  • WebProcess/qt/QtBuiltinBundlePage.cpp:

(WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage):
(WebKit::QtBuiltinBundlePage::~QtBuiltinBundlePage):
(WebKit::QtBuiltinBundlePage::didClearWindowForFrame):
(WebKit::qt_postMessageCallback):
(WebKit::QtBuiltinBundlePage::postMessageFromNavigatorQtObject):
(WebKit::createWrappedMessage):
(WebKit::QtBuiltinBundlePage::didReceiveMessageToNavigatorQtObject):
(WebKit::QtBuiltinBundlePage::setNavigatorQtObjectEnabled):
(WebKit::QtBuiltinBundlePage::registerNavigatorQtObject):
(WebKit::QtBuiltinBundlePage::navigatorQtObjectClass):

  • WebProcess/qt/QtBuiltinBundlePage.h:

(WebKit::QtBuiltinBundlePage::navigatorQtObjectEnabled):

10:12 AM Changeset in webkit [99076] by rniwa@webkit.org
  • 3 edits
    2 adds in trunk

div { display: none; } makes pasting into text fields impossible
https://bugs.webkit.org/show_bug.cgi?id=27683

Reviewed by Enrica Casucci.

Source/WebCore:

The bug was caused by insertFragmentForTestRendering's always inserting a node for test rendering
into document's body.

Fixed the bug by inserting the node for test rendering into the root editable element. In addition,
remove the node before dispatching beforeTextInserted event to avoid event listeners, in particular
TextFieldInputType::handleBeforeTextInsertedEvent, from seeing the test node.

Test: editing/pasteboard/input-with-display-none-div.html

  • editing/ReplaceSelectionCommand.cpp:

(WebCore::ReplacementFragment::ReplacementFragment):
(WebCore::ReplacementFragment::insertFragmentForTestRendering):
(WebCore::ReplacementFragment::restoreAndRemoveTestRenderingNodesToFragment):

LayoutTests:

Add a test to insert contents into an input element inside a page
with div { display: none; }

  • editing/pasteboard/input-with-display-none-div-expected.txt: Added.
  • editing/pasteboard/input-with-display-none-div.html: Added.
9:59 AM Changeset in webkit [99075] by tony@chromium.org
  • 2 edits
    1 move
    6 adds
    2 deletes in trunk/LayoutTests

Add chromium test results for fast/reflections/reflection-masks-outset.html

  • fast/reflections/reflection-masks-outset-expected.txt: Renamed from LayoutTests/platform/gtk/fast/reflections/reflection-masks-outset-expected.txt.
  • platform/chromium-cg-mac-leopard/fast/reflections/reflection-masks-outset-expected.png: Added.
  • platform/chromium-mac-leopard/fast/reflections/reflection-masks-outset-expected.png: Added.
  • platform/chromium-mac-snowleopard/fast/reflections/reflection-masks-outset-expected.png: Added.
  • platform/chromium-win/fast/reflections/reflection-masks-outset-expected.png: Added.
  • platform/chromium/test_expectations.txt:
  • platform/mac/fast/reflections/reflection-masks-outset-expected.txt: Removed.
  • platform/qt/fast/reflections/reflection-masks-outset-expected.txt: Removed.
9:48 AM Changeset in webkit [99074] by cevans@google.com
  • 1 edit in branches/chromium/912/Source/WebCore/css/CSSParser.cpp

Merge 98374
BUG=101010
Review URL: http://codereview.chromium.org/8386038

9:46 AM Changeset in webkit [99073] by jocelyn.turcotte@nokia.com
  • 8 edits in trunk/Source/WebKit2

[Qt] Fix qmltest API test failures related to r98973.
https://bugs.webkit.org/show_bug.cgi?id=71280

Reviewed by Noam Rosenthal.

Most of the API was moved from TouchWebView.page to TouchWebView directly.
Fixed the qml tests to reflect this change.

  • UIProcess/API/qt/tests/qmltests/TouchWebView/tst_load.qml:
  • UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadFail.qml:
  • UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadNegativeSizeView.qml:
  • UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadProgress.qml:
  • UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadProgressSignal.qml:
  • UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadZeroSizeView.qml:
  • UIProcess/API/qt/tests/qmltests/TouchWebView/tst_properties.qml:
9:45 AM Changeset in webkit [99072] by commit-queue@webkit.org
  • 2 edits in trunk/Source/JavaScriptCore

Missing Force8BitConstructor in 8-bit version of StringImpl::reallocate()
https://bugs.webkit.org/show_bug.cgi?id=71347

Patch by Xianzhu Wang <wangxianzhu@chromium.org> on 2011-11-02
Reviewed by Geoffrey Garen.

  • wtf/text/StringImpl.cpp:

(WTF::StringImpl::reallocate):

9:44 AM Changeset in webkit [99071] by commit-queue@webkit.org
  • 2 edits in trunk/Source/WebKit/qt

[Qt] Failing test media/video-document-types.html
https://bugs.webkit.org/show_bug.cgi?id=62108

Patch by Deepak Sherveghar <bpwv64@motorola.com> on 2011-11-02
Reviewed by Simon Hausmann.

Match what Mac has been doing since r36001: cancel the main load,
and handle failures caused by 'will be handled by plugin' errors.

  • WebCoreSupport/FrameLoaderClientQt.cpp:

(WebCore::FrameLoaderClientQt::committedLoad):
(WebCore::FrameLoaderClientQt::shouldFallBack):

9:40 AM Changeset in webkit [99070] by commit-queue@webkit.org
  • 5 edits in trunk/Tools

[chromium] Add per-script font preferences support in overridePreference
https://bugs.webkit.org/show_bug.cgi?id=71110

This allows a layout test to do something like:

Set standard font for Arabic to Ahem.
overridePreference("WebKitStandardFontMap", [ "Arab", "Ahem" ]);

This should make writing a layout test for per-script fonts easier.

This change only affects the Chromium DumpRenderTree, but the other
platforms should probably also have a similar change eventually.

Patch by Matt Falkenhagen <falken@chromium.org> on 2011-11-02
Reviewed by Tony Chang.

  • DumpRenderTree/chromium/LayoutTestController.cpp: add per-script

font preferences to overridePreference
(LayoutTestController::cppVariantToWebStringArray):
(setFontMap):
(LayoutTestController::overridePreference):

  • DumpRenderTree/chromium/LayoutTestController.h:
  • DumpRenderTree/chromium/WebPreferences.cpp:

(setStandardFontFamilyWrapper):
(setFixedFontFamilyWrapper):
(setSerifFontFamilyWrapper):
(setSansSerifFontFamilyWrapper):
(setCursiveFontFamilyWrapper):
(setFantasyFontFamilyWrapper):
(applyFontMap):
(WebPreferences::applyTo):

  • DumpRenderTree/chromium/WebPreferences.h: add per-script font

preference members
(WebPreferences::UScriptCodeHashTraits::emptyValue):
(WebPreferences::UScriptCodeHashTraits::constructDeletedValue):
(WebPreferences::UScriptCodeHashTraits::isDeletedValue):

9:40 AM Changeset in webkit [99069] by rniwa@webkit.org
  • 2 edits in trunk/LayoutTests

Fix a typo in the expected result added by r98989.

  • platform/mac/svg/filters/invalidate-on-child-layout-expected.txt:
9:27 AM Changeset in webkit [99068] by commit-queue@webkit.org
  • 4 edits in trunk/Tools

until use_skia=1 by default on mac, default port should be chromium-cg-mac
https://bugs.webkit.org/show_bug.cgi?id=71312

Patch by Elliot Poger <epoger@google.com> on 2011-11-02
Reviewed by Adam Barth.

  • Scripts/webkitpy/layout_tests/port/chromium_gpu.py:
  • Scripts/webkitpy/layout_tests/port/chromium_mac.py:
  • Scripts/webkitpy/layout_tests/port/chromium_mac_unittest.py:
9:22 AM Changeset in webkit [99067] by rniwa@webkit.org
  • 3 edits
    4 adds in trunk

REGRESSION(r96870): WebKit generates background: transparent on blogger.com
https://bugs.webkit.org/show_bug.cgi?id=71203

Reviewed by Ojan Vafai.

Source/WebCore:

Remove the transparent background color from inline style declarations in the pasted content.
Also fixed a bug in removeStyleFromRulesAndContext that it removes properties in inline style
declarations even if those properties were overridden.

Tests: editing/deleting/merge-paragraphs-with-transparent-background.html

editing/deleting/paste-with-transparent-background-color.html

  • editing/EditingStyle.cpp:

(WebCore::removePropertiesInStyle):
(WebCore::EditingStyle::removeStyleFromRulesAndContext):
(WebCore::EditingStyle::removePropertiesInElementDefaultStyle):

LayoutTests:

Added a test to merge paragraphs inside a document with background: transparent, and a test to
cut and paste contents with background: transparent, which is overriding a style rule background: blue.

WebKit should preserve the appearance of the pasted content but should not add a redundant
background: transparent.

  • editing/deleting/merge-paragraphs-with-transparent-background-expected.txt: Added.
  • editing/deleting/merge-paragraphs-with-transparent-background.html: Added.
  • editing/deleting/paste-with-transparent-background-color-expected.txt: Added.
  • editing/deleting/paste-with-transparent-background-color.html: Added.
9:14 AM Changeset in webkit [99066] by commit-queue@webkit.org
  • 4 edits
    4 adds in trunk

printing layout test failures after r98634
https://bugs.webkit.org/show_bug.cgi?id=71080

Tools:

Patch by Stephen Chenney <schenney@chromium.org> on 2011-11-02
Reviewed by Kent Tamura

  • DumpRenderTree/chromium/WebViewHost.cpp:

(WebViewHost::paintPagesWithBoundaries): Added transforms invert the CG Bitmap so the coord system
matches that for Skia.

LayoutTests:

Added CG specific expected results.

Patch by Stephen Chenney <schenney@chromium.org> on 2011-11-02
Reviewed by Kent Tamura

  • platform/chromium-cg-mac/printing/setPrinting-expected.png: Added.
  • platform/chromium-cg-mac/printing/setPrinting-expected.txt: Added.
  • platform/chromium-cg-mac/printing/single-line-must-not-be-split-into-two-pages-expected.png: Added.
  • platform/chromium-cg-mac/printing/single-line-must-not-be-split-into-two-pages-expected.txt: Added.
  • platform/chromium/test_expectations.txt: Removed expectation of failure.
9:14 AM Changeset in webkit [99065] by kenneth@webkit.org
  • 5 edits in trunk/Source/WebKit2

[Qt] Handle interruption of page interaction better
https://bugs.webkit.org/show_bug.cgi?id=71366

Reviewed by Simon Hausmann.

Touching the screen when a kinetic scrolling animation is running or
it is bouncing back because it was out of bounds, the animation is
immediately stopped and the content is immediately put into valid
bounds.

Touching the screen when the contents is bouncing back from a pinch
zoom which was out of bounds, we do not stop the animation, but
instead ignored the touch events while the animation lasts.

In the future we want to queue the events instead.

This also fixes some issues which was present before: As the bounce
back animation from pinch zoom centers the content using the contents
point which was in the center of the viewport, this animation could
not be used when stopping a pan animation, as it wouldn't position the
content at the place it was when the pan animation was interrupted.

  • UIProcess/qt/QtPanGestureRecognizer.cpp:

(WebKit::QtPanGestureRecognizer::recognize):

  • UIProcess/qt/QtPinchGestureRecognizer.cpp:

(WebKit::QtPinchGestureRecognizer::recognize):

  • UIProcess/qt/QtViewportInteractionEngine.cpp:

(WebKit::QtViewportInteractionEngine::animateContentIntoBoundariesIfNeeded):
(WebKit::QtViewportInteractionEngine::reset):
(WebKit::QtViewportInteractionEngine::setConstraints):
(WebKit::QtViewportInteractionEngine::panAnimationActive):
(WebKit::QtViewportInteractionEngine::panGestureStarted):
(WebKit::QtViewportInteractionEngine::panGestureCancelled):
(WebKit::QtViewportInteractionEngine::pinchAnimationActive):

  • UIProcess/qt/QtViewportInteractionEngine.h:
9:11 AM Changeset in webkit [99064] by weinig@apple.com
  • 2 edits in trunk/Tools

Can't complete ChangeLog when using resolve-Changelogs and webkit-tools-completion.sh
https://bugs.webkit.org/show_bug.cgi?id=71346

Reviewed by Dan Bernstein.

  • Scripts/webkit-tools-completion.sh:

Add "-o default" which allows for completing files in addition to the word list.

8:45 AM Changeset in webkit [99063] by commit-queue@webkit.org
  • 5 edits in trunk/Source/WebCore

CSSStyleRule: Devirtualize selectorText()
https://bugs.webkit.org/show_bug.cgi?id=71364

Patch by Andreas Kling <kling@webkit.org> on 2011-11-02
Reviewed by Antti Koivisto.

Have CSSStyleRule::selectorText() redirect to CSSPageRule::pageSelectorText()
if type() is PAGE_RULE.

  • css/CSSPageRule.cpp:

(WebCore::CSSPageRule::pageSelectorText):

  • css/CSSPageRule.h:
  • css/CSSStyleRule.cpp:

(WebCore::CSSStyleRule::selectorText):

  • css/CSSStyleRule.h:
8:11 AM Changeset in webkit [99062] by sergio@webkit.org
  • 2 edits in trunk/LayoutTests

[WK2][GTK] Skipped file cleanup
https://bugs.webkit.org/show_bug.cgi?id=71356

Added a couple of bug URLs. Moved bugs around to their proper sections.

  • platform/gtk-wk2/Skipped:
8:07 AM Changeset in webkit [99061] by commit-queue@webkit.org
  • 2 edits in trunk/LayoutTests

[WK2] [GTK] WebKitWebProcess asserts in ASSERT(m_state != CLOSED)
https://bugs.webkit.org/show_bug.cgi?id=69513

Unskip passing tests.

Patch by Kaustubh Atrawalkar <Kaustubh Atrawalkar> on 2011-11-02
Reviewed by Philippe Normand.

  • platform/gtk-wk2/Skipped:
8:05 AM Changeset in webkit [99060] by caseq@chromium.org
  • 2 edits in trunk/LayoutTests

Unreviewed. Bring back some suppressions for media/media-document-audio-repaint.html.

  • platform/chromium/test_expectations.txt:
8:02 AM Changeset in webkit [99059] by commit-queue@webkit.org
  • 11 edits in trunk/Source/WebCore

CSSRule: Devirtualize cssText()
https://bugs.webkit.org/show_bug.cgi?id=71292

Patch by Andreas Kling <kling@webkit.org> on 2011-11-02
Reviewed by Antti Koivisto.

Have CSSRule::cssText() redirect to the appropriate subclass based on type().
This is one of the last steps of devirtualizing CSSRule completely, which will
allow us to get rid of its vtable, and each instance's pointer thereto.

  • css/CSSCharsetRule.h:
  • css/CSSFontFaceRule.h:
  • css/CSSImportRule.h:
  • css/CSSMediaRule.h:
  • css/CSSRegionStyleRule.h:
  • css/CSSRule.cpp:

(WebCore::CSSRule::cssText):

  • css/CSSRule.h:
  • css/CSSStyleRule.h:
  • css/WebKitCSSKeyframeRule.h:
  • css/WebKitCSSKeyframesRule.h:
7:24 AM Changeset in webkit [99058] by commit-queue@webkit.org
  • 9 edits in trunk/Source/WebKit2

[Qt][WK2] Move content to resize (setResizesToContentsUsingLayoutSize) from UI process to Web process
https://bugs.webkit.org/show_bug.cgi?id=71107

Patch by Zalan Bujtas <zbujtas@gmail.com> on 2011-11-02
Reviewed by Kenneth Rohde Christiansen.

Reduce the number of IPC calls to WebProcess by moving the content to resize
calls from UI process to Web process.

  • UIProcess/API/qt/qtouchwebview.cpp:

(QTouchWebViewPrivate::updateViewportSize):
(QTouchWebViewPrivate::updateViewportConstraints):
(QTouchWebView::geometryChanged):

  • UIProcess/API/qt/qtouchwebview_p.h:
  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::setViewportSize):
(WebKit::WebPageProxy::preferencesDidChange):

  • UIProcess/WebPageProxy.h:
  • UIProcess/qt/QtTouchWebPageProxy.cpp:
  • UIProcess/qt/QtTouchWebPageProxy.h:
  • WebProcess/WebCoreSupport/WebChromeClient.cpp:

(WebKit::WebChromeClient::dispatchViewportPropertiesDidChange):

  • WebProcess/WebPage/WebPage.messages.in:
7:21 AM Changeset in webkit [99057] by caryclark@google.com
  • 217 edits
    408 adds in trunk/LayoutTests

Unreviewed gardening: 7th chunk of baselines for Chromium-Skia
on Leopard.

[Omitting 616 of 624 files for brevity.]

  • platform/chromium-mac-leopard/animations: Added.
  • platform/chromium-mac-leopard/animations/state-at-end-event-expected.png: Added.
  • platform/chromium-mac-leopard/css1/basic/contextual_selectors-expected.png:
  • platform/chromium-mac-leopard/css1/basic/inheritance-expected.png:
  • platform/chromium-mac-leopard/css1/box_properties/float_elements_in_series-expected.png:

...

  • platform/chromium-mac-leopard/svg/W3C-SVG-1.1/text-tselect-02-f-expected.png:
  • platform/chromium-mac-leopard/svg/W3C-SVG-1.1/text-tspan-01-b-expected.png:
  • platform/chromium-mac-leopard/svg/W3C-SVG-1.1/types-basicDOM-01-b-expected.png: Added.
7:12 AM Changeset in webkit [99056] by Patrick Gansterer
  • 2 edits in trunk/Source/WebCore

Unreviewed build fix for !ENABLE(FILTERS) after r98989.

  • rendering/svg/SVGResourcesCache.cpp:

(WebCore::SVGResourcesCache::clientLayoutChanged):

7:00 AM Changeset in webkit [99055] by apavlov@chromium.org
  • 2 edits in trunk/Source/WebCore

Web Inspector: [REGRESSION] Clicking in a CSS property/value being edited commits the editor
https://bugs.webkit.org/show_bug.cgi?id=71360

Reviewed by Pavel Feldman.

Selecting a selected TreeElement should be an idempotent operation.

  • inspector/front-end/treeoutline.js:

(TreeElement.prototype.select):

5:56 AM Changeset in webkit [99054] by Simon Hausmann
  • 2 edits in trunk/Source/WebKit2

[Qt][WK2]: Shouldn't send unhandled TouchCancel event to gesture recognizers
https://bugs.webkit.org/show_bug.cgi?id=70333

Patch by Dinu Jacob <dinu.jacob@nokia.com> on 2011-10-18
Reviewed by Simon Hausmann.

Gesture recognizers should be reset for unhandled TouchCancel event.

  • UIProcess/qt/qtouchwebpageproxy.cpp:

(QTouchWebPageProxy::doneWithTouchEvent):

4:34 AM Changeset in webkit [99053] by caseq@chromium.org
  • 3 edits
    3 moves
    2 adds
    1 delete in trunk/LayoutTests

Unreviewed. Another rebaseline of media/media-document-audio-repaint.html

  • platform/chromium-cg-mac-snowleopard/media/media-document-audio-repaint-expected.png: Renamed from LayoutTests/platform/chromium-cg-mac/media/media-document-audio-repaint-expected.png.
  • platform/chromium-gpu-win/media/media-document-audio-repaint-expected.txt:
  • platform/chromium-gpu/media/media-document-audio-repaint-expected.txt: Added.
  • platform/chromium-mac-snowleopard/media/media-document-audio-repaint-expected.png: Renamed from LayoutTests/platform/chromium-mac/media/media-document-audio-repaint-expected.png.
  • platform/chromium-mac/media/media-document-audio-repaint-expected.txt: Removed.
  • platform/chromium/media/media-document-audio-repaint-expected.txt: Renamed from LayoutTests/platform/chromium-cg-mac/media/media-document-audio-repaint-expected.txt.
  • platform/chromium/test_expectations.txt:
3:48 AM Changeset in webkit [99052] by caseq@chromium.org
  • 2 edits in trunk/Source/WebKit/chromium

Unreviewed fix for build failure on chromium shared linux caused by r99020.

  • WebKit.gyp:
2:57 AM Changeset in webkit [99051] by Simon Hausmann
  • 19 edits in trunk

[Qt][WK2] Add support for touch event testing to WebKitTestRunner
https://bugs.webkit.org/show_bug.cgi?id=71310

Reviewed by Kenneth Rohde Christiansen.

Source/WebKit2:

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::handleTouchEvent): Add support for m_shouldSendEventsSynchronously.

  • UIProcess/qt/QtDesktopWebPageProxy.cpp:

(QtDesktopWebPageProxy::handleEvent): Handle plain touch events in the desktop page proxy by
forwarding them appropriately. We will receive them from WTR through ::event, but we won't
receive them from QQuickCanvas (i.e. the user) because that doesn't uses ::event but only
dedicated fooEvent() handlers, of which we don't re-implement the touch version.
(QtDesktopWebPageProxy::handleTouchEvent): Forward touch events to WebPageProxy.

  • UIProcess/qt/QtDesktopWebPageProxy.h:
  • WebProcess/WebPage/WebPage.cpp:

(WebKit::WebPage::touchEventSyncForTesting): Add support for synchronous touch event testing,
similar to the way it's done for mouse events.

  • WebProcess/WebPage/WebPage.h: Ditto.
  • WebProcess/WebPage/WebPage.messages.in: Ditto.

Tools:

  • WebKitTestRunner/DerivedSources.pro: Build system foo to ensure the ENABLE_TOUCH_EVENTS

define works in EventSendingController.idl

  • WebKitTestRunner/EventSenderProxy.h: Add declarations for Qt implementations of touch

handlers.

  • WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl: Add touch functions

required by tests.

  • WebKitTestRunner/InjectedBundle/EventSendingController.cpp: Forward touch messages to the

ui process.
(WTR::EventSendingController::addTouchPoint):
(WTR::EventSendingController::updateTouchPoint):
(WTR::EventSendingController::setTouchModifier):
(WTR::EventSendingController::touchStart):
(WTR::EventSendingController::touchMove):
(WTR::EventSendingController::touchEnd):
(WTR::EventSendingController::clearTouchPoints):
(WTR::EventSendingController::releaseTouchPoint):

  • WebKitTestRunner/InjectedBundle/EventSendingController.h:
  • WebKitTestRunner/InjectedBundle/qt/InjectedBundle.pro: Include features.pri for feature

defines.

  • WebKitTestRunner/TestController.cpp:

(WTR::TestController::didReceiveSynchronousMessageFromInjectedBundle): Forward incoming
touch messages to the EventSenderProxy.

  • WebKitTestRunner/qt/EventSenderProxyQt.cpp: Implement touch test harness functions.

(WTR::EventSenderProxy::EventSenderProxy):
(WTR::EventSenderProxy::addTouchPoint):
(WTR::EventSenderProxy::updateTouchPoint):
(WTR::EventSenderProxy::setTouchModifier):
(WTR::EventSenderProxy::touchStart):
(WTR::EventSenderProxy::touchMove):
(WTR::EventSenderProxy::touchEnd):
(WTR::EventSenderProxy::clearTouchPoints):
(WTR::EventSenderProxy::releaseTouchPoint):
(WTR::EventSenderProxy::sendTouchEvent):

  • WebKitTestRunner/qt/WebKitTestRunner.pro: Include features.pri for feature defines.

LayoutTests:

  • platform/qt-wk2/Skipped: Unskip touch tests that are passing now.
2:36 AM Changeset in webkit [99050] by Philippe Normand
  • 1 edit
    33 adds in trunk/LayoutTests

Unreviewed, GTK baselines for new tests.

  • platform/gtk/css2.1/20110323/background-intrinsic-001-expected.txt: Added.
  • platform/gtk/css2.1/20110323/background-intrinsic-002-expected.txt: Added.
  • platform/gtk/css2.1/20110323/background-intrinsic-003-expected.txt: Added.
  • platform/gtk/css2.1/20110323/background-intrinsic-004-expected.txt: Added.
  • platform/gtk/css2.1/20110323/background-intrinsic-005-expected.txt: Added.
  • platform/gtk/css2.1/20110323/background-intrinsic-006-expected.txt: Added.
  • platform/gtk/css2.1/20110323/background-intrinsic-007-expected.txt: Added.
  • platform/gtk/css2.1/20110323/background-intrinsic-008-expected.txt: Added.
  • platform/gtk/css2.1/20110323/background-intrinsic-009-expected.txt: Added.
  • platform/gtk/fast/backgrounds/size/contain-and-cover-zoomed-expected.txt: Added.
  • platform/gtk/fast/borders/border-radius-complex-inner-expected.txt: Added.
  • platform/gtk/fast/css/child-style-can-override-visited-style-expected.txt: Added.
  • platform/gtk/fast/multicol/block-axis-horizontal-bt-expected.txt: Added.
  • platform/gtk/fast/multicol/block-axis-horizontal-tb-expected.txt: Added.
  • platform/gtk/fast/multicol/block-axis-vertical-lr-expected.txt: Added.
  • platform/gtk/fast/multicol/block-axis-vertical-rl-expected.txt: Added.
  • platform/gtk/svg/as-background-image/background-image-preserveaspectRatio-support-expected.txt: Added.
  • platform/gtk/svg/as-background-image/background-image-tiled-expected.txt: Added.
  • platform/gtk/svg/as-background-image/same-image-two-instances-background-image-expected.txt: Added.
  • platform/gtk/svg/as-image/img-preserveAspectRatio-support-1-expected.txt: Added.
  • platform/gtk/svg/as-image/same-image-two-instances-expected.txt: Added.
  • platform/gtk/svg/as-image/svg-as-relative-image-with-explicit-size-expected.txt: Added.
  • platform/gtk/svg/as-image/svg-image-change-content-size-expected.txt: Added.
  • platform/gtk/svg/as-object/svg-embedded-in-html-in-iframe-expected.txt: Added.
  • platform/gtk/svg/filters/feColorMatrix-default-type-expected.txt: Added.
  • platform/gtk/svg/filters/invalidate-on-child-layout-expected.txt: Added.
  • platform/gtk/svg/zoom/page/zoom-background-image-tiled-expected.txt: Added.
  • platform/gtk/svg/zoom/page/zoom-background-images-expected.txt: Added.
  • platform/gtk/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.txt: Added.
  • platform/gtk/svg/zoom/page/zoom-svg-as-background-with-relative-size-and-viewBox-expected.txt: Added.
  • platform/gtk/svg/zoom/page/zoom-svg-as-background-with-relative-size-expected.txt: Added.
  • platform/gtk/svg/zoom/page/zoom-svg-as-image-expected.txt: Added.
  • platform/gtk/svg/zoom/page/zoom-svg-as-relative-image-expected.txt: Added.
2:31 AM Changeset in webkit [99049] by Simon Hausmann
  • 4 edits in trunk/Source/WebKit2

[WK2] Remove unused/duplicated modifiers member from WebTouchEvent
https://bugs.webkit.org/show_bug.cgi?id=71353

Reviewed by Kenneth Rohde Christiansen.

WebTouchEvent::m_[ctrl,alt,meta,shift]Key are redundant compared to
WebEvent::m_modifiers. The latter is fully populated and used, the former
can be safely removed.

  • Shared/WebEvent.h:
  • Shared/WebTouchEvent.cpp:

(WebKit::WebTouchEvent::WebTouchEvent):

  • Shared/qt/WebEventFactoryQt.cpp:

(WebKit::WebEventFactory::createWebTouchEvent):

2:09 AM Changeset in webkit [99048] by rgabor@webkit.org
  • 2 edits in trunk/LayoutTests

[Qt] Unreviewed gardening. Unskip the Qt mobility tests because they are working now.

  • platform/qt-arm/Skipped:
2:00 AM Changeset in webkit [99047] by Philippe Normand
  • 7 edits
    2 adds in trunk/LayoutTests

Unreviewed, GTK rebaseline after r98852 and r99027.

  • platform/gtk/css1/text_properties/vertical_align-expected.txt:
  • platform/gtk/fast/block/float/015-expected.txt:
  • platform/gtk/fast/block/positioning/replaced-inside-fixed-top-bottom-expected.txt: Added.
  • platform/gtk/fast/dom/Window/window-properties-expected.txt:
  • platform/gtk/fast/repaint/block-layout-inline-children-replaced-expected.txt:
  • platform/gtk/svg/zoom/page/relative-sized-document-scrollbars-expected.txt: Added.
  • platform/gtk/svg/zoom/page/zoom-foreignObject-expected.txt:
  • platform/gtk/tables/mozilla_expected_failures/bugs/bug14007-2-expected.txt:
1:43 AM Changeset in webkit [99046] by ryuan.choi@samsung.com
  • 4 edits in trunk/Source/WebKit/efl

[EFL] Fix build break when DEBUG_MEM_LEAKS is enabled.
https://bugs.webkit.org/show_bug.cgi?id=71349

Unreviewed build fix.

  • ewk/ewk_tiled_backing_store.cpp:

(_ewk_tiled_backing_store_smart_del): remove wrong assignment

  • ewk/ewk_tiled_matrix.cpp: define STDC_FORMAT_MACROS to use PRIu64

(ewk_tile_matrix_free): s/tileMatrixm/tileMatrix
(ewk_tile_matrix_dbg): s/tm/tileMatrix

  • ewk/ewk_tiled_model.cpp: define STDC_FORMAT_MACROS to use PRIu64

(_ewk_tile_account_get): remove REALLOC_OR_OOM_RET

1:24 AM Changeset in webkit [99045] by Philippe Normand
  • 2 edits in trunk/Source/WebKit2

Unreviewed, skip testWebKitSettingsNewWithSettings affected by bug
70127.

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

(testWebKitSettingsNewWithSettings):

12:57 AM Changeset in webkit [99044] by Csaba Osztrogonác
  • 2 edits
    28 adds in trunk/LayoutTests

[Qt] Unreviewed gardening after r98852.

  • platform/qt-5.0/css2.1/20110323/background-intrinsic-001-expected.png: Added.
  • platform/qt-5.0/css2.1/20110323/background-intrinsic-001-expected.txt: Added.
  • platform/qt-5.0/css2.1/20110323/background-intrinsic-002-expected.png: Added.
  • platform/qt-5.0/css2.1/20110323/background-intrinsic-002-expected.txt: Added.
  • platform/qt-5.0/css2.1/20110323/background-intrinsic-003-expected.png: Added.
  • platform/qt-5.0/css2.1/20110323/background-intrinsic-003-expected.txt: Added.
  • platform/qt-5.0/css2.1/20110323/background-intrinsic-004-expected.png: Added.
  • platform/qt-5.0/css2.1/20110323/background-intrinsic-004-expected.txt: Added.
  • platform/qt-5.0/css2.1/20110323/background-intrinsic-005-expected.png: Added.
  • platform/qt-5.0/css2.1/20110323/background-intrinsic-005-expected.txt: Added.
  • platform/qt-5.0/css2.1/20110323/background-intrinsic-006-expected.png: Added.
  • platform/qt-5.0/css2.1/20110323/background-intrinsic-006-expected.txt: Added.
  • platform/qt-5.0/css2.1/20110323/background-intrinsic-007-expected.png: Added.
  • platform/qt-5.0/css2.1/20110323/background-intrinsic-007-expected.txt: Added.
  • platform/qt-5.0/css2.1/20110323/background-intrinsic-008-expected.png: Added.
  • platform/qt-5.0/css2.1/20110323/background-intrinsic-008-expected.txt: Added.
  • platform/qt-5.0/css2.1/20110323/background-intrinsic-009-expected.png: Added.
  • platform/qt-5.0/css2.1/20110323/background-intrinsic-009-expected.txt: Added.
  • platform/qt-5.0/css2.1/20110323/dynamic-top-change-001-expected.png: Added.
  • platform/qt-5.0/css2.1/20110323/dynamic-top-change-001-expected.txt: Added.
  • platform/qt-5.0/css2.1/20110323/dynamic-top-change-002-expected.png: Added.
  • platform/qt-5.0/css2.1/20110323/dynamic-top-change-002-expected.txt: Added.
  • platform/qt-5.0/css2.1/20110323/dynamic-top-change-003-expected.png: Added.
  • platform/qt-5.0/css2.1/20110323/dynamic-top-change-003-expected.txt: Added.
  • platform/qt-5.0/css2.1/20110323/dynamic-top-change-004-expected.png: Added.
  • platform/qt-5.0/css2.1/20110323/dynamic-top-change-004-expected.txt: Added.
  • platform/qt/Skipped: Skip failing tests because of https://bugs.webkit.org/show_bug.cgi?id=52810
12:54 AM Changeset in webkit [99043] by commit-queue@webkit.org
  • 5 edits
    4 adds in trunk

Canvas filling paths or rects need to be invalidate larger rects for some compositing modes.
https://bugs.webkit.org/show_bug.cgi?id=70379

Patch by Ben Wells <benwells@chromium.org> on 2011-11-02
Reviewed by James Robinson.

Source/WebCore:

Test: fast/canvas/canvas-composite-fill-repaint.html

  • html/canvas/CanvasRenderingContext2D.cpp:

(WebCore::CanvasRenderingContext2D::fill):
(WebCore::CanvasRenderingContext2D::fillRect):
(WebCore::CanvasRenderingContext2D::drawImage):
(WebCore::CanvasRenderingContext2D::didDrawEntireCanvas):

  • html/canvas/CanvasRenderingContext2D.h:

LayoutTests:

  • fast/canvas/canvas-composite-fill-repaint-expected.txt: Added.
  • fast/canvas/canvas-composite-fill-repaint.html: Added.
  • platform/chromium-gpu-linux/fast/canvas/canvas-composite-fill-repaint-expected.png: Added.
  • platform/chromium-linux/fast/canvas/canvas-composite-fill-repaint-expected.png: Added.
  • platform/chromium/test_expectations.txt:
12:22 AM Changeset in webkit [99042] by caseq@chromium.org
  • 2 edits in trunk/LayoutTests

Unreviewed expectations update.

  • platform/chromium/test_expectations.txt:
12:21 AM Changeset in webkit [99041] by commit-queue@webkit.org
  • 2 edits in trunk/Source/WebKit/efl

[EFL] Dirty area is not updated with requestAnimationFrame.
https://bugs.webkit.org/show_bug.cgi?id=70170

Some additional dirty areas caused by re-layout have ignored
since updateLayoutAndSytleIfNeedeRecursive is called after gathering dirty area to repaint.
So ewk_view_layout_if_needed_recursive is relocated before getting dirty areas.

Patch by ChangSeok Oh <ChangSeok Oh> on 2011-11-02
Reviewed by Eric Seidel.

  • ewk/ewk_view_single.cpp:

(_ewk_view_single_smart_repaints_process):

Nov 1, 2011:

11:26 PM Changeset in webkit [99040] by leviw@chromium.org
  • 4 edits in trunk/Source/WebCore

Fix uses of LayoutUnit in Frame-, Scroll-, and RenderView
https://bugs.webkit.org/show_bug.cgi?id=71321

Reviewed by Darin Adler.

Updating the usage of LayoutUnits in the *View classes to mirror the proper use
as derived in the subpixellayout branch.

This entails scrolling only with integers (and rounding once we've made the switch)
and using integers for window coordinates, with LayoutUnits for content coordinates.

No new tests -- no change in behavior.

  • page/FrameView.cpp:

(WebCore::FrameView::invalidateRect):
(WebCore::FrameView::setFrameRect):
(WebCore::FrameView::zoomAnimatorTransformChanged):
(WebCore::FrameView::scrollContentsFastPath):
(WebCore::FrameView::scrollContentsSlowPath):
(WebCore::FrameView::scrollElementToRect):
(WebCore::FrameView::setScrollPosition):
(WebCore::FrameView::repaintContentRectangle):
(WebCore::FrameView::scrollTo):
(WebCore::FrameView::updateScrollCorner):

  • page/FrameView.h:

(WebCore::FrameView::trackedRepaintRects):

  • platform/ScrollView.cpp:

(WebCore::ScrollView::visibleContentRect):
(WebCore::ScrollView::layoutWidth):
(WebCore::ScrollView::layoutHeight):
(WebCore::ScrollView::fixedLayoutSize):
(WebCore::ScrollView::setFixedLayoutSize):
(WebCore::ScrollView::contentsSize):
(WebCore::ScrollView::setContentsSize):
(WebCore::ScrollView::overhangAmount):
(WebCore::ScrollView::updateScrollbars):
(WebCore::ScrollView::rectToCopyOnScroll):
(WebCore::ScrollView::scrollContents):
(WebCore::ScrollView::windowToContents):
(WebCore::ScrollView::screenToContents):
(WebCore::ScrollView::scrollbarAtPoint):
(WebCore::ScrollView::wheelEvent):

  • platform/ScrollView.h:

(WebCore::ScrollView::visibleWidth):
(WebCore::ScrollView::visibleHeight):
(WebCore::ScrollView::contentsWidth):
(WebCore::ScrollView::contentsHeight):
(WebCore::ScrollView::adjustScrollPositionWithinRange):

  • rendering/RenderView.cpp:

(WebCore::RenderView::paint):
(WebCore::RenderView::shouldRepaint):
(WebCore::RenderView::repaintViewRectangle):
(WebCore::RenderView::repaintRectangleInViewAndCompositedLayers):
(WebCore::RenderView::computeRectForRepaint):
(WebCore::RenderView::selectionBounds):
(WebCore::RenderView::viewRect):
(WebCore::RenderView::unscaledDocumentRect):
(WebCore::RenderView::documentRect):

  • rendering/RenderView.h:

(WebCore::RenderView::printRect):
(WebCore::RenderView::setPrintRect):

10:48 PM Changeset in webkit [99039] by annacc@chromium.org
  • 2 edits in trunk/Source/WebCore

Small fixes for WebVTTParser.
https://bugs.webkit.org/show_bug.cgi?id=71334

Reviewed by Darin Adler.

No new tests. This is needed to enable other tests, coming soon.

  • html/track/WebVTTParser.cpp:

(WebCore::hasLongWebVTTIdentifier): changed to return true when header is

exactly "WEBVTT"

(WebCore::WebVTTParser::collectTimingsAndSettings): fix typos, position should

only progress once when checking the character after a timestamp.

8:34 PM Changeset in webkit [99038] by imasaki@chromium.org
  • 2 edits
    1 add
    1 delete in trunk/LayoutTests/platform

2011-11-01 Kenji Imasaki <imasaki@chromium.org>

[Chromium] Unreviewed. Did rebaselines of media/media-document-audio-repaint.html.

  • platform/chromium-gpu-cg-mac/media/media-document-audio-repaint-expected.txt: Removed.
  • platform/chromium-gpu-mac/media/media-document-audio-repaint-expected.png: Added.
  • platform/chromium-gpu-win/media/media-document-audio-repaint-expected.png:
  • platform/chromium-gpu-win/media/media-document-audio-repaint-expected.txt:
8:20 PM Changeset in webkit [99037] by weinig@apple.com
  • 2 edits in trunk/Tools

resolve-ChangeLogs --help should be faster.

Reviewed by Adam Roben.

  • Scripts/resolve-ChangeLogs:

(usageAndExit):
Add a call to usageAndExit() before doing work to find unmerged changelogs
if --help or something illegal is provided on the command line.

7:52 PM Changeset in webkit [99036] by Darin Adler
  • 3 edits in trunk/Source/JavaScriptCore

Cut down on malloc/free a bit in the parser arena
https://bugs.webkit.org/show_bug.cgi?id=71343

Reviewed by Oliver Hunt.

  • parser/ParserArena.cpp:

(JSC::ParserArena::deallocateObjects): Call the destructors of
the deletable objects before freeing the pools. Don't call
fastFree on the deletable objects any more.

  • parser/ParserArena.h:

(JSC::ParserArena::allocateDeletable): Use allocateFreeable
instead of fastMalloc here.

7:47 PM Changeset in webkit [99035] by Darin Adler
  • 8 edits in trunk/Source

Change HTMLSelectElement::setSelectedIndex to use enums instead of bools
https://bugs.webkit.org/show_bug.cgi?id=70184

Reviewed by Kent Tamura.

Source/WebCore:

Refactoring that does not require new tests.

  • bindings/objc/DOMHTML.mm:

(-[DOMHTMLSelectElement _activateItemAtIndex:]): Replaced setSelectedIndexByUser
call with a call to the renamed optionSelectedByUser, also removed one argument.
(-[DOMHTMLSelectElement _activateItemAtIndex:allowMultipleSelection:]): Ditto.

  • html/HTMLOptionElement.cpp:

(WebCore::HTMLOptionElement::setSelected): Replaced setSelectedIndex call with a
call to the new optionSelectionStateChanged function.
(WebCore::HTMLOptionElement::insertedIntoTree): Ditto.

  • html/HTMLSelectElement.cpp:

(WebCore::HTMLSelectElement::HTMLSelectElement): Updated since m_userDrivenChange
was renamed to m_isProcessingUserDrivenChange.
(WebCore::HTMLSelectElement::optionSelectedByUser): Removed deselect argument,
which was always true for all callers. Updated comment.
(WebCore::HTMLSelectElement::hasPlaceholderLabelOption): Updated comment.
(WebCore::HTMLSelectElement::setOption): Call the new optionSelectionStateChanged
function. The code used to explicitly ask the function it calls to deselect base
on the value of m_multiple, but that is no longer needed because the selectOption
function itself takes care of that check.
(WebCore::HTMLSelectElement::dispatchChangeEventForMenuList): Renamed this function.
Also updated for name change to m_isProcessingUserDrivenChange.
(WebCore::HTMLSelectElement::setSelectedIndex): Moved the formerly-inlined function
here from the header and changed it to call the renamed selectOption function.
(WebCore::HTMLSelectElement::optionSelectionStateChanged): Added this function.
It is used by callers that were previously using setSelectedIndex and passing
"false" for the deselect argument. It's better now that setSelectedIndex is now a
pure DOM setter function without the multiple purposes it had before. This function
now has the logic that handles the special handling when deselecting an option,
which used to be at the top of the next function.
(WebCore::HTMLSelectElement::selectOption): Renamed this from setSelectedIndex.
Replaced boolean arguments with flags. Removed code to handle the special case
when we deselect an option; that's now handled in the optionSelectionStateChanged
function. Added an assertion to replace a comment and updated for other renaming.
(WebCore::HTMLSelectElement::dispatchBlurEvent): Updated for name change.
(WebCore::HTMLSelectElement::platformHandleKeydownEvent): Ditto.
(WebCore::HTMLSelectElement::menuListDefaultEventHandler): Changed to call the
new selectOption function and also updated for other name changes.
(WebCore::HTMLSelectElement::typeAheadFind): Ditto.
(WebCore::HTMLSelectElement::accessKeySetSelectedIndex): Ditto.

  • html/HTMLSelectElement.h: Changed the setSelectedIndex to be a pure setter

function for the selectedIndex DOM property. Added a optionSelectedByUser function
for the other use of setSelectedIndex, but removed the always true "deselect"
argument from it. Added a optionSelectionStateChanged function for use in the
HTMLOptionElement implementation. Renamed menuListOnChange to
dispatchChangeEventForMenuList for clarity. Added a SelectOptionFlag and
SelectOptionFlags type for the arguments to the selectOption function, formerly
implemented as an overload of setSelectedIndex (and called setSelectedIndexInternal
before that). Renamed m_userDrivenChange to m_isProcessingUserDrivenChange.

  • rendering/RenderMenuList.cpp:

(WebCore::RenderMenuList::valueChanged): Replaced setSelectedIndexByUser
call with a call to the renamed optionSelectedByUser, also removed one argument.

Source/WebKit/chromium:

  • tests/PopupMenuTest.cpp:

(WebKit::TestPopupMenuClient::valueChanged): Replaced setSelectedIndexByUser
call with a call to the renamed optionSelectedByUser, also removed one argument.

7:24 PM Changeset in webkit [99034] by weinig@apple.com
  • 13 edits in trunk

Implement lookupGetter/lookupSetter in terms of getPropertyDescriptor
https://bugs.webkit.org/show_bug.cgi?id=71336

Reviewed by Darin Adler.

Source/JavaScriptCore:

  • debugger/DebuggerActivation.cpp:
  • debugger/DebuggerActivation.h:

Remove overrides of lookupGetter/lookupSetter, which are no longer needed
due to implementing getPropertyDescriptor.

  • runtime/JSObject.cpp:

(JSC::JSObject::lookupGetter):
(JSC::JSObject::lookupSetter):

  • runtime/JSObject.h:

De-virtualize lookupGetter/lookupSetter, and implement them in terms of
getPropertyDescriptor.

Source/WebCore:

  • bindings/js/JSDOMWindowCustom.cpp:
  • bindings/js/JSDOMWindowShell.cpp:
  • bindings/js/JSDOMWindowShell.h:
  • page/DOMWindow.idl:

Remove overrides of lookupGetter/lookupSetter, which are no longer needed
due to implementing getPropertyDescriptor.

LayoutTests:

  • fast/dom/getter-on-window-object2-expected.txt:

Update results now that lookupGetter/lookupSetter match getOwnPropertyDescriptor.
The failures are tracked by https://bugs.webkit.org/show_bug.cgi?id=71333.

7:18 PM Changeset in webkit [99033] by nduca@chromium.org
  • 12 edits in trunk/Source

[chromium] Move resource-releasing logic into CCProxy and cleanup setNeedsCommit
https://bugs.webkit.org/show_bug.cgi?id=71269

Reviewed by James Robinson.

Source/WebCore:

  • platform/graphics/chromium/cc/CCLayerTreeHost.cpp:

(WebCore::CCLayerTreeHost::finishCommitOnImplThread):
(WebCore::CCLayerTreeHost::setZoomAnimatorTransform):
(WebCore::CCLayerTreeHost::setNeedsCommit):
(WebCore::CCLayerTreeHost::setViewport):
(WebCore::CCLayerTreeHost::setVisible):

  • platform/graphics/chromium/cc/CCLayerTreeHost.h:
  • platform/graphics/chromium/cc/CCProxy.h:
  • platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:

(WebCore::CCSingleThreadProxy::doCommit):
(WebCore::CCSingleThreadProxy::setNeedsRedraw):
(WebCore::CCSingleThreadProxy::setVisible):
(WebCore::CCSingleThreadProxy::recreateContextIfNeeded):
(WebCore::CCSingleThreadProxy::doComposite):

  • platform/graphics/chromium/cc/CCSingleThreadProxy.h:

(WebCore::CCSingleThreadProxy::setNeedsRedrawOnImplThread):
(WebCore::CCSingleThreadProxy::setNeedsCommitOnImplThread):

  • platform/graphics/chromium/cc/CCThreadProxy.cpp:

(WebCore::CCThreadProxy::setNeedsCommit):
(WebCore::CCThreadProxy::setNeedsAnimateOnImplThread):
(WebCore::CCThreadProxy::setVisible):

  • platform/graphics/chromium/cc/CCThreadProxy.h:

Source/WebKit/chromium:

  • src/WebLayerTreeView.cpp:

(WebKit::WebLayerTreeView::composite):

  • src/WebViewImpl.cpp:

(WebKit::WebViewImpl::setRootLayerNeedsDisplay):

  • tests/CCLayerTreeHostTest.cpp:

(CCLayerTreeHostTest::postSetNeedsCommitToMainThread):
(CCLayerTreeHostTest::dispatchSetNeedsCommit):
(CCLayerTreeHostTestShortlived2::beginTest):
(CCLayerTreeHostTestCommitingWithContinuousRedraw::beginTest):
(CCLayerTreeHostTestCommitingWithContinuousRedraw::drawLayersOnCCThread):
(CCLayerTreeHostTestSetNeedsCommit1::beginTest):
(CCLayerTreeHostTestSetNeedsCommit2::beginTest):
(CCLayerTreeHostTestSetNeedsCommit2::drawLayersOnCCThread):
(CCLayerTreeHostTestSetNeedsRedraw::beginTest):
(CCLayerTreeHostTestScrollSimple::beginTest):
(CCLayerTreeHostTestScrollSimple::drawLayersOnCCThread):
(CCLayerTreeHostTestScrollMultipleRedraw::beginTest):
(CCLayerTreeHostTestScrollMultipleRedraw::drawLayersOnCCThread):

7:16 PM Changeset in webkit [99032] by cevans@google.com
  • 1 edit
    2 copies in branches/chromium/912

Merge 98935
BUG=101018
Review URL: http://codereview.chromium.org/8386021

7:08 PM Changeset in webkit [99031] by commit-queue@webkit.org
  • 4 edits in trunk

[Mac] _drt_descriptionSuitableForTestResult generate an exception for absolute paths above the main frame
https://bugs.webkit.org/show_bug.cgi?id=71342

Patch by Benjamin Poulain <bpoulain@apple.com> on 2011-11-01
Reviewed by Darin Adler.

Tools:

[NSURL _drt_descriptionSuitableForTestResult] was generating a NSRangeException due to the call to
[NSString substringFromIndex:] with an index out of the string range.

The source of this path is the test-loading-archive-subresource-null-mimetype.html which load a subresource
from the root of the disk.
The problem was hidden because the exception are catched when calling the delegate.

This patch changes _drt_descriptionSuitableForTestResult to return absolute string if the resource is not
in a subdirectory of the main frame.

  • DumpRenderTree/mac/ResourceLoadDelegate.mm:

(-[NSURL _drt_descriptionSuitableForTestResult]):

LayoutTests:

Update the test results following the fix of _drt_descriptionSuitableForTestResult.

  • webarchive/loading/test-loading-archive-subresource-null-mimetype-expected.txt:
7:08 PM Changeset in webkit [99030] by cevans@google.com
  • 1 edit
    2 copies in branches/chromium/912

Merge 98763
BUG=99597
Review URL: http://codereview.chromium.org/8423033

7:05 PM Changeset in webkit [99029] by cevans@google.com
  • 1 edit
    2 copies in branches/chromium/912

Merge 98561
BUG=100526
Review URL: http://codereview.chromium.org/8399045

6:53 PM Changeset in webkit [99028] by cevans@google.com
  • 5 edits
    5 copies in branches/chromium/912

Merge 98033
BUG=99603
Review URL: http://codereview.chromium.org/8372052

6:52 PM Changeset in webkit [99027] by annacc@chromium.org
  • 18 edits
    2 adds in trunk

Makes [Reflect] work for constants.
This is needed to avoid platform-specific define conflicts, specifically
TextTrack::ERROR conflicts with a windows define.
https://bugs.webkit.org/show_bug.cgi?id=70951

Reviewed by Darin Adler.

Source/WebCore:

Test: media/track/track-constants.html

  • bindings/scripts/CodeGenerator.pm:

(GenerateCompileTimeCheckForEnumsIfNeeded):

Check for [Reflect] and assign name accordingly.

  • bindings/scripts/test/CPP/WebDOMTestObj.h: Update test file.
  • bindings/scripts/test/JS/JSTestObj.cpp: Update test file.

(WebCore::jsTestObjCONST_JAVASCRIPT):

  • bindings/scripts/test/JS/JSTestObj.h: Update test file.
  • bindings/scripts/test/ObjC/DOMTestObj.h: Update test file.
  • bindings/scripts/test/TestObj.idl: Update test file.
  • bindings/scripts/test/V8/V8TestObj.cpp: Update test file.
  • html/LoadableTextTrack.cpp: Use new DOM const name.

(WebCore::LoadableTextTrack::cueLoadingStarted):
(WebCore::LoadableTextTrack::cueLoadingCompleted):

  • html/TextTrack.cpp: Use new DOM const name.

(WebCore::TextTrack::TextTrack):
(WebCore::TextTrack::setMode):

  • html/TextTrack.h: Use new DOM const name.
  • html/TextTrack.idl: Use Reflect for ERROR, but leave other DOM const names.

LayoutTests:

  • media/track/track-constants-expected.txt: Added.
  • media/track/track-constants.html: Added.
  • media/track/track-load-error-readyState.html: Updated with new const name.
  • media/track/track-load-from-element-readyState.html: Updated with new const name.
  • media/track/track-load-from-src-readyState.html: Updated with new const name.

VIDEO_TRACK is not enabled on these ports, so skipping this test:

  • platform/mac/Skipped:
  • platform/win/Skipped:
6:51 PM Changeset in webkit [99026] by cevans@google.com
  • 2 edits
    2 copies in branches/chromium/912

Merge 98010
BUG=100177
Review URL: http://codereview.chromium.org/8437038

6:42 PM Changeset in webkit [99025] by cevans@google.com
  • 1 edit
    2 copies in branches/chromium/912

Merge 98344
BUG=100863
Review URL: http://codereview.chromium.org/8440026

6:33 PM Changeset in webkit [99024] by leviw@chromium.org
  • 3 edits in trunk/Source/WebCore

Amend missing uses of LayoutUnit in RenderBlock
https://bugs.webkit.org/show_bug.cgi?id=71254

Reviewed by Darin Adler.

Switching relevant uses of integers in RenderBlock to LayoutUnits.

No new tests -- no changes in behavior.

  • rendering/RenderBlock.cpp:

(WebCore::RenderBlock::MarginInfo::MarginInfo):
(WebCore::RenderBlock::layoutBlock):
(WebCore::RenderBlock::adjustFloatingBlock):
(WebCore::RenderBlock::clearFloatsIfNeeded):
(WebCore::RenderBlock::layoutBlockChild):
(WebCore::RenderBlock::paintColumnRules):
(WebCore::RenderBlock::paintContents):
(WebCore::clipOutPositionedObjects):
(WebCore::RenderBlock::removeFloatingObject):
(WebCore::RenderBlock::nextFloatLogicalBottomBelow):
(WebCore::RenderBlock::getClearDelta):
(WebCore::positionForPointRespectingEditingBoundaries):
(WebCore::RenderBlock::calcColumnWidth):
(WebCore::RenderBlock::layoutColumns):
(WebCore::RenderBlock::adjustRectForColumns):
(WebCore::RenderBlock::computeInlinePreferredLogicalWidths):
(WebCore::RenderBlock::baselinePosition):
(WebCore::getHeightForLineCount):
(WebCore::RenderBlock::setPaginationStrut):
(WebCore::RenderBlock::applyBeforeBreak):
(WebCore::RenderBlock::applyAfterBreak):
(WebCore::RenderBlock::adjustForUnsplittableChild):

  • rendering/RenderBlock.h:

(WebCore::RenderBlock::availableLogicalWidthForLine):
(WebCore::RenderBlock::paginationStrut):
(WebCore::RenderBlock::availableLogicalWidthForContent):
(WebCore::RenderBlock::FloatWithRect::FloatWithRect):
(WebCore::RenderBlock::MarginInfo::setPositiveMargin):
(WebCore::RenderBlock::MarginInfo::setNegativeMargin):
(WebCore::RenderBlock::MarginInfo::setPositiveMarginIfLarger):
(WebCore::RenderBlock::MarginInfo::setNegativeMarginIfLarger):
(WebCore::RenderBlock::MarginInfo::setMargin):
(WebCore::RenderBlock::FloatIntervalSearchAdapter::FloatIntervalSearchAdapter):
(WebCore::RenderBlock::FloatIntervalSearchAdapter::lowValue):
(WebCore::RenderBlock::FloatIntervalSearchAdapter::highValue):
(WebCore::RenderBlock::RenderBlockRareData::positiveMarginBeforeDefault):
(WebCore::RenderBlock::RenderBlockRareData::negativeMarginBeforeDefault):
(WebCore::RenderBlock::RenderBlockRareData::positiveMarginAfterDefault):
(WebCore::RenderBlock::RenderBlockRareData::negativeMarginAfterDefault):

6:32 PM Changeset in webkit [99023] by cevans@google.com
  • 1 edit in branches/chromium/912/Source/WebCore/editing/ReplaceNodeWithSpanCommand.cpp

Merge 98796 - Potential crash in ReplaceNodeWithSpanCommand
https://bugs.webkit.org/show_bug.cgi?id=71145

Reviewed by Ojan Vafai.

Fix a potential crash without tests because we don't have a reduction.

  • editing/ReplaceNodeWithSpanCommand.cpp:

(WebCore::swapInNodePreservingAttributesAndChildren):

TBR=rniwa@webkit.org
Review URL: http://codereview.chromium.org/8437036

6:23 PM Changeset in webkit [99022] by macpherson@chromium.org
  • 19 edits
    2 adds in trunk

WIP: Add CSS property to control printing of backgrounds for individual elements.
https://bugs.webkit.org/show_bug.cgi?id=64583

Reviewed by Eric Seidel.

Added test LayoutTests/fast/css/webkit-color-adjust.html,
Updated tests under LayoutTests/fast/css/getComputedStyle
Updated test under LayoutTests/svg/css

  • css/CSSComputedStyleDeclaration.cpp:

(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):

  • css/CSSParser.cpp:

(WebCore::CSSParser::parseValue):

  • css/CSSPropertyNames.in:
  • css/CSSStyleSelector.cpp:

(WebCore::CSSStyleSelector::styleForDocument):
(WebCore::CSSStyleSelector::applyProperty):

  • rendering/RenderBoxModelObject.cpp:

(WebCore::RenderBoxModelObject::paintFillLayerExtended):

  • rendering/style/RenderStyle.h:

(WebCore::InheritedFlags::initialForceBackgroundsToWhite):

6:20 PM Changeset in webkit [99021] by dominicc@chromium.org
  • 9 edits in trunk

Remove initErrorEvent method
https://bugs.webkit.org/show_bug.cgi?id=71338

Reviewed by Ojan Vafai.

Source/WebCore:

  • dom/ErrorEvent.cpp: Crush.
  • dom/ErrorEvent.h: Kill.
  • dom/ErrorEvent.idl: Destroy.

LayoutTests:

  • http/tests/workers/worker-importScriptsOnError-expected.txt:
  • platform/gtk/fast/dom/Window/window-properties-expected.txt:
  • platform/mac/fast/dom/Window/window-properties-expected.txt:
  • platform/qt/fast/dom/Window/window-properties-expected.txt:
6:12 PM Changeset in webkit [99020] by jchaffraix@webkit.org
  • 5 edits
    1 add in trunk/Source

Pack RenderTableCell bits
https://bugs.webkit.org/show_bug.cgi?id=71135

Reviewed by Darin Adler.

Source/WebCore:

Tested by RenderTableCellTest unit test.
(unfortunately Chromium specific...)

This saves another 8 bytes on RenderTableCell on x86-64.

  • rendering/RenderTableCell.cpp:

(WebCore::RenderTableCell::RenderTableCell):

  • rendering/RenderTableCell.h:

Changed the field order to use more strict packing.

(WebCore::RenderTableCell::setCol):
(WebCore::RenderTableCell::setRow):
Added overflow checks to the 2 previous methods. We
CRASH even in release to avoid potential badness
(the limit is currently above 2 billions rows or columns
which is high enough to prevent it being hit by accident)

Source/WebKit/chromium:

  • WebKit.gypi:
  • tests/RenderTableCellTest.cpp: Added.

Added some tests for the column/row index limit
that was implemented in RenderTableCell.

5:55 PM Changeset in webkit [99019] by eae@chromium.org
  • 3 edits in trunk/Source/WebCore

Switch background/border image back to Int
https://bugs.webkit.org/show_bug.cgi?id=71240

Reviewed by Darin Adler.

Switch background- and border-image rendering back to int to align with
device pixels.

No new tests.

  • rendering/RenderBoxModelObject.cpp:

(WebCore::RenderBoxModelObject::calculateImageIntrinsicDimensions):
(WebCore::RenderBoxModelObject::calculateFillTileSize):
(WebCore::RenderBoxModelObject::BackgroundImageGeometry::useFixedAttachment):
(WebCore::RenderBoxModelObject::BackgroundImageGeometry::clip):
(WebCore::RenderBoxModelObject::BackgroundImageGeometry::relativePhase):
(WebCore::RenderBoxModelObject::calculateBackgroundImageGeometry):
(WebCore::RenderBoxModelObject::paintNinePieceImage):
(WebCore::calculateAdjustedInnerBorder):

  • rendering/RenderBoxModelObject.h:

(WebCore::RenderBoxModelObject::BackgroundImageGeometry::destOrigin):
(WebCore::RenderBoxModelObject::BackgroundImageGeometry::setDestOrigin):
(WebCore::RenderBoxModelObject::BackgroundImageGeometry::destRect):
(WebCore::RenderBoxModelObject::BackgroundImageGeometry::setDestRect):
(WebCore::RenderBoxModelObject::BackgroundImageGeometry::phase):
(WebCore::RenderBoxModelObject::BackgroundImageGeometry::setPhase):
(WebCore::RenderBoxModelObject::BackgroundImageGeometry::tileSize):
(WebCore::RenderBoxModelObject::BackgroundImageGeometry::setTileSize):

5:36 PM Changeset in webkit [99018] by mhahnenberg@apple.com
  • 20 edits in trunk/Source

De-virtualize JSObject::defineSetter
https://bugs.webkit.org/show_bug.cgi?id=71303

Reviewed by Darin Adler.

Source/JavaScriptCore:

Added defineSetter to the MethodTable, changed all the virtual
implementations of defineSetter to static ones, and replaced
all call sites with corresponding lookups in the MethodTable.

(JSC::DebuggerActivation::defineSetter):

  • debugger/DebuggerActivation.h:
  • interpreter/Interpreter.cpp:

(JSC::Interpreter::privateExecute):

  • jit/JITStubs.cpp:

(JSC::DEFINE_STUB_FUNCTION):

  • runtime/ClassInfo.h:
  • runtime/JSCell.cpp:

(JSC::JSCell::defineSetter):

  • runtime/JSCell.h:
  • runtime/JSGlobalObject.cpp:

(JSC::JSGlobalObject::defineSetter):

  • runtime/JSGlobalObject.h:
  • runtime/JSObject.cpp:

(JSC::JSObject::defineSetter):
(JSC::putDescriptor):

  • runtime/JSObject.h:
  • runtime/ObjectPrototype.cpp:

(JSC::objectProtoFuncDefineSetter):

Source/WebCore:

No new tests.

Added defineSetter to the MethodTable, changed all the virtual
implementations of defineSetter to static ones, and replaced
all call sites with corresponding lookups in the MethodTable.

  • bindings/js/JSDOMWindowCustom.cpp:

(WebCore::JSDOMWindow::defineSetter):

  • bindings/js/JSDOMWindowShell.cpp:

(WebCore::JSDOMWindowShell::defineSetter):

  • bindings/js/JSDOMWindowShell.h:
  • bindings/scripts/CodeGeneratorJS.pm:

(GenerateHeader):

5:34 PM Changeset in webkit [99017] by timothy_horton@apple.com
  • 2 edits in trunk/LayoutTests

SVG Filter on a group doesn't invalidate when children are moved
https://bugs.webkit.org/show_bug.cgi?id=70044
<rdar://problem/10281530>

Reviewed by Darin Adler.

Fix svg/filters/invalidate-on-child-layout.svg to not include nonexistent onload handler.

  • svg/filters/invalidate-on-child-layout.svg:
5:15 PM Changeset in webkit [99016] by eae@chromium.org
  • 9 edits in trunk/Source/WebCore

Switch PopupMenuClient to layout abstraction
https://bugs.webkit.org/show_bug.cgi?id=71308

Reviewed by Darin Adler.

Switch PopupMenuClient and rendering classes implementing it to layout
type abstraction.

No new tests.

  • platform/PopupMenuClient.h:
  • rendering/RenderListBox.cpp:

(WebCore::RenderListBox::listIndexAtOffset):
(WebCore::RenderListBox::panScroll):
(WebCore::RenderListBox::scrollToward):
(WebCore::RenderListBox::scrollSize):
(WebCore::RenderListBox::scrollPosition):
(WebCore::RenderListBox::setScrollOffset):
(WebCore::RenderListBox::verticalScrollbarWidth):
Revert scroll positions and scroll offsets to ints to align with device
pixels.

  • rendering/RenderListBox.h:
  • rendering/RenderMenuList.cpp:

(WebCore::RenderMenuList::showPopup):
(WebCore::RenderMenuList::clientPaddingLeft):
(WebCore::RenderMenuList::clientPaddingRight):

  • rendering/RenderMenuList.h:
  • rendering/RenderTextControl.cpp:

(WebCore::RenderTextControl::hitInnerTextElement):

  • rendering/RenderTextControlSingleLine.cpp:

(WebCore::RenderTextControlSingleLine::clientPaddingLeft):
(WebCore::RenderTextControlSingleLine::clientPaddingRight):

  • rendering/RenderTextControlSingleLine.h:
5:09 PM Changeset in webkit [99015] by Nate Chapin
  • 6 edits in trunk/Source

Source/WebCore: [chromium] As of r98380, ThreadableLoaderClients are having their
ResourceRequest::TargetType clobbered. They set their own
type, but CachedResourceRequest (through which they now flow)
sets a TargetType without bothering to see if one has already been set.
https://bugs.webkit.org/show_bug.cgi?id=70972

Reviewed by Darin Fisher.

No new tests, this is chromium-specific and only affects
behavior seen in full builds of chromium.

  • loader/cache/CachedResourceRequest.cpp:

(WebCore::CachedResourceRequest::load):Don't setTargetType()

if the value is something other than the default already.

  • platform/network/chromium/ResourceRequest.h: Change default

TargetType to TargetIsUnspecified.

Source/WebKit/chromium: Add 2 new TargetTypes (to match ResourceRequest::TargetType)
and ensure we don't pass chromium a TargetType it doesn't
yet understand.
https://bugs.webkit.org/show_bug.cgi?id=70972

Reviewed by Darin Fisher.

  • public/WebURLRequest.h:
  • src/WebURLRequest.cpp:
5:08 PM Changeset in webkit [99014] by eae@chromium.org
  • 8 edits in trunk/Source/WebCore

Use IntPoint for screen coordinates in MouseEvent
https://bugs.webkit.org/show_bug.cgi?id=71327

Reviewed by Darin Adler.

Change mouse events to use int/IntPoint for screen/window coordinates and
LayoutUnit/LayoutPoint for coordinates adjusted for zooming.

No new tests.

  • dom/MouseRelatedEvent.cpp:

(WebCore::MouseRelatedEvent::MouseRelatedEvent):
(WebCore::MouseRelatedEvent::computeRelativePosition):

  • dom/MouseRelatedEvent.h:

(WebCore::MouseRelatedEvent::screenLocation):
Revert screenLocation and windowLocation back to int.

  • page/DragController.cpp:

(WebCore::elementUnderMouse):
Change elementUnderMouse to use a LayoutPoint for hit testing.

  • page/EventHandler.cpp:

(WebCore::EventHandler::clear):
(WebCore::EventHandler::currentMousePosition):
(WebCore::documentPointForWindowPoint):
(WebCore::EventHandler::fakeMouseMoveEventTimerFired):

  • page/EventHandler.h:

Revert m_currentMousePosition to IntPoint as it represents a
screen coordinate.

  • platform/PlatformMouseEvent.h:

(WebCore::PlatformMouseEvent::PlatformMouseEvent):
(WebCore::PlatformMouseEvent::pos):
(WebCore::PlatformMouseEvent::x):
(WebCore::PlatformMouseEvent::y):
(WebCore::PlatformMouseEvent::globalX):
(WebCore::PlatformMouseEvent::globalY):

  • platform/mac/PlatformMouseEventMac.mm:

(WebCore::globalPoint):
(WebCore::pointForEvent):
(WebCore::globalPointForEvent):
Revert PlatformMouseEvent to int/IntPoint as it represents a screen
coordinate.

4:58 PM Changeset in webkit [99013] by tony@chromium.org
  • 2 edits in trunk/Source/WebCore

REGRESSION: -webkit-flex() should be an invalid value
https://bugs.webkit.org/show_bug.cgi?id=71320

Reviewed by Ojan Vafai.

This regressed in http://trac.webkit.org/changeset/98773 .

No new tests, covered by css3/flexbox/flex-parsing.html.

  • css/CSSParser.cpp:

(WebCore::CSSParser::parseFlex):

4:53 PM Changeset in webkit [99012] by johnnyg@google.com
  • 1 edit
    1 add in trunk/LayoutTests

Rebaseline getter-on-window-object2.html after r99005.

  • platform/chromium/fast/dom/getter-on-window-object2-expected.txt: Added.
4:33 PM Changeset in webkit [99011] by dgrogan@chromium.org
  • 4 edits in trunk/Source/WebCore

IndexedDB: get EventQueue from ScriptExecutionContext instead of Document
https://bugs.webkit.org/show_bug.cgi?id=71147

When IDB is used from a worker thread ScriptExecutionContext will
be a WorkerContext, not a Document. This was the impetus behind
moving EventQueue into ScriptExecutionContext in r98656.

Reviewed by Nate Chapin.

No new tests. No new functionality yet.

  • storage/IDBDatabase.cpp:

(WebCore::IDBDatabase::close):
(WebCore::IDBDatabase::enqueueEvent):

  • storage/IDBRequest.cpp:

(WebCore::IDBRequest::abort):
(WebCore::IDBRequest::enqueueEvent):

  • storage/IDBTransaction.cpp:

(WebCore::IDBTransaction::enqueueEvent):

4:31 PM Changeset in webkit [99010] by commit-queue@webkit.org
  • 5 edits in trunk/Source/WebCore

CSS: Remove unused virtual parseString() in style and keyframe rules.
https://bugs.webkit.org/show_bug.cgi?id=71300

Patch by Andreas Kling <kling@webkit.org> on 2011-11-01
Reviewed by Darin Adler.

  • css/CSSStyleRule.cpp:
  • css/CSSStyleRule.h:
  • css/WebKitCSSKeyframeRule.cpp:
  • css/WebKitCSSKeyframeRule.h:
4:13 PM Changeset in webkit [99009] by fpizlo@apple.com
  • 9 edits
    3 adds in trunk

DFG inlining breaks function.arguments
https://bugs.webkit.org/show_bug.cgi?id=71329

Source/JavaScriptCore:

Reviewed by Oliver Hunt.

The DFG was forgetting to store code origin mappings for inlined
call sites. Some of the fast-path optimizations for
CallFrame::trueCallerFrame() were wrong. An assertion in Arguments
was wrong.

I also took the opportunity to decrease code duplication between
DFG64 and DFG32_64, because I didn't feel like writing the same
code twice.

  • bytecode/CodeBlock.h:

(JSC::ExecState::isInlineCallFrame):

  • dfg/DFGJITCompiler.cpp:

(JSC::DFG::JITCompiler::compileEntry):
(JSC::DFG::JITCompiler::compileBody):
(JSC::DFG::JITCompiler::link):
(JSC::DFG::JITCompiler::compile):
(JSC::DFG::JITCompiler::compileFunction):

  • dfg/DFGJITCompiler32_64.cpp:
  • dfg/DFGNode.h:
  • interpreter/CallFrame.cpp:

(JSC::CallFrame::trueCallerFrame):

  • interpreter/CallFrame.h:
  • runtime/Arguments.h:

(JSC::Arguments::getArgumentsData):

LayoutTests:

Reviewed by Oliver Hunt.

Test that using bar.arguments, where bar was inlined into baz,
works correctly.

  • fast/js/dfg-inline-arguments-simple-expected.txt: Added.
  • fast/js/dfg-inline-arguments-simple.html: Added.
  • fast/js/script-tests/dfg-inline-arguments-simple.js: Added.

(foo):
(bar):
(baz):
(argsToStr):

4:02 PM Changeset in webkit [99008] by eae@chromium.org
  • 3 edits in trunk/Source/WebCore

Switch RenderObject to layout abstraction
https://bugs.webkit.org/show_bug.cgi?id=71249

Switch RenderObject to LayoutRect/Size/Point abstraction.

Reviewed by Darin Adler.

No new tests.

  • rendering/RenderObject.cpp:

(WebCore::RenderObject::drawLineForBoxSide):
(WebCore::RenderObject::addPDFURLRect):
(WebCore::RenderObject::absoluteBoundingBoxRect):
(WebCore::RenderObject::absoluteFocusRingQuads):
(WebCore::RenderObject::addAbsoluteRectForLayer):
(WebCore::RenderObject::repaintAfterLayoutIfNeeded):
(WebCore::RenderObject::computeRectForRepaint):
(WebCore::RenderObject::viewRect):
(WebCore::RenderObject::mapLocalToContainer):
(WebCore::RenderObject::localCaretRect):
(WebCore::RenderObject::addDashboardRegions):
(WebCore::RenderObject::maximalOutlineSize):
(WebCore::RenderObject::adjustRectForOutlineAndShadow):

  • rendering/RenderObject.h:

(WebCore::RenderObject::absoluteBoundingBoxRectIgnoringTransforms):
(WebCore::RenderObject::absoluteClippedOverflowRect):
(WebCore::RenderObject::computeAbsoluteRepaintRect):
(WebCore::RenderObject::absoluteOutlineBounds):
(WebCore::RenderObject::outlineBoundsForRepaint):
(WebCore::adjustForAbsoluteZoom):

4:01 PM Changeset in webkit [99007] by tony@chromium.org
  • 2 edits in trunk/LayoutTests

Update result to match mac repaint result. When we forced a layout on
the test (when landing the mac-sl results), it caused this result to
change slightly.

  • platform/chromium-linux/css3/flexbox/repaint-rtl-column-expected.png:
3:53 PM Changeset in webkit [99006] by alokp@chromium.org
  • 2 edits in trunk/Tools

[chromium] --enable-hardware-gpu flag is not recognized by run-webkit-tests
https://bugs.webkit.org/show_bug.cgi?id=71318

Reviewed by James Robinson.

Fixed a typo for --enable-hardware-gpu flag.

  • Scripts/webkitpy/layout_tests/port/chromium.py:
3:36 PM Changeset in webkit [99005] by weinig@apple.com
  • 3 edits in trunk/LayoutTests

Expand fast/dom/getter-on-window-object2.html to test Object.getOwnPropertyDescriptor as well
https://bugs.webkit.org/show_bug.cgi?id=71332

Reviewed by Anders Carlsson.

  • fast/dom/getter-on-window-object2-expected.txt:
  • fast/dom/getter-on-window-object2.html:

Convert to shouldBe style tests and expand test to also test Object.getOwnPropertyDescriptor,
which currently fail for getters/setters defined over window properties.

3:32 PM Changeset in webkit [99004] by commit-queue@webkit.org
  • 5 edits
    2 copies in trunk/Source/WebKit/chromium

[chromium] Media Stream API: Adding supporting classes to WebPeerConnectionHandler
https://bugs.webkit.org/show_bug.cgi?id=71008

Expanding WebMediaStreamDescriptor and adding WebMediaStreamSource

Patch by Tommy Widenflycht <tommyw@google.com> on 2011-11-01
Reviewed by Darin Fisher.

  • WebKit.gyp:
  • public/WebMediaStreamDescriptor.h:
  • public/WebMediaStreamSource.h: Copied from Source/WebKit/chromium/public/WebMediaStreamDescriptor.h.

(WebKit::WebMediaStreamSource::WebMediaStreamSource):
(WebKit::WebMediaStreamSource::~WebMediaStreamSource):
(WebKit::WebMediaStreamSource::isNull):

  • src/AssertMatchingEnums.cpp:
  • src/WebMediaStreamDescriptor.cpp:

(WebKit::WebMediaStreamDescriptor::operator=):
(WebKit::WebMediaStreamDescriptor::initialize):

  • src/WebMediaStreamSource.cpp: Copied from Source/WebKit/chromium/src/WebMediaStreamDescriptor.cpp.

(WebKit::WebMediaStreamSource::WebMediaStreamSource):
(WebKit::WebMediaStreamSource::reset):
(WebKit::WebMediaStreamSource::operator PassRefPtr<MediaStreamSource>):
(WebKit::WebMediaStreamSource::operator MediaStreamSource*):
(WebKit::WebMediaStreamSource::initialize):
(WebKit::WebMediaStreamSource::id):
(WebKit::WebMediaStreamSource::type):
(WebKit::WebMediaStreamSource::name):

3:12 PM Changeset in webkit [99003] by johnnyg@google.com
  • 2 edits in trunk/LayoutTests

Suppress svg/filters/invalidate-on-child-layout.svg until the fix lands.

  • platform/chromium/test_expectations.txt:
3:06 PM Changeset in webkit [99002] by xji@chromium.org
  • 7 edits in trunk/Source/WebCore

Refactor: change Scrollable::m_scrollOrigin from protected to private.
https://bugs.webkit.org/show_bug.cgi?id=71236

Reviewed by Darin Adler.

Only refactor, no new tests needed.

  • page/FrameView.cpp:

(WebCore::FrameView::scrollXForFixedPosition):
(WebCore::FrameView::scrollYForFixedPosition):

  • platform/ScrollView.cpp:

(WebCore::ScrollView::maximumScrollPosition):
(WebCore::ScrollView::minimumScrollPosition):
(WebCore::ScrollView::setScrollOffset):
(WebCore::ScrollView::scrollPosition):
(WebCore::ScrollView::overhangAmount):
(WebCore::ScrollView::updateScrollbars):
(WebCore::ScrollView::wheelEvent):

  • platform/ScrollView.h:
  • platform/ScrollableArea.h:

(WebCore::ScrollableArea::setScrollOrigin):
(WebCore::ScrollableArea::setScrollOriginX):
(WebCore::ScrollableArea::setScrollOriginY):

  • rendering/RenderLayer.cpp:

(WebCore::RenderLayer::scrollTo):
(WebCore::RenderLayer::scrollPosition):
(WebCore::RenderLayer::minimumScrollPosition):
(WebCore::RenderLayer::maximumScrollPosition):
(WebCore::RenderLayer::computeScrollDimensions):

  • rendering/RenderLayer.h:

(WebCore::RenderLayer::scrollXOffset):
(WebCore::RenderLayer::scrollYOffset):

2:54 PM Changeset in webkit [99001] by Lucas Forschler
  • 5 edits in tags/Safari-535.7.1/Source

Versioning.

2:50 PM Changeset in webkit [99000] by Lucas Forschler
  • 2 edits in tags/Safari-535.7.1/Source/WebCore

Merged r98824.

2:45 PM Changeset in webkit [98999] by Lucas Forschler
  • 1 copy in tags/Safari-535.7.1

New Tag.

2:32 PM Changeset in webkit [98998] by weinig@apple.com
  • 3 edits in trunk/LayoutTests

Expand prototype setting test to test Object.defineProperty
https://bugs.webkit.org/show_bug.cgi?id=71322

Reviewed by Anders Carlsson.

  • fast/js/script-tests/prototypes.js:

Also test setting proto using Object.defineProperty.

1:55 PM Changeset in webkit [98997] by dominicc@chromium.org
  • 3 edits
    2 adds in trunk

display: table-cell and box-sizing: border-box calculates content-box height
https://bugs.webkit.org/show_bug.cgi?id=69425

Reviewed by Dan Bernstein.

Source/WebCore:

Test: fast/box-sizing/table-cell.html

  • rendering/RenderTableSection.cpp:

(WebCore::RenderTableSection::calcRowLogicalHeight):

LayoutTests:

  • fast/box-sizing/table-cell-expected.txt: Added.
  • fast/box-sizing/table-cell.html: Added.
1:52 PM Changeset in webkit [98996] by imasaki@chromium.org
  • 2 edits in trunk/LayoutTests

[Chromium] Unreviewed. Remove media/audio-repaint.html from test expectaion.

  • platform/chromium/test_expectations.txt:
1:40 PM Changeset in webkit [98995] by Lucas Forschler
  • 1 copy in tags/Safari-534.52.9

New tag.

1:13 PM Changeset in webkit [98994] by nduca@chromium.org
  • 2 edits in trunk/Source/WebKit/chromium

CCSchedulerTests fail on Chromium Windows (dbg) after r98915
https://bugs.webkit.org/show_bug.cgi?id=71294

Reviewed by James Robinson.

  • tests/CCSchedulerTest.cpp:

(WebKitTests::TEST):

12:52 PM Changeset in webkit [98993] by commit-queue@webkit.org
  • 3 edits in trunk/Source/JavaScriptCore

StringImpl::reallocate() should have a 8-bit version
https://bugs.webkit.org/show_bug.cgi?id=71210

Patch by Xianzhu Wang <wangxianzhu@chromium.org> on 2011-11-01
Reviewed by Geoffrey Garen.

  • wtf/text/StringImpl.cpp:

(WTF::StringImpl::reallocate):

  • wtf/text/StringImpl.h:
12:28 PM Changeset in webkit [98992] by commit-queue@webkit.org
  • 2 edits in trunk/Tools

chromium-gpu port should default to chromium-gpu-mac, not chromium-gpu-cg-mac
https://bugs.webkit.org/show_bug.cgi?id=71286

Patch by Elliot Poger <epoger@google.com> on 2011-11-01
Reviewed by Stephen White.

  • Scripts/webkitpy/layout_tests/port/chromium_gpu.py:
12:24 PM Changeset in webkit [98991] by leandro@webkit.org
  • 1 edit
    35 adds in trunk/LayoutTests

[EFL] Unreviewed. Add remaining pixel baselines.

  • platform/efl/http: Added.
  • platform/efl/http/tests: Added.
  • platform/efl/http/tests/local: Added.
  • platform/efl/http/tests/local/file-url-sent-as-referer-expected.png: Added.
  • platform/efl/http/tests/misc: Added.
  • platform/efl/http/tests/misc/acid2-expected.png: Added.
  • platform/efl/http/tests/misc/error404-expected.png: Added.
  • platform/efl/http/tests/misc/favicon-as-image-expected.png: Added.
  • platform/efl/http/tests/misc/frame-access-during-load-expected.png: Added.
  • platform/efl/http/tests/misc/generated-content-inside-table-expected.png: Added.
  • platform/efl/http/tests/misc/iframe404-expected.png: Added.
  • platform/efl/http/tests/misc/location-replace-crossdomain-expected.png: Added.
  • platform/efl/http/tests/misc/object-embedding-svg-delayed-size-negotiation-2-expected.png: Added.
  • platform/efl/http/tests/misc/object-embedding-svg-delayed-size-negotiation-expected.png: Added.
  • platform/efl/http/tests/misc/slow-loading-image-in-pattern-expected.png: Added.
  • platform/efl/http/tests/navigation: Added.
  • platform/efl/http/tests/navigation/error404-basic-expected.png: Added.
  • platform/efl/http/tests/navigation/error404-goback-expected.png: Added.
  • platform/efl/http/tests/navigation/error404-subframeload-expected.png: Added.
  • platform/efl/http/tests/navigation/javascriptlink-frames-expected.png: Added.
  • platform/efl/http/tests/navigation/postredirect-basic-expected.png: Added.
  • platform/efl/http/tests/navigation/postredirect-goback1-expected.png: Added.
  • platform/efl/http/tests/security: Added.
  • platform/efl/http/tests/security/contentSecurityPolicy: Added.
  • platform/efl/http/tests/security/contentSecurityPolicy/xsl-blocked-expected.png: Added.
  • platform/efl/http/tests/uri: Added.
  • platform/efl/http/tests/uri/css-href-expected.png: Added.
  • platform/efl/scrollbars/basic-scrollbar-expected.png: Added.
  • platform/efl/scrollbars/custom-scrollbar-with-incomplete-style-expected.png: Added.
  • platform/efl/scrollbars/disabled-scrollbar-expected.png: Added.
  • platform/efl/scrollbars/listbox-scrollbar-combinations-expected.png: Added.
  • platform/efl/scrollbars/overflow-scrollbar-combinations-expected.png: Added.
  • platform/efl/scrollbars/scrollbar-buttons-expected.png: Added.
  • platform/efl/scrollbars/scrollbar-orientation-expected.png: Added.
  • platform/efl/scrollbars/scrollbars-on-positioned-content-expected.png: Added.
12:18 PM Changeset in webkit [98990] by alokp@chromium.org
  • 8 edits
    4 adds in trunk

[chromium] Add testing for --enable-accelerated-drawing
https://bugs.webkit.org/show_bug.cgi?id=70822

Reviewed by James Robinson.

Source/WebCore:

Test: platform/chromium/compositing/accelerated-drawing/alpha.html

  • WebCore.exp.in:
  • page/Settings.cpp:
  • page/Settings.h:

(WebCore::Settings::setAcceleratedDrawingEnabled):

  • testing/Internals.cpp:

(WebCore::Internals::setAcceleratedDrawingEnabled):

  • testing/Internals.h:
  • testing/Internals.idl:

LayoutTests:

  • platform/chromium/compositing/accelerated-drawing: Added.
  • platform/chromium/compositing/accelerated-drawing/alpha-expected.png: Added.
  • platform/chromium/compositing/accelerated-drawing/alpha-expected.txt: Added.
  • platform/chromium/compositing/accelerated-drawing/alpha.html: Added.
12:13 PM Changeset in webkit [98989] by timothy_horton@apple.com
  • 4 edits
    3 adds in trunk

SVG Filter on a group doesn't invalidate when children are moved
https://bugs.webkit.org/show_bug.cgi?id=70044
<rdar://problem/10281530>

Reviewed by Nikolas Zimmermann.

Call SVGResourcesCache::clientLayoutChanged whenever the element or its children need layout. Previously,
invalidation was only performed if the element itself needed layout; now we also invalidate if any child
needs layout and there is a filter applied, as the cached filter result can depend on the layout of children.

Test: svg/filters/invalidate-on-child-layout.svg

  • rendering/svg/RenderSVGContainer.cpp:

(WebCore::RenderSVGContainer::layout):

  • rendering/svg/SVGResourcesCache.cpp:

(WebCore::SVGResourcesCache::clientLayoutChanged):

Add a test that ensures that changing the layout of a child of a filtered element invalidates the filter.

  • platform/mac/svg/filters/invalidate-on-child-layout-expected.png: Added.
  • platform/mac/svg/filters/invalidate-on-child-layout-expected.txt: Added.
  • svg/filters/invalidate-on-child-layout.svg: Added.
12:05 PM Changeset in webkit [98988] by jer.noble@apple.com
  • 4 edits in trunk

Four media tests failing on Lion due to incorrect cached times.
https://bugs.webkit.org/show_bug.cgi?id=69574

Reviewed by Eric Carlson.

Source/WebCore:

Do not invalidate the cached time when receiving a mediaPlayerRateChanged notification
while paused. AVFoundation in particular can return different results for currentTime()
when asked after being paused, breaking layout tests.

  • html/HTMLMediaElement.cpp:

(WebCore::HTMLMediaElement::mediaPlayerRateChanged):

LayoutTests:

Some media engines will cause multiple timeupdate events after pausing; so deregister
the timeupdate event listener after receiving the first one.

  • media/video-pause-immediately.html:
11:54 AM Changeset in webkit [98987] by gavinp@chromium.org
  • 2 edits in trunk/Source/WebCore

properly end requests when a bad status code return happens
https://bugs.webkit.org/show_bug.cgi?id=71122

Calling error without ending the request set up the CachedResourceRequest so that it could
actually send out two notifyFinished() events. This probably was the root cause of
lots of crashing instability; I know from crbug.com/75604 that this bug was causing lots
of crashes in ScriptRunner/ScriptElement for instance.

The fix is easy: just properly end the request instead of just calling error, and we won't
re-notify.

Reviewed by Nate Chapin.

No new tests, as the problem wasn't very amenable to layout tests.
There is a chromium test going through code review at http://codereview.chromium.org/8404001/

  • loader/cache/CachedResourceRequest.cpp:

(WebCore::CachedResourceRequest::didReceiveData):

11:40 AM Changeset in webkit [98986] by rniwa@webkit.org
  • 1 edit in trunk/LayoutTests/ChangeLog

Rebaseline after r98896.

  • fast/forms/mailto/formenctype-attribute-button-html-expected.txt:
  • fast/forms/mailto/formenctype-attribute-input-html-expected.txt:
  • platform/chromium-win-vista/fast/forms: Removed.
  • platform/chromium/test_expectations.txt:
  • platform/qt/test_expectations.txt:
  • platform/win/test_expectations.txt:
11:39 AM Changeset in webkit [98985] by arv@chromium.org
  • 2 edits in trunk/Source/WebCore

Remove LegacyDefaultOptionalArguments flag from CanvasRenderingContext2d
https://bugs.webkit.org/show_bug.cgi?id=64628

Reviewed by Adam Barth.

Covered by existing tests.

  • html/canvas/CanvasRenderingContext2D.idl:
11:37 AM Changeset in webkit [98984] by rniwa@webkit.org
  • 6 edits
    1 delete in trunk/LayoutTests

Rebaseline after r98979.

  • fast/forms/mailto/formenctype-attribute-button-html-expected.txt:
  • fast/forms/mailto/formenctype-attribute-input-html-expected.txt:
  • platform/chromium-win-vista/fast/forms: Removed.
  • platform/chromium/test_expectations.txt:
  • platform/qt/test_expectations.txt:
  • platform/win/test_expectations.txt:
11:30 AM Changeset in webkit [98983] by abecsi@webkit.org
  • 8 edits in trunk/Source/WebKit2

[Qt][WK2] Make API tests less noisy
https://bugs.webkit.org/show_bug.cgi?id=71295

Reviewed by Simon Hausmann.

Suppress superfluous debug messages of Qt5.

  • UIProcess/API/qt/tests/commonviewtests/tst_commonviewtests.cpp:
  • UIProcess/API/qt/tests/qdesktopwebview/tst_qdesktopwebview.cpp:
  • UIProcess/API/qt/tests/qmltests/qmltests.pro:
  • UIProcess/API/qt/tests/qmltests/tst_qmltests.cpp:

(main):

  • UIProcess/API/qt/tests/qtouchwebview/tst_qtouchwebview.cpp:
  • UIProcess/API/qt/tests/util.cpp:

(messageHandler):

  • UIProcess/API/qt/tests/util.h:
11:30 AM Changeset in webkit [98982] by leandro@webkit.org
  • 1 edit
    401 adds in trunk/LayoutTests

[EFL] Unreviewed. Add some pixel baselines for tests in fast/.

  • platform/efl/fast/table: [...]
  • platform/efl/fast/text: [...]
  • platform/efl/fast/tokenizer: [...]
  • platform/efl/fast/transforms: [...]
  • platform/efl/fast/writing-mode: [...]
  • platform/efl/fast/xsl: [...]
11:07 AM Changeset in webkit [98981] by imasaki@chromium.org
  • 2 edits in trunk/LayoutTests

[Chromium] Unreviewed. Did rebaselines of media/audio-repaint.html

  • platform/chromium-gpu-linux/media/audio-repaint-expected.png:
11:02 AM Changeset in webkit [98980] by jchaffraix@webkit.org
  • 3 edits
    4 adds in trunk

REGRESSION(98738): RenderTableSection::recalcCells does not properly shrink the RowStruct grid
https://bugs.webkit.org/show_bug.cgi?id=71246

Reviewed by Darin Adler.

Source/WebCore:

Tests: fast/table/crash-empty-section-calcBorder.html

fast/table/crash-empty-section-fixed-layout-calcArray.html

The refactoring in r98738 changed the way we handle the size to avoid throwing off
the memory. The new logic would end up never shrinking the grid's size (prior to that
we would grow to the appropriate size and throw the excess capacity with shrinkToFit).
Not shrinking would mean that we would potentially read RowStruct with the default values
(for instance no |rowRenderer|).

addCell will properly grow the grid as needed to accomodate the rows and the protruding
cells with a rowspan so we introduce a variable to keep track of the size needed. At the
end, we just shrink it to this size.

  • rendering/RenderTableSection.cpp:

(WebCore::RenderTableSection::recalcCells):
Introduce a variable to keep the grid size and shrink to that size to match the old code.

LayoutTests:

Those tests checks that an empty section would not lead to reading
RowStruct without a |rowRenderer| which would crash.

  • fast/table/crash-empty-section-calcBorder-expected.txt: Added.
  • fast/table/crash-empty-section-calcBorder.html: Added.
  • fast/table/crash-empty-section-fixed-layout-calcArray-expected.txt: Added.
  • fast/table/crash-empty-section-fixed-layout-calcArray.html: Added.
10:59 AM Changeset in webkit [98979] by caseq@chromium.org
  • 2 edits in trunk/LayoutTests

Unreviewed followup for the previous commit (removing another duplicate line).

  • platform/chromium/test_expectations.txt:
10:57 AM Changeset in webkit [98978] by caseq@chromium.org
  • 4 edits in trunk

[Chromium] Some media/video-*.html layout tests occasionally crash on WIN GPU
https://bugs.webkit.org/show_bug.cgi?id=71277

Reviewed by Simon Fraser.

Source/WebCore:

Disabled assert() in hasVisibleDescendant() until callers are fixed.

  • rendering/RenderLayer.h:

(WebCore::RenderLayer::hasVisibleDescendant):

LayoutTests:

  • platform/chromium/test_expectations.txt: revert tests marked as crash because of the assert().
10:35 AM Changeset in webkit [98977] by Lucas Forschler
  • 7 edits in branches/safari-534.52-branch/Source

Merge r98936 and update Versioning.

10:31 AM Changeset in webkit [98976] by arv@chromium.org
  • 1 edit in trunk/LayoutTests/ChangeLog

Unreviewed. Fix ChangeLog which broke in r98733.

10:19 AM Changeset in webkit [98975] by Simon Hausmann
  • 6 edits in trunk

[Qt][WK2] Fix build of WebKitTestRunner with ELF symbol visibility
https://bugs.webkit.org/show_bug.cgi?id=71299

Reviewed by Andreas Kling.

Source/WebKit/qt:

Export an overload of QtDRT::injectInternalsObjects that is used by
the WK2 injected bundle.

  • WebCoreSupport/DumpRenderTreeSupportQt.cpp:

(DumpRenderTreeSupportQt::injectInternalsObject):

  • WebCoreSupport/DumpRenderTreeSupportQt.h:

Tools:

  • WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: Use the properly exported symbol for the Qt

build to enable WebCoreTestSupport::injectInternalsObject.
(WTR::InjectedBundlePage::didClearWindowForFrame):

  • WebKitTestRunner/InjectedBundle/qt/InjectedBundle.pro: Fix include path to DRTSupportQt
10:11 AM Changeset in webkit [98974] by leandro@webkit.org
  • 1 edit
    635 adds in trunk/LayoutTests

[EFL] Unreviewed. Add some pixel baselines for tests in fast/.

  • platform/efl/fast/media: [...]
  • platform/efl/fast/multicol: [...]
  • platform/efl/fast/overflow: [...]
  • platform/efl/fast/parser: [...]
  • platform/efl/fast/reflections: [...]
  • platform/efl/fast/regions: [...]
  • platform/efl/fast/repaint: [...]
  • platform/efl/fast/replaced: [...]
  • platform/efl/fast/ruby: [...]
  • platform/efl/fast/runin: [...]
  • platform/efl/fast/selectors: [...]
10:05 AM Changeset in webkit [98973] by jocelyn.turcotte@nokia.com
  • 19 edits
    2 copies
    1 add in trunk

[Qt] Merge common desktop and touch view APIs under a base class.
https://bugs.webkit.org/show_bug.cgi?id=71280

Reviewed by Andreas Kling.

Source/WebKit2:

  • Make QDesktopWebView and QTouchWebView inherit from QBaseWebView.
  • Move methods from QTouchWebPage to QTouchWebView (through the base class).

We use the same convenience macros as Qt internally by hiding QObject::d_ptr
with QBaseWebView::d_ptr instead of inheriting QBaseWebViewPrivate from
QQuickItemPrivate.
Also, QBaseWebView currently inherits from QQuickPaintedItem since QDesktopWebView
needs it, but should be changed as soon as this is not required anymore.

  • UIProcess/API/qt/qbasewebview.cpp: Added.

(QBaseWebViewPrivate::QBaseWebViewPrivate):
(QBaseWebViewPrivate::setPageProxy):
(QBaseWebView::QBaseWebView):
(QBaseWebView::~QBaseWebView):
(QBaseWebView::load):
(QBaseWebView::url):
(QBaseWebView::loadProgress):
(QBaseWebView::title):
(QBaseWebView::navigationController):
(QBaseWebView::preferences):

  • UIProcess/API/qt/qbasewebview.h: Copied from Source/WebKit2/UIProcess/API/qt/qtouchwebpage.h.
  • UIProcess/API/qt/qbasewebview_p.h: Copied from Source/WebKit2/UIProcess/API/qt/qtouchwebpage_p.h.

(QBaseWebViewPrivate::~QBaseWebViewPrivate):

  • UIProcess/API/qt/qdesktopwebview.cpp:

(QDesktopWebViewPrivate::QDesktopWebViewPrivate):
(QDesktopWebViewPrivate::enableMouseEvents):
(QDesktopWebViewPrivate::disableMouseEvents):
(QDesktopWebViewPrivate::webView):
(QDesktopWebViewPrivate::setViewNeedsDisplay):
(QDesktopWebViewPrivate::drawingAreaSize):
(QDesktopWebViewPrivate::hasFocus):
(QDesktopWebViewPrivate::isVisible):
(QDesktopWebViewPrivate::startDrag):
(QDesktopWebViewPrivate::didChangeUrl):
(QDesktopWebViewPrivate::didChangeTitle):
(QDesktopWebViewPrivate::didChangeStatusText):
(QDesktopWebViewPrivate::loadDidBegin):
(QDesktopWebViewPrivate::loadDidSucceed):
(QDesktopWebViewPrivate::loadDidFail):
(QDesktopWebViewPrivate::didChangeLoadProgress):
(QDesktopWebViewPrivate::showContextMenu):
(QDesktopWebViewPrivate::runJavaScriptAlert):
(QDesktopWebViewPrivate::runJavaScriptConfirm):
(QDesktopWebViewPrivate::runJavaScriptPrompt):
(QDesktopWebView::QDesktopWebView):
(QDesktopWebViewPrivate::init):
(QDesktopWebView::~QDesktopWebView):
(QDesktopWebView::geometryChanged):
(QDesktopWebView::paint):
(QDesktopWebView::event):
(QDesktopWebView::pageRef):
(QDesktopWebViewPrivate::processDidCrash):
(QDesktopWebViewPrivate::didRelaunchProcess):
(QDesktopWebViewPrivate::engine):
(QDesktopWebViewPrivate::chooseFiles):
(QDesktopWebViewPrivate::_q_onOpenPanelFilesSelected):
(QDesktopWebViewPrivate::_q_onOpenPanelFinished):
(QDesktopWebViewPrivate::didMouseMoveOverElement):
(QDesktopWebViewPrivate::navigationPolicyForURL):

  • UIProcess/API/qt/qdesktopwebview.h:
  • UIProcess/API/qt/qdesktopwebview_p.h:
  • UIProcess/API/qt/qtouchwebpage.cpp:

(QTouchWebPage::event):
(QTouchWebPage::geometryChanged):
(QTouchWebPagePrivate::QTouchWebPagePrivate):
(QTouchWebPagePrivate::setPageProxy):
(QTouchWebPagePrivate::paintToCurrentGLContext):

  • UIProcess/API/qt/qtouchwebpage.h:
  • UIProcess/API/qt/qtouchwebpage_p.h:

(QTouchWebPagePrivate::touchPageProxy):

  • UIProcess/API/qt/qtouchwebview.cpp:

(QTouchWebViewPrivate::init):
(QTouchWebViewPrivate::loadDidCommit):
(QTouchWebViewPrivate::_q_viewportUpdated):
(QTouchWebViewPrivate::_q_viewportTrajectoryVectorChanged):
(QTouchWebViewPrivate::updateViewportConstraints):
(QTouchWebView::QTouchWebView):
(QTouchWebView::~QTouchWebView):
(QTouchWebView::page):
(QTouchWebView::geometryChanged):
(QTouchWebView::onVisibleChanged):

  • UIProcess/API/qt/qtouchwebview.h:
  • UIProcess/API/qt/qtouchwebview_p.h:

(QTouchWebViewPrivate::touchPageProxy):

  • UIProcess/API/qt/tests/commonviewtests/tst_commonviewtests.cpp:

(tst_CommonViewTests::loadNonexistentFileUrl):

  • UIProcess/API/qt/tests/commonviewtests/webviewabstraction.cpp:

(WebViewAbstraction::WebViewAbstraction):
(WebViewAbstraction::load):
(WebViewAbstraction::url):
(WebViewAbstraction::loadProgress):
(WebViewAbstraction::goBack):
(WebViewAbstraction::goForward):
(WebViewAbstraction::stop):
(WebViewAbstraction::reload):
(WebViewAbstraction::touchViewLoadFailed):
(WebViewAbstraction::desktopViewLoadFailed):

  • UIProcess/API/qt/tests/commonviewtests/webviewabstraction.h:
  • UIProcess/API/qt/tests/qtouchwebview/tst_qtouchwebview.cpp:

(tst_QTouchWebView::navigationStatusAtStartup):

  • UIProcess/qt/QtDesktopWebPageProxy.cpp:

(QtDesktopWebPageProxy::createPopupMenuProxy):

  • UIProcess/qt/QtTouchViewInterface.cpp:

(WebKit::QtTouchViewInterface::didChangeViewportProperties):
(WebKit::QtTouchViewInterface::didChangeUrl):
(WebKit::QtTouchViewInterface::didChangeTitle):
(WebKit::QtTouchViewInterface::loadDidBegin):
(WebKit::QtTouchViewInterface::loadDidCommit):
(WebKit::QtTouchViewInterface::loadDidSucceed):
(WebKit::QtTouchViewInterface::loadDidFail):
(WebKit::QtTouchViewInterface::didChangeLoadProgress):

  • WebKit2API.pri:

Tools:

Remove unneded forwarding logic for TouchWebView since those properties are
now in the view just as the desktop web view.

  • MiniBrowser/qt/qml/TouchView.qml:
9:51 AM Changeset in webkit [98972] by andersca@apple.com
  • 3 edits in trunk/Source/WebKit2

PluginProxy shouldn't use window-relative coordinates
https://bugs.webkit.org/show_bug.cgi?id=71261

Reviewed by Adam Roben.

Change PluginProxy::wantsWindowRelativeCoordinates to return false and remove
m_frameRectInWindowCoordinates and m_clipRectInWindowCoordinates. This is yet another step
towards eliminating window-relative coordinates wherever possible.

  • WebProcess/Plugins/PluginProxy.cpp:

(WebKit::PluginProxy::paint):
Since the dirty rect passed to paint is now in plug-in coordinates, there's no need to convert it
from window coordinates to plug-in coordinates before passing it to BackingStore::paint.

(WebKit::PluginProxy::deprecatedGeometryDidChange):
Assert that we're not calling this anymore.

(WebKit::PluginProxy::wantsWindowRelativeCoordinates):
Return false.

9:45 AM Changeset in webkit [98971] by alokp@chromium.org
  • 2 edits in trunk/Source/WebKit/chromium

Roll chromium DEPS.

Unreviewed.

  • DEPS:
9:28 AM Changeset in webkit [98970] by Darin Adler
  • 2 edits in trunk/Source/WebKit/mac

Crash in PDF code when script has illegal UTF-8 or UTF-16 sequences
https://bugs.webkit.org/show_bug.cgi?id=71289

Reviewed by Dan Bernstein.

Just adding a null check. I don't have access to an actual PDF with
this problem but crashes from the field indicate they exist.

  • WebView/WebPDFDocumentExtras.mm:

(allScriptsInPDFDocument): Skip the code to add the script text
to an array when the script is null.

8:59 AM Changeset in webkit [98969] by reed@google.com
  • 2 edits in trunk/Source/WebCore

[skia] call readPixels on canvas instead of device (will be private on device soon) and check for error
https://bugs.webkit.org/show_bug.cgi?id=71284

Reviewed by Stephen White.

No new tests. This is preparing for an API change to Skia.

  • platform/graphics/skia/ImageBufferSkia.cpp:

(WebCore::getImageData):
(WebCore::ImageBuffer::getUnmultipliedImageData):
(WebCore::ImageBuffer::getPremultipliedImageData):

8:56 AM Changeset in webkit [98968] by leandro@webkit.org
  • 1 edit
    161 adds in trunk/LayoutTests

[EFL] Unreviewed. Add some pixel baselines for tests in fast/.

  • platform/efl/fast/html: [...]
  • platform/efl/fast/images: [...]
  • platform/efl/fast/inline-block: [...]
  • platform/efl/fast/inline: [...]
  • platform/efl/fast/innerHTML: [...]
  • platform/efl/fast/inspector-support: [...]
  • platform/efl/fast/invalid: [...]
  • platform/efl/fast/layers: [...]
  • platform/efl/fast/lists: [...]
  • platform/efl/fast/loader: [...]
8:47 AM Changeset in webkit [98967] by andreas.kling@nokia.com
  • 2 edits in trunk/Source/WebCore

CSSStyleSheet: Operate directly on the rule vector internally.

Rubber-stamped by Antti Koivisto.

There's no need to go through the public, range-checking item() method
working on m_children. Also changed length() -> m_children.size().

  • css/CSSStyleSheet.cpp:

(WebCore::CSSStyleSheet::~CSSStyleSheet):
(WebCore::CSSStyleSheet::insertRule):
(WebCore::CSSStyleSheet::addRule):
(WebCore::CSSStyleSheet::deleteRule):
(WebCore::CSSStyleSheet::isLoading):
(WebCore::CSSStyleSheet::addSubresourceStyleURLs):

8:44 AM Changeset in webkit [98966] by caseq@chromium.org
  • 2 edits in trunk/LayoutTests

Unreviewed. Fixed conflicting entries in test expectations.

  • platform/chromium/test_expectations.txt:
8:40 AM Changeset in webkit [98965] by kenneth@webkit.org
  • 4 edits in trunk/Source/WebKit2

The QtViewportInteractionEngine should consider DPI adjustment
https://bugs.webkit.org/show_bug.cgi?id=71283

Reviewed by Simon Hausmann.

  • UIProcess/API/qt/qtouchwebview.cpp:

Add some default values for now to make sure we are testing the
DPI adjustment / CSS-item space conversion.

(QTouchWebViewPrivate::updateViewportConstraints):

  • UIProcess/qt/QtViewportInteractionEngine.cpp:

(WebKit::ViewportUpdateGuard::ViewportUpdateGuard):
(WebKit::ViewportUpdateGuard::~ViewportUpdateGuard):

Clean up the guard to be more understandable.

(WebKit::QtViewportInteractionEngine::cssScaleFromItem):
(WebKit::QtViewportInteractionEngine::itemScaleFromCSS):

Add methods for converting between CSS and item space.

(WebKit::QtViewportInteractionEngine::innerBoundedCSSScale):
(WebKit::QtViewportInteractionEngine::outerBoundedCSSScale):

Make it clean which methods uses which coord space.

(WebKit::QtViewportInteractionEngine::updateVisibleRect):
(WebKit::QtViewportInteractionEngine::event):
(WebKit::QtViewportInteractionEngine::computePosRangeForItemScale):

Rename calculateBoundariesForScale and change its implementation to
be correct. The new name reflects the space in which the computation
takes place and reflects similar Qt API.

(WebKit::QtViewportInteractionEngine::animateContentIntoBoundariesIfNeeded):
(WebKit::QtViewportInteractionEngine::pinchGestureRequestUpdate):
(WebKit::QtViewportInteractionEngine::scaleContent):

Make sure to consider the right coord space.

  • UIProcess/qt/QtViewportInteractionEngine.h:

(WebKit::QtViewportInteractionEngine::Constraints::Constraints):

Add the devicePixelRatio.

8:32 AM Changeset in webkit [98964] by caseq@chromium.org
  • 2 edits in trunk/LayoutTests

Unreviewed. Marked inspector extensions tests as crash on win debug.

  • platform/chromium/test_expectations.txt:
8:23 AM Changeset in webkit [98963] by andreas.kling@nokia.com
  • 6 edits in trunk/Source/WebCore

CSSRule: Devirtualize addSubresourceStyleURLs()
https://bugs.webkit.org/show_bug.cgi?id=71285

Reviewed by Antti Koivisto.

Move addSubresourceStyleURLs() into the rules that actually implement it.
Add type checks and casts at the (only) call site.

  • css/CSSFontFaceRule.h:
  • css/CSSImportRule.h:
  • css/CSSRule.h:
  • css/CSSStyleRule.h:
  • css/CSSStyleSheet.cpp:

(WebCore::CSSStyleSheet::addSubresourceStyleURLs):

8:19 AM Changeset in webkit [98962] by Chris Fleizach
  • 3 edits
    2 adds in trunk

AX: some popup buttons not announced by VoiceOver
https://bugs.webkit.org/show_bug.cgi?id=67743

Reviewed by Darin Adler.

Source/WebCore:

Test: platform/mac/accessibility/aria-popup-buttons-on-native-elements.html

  • accessibility/AccessibilityRenderObject.cpp:

(WebCore::AccessibilityRenderObject::stringValue):
(WebCore::AccessibilityRenderObject::title):
(WebCore::AccessibilityRenderObject::determineAccessibilityRole):

LayoutTests:

  • platform/mac/accessibility/aria-popup-buttons-on-native-elements-expected.txt: Added.
  • platform/mac/accessibility/aria-popup-buttons-on-native-elements.html: Added.
8:16 AM Changeset in webkit [98961] by caseq@chromium.org
  • 2 edits in trunk/LayoutTests

Unreviewed expectations update.

  • platform/chromium/test_expectations.txt:
8:02 AM Changeset in webkit [98960] by caseq@chromium.org
  • 2 edits in trunk/LayoutTests

Unreviewed expectations update.

  • platform/chromium/test_expectations.txt:
7:41 AM Changeset in webkit [98959] by Simon Hausmann
  • 2 edits in trunk/Source/WebKit2

Prospective clang build fix.

Reviewed by Andreas Kling.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::didReceiveEvent): Handle GestureSingleTap in the event type switch.

6:58 AM Changeset in webkit [98958] by pfeldman@chromium.org
  • 2 edits in trunk/Source/WebKit/chromium

2011-11-01 Pavel Feldman <pfeldman@google.com>

Not reviewed: fix chromium interactive tests.

  • src/js/Tests.js: (.TestSuite.prototype.showPanel):
6:34 AM Changeset in webkit [98957] by caio.oliveira@openbossa.org
  • 3 edits
    4 adds in trunk/Source/WebKit2

[Qt] Create infrastructure for Qt's builtin bundle in web process.
https://bugs.webkit.org/show_bug.cgi?id=71279

Reviewed by Simon Hausmann.

Create a builtin bundle for Qt port: an InjectedBundle which the code is together
with the Qt's web process instead of being in a different library. This gives us
access to many hooks at web process (using WKBundle* functions of C API) without
adding any maintenance burden to cross-port code.

Since we also use a InjectedBundle in the WebKitTestRunner, we only install our
builtin bundle if there's no other installed. This is fine because WTR won't use
the extra runtime features that we plan to provide with the builtin bundle.

  • WebKit2.pro:
  • WebProcess/qt/QtBuiltinBundle.cpp: Added.

(WebKit::QtBuiltinBundle::~QtBuiltinBundle):
(WebKit::QtBuiltinBundle::shared):
(WebKit::QtBuiltinBundle::initialize):
(WebKit::QtBuiltinBundle::didCreatePage):
(WebKit::QtBuiltinBundle::willDestroyPage):
(WebKit::QtBuiltinBundle::bundlePageForPageRef):

  • WebProcess/qt/QtBuiltinBundle.h: Added.

(WebKit::QtBuiltinBundle::toRef):
Object that holds a WKBundleRef and keeps track of the pages in the current context.

  • WebProcess/qt/QtBuiltinBundlePage.cpp: Added.

(WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage):
(WebKit::QtBuiltinBundlePage::~QtBuiltinBundlePage):

  • WebProcess/qt/QtBuiltinBundlePage.h: Added.

(WebKit::QtBuiltinBundlePage::page):
Our representation for pages from the bundle perspective. This will be the right
place to registering page related clients.

  • WebProcess/qt/WebProcessQt.cpp:

(WebKit::WebProcess::platformInitializeWebProcess):
If there's no bundle to be loaded, initialize Qt builtin bundle, which will register the
bundle client for this context.

6:32 AM Changeset in webkit [98956] by apavlov@chromium.org
  • 5 edits in trunk

Web Inspector: [Styles] Style-based CSS properties are editable and toggleable
https://bugs.webkit.org/show_bug.cgi?id=71275

Reviewed by Pavel Feldman.

Source/WebCore:

  • inspector/front-end/StylesSidebarPane.js:

(WebInspector.StylePropertiesSection.prototype.onpopulate):

LayoutTests:

  • inspector/styles/styles-source-lines-expected.txt:
  • inspector/styles/styles-update-from-js-expected.txt:
6:09 AM Changeset in webkit [98955] by caseq@chromium.org
  • 7 edits
    2 adds in trunk/LayoutTests

Web Inspector: make extension tests pass on chromium
https://bugs.webkit.org/show_bug.cgi?id=70334

Reviewed by Pavel Feldman.

  • http/tests/inspector/extensions-headers.html:
  • http/tests/inspector/resources/extension-main.js:

():

  • inspector/extensions/extensions-audits.html:
  • inspector/extensions/extensions-console.html:
  • inspector/extensions/extensions-resources.html:
  • platform/chromium/inspector/extensions/extensions-api-expected.txt: Added.
  • platform/chromium/inspector/extensions/extensions-eval-expected.txt: Added.
  • platform/chromium/test_expectations.txt:
5:59 AM Changeset in webkit [98954] by pfeldman@chromium.org
  • 2 edits in trunk/LayoutTests

2011-11-01 Pavel Feldman <pfeldman@google.com>

Not reviewed: fix extensions tests.

  • http/tests/inspector/extensions-test.js: (initialize_ExtensionsTest.InspectorTest.showPanel):
5:53 AM Changeset in webkit [98953] by pfeldman@chromium.org
  • 2 edits in trunk/LayoutTests

2011-11-01 Pavel Feldman <pfeldman@google.com>

Not reviewed: fix inspector extensions tests.

  • inspector/extensions/extensions.html:
5:36 AM Changeset in webkit [98952] by pfeldman@chromium.org
  • 2 edits in trunk/Source/WebCore

Web Inspector: do not switch panels on Cmd + -> while in console.
https://bugs.webkit.org/show_bug.cgi?id=71281

Reviewed by Yury Semikhatsky.

  • inspector/front-end/InspectorView.js:

(WebInspector.InspectorView.prototype._keyDown):

5:34 AM Changeset in webkit [98951] by alexis.menard@openbossa.org
  • 2 edits in trunk/Source/WebKit/qt

Unreviewed Qt documentation fix.

This signal is Qt 4.8 material.

  • Api/qwebpage.cpp:
4:36 AM Changeset in webkit [98950] by jocelyn.turcotte@nokia.com
  • 3 edits in trunk/Tools

check-webkit-style: Allow names starting with "_q_".
https://bugs.webkit.org/show_bug.cgi?id=70625

Reviewed by Tor Arne Vestbø.

Used by the Qt port as the standard prefix for private slots.

  • Scripts/webkitpy/style/checkers/cpp.py:
  • Scripts/webkitpy/style/checkers/cpp_unittest.py:
3:35 AM Changeset in webkit [98949] by caseq@chromium.org
  • 2 edits in trunk/LayoutTests

Unreviewed expectations update.

  • platform/chromium/test_expectations.txt:
3:29 AM Changeset in webkit [98948] by caseq@chromium.org
  • 2 edits in trunk/LayoutTests

Unreviewed expectations update.

  • platform/chromium/test_expectations.txt:
3:17 AM Changeset in webkit [98947] by commit-queue@webkit.org
  • 2 edits in trunk/Source/WebCore

[Qt] bad codegen, pointer diff in JSC::JSCallbackConstructor::JSCallbackConstructor
https://bugs.webkit.org/show_bug.cgi?id=60951

Adjust symbols visibility for WebCore.

Patch by Zeno Albisser <zeno.albisser@nokia.com> on 2011-11-01
Reviewed by Simon Hausmann.

  • WebCore.pro:
3:14 AM Changeset in webkit [98946] by pfeldman@chromium.org
  • 2 edits in trunk/Source/WebCore

2011-11-01 Pavel Feldman <pfeldman@google.com>

Not reviewed: add InspectorView.js entry into WebKit.qrc

  • inspector/front-end/WebKit.qrc:
3:05 AM Changeset in webkit [98945] by pfeldman@chromium.org
  • 29 edits
    1 add in trunk

Web Inspector: introduce PanelContainer class, start moving panel management from inspector.js to the new class.
https://bugs.webkit.org/show_bug.cgi?id=71272

Reviewed by Yury Semikhatsky.

Source/WebCore:

  • WebCore.gypi:
  • WebCore.vcproj/WebCore.vcproj:
  • inspector/compile-front-end.sh:
  • inspector/front-end/Drawer.js:

(WebInspector.Drawer.prototype.show.animationFinished):
(WebInspector.Drawer.prototype.show):
(WebInspector.Drawer.prototype.hide):
(WebInspector.Drawer.prototype._statusBarDragging):

  • inspector/front-end/ElementsPanel.js:

(WebInspector.ElementsPanel.prototype.switchToAndFocus):
(WebInspector.ElementsPanel.prototype.revealAndSelectNode):

  • inspector/front-end/ElementsTreeOutline.js:

(WebInspector.ElementsTreeOutline.prototype.setVisible):

  • inspector/front-end/InspectorView.js: Added.

(WebInspector.InspectorView):
(WebInspector.InspectorView.prototype.addPanel):
(WebInspector.InspectorView.prototype.currentPanel):
(WebInspector.InspectorView.prototype._keyDown):
(WebInspector.InspectorView.prototype._canGoBackInHistory):
(WebInspector.InspectorView.prototype._goBackInHistory):
(WebInspector.InspectorView.prototype._canGoForwardInHistory):
(WebInspector.InspectorView.prototype._goForwardInHistory):
(WebInspector.InspectorView.prototype._pushToHistory):

  • inspector/front-end/KeyboardShortcut.js:

(WebInspector.KeyboardShortcut.eventHasCtrlOrMeta):

  • inspector/front-end/Panel.js:

(WebInspector.Panel.prototype.show):

  • inspector/front-end/ScriptsPanel.js:

(WebInspector.ScriptsPanel.prototype._toggleBreakpointsClicked):

  • inspector/front-end/SearchController.js:

(WebInspector.SearchController.prototype.updateSearchMatchesCount):
(WebInspector.SearchController.prototype.updateCurrentMatchIndex):
(WebInspector.SearchController.prototype.updateSearchLabel):
(WebInspector.SearchController.prototype.handleShortcut):
(WebInspector.SearchController.prototype._performSearch):

  • inspector/front-end/Toolbar.js:

(WebInspector.Toolbar.createPanelToolbarItem.onToolbarItemClicked):
(WebInspector.Toolbar.createPanelToolbarItem):

  • inspector/front-end/WebKit.qrc:
  • inspector/front-end/externs.js:
  • inspector/front-end/inspector.html:
  • inspector/front-end/inspector.js:

(WebInspector._createPanels):
(WebInspector._panelSelected):
(WebInspector.addPanel):
(WebInspector.windowResize):
(WebInspector.documentKeyDown):
(WebInspector.documentCanCopy):
(WebInspector.documentCopy):
(WebInspector.showPanel):
(WebInspector.startUserInitiatedDebugging):
(WebInspector.inspect):
(WebInspector._showAnchorLocationInPanel):
(WebInspector._toolbarItemClicked):

  • inspector/front-end/treeoutline.js:

(TreeElement.prototype.select):

LayoutTests:

  • http/tests/inspector/elements-test.js:

(initialize_ElementTest.InspectorTest.expandElementsTree):

  • http/tests/inspector/resource-tree/resource-tree-test.js:

(initialize_ResourceTreeTest.InspectorTest.dumpResourcesTree):

  • inspector/debugger/debugger-expand-scope.html:
  • inspector/debugger/debugger-proto-property.html:
  • inspector/debugger/dom-breakpoints.html:
  • inspector/elements/elements-img-tooltip.html:
  • inspector/elements/elements-panel-limited-children.html:
  • inspector/storage-panel-dom-storage.html:
  • inspector/styles/styles-new-API.html:
  • inspector/view-css.html:
  • inspector/view-events.html:
3:02 AM Changeset in webkit [98944] by leandro@webkit.org
  • 1 edit
    392 adds in trunk/LayoutTests

[EFL] Unreviewed. Add pixel baselines for fast/ tests.

  • platform/efl/fast/doctypes: [...]
  • platform/efl/fast/dom: [...]
  • platform/efl/fast/dynamic: [...]
  • platform/efl/fast/encoding: [...]
  • platform/efl/fast/events: [...]
  • platform/efl/fast/fast-mobile-scrolling: [...]
  • platform/efl/fast/flexbox: [...]
  • platform/efl/fast/forms: [...]
  • platform/efl/fast/frames: [...]
  • platform/efl/fast/gradients: [...]
2:54 AM Changeset in webkit [98943] by Simon Hausmann
  • 7 edits in trunk/Source

[WK2] Add WebGestureEvents to the Qt build and enable PlatformGestureEvent::TapType
https://bugs.webkit.org/show_bug.cgi?id=71274

Reviewed by Kenneth Christiansen.

Source/WebCore:

  • features.pri: Enable GESTURE_EVENTS.

Source/WebKit2:

  • Shared/WebEvent.h: Add GestureSingleTap as gesture type.
  • Shared/WebEventConversion.cpp:

(WebKit::WebKit2PlatformGestureEvent::WebKit2PlatformGestureEvent): Support converting
WebEven::GestureSingleTap to PlatformGestureEvent::TapType.

  • Shared/WebGestureEvent.cpp:

(WebKit::WebGestureEvent::isGestureEventType): GestureSingleTap is a valid gesture event type.

  • WebKit2.pro: Add WebGestureEvent.cpp to the build.
2:54 AM Changeset in webkit [98942] by Simon Hausmann
  • 2 edits in trunk/Tools

[Qt][WK2] Fix valgrind error about uninitialized variable
https://bugs.webkit.org/show_bug.cgi?id=71273

Reviewed by Kenneth Christiansen.

  • MiniBrowser/qt/MiniBrowserApplication.cpp:

(MiniBrowserApplication::notify): Initialize isPrimary.

12:35 AM Changeset in webkit [98941] by caseq@chromium.org
  • 2 edits in trunk/LayoutTests

Unreviewed gardening (fixed platform qualifiers for visibility-image-layers.html)

  • platform/chromium/test_expectations.txt:
12:24 AM Changeset in webkit [98940] by yurys@chromium.org
  • 8 edits
    2 deletes in trunk

Unreviewed, rolling out r98847.
http://trac.webkit.org/changeset/98847
https://bugs.webkit.org/show_bug.cgi?id=71268

"Debugger test failures on multiple platforms" (Requested by
yurys on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-11-01

Source/WebCore:

  • inspector/front-end/DebuggerPresentationModel.js:

(WebInspector.DebuggerPresentationModel):
(WebInspector.DebuggerPresentationModel.prototype._addScript):
(WebInspector.DebuggerPresentationModel.prototype.uiSourceCodes):
(WebInspector.DebuggerPresentationModel.prototype.setFormatSource):
(WebInspector.DebuggerPresentationModel.prototype._consoleCleared):
(WebInspector.DebuggerPresentationModel.prototype._rawSourceCodeForScriptWithURL):
(WebInspector.DebuggerPresentationModel.prototype._rawSourceCodeForScript):
(WebInspector.DebuggerPresentationModel.prototype._scriptForRawSourceCode):
(WebInspector.DebuggerPresentationModel.prototype._createRawSourceCodeId):
(WebInspector.DebuggerPresentationModel.prototype._debuggerReset):
(WebInspector.DebuggerPresentationModel.Linkifier.prototype.reset):

  • inspector/front-end/RawSourceCode.js:

(WebInspector.RawSourceCode.prototype._createSourceMapping.didRequestContent.didFormatContent):
(WebInspector.RawSourceCode.prototype._createSourceMapping.didRequestContent):
(WebInspector.RawSourceCode.prototype._createSourceMapping):

  • inspector/front-end/Script.js:

(WebInspector.Script.prototype.editSource):

LayoutTests:

  • inspector/debugger/bind-script-to-resource-expected.txt: Removed.
  • inspector/debugger/bind-script-to-resource.html: Removed.
  • inspector/debugger/linkifier-expected.txt:
  • inspector/debugger/linkifier.html:
12:11 AM Changeset in webkit [98939] by yurys@chromium.org
  • 2 edits in trunk/LayoutTests

2011-11-01 Yury Semikhatsky <yurys@chromium.org>

Unreviewed. Rebaseline test started failing because syntax errors in inline handlers
are now reported to console.

window.onerror doesn't work with inline (attribute) scripts
https://bugs.webkit.org/show_bug.cgi?id=70991

  • fast/js/invalid-syntax-for-function-expected.txt:
Note: See TracTimeline for information about the timeline view.