Timeline
Nov 14, 2008:
- 11:43 PM Changeset in webkit [38419] by
-
- 2 edits in trunk/JavaScriptCore
2008-11-14 Cameron Zwarich <zwarich@apple.com>
Reviewed by Darin Adler.
Bug 22259: Make all opcodes use eax as their final result register
<https://bugs.webkit.org/show_bug.cgi?id=22259>
Change one case of op_add (and the corresponding slow case) to use eax
rather than edx. Also, change the order in which the two results of
resolve_func and resolve_base are emitted so that the retrieved value is
put last into eax.
This gives no performance change on SunSpider or the V8 benchmark suite
when run in either harness.
- VM/CTI.cpp: (JSC::CTI::privateCompileMainPass): (JSC::CTI::privateCompileSlowCases):
- 8:47 PM Changeset in webkit [38418] by
-
- 80 edits1 add in trunk/WebCore
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=21810
Remove use of static C++ objects that are destroyed at exit time (destructors)
Create DEFINE_STATIC_LOCAL macro. Change static local objects to leak to avoid
exit-time destructor. Update code that was changed to fix this issue that ran
into a gcc bug (<rdar://problem/6354696> Codegen issue with C++ static reference
in gcc build 5465). Also typdefs for template types needed to be added in some
cases so the type could make it through the macro successfully.
Basically code of the form:
static T m;
becomes:
DEFINE_STATIC_LOCAL(T, m, ());
Also any code of the form:
static T& m = *new T;
also becomes:
DEFINE_STATIC_LOCAL(T, m, ());
- 8:24 PM Changeset in webkit [38417] by
-
- 2 edits in trunk/WebCore
- attempt to fix the Qt build
- platform/qt/Localizations.cpp: (WebCore::contextMenuItemTagTextDirectionMenu): Added. Maybe this string needs to go somewhere else in addition to here.
- 8:19 PM Changeset in webkit [38416] by
-
- 2 edits in trunk/WebKit/win
- try to fix the Windows build
- WebCoreLocalizedStrings.cpp: (WebCore::contextMenuItemTagTextDirectionMenu): Added.
- 7:25 PM Changeset in webkit [38415] by
-
- 4 edits in trunk
wx build (and buildbot) fix.
- 6:51 PM Changeset in webkit [38414] by
-
- 3 edits in trunk/JavaScriptCore
2008-11-14 Gavin Barraclough <barraclough@apple.com>
Reviewed by Geoff Garen.
Geoff has this wacky notion that emitGetArg and emitPutArg should be related to
doing the same thing. Crazy.
Rename the methods for accessing virtual registers to say 'VirtualRegister' in the
name, and those for setting up the arguments for CTI methods to contain 'CTIArg'.
- VM/CTI.cpp: (JSC::CTI::emitGetVirtualRegister): (JSC::CTI::emitGetVirtualRegisters): (JSC::CTI::emitPutCTIArgFromVirtualRegister): (JSC::CTI::emitPutCTIArg): (JSC::CTI::emitGetCTIArg): (JSC::CTI::emitPutCTIArgConstant): (JSC::CTI::emitPutVirtualRegister): (JSC::CTI::compileOpCallSetupArgs): (JSC::CTI::compileOpCallEvalSetupArgs): (JSC::CTI::compileOpConstructSetupArgs): (JSC::CTI::compileOpCall): (JSC::CTI::compileOpStrictEq): (JSC::CTI::putDoubleResultToJSNumberCellOrJSImmediate): (JSC::CTI::compileBinaryArithOp): (JSC::CTI::compileBinaryArithOpSlowCase): (JSC::CTI::privateCompileMainPass): (JSC::CTI::privateCompileSlowCases): (JSC::CTI::privateCompileCTIMachineTrampolines):
- VM/CTI.h:
- 5:37 PM Changeset in webkit [38413] by
-
- 3 edits in trunk/JavaScriptCore
Reviewed by Antti Koivisto
Fix potential build break by adding StdLibExtras.h
- 5:33 PM Changeset in webkit [38412] by
-
- 6 edits in trunk/JavaScriptCore
2008-11-14 Gavin Barraclough <barraclough@apple.com>
Reviewed by Geoff Garen.
Generate less code for the slow cases of op_call and op_construct.
https://bugs.webkit.org/show_bug.cgi?id=22272
1% progression on v8 tests.
- VM/CTI.cpp: (JSC::CTI::emitRetrieveArg): (JSC::CTI::emitNakedCall): (JSC::CTI::compileOpCallInitializeCallFrame): (JSC::CTI::compileOpCall): (JSC::CTI::privateCompileSlowCases): (JSC::CTI::privateCompileCTIMachineTrampolines):
- VM/CTI.h:
- VM/CodeBlock.h: (JSC::getCallLinkInfoReturnLocation): (JSC::CodeBlock::getCallLinkInfo):
- VM/Machine.cpp: (JSC::Machine::Machine): (JSC::Machine::cti_vm_dontLazyLinkCall): (JSC::Machine::cti_vm_lazyLinkCall):
- VM/Machine.h:
- 5:29 PM Changeset in webkit [38411] by
-
- 4 edits1 add in trunk/JavaScriptCore
Reviewed by Darin Alder.
https://bugs.webkit.org/show_bug.cgi?id=21810
Remove use of static C++ objects that are destroyed at exit time (destructors)
Create DEFINE_STATIC_LOCAL macro. Change static local objects to leak to avoid
exit-time destructor. Update code that was changed to fix this issue that ran
into a gcc bug (<rdar://problem/6354696> Codegen issue with C++ static reference
in gcc build 5465). Also typdefs for template types needed to be added in some
cases so the type could make it through the macro successfully.
Basically code of the form:
static T m;
becomes:
DEFINE_STATIC_LOCAL(T, m, ());
Also any code of the form:
static T& m = *new T;
also becomes:
DEFINE_STATIC_LOCAL(T, m, ());
- 3:50 PM Changeset in webkit [38410] by
-
- 31 edits in trunk
WebCore:
Reviewed by Darin Adler.
- <rdar://problem/6234307> Support action methods for setting and clearing character-level directionality
- WebCore part of <rdar://problem/6234337> Add a Text Direction menu to the default context menu when appropriate
- WebCore.base.exp: Exported WebCore::Settings::setTextDirectionSubmenuInclusionBehavior().
- editing/ApplyStyleCommand.cpp: (StyleChange::init): Changed to always include the direction property in the result if the unicode-bidi property is included. (ApplyStyleCommand::splitAncestorsWithUnicodeBidi): Added. Finds the highest ancestor of the given node that establishes bidi embedding. If that embedding agrees with the given allowed direction, finds the second-highest embedding ancestor. Splits all nodes through that ancestor. If the highest embedding ancestor did not need to be split, it is returned. (ApplyStyleCommand::removeEmbeddingUpToEnclosingBlock): Added. Removes bidi embedding attributes and styles from all ancestors of the given node up to its enclosing block or the given node. (ApplyStyleCommand::applyInlineStyle): Added code to handle the unicode-bidi property. Applying style the includes this property involves removing all bidi embedding in effect, except for one-level embedding that agrees with the desired embedding, then applying the desired embedding where it is not already in effect. (ApplyStyleCommand::applyInlineStyleToRange): Factored out from applyInlineStyle(). (ApplyStyleCommand::removeHTMLBidiEmbeddingStyle): Added. Removed the "dir" attribute if necessary and the element if it becomes an unstyled style span. (ApplyStyleCommand::removeCSSStyle): Changed to remove the direction property when removing the unicode-bidi property. (ApplyStyleCommand::removeInlineStyle): Added a call to removeHTMLBidiEmbeddingStyle().
- editing/ApplyStyleCommand.h:
- editing/Editor.cpp: (Editor::textDirectionForSelection): Added. Returns the character-level writing direction of the selection if it is uniform and simple (at most one level of embedding). (Editor::hasBidiSelection): Added. Returns true if the selection lies entirely within a single block, and that block has direction:rtl or contains any inline boxes with non-zero bidi embedding level.
- editing/Editor.h:
- editing/EditorCommand.cpp: (stateTextWritingDirection): Added this helper function for deciding the state of Text Direction submenu items. (executeMakeTextWritingDirectionLeftToRight): Added. Applies "unicode-bidi: embed; direction: ltr;". (executeMakeTextWritingDirectionNatural): Added. Applies "unicode-bidi: normal;" (executeMakeTextWritingDirectionRightToLeft): Added. Applies "unicode-bidi: embed; direction: rtl;". (stateTextWritingDirectionLeftToRight): Added. (stateTextWritingDirectionNatural): Added. (stateTextWritingDirectionRightToLeft): Added. (createCommandMap): Added "MakeTextWritingDirectionLeftToRight", "MakeTextWritingDirectionNatural", and "MakeTextWritingDirectionRightToLeft".
- editing/InsertTextCommand.cpp: (InsertTextCommand::input): Added code to maintain the unicode-bidi and direction properties in the typing style. Even if they have the same values as the computed style at the caret, they need to be included in the typing style so that inserted text will not inherit any nested embedding.
- page/ContextMenuController.cpp: (ContextMenuController::contextMenuItemSelected): Added calls to the editor for the text direction menu items.
- page/Frame.cpp (Frame::computeAndSetTypingStyle): Added code to maintain the unicode-bidi and direction properties in the typing style.
- page/Settings.cpp: (Settings::setTextDirectionSubmenuInclusionBehavior): Added this setter.
- page/Settings.h: Added a TextDirectionSubmenuInclusionBehavior enum, an m_textDirectionSubmenuInclusionBehavior member, and accessors.
- page/mac/WebCoreViewFactory.h:
- platform/ContextMenu.cpp: (WebCore::createAndAppendTextDirectionSubMenu): Added. (ContextMenu::populate): Added the Text Direction submenu item based on the inclusion behavior and the existence of a bidi selection. (ContextMenu::checkOrEnableIfNeeded): Added code for the text direction menu items.
- platform/ContextMenuItem.h:
- platform/LocalizedStrings.h: Declared contextMenuItemTagTextDirectionMenu().
- platform/mac/LocalizedStringsMac.mm: Defined contextMenuItemTagTextDirectionMenu().
- rendering/RenderBlock.cpp: (RenderBlock::containsNonZeroBidiLevel): Added.
- rendering/RenderBlock.h:
WebKit:
Reviewed by Darin Adler.
- part of <rdar://problem/6234337> Add a Text Direction menu to the default context menu when appropriate
- English.lproj/Localizable.strings: Added the Text Direction submenu title.
WebKit/mac:
Reviewed by Darin Adler.
- <rdar://problem/6234333> Implement action methods for setting and clearing character-level directionality
- part of <rdar://problem/6234337> Add a Text Direction menu to the default context menu when appropriate
- WebCoreSupport/WebViewFactory.mm: (-[WebViewFactory contextMenuItemTagTextDirectionMenu]): Added.
- WebView/WebFrame.mm: (core): Added a convertor from WebTextDirectionSubmenuInclusionBehavior to WebCore::TextDirectionSubmenuInclusionBehavior.
- WebView/WebFrameInternal.h:
- WebView/WebHTMLView.mm: Added makeTextWritingDirectionLeftToRight:, makeTextWritingDirectionNatural: and makeTextWritingDirectionRightToLeft: using the WEBCORE_COMMAND macro.
- WebView/WebPreferenceKeysPrivate.h: Added WebKitTextDirectionSubmenuInclusionBehaviorPreferenceKey.
- WebView/WebPreferences.mm: (+[WebPreferences initialize]): Set the default Text Direction submenu inclusion behavior to never include. (-[WebPreferences textDirectionSubmenuInclusionBehavior]): Added this accessor. (-[WebPreferences setTextDirectionSubmenuInclusionBehavior:]): Ditto.
- WebView/WebPreferencesPrivate.h: Defined the WebTextDirectionSubmenuInclusionBehavior enum and declared accessors.
- WebView/WebUIDelegatePrivate.h:
- WebView/WebView.mm: (-[WebView _preferencesChangedNotification:]): Added code to transfer the Text Direction submenu inclusion behavior preference to WebCore settings.
- 3:48 PM Changeset in webkit [38409] by
-
- 4 edits in trunk/WebCore
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=22264
Need to update to latest Geolocation spec (13 November 2008)
Update to new error code constants and values.
- page/Geolocation.cpp: Use new named ErrorCode enums (WebCore::Geolocation::GeoNotifier::timerFired): (WebCore::Geolocation::getCurrentPosition): (WebCore::Geolocation::watchPosition):
- page/PositionError.h: Have ErrorCode enum names match new error constant names and values (WebCore::PositionError::):
- page/PositionError.idl: Add new named error constants
- 3:37 PM Changeset in webkit [38408] by
-
- 9 edits4 adds in trunk
WebCore:
2008-11-14 Beth Dakin <Beth Dakin>
Reviewed by Justin Garcia.
Fix (again) for <rdar://problem/5089327> Too much indentation when
pasting quoted paragraphs
This patch goes back to Justin's original approach to fix this bug,
written in revision 38273. That fix was mostly rolled out by
revision 38310 because of styling issues created by the addition of
extra blockquote nodes. This patch again goes back to Justin's
original fix because of cases we discovered the newer fix could not
possibly cover. This version of the patch minimizes the styling
issues of extra blockquotes by opting into the merge start code.
- editing/ReplaceSelectionCommand.cpp: (WebCore::hasMatchingQuoteLevel): We want shouldMergeStart to return true when the quoting level of the end of the inserted content matches the quoting level of the end of the existing content. (WebCore::ReplaceSelectionCommand::shouldMergeStart): Now calls hasMatchingQuoteLevel (WebCore::ReplaceSelectionCommand::doApply):
LayoutTests:
2008-11-14 Beth Dakin <Beth Dakin>
Reviewed by Justin Garcia.
Tests for <rdar://problem/5089327> Too much indentation when
pasting quoted paragraphs
New test:
- editing/pasteboard/paste-blockquote-into-blockquote-4.html: Added.
- platform/mac/editing/pasteboard/paste-blockquote-into- blockquote-4-expected.checksum: Added.
- platform/mac/editing/pasteboard/paste-blockquote-into- blockquote-4-expected.png: Added.
- platform/mac/editing/pasteboard/paste-blockquote-into- blockquote-4-expected.txt: Added.
Changes results for existing tests:
- platform/mac/editing/pasteboard/merge-end-blockquote- expected.checksum:
- platform/mac/editing/pasteboard/merge-end-blockquote- expected.png:
- platform/mac/editing/pasteboard/merge-end-blockquote- expected.txt:
- platform/mac/editing/pasteboard/paste-blockquote-into- blockquote-2-expected.txt:
- platform/mac/editing/pasteboard/paste-blockquote-into- blockquote-3-expected.txt:
- platform/mac/editing/pasteboard/paste-blockquote-into-blockquote- expected.txt:
- 3:36 PM Changeset in webkit [38407] by
-
- 6 edits in trunk/JavaScriptCore
2008-11-13 Sam Weinig <sam@webkit.org>
Reviewed by Darin Adler
Fix for https://bugs.webkit.org/show_bug.cgi?id=22269
Reduce PropertyMap usage
From observation of StructureID statistics, it became clear that many
StructureID's were not being used as StructureIDs themselves, but rather
only being necessary as links in the transition chain. Acknowledging this
and that PropertyMaps stored in StructureIDs can be treated as caches, that
is that they can be reconstructed on demand, it became clear that we could
reduce the memory consumption of StructureIDs by only keeping PropertyMaps
for the StructureIDs that need them the most.
The specific strategy used to reduce the number of StructureIDs with
PropertyMaps is to take the previous StructureIDs PropertyMap when initially
transitioning (addPropertyTransition) from it and clearing out the pointer
in the process. The next time we need to do the same transition, for instance
repeated calls to the same constructor, we use the new addPropertyTransitionToExistingStructure
first, which allows us not to need the PropertyMap to determine if the property
exists already, since a transition to that property would require it not already
be present in the StructureID. Should there be no transition, the PropertyMap
can be constructed on demand (via materializePropertyMap) to determine if the put is a
replace or a transition to a new StructureID.
Reduces memory use on Membuster head test (30 pages open) by ~15MB.
- JavaScriptCore.exp:
- runtime/JSObject.h: (JSC::JSObject::putDirect): First use addPropertyTransitionToExistingStructure so that we can avoid building the PropertyMap on subsequent similar object creations.
- runtime/PropertyMapHashTable.h: (JSC::PropertyMapEntry::PropertyMapEntry): Add version of constructor which takes all values to be used when lazily building the PropertyMap.
- runtime/StructureID.cpp: (JSC::StructureID::dumpStatistics): Add statistics on the number of StructureIDs with PropertyMaps. (JSC::StructureID::StructureID): Rename m_cachedTransistionOffset to m_offset (JSC::isPowerOf2): (JSC::nextPowerOf2): (JSC::sizeForKeyCount): Returns the expected size of a PropertyMap for a key count. (JSC::StructureID::materializePropertyMap): Builds the PropertyMap out of its previous pointer chain. (JSC::StructureID::addPropertyTransitionToExistingStructure): Only transitions if there is a an existing transition. (JSC::StructureID::addPropertyTransition): Instead of always copying the ProperyMap, try and take it from it previous pointer. (JSC::StructureID::removePropertyTransition): Simplify by calling toDictionaryTransition() to do transition work. (JSC::StructureID::changePrototypeTransition): Build the PropertyMap if necessary before transitioning because once you have transitioned, you will not be able to reconstruct it afterwards as there is no previous pointer, pinning the ProperyMap as well. (JSC::StructureID::getterSetterTransition): Ditto. (JSC::StructureID::toDictionaryTransition): Pin the PropertyMap so that it is not destroyed on further transitions. (JSC::StructureID::fromDictionaryTransition): We can only transition back from a dictionary transition if there are no deleted offsets. (JSC::StructureID::addPropertyWithoutTransition): Build PropertyMap on demands and pin. (JSC::StructureID::removePropertyWithoutTransition): Ditto. (JSC::StructureID::get): Build on demand. (JSC::StructureID::createPropertyMapHashTable): Add version of create that takes a size for on demand building. (JSC::StructureID::expandPropertyMapHashTable): (JSC::StructureID::rehashPropertyMapHashTable): (JSC::StructureID::getEnumerablePropertyNamesInternal): Build PropertyMap on demand.
- runtime/StructureID.h: (JSC::StructureID::propertyStorageSize): Account for StructureIDs without PropertyMaps. (JSC::StructureID::isEmpty): Ditto. (JSC::StructureID::materializePropertyMapIfNecessary): (JSC::StructureID::get): Build PropertyMap on demand
- 2:58 PM Changeset in webkit [38406] by
-
- 2 edits in trunk/WebKitTools
2008-11-14 Alp Toker <alp@nuanti.com>
GTK DRT build fix for gcc 4.4 snapshot. Add missing stdio include.
Fixes Debian bug #505723
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505723
- DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
- 1:41 PM Changeset in webkit [38405] by
-
- 10 edits3 deletes in trunk/WebCore
Reviewed by Eric Seidel.
Made SVGResourceClipper platform independent.
https://bugs.webkit.org/show_bug.cgi?id=21444
- GNUmakefile.am:
- WebCore.pro:
- WebCore.vcproj/WebCore.vcproj:
- WebCore.xcodeproj/project.pbxproj:
- platform/graphics/GraphicsContext.h:
- platform/graphics/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::clipPath):
- platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::clipPath):
- platform/graphics/qt/GraphicsContextQt.cpp: (WebCore::GraphicsContext::addPath): (WebCore::GraphicsContext::clipPath):
- svg/graphics/SVGResourceClipper.cpp: (WebCore::SVGResourceClipper::applyClip):
- svg/graphics/cairo/SVGResourceClipperCairo.cpp: Removed.
- svg/graphics/cg/SVGResourceClipperCg.cpp: Removed.
- svg/graphics/qt/SVGResourceClipperQt.cpp: Removed.
- 1:34 PM Changeset in webkit [38404] by
-
- 3 edits in trunk/WebCore
2008-11-14 Antti Koivisto <Antti Koivisto>
Reviewed by Anders Carlsson.
Combine loadFrameRequestWithFormState to loadFrameRequestWithFormAndValues.
- loader/FrameLoader.cpp: (WebCore::FrameLoader::loadFrameRequestWithFormAndValues):
- loader/FrameLoader.h:
- 12:02 PM Changeset in webkit [38403] by
-
- 2 edits in trunk/WebCore
2008-11-14 Sam Weinig <sam@webkit.org>
Reviewed by Eric Seidel.
Remove unneeded forward declaration.
- plugins/Plugin.h:
- 11:32 AM Changeset in webkit [38402] by
-
- 2 edits in trunk/WebKit/mac
2008-11-14 Darin Adler <Darin Adler>
Reviewed by Mark Rowe.
- fix https://bugs.webkit.org/show_bug.cgi?id=22222 selectKeyViewPrecedingView: with document view that can't be first responder makes WebFrameView be first responder
- WebView/WebFrameView.mm: (-[WebFrameView becomeFirstResponder]): Moved the acceptsFirstResponder special case inside the if statement so it won't run in the "selecting previous" case. Also removed the "just before shipping Tiger" code that doesn't need to be here any more.
- 11:29 AM Changeset in webkit [38401] by
-
- 2 edits in trunk/WebKit/qt
2008-10-24 Yael Aharon <yael.aharon@nokia.com>
Reviewed by Simon Hausmann.
Added some basic unit tests for the public database API.
- 11:01 AM Changeset in webkit [38400] by
-
- 3 edits in trunk/WebKit/qt
2008-11-14 Simon Hausmann <Simon Hausmann>
Fix the Qt build, add missing export macros for the new classes.
- 10:53 AM Changeset in webkit [38399] by
-
- 2 edits in trunk/WebCore
2008-11-14 Darin Fisher <darin@chromium.org>
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=22251
HTMLCanvasElement.cpp unnecessarily includes runtime/Interpreter.h
- html/HTMLCanvasElement.cpp:
- 10:52 AM Changeset in webkit [38398] by
-
- 2 edits in trunk/JavaScriptCore
2008-11-14 Csaba Osztrogonac <oszi@inf.u-szeged.hu>
Reviewed by Simon Hausmann.
JavaScriptCore build with -O3 flag instead of -O2 (gcc).
2.02% speedup on SunSpider (Qt-port on Linux)
1.10% speedup on V8 (Qt-port on Linux)
3.45% speedup on WindScorpion (Qt-port on Linux)
- 10:44 AM Changeset in webkit [38397] by
-
- 2 edits in trunk/WebKitTools
2008-11-14 Krishna <krishnamurty.podipireddy@nokia.com>
Reviewed by Simon Hausmann.
Fix hanging DRT with Qt.
- 10:40 AM Changeset in webkit [38396] by
-
- 11 edits6 adds in trunk
WebCore:
2008-11-14 Yael Aharon <yael.aharon@nokia.com>
Reviewed by Simon Hausmann.
Add new files from the Qt port to the build.
- WebCore.pro:
WebKit/qt:
2008-10-24 Yael Aharon <yael.aharon@nokia.com>
Reviewed by Simon Hausmann.
Adding public API to provide access to the security origin
(QWebSecurityOrigin) and the databases used for the offline
storage (QWebDatabase).
In addition QWebSettings gains configuration functions for
enabling/disabling offline storage, web application cache
and DOM local storage.
This commits lands the core feature(s), the unit tests and the
documentation are going to follow in the comming days/weeks.
Note: The API is not frozen yet.
- 10:39 AM Changeset in webkit [38395] by
-
- 2 edits in trunk/WebCore
2008-11-14 Yael Aharon <yael.aharon@nokia.com>
Reviewed by Simon Hausmann.
Make it possible to get the cache directory set in the application
cache storage.
- 10:39 AM Changeset in webkit [38394] by
-
- 3 edits in trunk/WebCore
2008-11-14 Yael Aharon <yael.aharon@nokia.com>
Reviewed by Simon Hausmann.
Make it possible to get the cache directory set in the application
cache storage.
- 10:30 AM Changeset in webkit [38393] by
-
- 4 edits2 adds in trunk
WebCore:
2008-11-14 Justin Garcia <justin.garcia@apple.com>
Reviewed by Beth Dakin.
<rdar://problem/4230923> "Make Plain Text" doesn't reset text alignment in single paragraph messages
When applying block styles, we would add block properties to the body element, and Mail's
Make Plain Text feature isn't equipped to remove those. This could have been fixed on our side,
but this change has the advantage that it fixes the bug on Tiger, where Mail does not plan future updates.
We have code that puts the paragraphs that we're operating on into blocks of their own before
adding or removing block properties from the blocks that enclose them. We need to run this code
when the enclosing block is the body element.
- editing/CompositeEditCommand.cpp: (WebCore::CompositeEditCommand::insertNewDefaultParagraphElementAt): Added, moved code from moveParagraphContents to here. (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary): Renamed some variables for clarity. Added a few comments. Fixed bug by not bailing out when the block about to be used is the body element.
- editing/CompositeEditCommand.h:
LayoutTests:
2008-11-14 Justin Garcia <justin.garcia@apple.com>
Reviewed by Beth Dakin.
<rdar://problem/4230923> "Make Plain Text" doesn't reset text alignment in single paragraph messages
- editing/style/4230923-expected.txt: Added.
- editing/style/4230923.html: Added.
- 9:54 AM Changeset in webkit [38392] by
-
- 2 edits in trunk/JavaScriptCore
2008-11-14 Kristian Amlie <kristian.amlie@trolltech.com>
Reviewed by Darin Adler.
Compile fix for RVCT.
In reality, it is two fixes:
- Remove typename. I believe typename can only be used when the named type depends on the template parameters, which it doesn't in this case, so I think this is more correct.
- Replace ::iterator scope with specialized typedef. This is to work around a bug in RVCT.
- 9:53 AM Changeset in webkit [38391] by
-
- 3 edits in trunk/JavaScriptCore
2008-11-14 Kristian Amlie <kristian.amlie@trolltech.com>
Reviewed by Darin Adler.
Compile fix for WINSCW.
This fix doesn't protect against implicit conversions from bool to
integers, but most likely that will be caught on another platform.
- 9:49 AM Changeset in webkit [38390] by
-
- 11 edits in trunk
2008-11-14 Cameron Zwarich <zwarich@apple.com>
Reviewed by Darin Adler.
Bug 22245: Move wtf/dtoa.h into the WTF namespace
<https://bugs.webkit.org/show_bug.cgi?id=22245>
Move wtf/dtoa.h into the WTF namespace from the JSC namespace. This
introduces some ambiguities in name lookups, so I changed all uses of
the functions in wtf/dtoa.h to explicitly state the namespace.
- JavaScriptCore.exp:
- parser/Lexer.cpp: (JSC::Lexer::lex):
- runtime/InitializeThreading.cpp:
- runtime/JSGlobalObjectFunctions.cpp: (JSC::parseInt):
- runtime/NumberPrototype.cpp: (JSC::integerPartNoExp): (JSC::numberProtoFuncToExponential):
- runtime/UString.cpp: (JSC::concatenate): (JSC::UString::from): (JSC::UString::toDouble):
- wtf/dtoa.cpp:
- wtf/dtoa.h:
WebCore:
- platform/text/String.cpp: (WebCore::charactersToDouble):
- 3:21 AM Changeset in webkit [38389] by
-
- 2 edits in trunk/WebCore
2008-11-14 Tor Arne Vestbø <tavestbo@trolltech.com>
Rubber-stamped by Simon Hausmann.
Make sure Qt scrollbars follow the style with regard to context menus
- 3:20 AM Changeset in webkit [38388] by
-
- 2 edits in trunk/WebCore
2008-11-14 Tor Arne Vestbø <tavestbo@trolltech.com>
Rubber-stamped by Simon Hausmann.
Make scrollbar look active when the window is active on Qt/Mac
- 12:21 AM Changeset in webkit [38387] by
-
- 2 edits in trunk/JavaScriptCore
2008-11-14 Cameron Zwarich <zwarich@apple.com>
Reviewed by Maciej Stachowiak.
Bug 22257: Enable redundant read optimizations for results generated by compileBinaryArithOp()
<https://bugs.webkit.org/show_bug.cgi?id=22257>
This shows no change in performance on either SunSpider or the V8
benchmark suite, but it removes an ugly special case and allows for
future optimizations to be implemented in a cleaner fashion.
This patch was essentially given to me by Gavin Barraclough upon my
request, but I did regression and performance testing so that he could
work on something else.
- VM/CTI.cpp: (JSC::CTI::putDoubleResultToJSNumberCellOrJSImmediate): Move the final result to eax if it is not already there. (JSC::CTI::compileBinaryArithOp): Remove the killing of the final result register that disables the optimization.
Nov 13, 2008:
- 8:39 PM Changeset in webkit [38386] by
-
- 3 edits in trunk/WebKit/mac
Fix the build.
Don't use NSPICTPboardType on systems where it is deprecated. The system will take care of converting
from this format to a format that we can understand.
- WebCoreSupport/WebPasteboardHelper.mm:
(WebPasteboardHelper::insertablePasteboardTypes):
- WebView/WebHTMLView.mm:
(-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:]):
(+[WebHTMLView _insertablePasteboardTypes]):
(-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
- 8:29 PM Changeset in webkit [38385] by
-
- 2 edits in trunk/WebKit/win
Fix Bug 22244: Webkit nightly builds crash with Safari 3.2
r36652 added IWebViewPrivate::clearMainFrameName into the middle of
the IWebViewPrivate interface, which modifies the part of the
IWebViewPrivate vtable that Safari 3.2 relies on.
Reviewed by Dan Bernstein.
- Interfaces/IWebViewPrivate.idl: Move clearMainFrameName to the end of the interface.
- 8:26 PM Changeset in webkit [38384] by
-
- 1 edit2 adds in trunk/WebCore
Reviewed by Adam Roben.
Add a basic Scons-based build system for building
Chromium-Mac WebCore.
https://bugs.webkit.org/show_bug.cgi?id=21991
The build currently fails due to missing files from our
platform directory (platform skia and platform chromium)
I will be sending those up shortly in separate patches.
I expect it will be a while before our WebCore build links.
- SConstruct: Added.
- WebCore.scons: Added.
- 8:26 PM Changeset in webkit [38383] by
-
- 1 edit2 adds in trunk/JavaScriptCore
Reviewed by Adam Roben.
Add a Scons-based build system for building
the Chromium-Mac build of JavaScriptCore.
https://bugs.webkit.org/show_bug.cgi?id=21991
- JavaScriptCore.scons: Added.
- SConstruct: Added.
- 7:54 PM Changeset in webkit [38382] by
-
- 2 edits in trunk/JavaScriptCore
Reviewed by Adam Roben.
Add PLATFORM(CHROMIUM) to the "we don't use cairo" blacklist
until https://bugs.webkit.org/show_bug.cgi?id=22250 is fixed.
- wtf/Platform.h:
- 7:45 PM Changeset in webkit [38381] by
-
- 2 edits in trunk/JavaScriptCore
2008-11-13 Cameron Zwarich <zwarich@apple.com>
Reviewed by Sam Weinig.
In r38375 the 'jsc' shell was changed to improve teardown on quit. The
main() function in jsc.cpp uses Structured Exception Handling, so Visual
C++ emits a warning when destructors are used.
In order to speculatively fix the Windows build, this patch changes that
code to use explicit pointer manipulation and locking rather than smart
pointers and RAII.
- jsc.cpp: (main):
- 5:54 PM Changeset in webkit [38380] by
-
- 2 edits in trunk/WebCore
2008-11-13 Darin Fisher <darin@chromium.org>
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=22248
AtomicString.cpp uses JSC types outside of #if USE(JSC)
- platform/text/AtomicString.cpp: (WebCore::AtomicString::add):
- 5:40 PM Changeset in webkit [38379] by
-
- 3 edits in trunk/JavaScriptCore
2008-11-13 Cameron Zwarich <zwarich@apple.com>
Reviewed by Darin Adler.
Bug 22246: Get arguments for opcodes together to eliminate more redundant memory reads
<https://bugs.webkit.org/show_bug.cgi?id=22246>
It is common for opcodes to read their first operand into eax and their
second operand into edx. If the value intended for the second operand is
in eax, we should first move eax to the register for the second operand
and then read the first operand into eax.
This is a 0.5% speedup on SunSpider and a 2.0% speedup on the V8
benchmark suite when measured using the V8 harness.
- VM/CTI.cpp: (JSC::CTI::emitGetArgs): (JSC::CTI::compileOpStrictEq): (JSC::CTI::compileBinaryArithOp): (JSC::CTI::privateCompileMainPass): (JSC::CTI::privateCompileSlowCases):
- VM/CTI.h:
- 2:54 PM Changeset in webkit [38378] by
-
- 4 copies1 add in releases/Apple/Safari 3.2
Tag the Safari 3.2 release.
This release consists of JavaScriptCore-x525.26.2, JavaScriptGlue-x525.26.2, WebCore-x525.26.6 and WebKit-x525.26.2.
- 2:27 PM Changeset in webkit [38377] by
-
- 2 edits in trunk/JavaScriptCore
2008-11-13 Cameron Zwarich <zwarich@apple.com>
Reviewed by Darin Adler.
Bug 22238: Avoid unnecessary reads of temporaries when the target machine register is not eax
<https://bugs.webkit.org/show_bug.cgi?id=22238>
Enable the optimization of not reading a value back from memory that we
just wrote when the target machine register is not eax. In order to do
this, the code generation for op_put_global_var must be changed to
read its argument into a register before overwriting eax.
This is a 0.5% speedup on SunSpider and shows no change on the V8
benchmark suite when run in either harness.
- VM/CTI.cpp: (JSC::CTI::emitGetArg): (JSC::CTI::privateCompileMainPass):
- 1:04 PM Changeset in webkit [38376] by
-
- 2 edits in trunk/WebCore
2008-11-13 Justin Garcia <justin.garcia@apple.com>
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=18620
Long hang under TextIterator::advance() when loading http://www.lsvd.de/
A huge section at the beginning of this document is invisible. As we iterate through it,
we create VisiblePositions unnecessarily.
- editing/TextIterator.cpp: (WebCore::TextIterator::shouldRepresentNodeOffsetZero): Don't proceed to VisiblePosition creation if m_node is unrendered or invisible. The answers wouldn't have much meaning and would be wasteful. Also fixed some comments to reflect the fact that this function isn't specifically about emitting a newline.
- 11:50 AM Changeset in webkit [38375] by
-
- 2 edits in trunk/JavaScriptCore
2008-11-13 Cameron Zwarich <zwarich@apple.com>
Reviewed by Alexey Proskuryakov.
Perform teardown in the 'jsc' shell in order to suppress annoying and
misleading leak messages. There is still a lone JSC::Node leaking when
quit() is called, but hopefully that can be fixed as well.
- jsc.cpp: (functionQuit): (main):
- 10:49 AM Changeset in webkit [38374] by
-
- 3 edits in trunk/WebCore
2008-11-13 Pierre-Olivier Latour <pol@apple.com>
Reviewed by Sam Weinig.
Remove unused or unnecessary code from AnimationBase class.
- page/animation/AnimationBase.cpp: (WebCore::AnimationBase::AnimationBase): (WebCore::AnimationBase::playStatePlaying):
- page/animation/AnimationBase.h:
- 10:35 AM Changeset in webkit [38373] by
-
- 8 edits1 add1 delete in trunk/WebKit
WebKit:
2008-11-13 John Sullivan <sullivan@apple.com>
fixed <rdar://problem/6361578> Web Kit UI strings: a few edits
Reviewed by Tim Hatcher
- English.lproj/Localizable.strings: updated for these changes
- StringsNotToBeLocalized.txt: removed unused exception
WebKit/mac:
2008-11-13 John Sullivan <sullivan@apple.com>
fixed <rdar://problem/6361578> Web Kit UI strings: a few edits
Reviewed by Tim Hatcher
- Misc/WebKitErrors.m: "Cannot show content with specified mime type" -> "Content with specified MIME type can't be shown" "Cannot show URL" -> "The URL can't be shown" "Cannot find plug-in" -> "The plug-in can't be found" "Cannot load plug-in" -> "The plug-in can't be loaded"
- Panels/English.lproj/WebAuthenticationPanel.nib/classes.nib:
- Panels/English.lproj/WebAuthenticationPanel.nib/info.nib:
- Panels/English.lproj/WebAuthenticationPanel.nib/keyedobjects.nib: Added.
- Panels/English.lproj/WebAuthenticationPanel.nib/objects.nib: Removed. Changed placeholder fine print in the nib to match one of the two strings it might be replaced by. This automagically updated the nib to a newer format, hence the objects -> keyedobjects change. I could have changed the placeholder fine print to be empty but this lets localizers understand the dialog layout better.
- Panels/WebAuthenticationPanel.m: (-[WebAuthenticationPanel setUpForChallenge:]): "you need to log in" -> "you must log in" "Your log-in information" -> "Your login information" "The name or password entered" -> "The user name or password you entered" "Please try again." -> "Make sure you're entering them correctly, and then try again."
- 10:09 AM Changeset in webkit [38372] by
-
- 2 edits in trunk/JavaScriptCore
2008-11-13 Mike Pinkerton <pinkerton@chromium.org>
Reviewed by Sam Weinig.
Fix for https://bugs.webkit.org/show_bug.cgi?id=22087
Need correct platform defines for Mac Chromium
Set the appropriate platform defines for Mac Chromium, which is
similar to PLATFORM(MAC), but isn't.
- wtf/Platform.h:
- 7:20 AM Changeset in webkit [38371] by
-
- 5 edits2 adds in trunk/WebCore
2008-11-12 Tor Arne Vestbø <tavestbo@trolltech.com>
Reviewed by Simon Hausmann.
Inital implementation of PluginPackage and PluginView for Mac NPAPI support in WebCore
Currently only used by QtWebKit. See also:
- 7:20 AM Changeset in webkit [38370] by
-
- 2 edits in trunk/WebKit/qt
2008-11-12 Ariya Hidayat <ariya.hidayat@trolltech.com>
Rubber-stamped by Tor Arne Vestbø.
Mention the color role change (r38331) in the API doc.
- Api/qwebpage.cpp:
- 4:53 AM Changeset in webkit [38369] by
-
- 4 edits in trunk/JavaScriptCore
2008-11-13 Maciej Stachowiak <mjs@apple.com>
Reviewed by Cameron Zwarich.
- remove immediate checks from native codegen for known non-immediate cases like "this"
~.5% speedup on v8 benchmarks
In the future we can extend this model to remove all sorts of
typechecks based on local type info or type inference.
I also added an assertion to verify that all slow cases linked as
many slow case jumps as the corresponding fast case generated, and
fixed the pre-existing cases where this was not true.
- VM/CTI.cpp: (JSC::CTI::emitJumpSlowCaseIfNotJSCell): (JSC::CTI::linkSlowCaseIfNotJSCell): (JSC::CTI::compileBinaryArithOp): (JSC::CTI::compileBinaryArithOpSlowCase): (JSC::CTI::privateCompileMainPass): (JSC::CTI::privateCompileSlowCases):
- VM/CTI.h:
- VM/CodeBlock.h: (JSC::CodeBlock::isKnownNotImmediate):
- 3:26 AM Changeset in webkit [38368] by
-
- 5 edits in trunk/JavaScriptCore
2008-11-13 Cameron Zwarich <zwarich@apple.com>
Reviewed by Maciej Stachowiak.
Bug 21943: Avoid needless reads of temporary values in CTI code
<https://bugs.webkit.org/show_bug.cgi?id=21943>
If an opcode needs to load a virtual register and a previous opcode left
the contents of that virtual register in a machine register, use the
value in the machine register rather than getting it from memory.
In order to perform this optimization, it is necessary to know the
jump tagets in the CodeBlock. For temporaries, the only problematic
jump targets are binary logical operators and the ternary conditional
operator. However, if this optimization were to be extended to local
variable registers as well, other jump targets would need to be
included, like switch statement cases and the beginnings of catch
blocks.
This optimization also requires that the fast case and the slow case
of an opcode use emitPutResult() on the same register, which was chosen
to be eax, as that is the register into which we read the first operand
of opcodes. In order to make this the case, we needed to add some mov
instructions to the slow cases of some instructions.
This optimizaton is not applied whenever compileBinaryArithOp() is used
to compile an opcode, because different machine registers may be used to
store the final result. It seems possible to rewrite the code generation
in compileBinaryArithOp() to allow for this optimization.
This optimization is also not applied when generating slow cases,
because some fast cases overwrite the value of eax before jumping to the
slow case. In the future, it may be possible to apply this optimization
to slow cases as well, but it did not seem to be a speedup when testing
an early version of this patch.
This is a 1.0% speedup on SunSpider and a 6.3% speedup on the V8
benchmark suite.
- VM/CTI.cpp: (JSC::CTI::killLastResultRegister): (JSC::CTI::emitGetArg): (JSC::CTI::emitGetPutArg): (JSC::CTI::emitGetCTIParam): (JSC::CTI::emitGetFromCallFrameHeader): (JSC::CTI::emitPutResult): (JSC::CTI::emitCTICall): (JSC::CTI::CTI): (JSC::CTI::compileOpCall): (JSC::CTI::compileOpStrictEq): (JSC::CTI::emitSlowScriptCheck): (JSC::CTI::compileBinaryArithOp): (JSC::CTI::privateCompileMainPass): (JSC::CTI::privateCompileSlowCases): (JSC::CTI::privateCompileGetByIdProto): (JSC::CTI::privateCompilePatchGetArrayLength):
- VM/CTI.h:
- VM/CodeBlock.h: (JSC::CodeBlock::isTemporaryRegisterIndex):
- bytecompiler/CodeGenerator.cpp: (JSC::CodeGenerator::emitLabel):