Timeline
Dec 12, 2008:
- 10:58 PM Changeset in webkit [39271] by
-
- 2 edits in trunk/JavaScriptCore
2008-12-12 Cameron Zwarich <zwarich@apple.com>
Reviewed by Sam Weinig.
Fix the failures of the following layout tests, which regressed in
r39255:
fast/dom/StyleSheet/ownerNode-lifetime-2.html
fast/xsl/transform-xhr-doc.xhtml
The binary search in CodeBlock::getByIdExceptionInfoForBytecodeOffset()
doesn't guarantee that it actually finds a match, so add an explicit check
for this.
- bytecode/CodeBlock.cpp: (JSC::CodeBlock::getByIdExceptionInfoForBytecodeOffset):
- 10:32 PM Changeset in webkit [39270] by
-
- 5 edits in trunk
WebCore:
2008-12-12 Brent Fulgham <bfulgham@gmail.com>
Reviewed by Oliver Hunt.
Provides implementation of image dragging logic for Windows Cairo
back-end.
- platform/win/DragImageCGWin.cpp: (WebCore::deallocContext): Add a generic CGContextRef destructor.
- platform/win/DragImageCairoWin.cpp: (WebCore::deallocContext): Add a generic cairo_* destructor. (WebCore::allocImage): New implementation to allocate a Cairo surface of a specified size. (WebCore::createCairoContextFromBitmap): New implementation to create a Cairo surface from a Windows BITMAP. (WebCore::scaleDragImage): Replace stub with implementation to actually create a scaled image. (WebCore::createDragImageFromImage): Replace stub with implementation to actually create an image.
WebKit/win:
2008-12-12 Brent Fulgham <bfulgham@gmail.com>
Reviewed by Oliver Hunt.
Provides implementation of image drag for Windows Cairo back-end.
Switch to generic PlatformGraphicsContext data type, rather than
specific use of CoreGraphics types.
- WebCoreSupport/WebDragClient.cpp: (WebDragClient::createDragImageForLink): Revise calls to use more generic PlatformGraphicsContext data types and calls for better portability.
- 10:06 PM Changeset in webkit [39269] by
-
- 2 edits in trunk/WebKit/win
Update Windows cache sizes to match recent Mac change.
Reviewed by Stephanie Lewis, Sam Weinig.
- WebView.cpp: (WebView::setCacheModel):
- 9:25 PM Changeset in webkit [39268] by
-
- 7 edits in trunk/JavaScriptCore
2008-12-12 Gavin Barraclough <barraclough@apple.com>
Reviewed by Camron Zwarich.
Replace emitPutCallArg methods with emitPutJITStubArg methods. Primarily to make the argument numbering
more sensible (1-based incrementing by 1, rather than 0-based incrementing by 4). The CTI name also seems
to be being deprecated from the code generally.
- jit/JIT.cpp: (JSC::JIT::privateCompileMainPass): (JSC::JIT::privateCompileSlowCases): (JSC::JIT::privateCompileCTIMachineTrampolines):
- jit/JIT.h:
- jit/JITArithmetic.cpp: (JSC::JIT::compileBinaryArithOp): (JSC::JIT::compileBinaryArithOpSlowCase):
- jit/JITCall.cpp: (JSC::JIT::compileOpCallSetupArgs): (JSC::JIT::compileOpCallEvalSetupArgs): (JSC::JIT::compileOpConstructSetupArgs): (JSC::JIT::compileOpCall):
- jit/JITInlineMethods.h: (JSC::JIT::emitPutJITStubArg): (JSC::JIT::emitPutJITStubArgConstant): (JSC::JIT::emitGetJITStubArg): (JSC::JIT::emitPutJITStubArgFromVirtualRegister):
- jit/JITPropertyAccess.cpp: (JSC::JIT::compileGetByIdHotPath): (JSC::JIT::compilePutByIdHotPath): (JSC::JIT::compileGetByIdSlowCase): (JSC::JIT::compilePutByIdSlowCase):
- 8:16 PM Changeset in webkit [39267] by
-
- 2 edits in trunk/JavaScriptCore
2008-12-12 Gavin Barraclough <barraclough@apple.com>
Fix windows builds.
- jit/JIT.cpp: (JSC::JIT::privateCompileMainPass): (JSC::JIT::privateCompileSlowCases): (JSC::JIT::privateCompile):
- 7:18 PM Changeset in webkit [39266] by
-
- 7 edits in trunk/JavaScriptCore
2008-12-12 Gavin Barraclough <barraclough@apple.com>
Reviewed by Geoff Garen.
Remove loop counter 'i' from the JIT generation passes, replace with a member m_bytecodeIndex.
No impact on performance.
- jit/JIT.cpp: (JSC::JIT::compileOpStrictEq): (JSC::JIT::emitSlowScriptCheck): (JSC::JIT::privateCompileMainPass): (JSC::JIT::privateCompileSlowCases): (JSC::JIT::privateCompile):
- jit/JIT.h: (JSC::CallRecord::CallRecord): (JSC::JmpTable::JmpTable): (JSC::JIT::emitCTICall):
- jit/JITArithmetic.cpp: (JSC::JIT::compileBinaryArithOp): (JSC::JIT::compileBinaryArithOpSlowCase):
- jit/JITCall.cpp: (JSC::JIT::compileOpCall): (JSC::JIT::compileOpCallSlowCase):
- jit/JITInlineMethods.h: (JSC::JIT::emitGetVirtualRegister): (JSC::JIT::emitGetVirtualRegisters): (JSC::JIT::emitNakedCall): (JSC::JIT::emitCTICall_internal): (JSC::JIT::emitJumpSlowCaseIfJSCell): (JSC::JIT::emitJumpSlowCaseIfNotJSCell): (JSC::JIT::emitJumpSlowCaseIfNotImmNum): (JSC::JIT::emitJumpSlowCaseIfNotImmNums): (JSC::JIT::emitFastArithIntToImmOrSlowCase): (JSC::JIT::addSlowCase): (JSC::JIT::addJump): (JSC::JIT::emitJumpSlowToHot):
- jit/JITPropertyAccess.cpp: (JSC::JIT::compileGetByIdHotPath): (JSC::JIT::compileGetByIdSlowCase): (JSC::JIT::compilePutByIdHotPath): (JSC::JIT::compilePutByIdSlowCase):
- 7:03 PM Changeset in webkit [39265] by
-
- 8 edits in trunk/JavaScriptCore
2008-12-12 Sam Weinig <sam@webkit.org>
Reviewed by Cameron Zwarich.
<rdar://problem/6428342> Look into feasibility of discarding bytecode after native codegen
Move more JIT functionality to using offsets into the Instruction buffer
instead of raw pointers. Two to go!
- interpreter/Interpreter.cpp: (JSC::bytecodeOffsetForPC): Rename from vPCForPC. (JSC::Interpreter::resolve): Pass offset to exception helper. (JSC::Interpreter::resolveSkip): Ditto. (JSC::Interpreter::resolveGlobal): Ditto. (JSC::Interpreter::resolveBaseAndProperty): Ditto. (JSC::Interpreter::resolveBaseAndFunc): Ditto. (JSC::isNotObject): Ditto. (JSC::Interpreter::unwindCallFrame): Call bytecodeOffsetForPC. (JSC::Interpreter::throwException): Use offsets instead of vPCs. (JSC::Interpreter::privateExecute): Pass offset to exception helper. (JSC::Interpreter::retrieveLastCaller): Ditto. (JSC::Interpreter::cti_op_instanceof): Ditto. (JSC::Interpreter::cti_op_call_NotJSFunction): Ditto. (JSC::Interpreter::cti_op_resolve): Pass offset to exception helper. (JSC::Interpreter::cti_op_construct_NotJSConstruct): Ditto. (JSC::Interpreter::cti_op_resolve_func): Ditto. (JSC::Interpreter::cti_op_resolve_skip): Ditto. (JSC::Interpreter::cti_op_resolve_global): Ditto. (JSC::Interpreter::cti_op_resolve_with_base): Ditto. (JSC::Interpreter::cti_op_throw): Ditto. (JSC::Interpreter::cti_op_in): Ditto. (JSC::Interpreter::cti_vm_throw): Ditto.
- interpreter/Interpreter.h:
- jit/JIT.cpp: (JSC::JIT::privateCompileMainPass): Don't pass unnecessary vPC to stub.
- jit/JIT.h: Remove ARG_instr1 - ARG_instr3 and ARG_instr5 - ARG_instr6.
- jit/JITCall.cpp: (JSC::JIT::compileOpCallEvalSetupArgs): Don't pass unnecessary vPC to stub.. (JSC::JIT::compileOpConstructSetupArgs): Ditto.
- runtime/ExceptionHelpers.cpp: (JSC::createUndefinedVariableError): Take an offset instead of vPC. (JSC::createInvalidParamError): Ditto. (JSC::createNotAConstructorError): Ditto. (JSC::createNotAFunctionError): Ditto. (JSC::createNotAnObjectError): Ditto.
- runtime/ExceptionHelpers.h:
- 6:30 PM Changeset in webkit [39264] by
-
- 13 edits in trunk
2008-12-12 Dean Jackson <dino@apple.com>
Reviewed by Darin Adler.
Expose WebKitAnimationEvent, WebKitTransitionEvent,
WebKitCSSTransformValue, WebKitCSSKeyframeRule and
WebKitCSSKeyframesRule to Window object.
This required generating constructors for the event
interfaces.
WebCore:
- dom/WebKitAnimationEvent.idl:
- dom/WebKitTransitionEvent.idl:
- page/DOMWindow.idl:
LayoutTests:
- animations/keyframes-rule-expected.txt:
- animations/keyframes-rule.html:
- fast/dom/Window/window-properties-expected.txt:
- fast/events/event-instanceof-expected.txt:
- fast/events/resources/event-instanceof.js:
- fast/js/global-constructors-expected.txt:
- transforms/transform-value-types-expected.txt:
- transforms/transform-value-types.html:
- 5:47 PM Changeset in webkit [39263] by
-
- 3 edits3 adds in trunk
2008-12-12 Cameron Zwarich <zwarich@apple.com>
Reviewed by Oliver Hunt.
Bug 22835: Crash during bytecode generation when comparing to null
<https://bugs.webkit.org/show_bug.cgi?id=22835>
<rdar://problem/6286749>
Change the special cases in bytecode generation for comparison to null
to use tempDestination().
- parser/Nodes.cpp: (JSC::BinaryOpNode::emitBytecode): (JSC::EqualNode::emitBytecode):
LayoutTests:
- fast/js/ignored-result-null-comparison-crash-expected.txt: Added.
- fast/js/ignored-result-null-comparison-crash.html: Added.
- fast/js/resources/ignored-result-null-comparison-crash.js: Added.
- 5:41 PM Changeset in webkit [39262] by
-
- 2 edits1 add2 deletes in trunk/WebKit/mac
2008-12-12 Darin Adler <Darin Adler>
Rubber stamped by Adam Roben.
- fix <rdar://problem/5648301> Can't tab around to text fields in Safari login sheet after clicking static text, due to AppKit key loop change
- Panels/English.lproj/WebAuthenticationPanel.nib/classes.nib: Removed.
- Panels/English.lproj/WebAuthenticationPanel.nib/designable.nib: Added.
- Panels/English.lproj/WebAuthenticationPanel.nib/info.nib: Removed.
- Panels/English.lproj/WebAuthenticationPanel.nib/keyedobjects.nib: Set nextKeyView of the selectable static texts to the editable text. Updated nib format.
- 5:39 PM Changeset in webkit [39261] by
-
- 8 edits in trunk/JavaScriptCore
2008-12-12 Gavin Barraclough <barraclough@apple.com>
Reviewed by Geoff Garen.
Move slow-cases of JIT code generation over to the MacroAssembler interface.
- assembler/MacroAssembler.h: (JSC::MacroAssembler::Label::Label): (JSC::MacroAssembler::jae32): (JSC::MacroAssembler::jg32): (JSC::MacroAssembler::jzPtr):
- jit/JIT.cpp: (JSC::JIT::privateCompileSlowCases): (JSC::JIT::privateCompile): (JSC::JIT::emitGetVariableObjectRegister): (JSC::JIT::emitPutVariableObjectRegister):
- jit/JIT.h: (JSC::SlowCaseEntry::SlowCaseEntry): (JSC::JIT::getSlowCase): (JSC::JIT::linkSlowCase):
- jit/JITArithmetic.cpp: (JSC::JIT::compileBinaryArithOpSlowCase):
- jit/JITCall.cpp: (JSC::JIT::compileOpCallInitializeCallFrame): (JSC::JIT::compileOpCall): (JSC::JIT::compileOpCallSlowCase):
- jit/JITInlineMethods.h: (JSC::JIT::emitJumpSlowCaseIfNotJSCell): (JSC::JIT::linkSlowCaseIfNotJSCell):
- jit/JITPropertyAccess.cpp: (JSC::JIT::compileGetByIdHotPath): (JSC::JIT::compilePutByIdHotPath): (JSC::JIT::compileGetByIdSlowCase): (JSC::JIT::compilePutByIdSlowCase):
- 5:20 PM Changeset in webkit [39260] by
-
- 2 edits in trunk/WebCore
2008-12-12 Dave Moore <davemoore@google.com>
Reviewed by Eric Seidel.
In Font::drawTextUsingSVGFont() a variable of type SVGTextRunWalkerDrawTextData
is created on the stack (called data). One of its fields, charsConsumed, is
unitialized, leading to random values after calling walk() on the
SVGTextRunWalker created with it. I now initialize the variable
This bug was revealed in our Purify run. I don't know of any specific incorrect
behavior caused by it but it would lead to the charsConsumed field having a
a wrong value.
- svg/SVGFont.cpp: (WebCore::Font::drawTextUsingSVGFont):
- 4:25 PM Changeset in webkit [39259] by
-
- 2 edits in trunk/WebKit/mac
2008-12-12 Stephanie Lewis <Stephanie Lewis>
Reviewed by Geoff Garen.
Shrink Cache Sizes.
- WebView/WebView.mm: (+[WebView _setCacheModel:]):
- 4:11 PM Changeset in webkit [39258] by
-
- 2 edits in trunk/WebCore
2008-12-12 Beth Dakin <Beth Dakin>
Rubber Stamped by Steve Falkenburg.
Build fix.
- platform/KURL.h:
- 4:01 PM Changeset in webkit [39257] by
-
- 2 edits in trunk/WebKit/mac
2008-12-12 Anders Carlsson <andersca@apple.com>
Reviewed by Tim Hatcher.
Don't try to free the dummy "1" port state.
- Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView sendEvent:isDrawRect:]): (-[WebNetscapePluginView updateAndSetWindow]):
- 4:00 PM Changeset in webkit [39256] by
-
- 3 edits in trunk/WebKitExamplePlugins
2008-12-12 Anders Carlsson <andersca@apple.com>
Reviewed by Darin Adler.
There's no need to hold on to the QCComposition. Also, toggle between a gold and silver compass
when a mouse button is pressed.
- NetscapeCoreAnimationPlugin/Composition.qtz:
- NetscapeCoreAnimationPlugin/main.m: (NPP_Destroy): (handleMouseClick): (NPP_GetValue):
- 2:48 PM Changeset in webkit [39255] by
-
- 7 edits in trunk/JavaScriptCore
2008-12-12 Cameron Zwarich <zwarich@apple.com>
Reviewed by Sam Weinig.
Bug 22828: Do not inspect bytecode instruction stream for op_get_by_id exception information
<https://bugs.webkit.org/show_bug.cgi?id=22828>
In order to remove the bytecode instruction stream after generating
native code, all inspection of bytecode instructions at runtime must
be removed. One particular instance of this is the special handling of
exceptions thrown by the op_get_by_id emitted directly before an
op_construct or an op_instanceof. This patch moves that information to
an auxiliary data structure in CodeBlock.
- bytecode/CodeBlock.cpp: (JSC::CodeBlock::getByIdExceptionInfoForBytecodeOffset):
- bytecode/CodeBlock.h: (JSC::CodeBlock::addGetByIdExceptionInfo):
- bytecompiler/BytecodeGenerator.cpp: (JSC::BytecodeGenerator::emitConstruct):
- bytecompiler/BytecodeGenerator.h: (JSC::BytecodeGenerator::emitGetByIdExceptionInfo):
- parser/Nodes.cpp: (JSC::InstanceOfNode::emitBytecode):
- runtime/ExceptionHelpers.cpp: (JSC::createNotAnObjectError):
- 2:33 PM Changeset in webkit [39254] by
-
- 10 edits in trunk/LayoutTests
2008-12-12 Pierre-Olivier Latour <pol@apple.com>
Checked-in new results for failing SVG tests so that the bots are green again.
- platform/mac/svg/W3C-SVG-1.1/text-tselect-02-f-expected.checksum:
- platform/mac/svg/W3C-SVG-1.1/text-tselect-02-f-expected.png:
- platform/mac/svg/W3C-SVG-1.1/text-tselect-02-f-expected.txt:
- platform/mac/svg/custom/image-small-width-height-expected.checksum:
- platform/mac/svg/custom/image-small-width-height-expected.png:
- platform/mac/svg/custom/image-small-width-height-expected.txt:
- platform/mac/svg/text/text-tselect-02-f-expected.checksum:
- platform/mac/svg/text/text-tselect-02-f-expected.png:
- platform/mac/svg/text/text-tselect-02-f-expected.txt:
- 2:22 PM Changeset in webkit [39253] by
-
- 3 edits in trunk/WebCore
Reviewed by Darin Adler.
Add the ability so that Google-URL can optionally be used in a build
of WebKit without changing the shared header. The guts of KURL are
optionally ifdefed out, and the replacement code goes in a different
header to avoid polluting KURL.h
- platform/KURL.cpp:
- platform/KURL.h:
(WebCore::KURL::string):
(WebCore::KURL::operator const String&):
(WebCore::KURL::operator JSC::UString):
(WebCore::KURL::operator NSString*):
(WebCore::KURL::parsed):
(WebCore::KURL::utf8String):
(WebCore::KURL::isNull):
(WebCore::KURL::isEmpty):
(WebCore::KURL::isValid):
(WebCore::KURL::hostStart):
(WebCore::KURL::hostEnd):
(WebCore::KURL::pathStart):
(WebCore::KURL::pathEnd):
(WebCore::KURL::pathAfterLastSlash):
- 1:31 PM Changeset in webkit [39252] by
-
- 7 edits in trunk/JavaScriptCore
2008-12-12 Sam Weinig <sam@webkit.org>
Reviewed by Geoffrey Garen.
Change exception information accessors to take offsets into the bytecode
instruction buffer instead of pointers so that they can work even even
if the bytecode buffer is purged.
- bytecode/CodeBlock.cpp: (JSC::instructionOffsetForNth): (JSC::CodeBlock::handlerForBytecodeOffset): (JSC::CodeBlock::lineNumberForBytecodeOffset): (JSC::CodeBlock::expressionRangeForBytecodeOffset):
- bytecode/CodeBlock.h:
- bytecode/SamplingTool.cpp: (JSC::SamplingTool::dump):
- interpreter/Interpreter.cpp: (JSC::Interpreter::throwException): (JSC::Interpreter::privateExecute): (JSC::Interpreter::retrieveLastCaller):
- jit/JIT.cpp: (JSC::JIT::privateCompileMainPass):
- runtime/ExceptionHelpers.cpp: (JSC::createUndefinedVariableError): (JSC::createInvalidParamError): (JSC::createNotAConstructorError): (JSC::createNotAFunctionError): (JSC::createNotAnObjectError):
- 12:44 PM Changeset in webkit [39251] by
-
- 2 edits in trunk/LayoutTests
2008-12-12 Simon Hausmann <Simon Hausmann>
Rubber-stamped by Holger Freyther.
Added all the failing tests in the Qt build that require font metrics
to the skipped list, as discussed. We cannot maintain the metrics
currently.
- 12:35 PM Changeset in webkit [39250] by
-
- 2 edits in trunk/JavaScriptCore
2008-12-12 Geoffrey Garen <ggaren@apple.com>
Reviewed by Cameron Zwarich.
Tiny bit of refactoring in quantifier generation.
- wrec/WRECGenerator.cpp: (JSC::WREC::Generator::generateNonGreedyQuantifier): (JSC::WREC::Generator::generateGreedyQuantifier):
- 12:31 PM Changeset in webkit [39249] by
-
- 3 edits in trunk/WebKitExamplePlugins
2008-12-12 Anders Carlsson <andersca@apple.com>
Revert some accidentally committed changes.
- NetscapeCocoaPlugin/NetscapeCocoaPlugin.xcodeproj/project.pbxproj:
- NetscapeCocoaPlugin/main.m: (handleDraw): (handleMouseEvent): (NPP_HandleEvent):
- 12:29 PM Changeset in webkit [39248] by
-
- 3 edits9 adds in trunk/WebKitExamplePlugins
2008-12-12 Anders Carlsson <andersca@apple.com>
Reviewed by Kevin Decker.
Add a sample Core Animation NPAPI plug-in.
- NetscapeCocoaPlugin/NetscapeCocoaPlugin.xcodeproj/project.pbxproj:
- NetscapeCocoaPlugin/main.m: (handleDraw): (handleMouseEvent): (NPP_HandleEvent):
- NetscapeCoreAnimationPlugin: Added.
- NetscapeCoreAnimationPlugin/Composition.qtz: Added.
- NetscapeCoreAnimationPlugin/English.lproj: Added.
- NetscapeCoreAnimationPlugin/English.lproj/InfoPlist.strings: Added.
- NetscapeCoreAnimationPlugin/Info.plist: Added.
- NetscapeCoreAnimationPlugin/NetscapeCoreAnimationPlugin.xcodeproj: Added.
- NetscapeCoreAnimationPlugin/NetscapeCoreAnimationPlugin.xcodeproj/project.pbxproj: Added.
- NetscapeCoreAnimationPlugin/main.m: Added. (NP_Initialize): (NP_GetEntryPoints): (NP_Shutdown): (NPP_New): (NPP_Destroy): (NPP_SetWindow): (NPP_NewStream): (NPP_DestroyStream): (NPP_WriteReady): (NPP_Write): (NPP_StreamAsFile): (NPP_Print): (handleMouseClick): (NPP_HandleEvent): (NPP_URLNotify): (NPP_GetValue): (NPP_SetValue):
- NetscapeCoreAnimationPlugin/test.html: Added.
- 10:10 AM Changeset in webkit [39247] by
-
- 2 edits in trunk/WebCore
Delete the previous timer-queue timer in the main thread, just prior to scheduling a new timer.
The code previously called DeleteTimerQueueTimer in the timer callback proc.
The new technique simplifies the code, since we now create and delete timers on the
same thread, and don't access the timer queue or timer handles in the callback.
This allows us to remove some mutex use, and more importantly, it solves a race
condition that was occuring between ChangeTimerQueueTimer and DeleteTimerQueueTimer.
Since the timer callback isn't passed the timer handle, we were retrieving that handle
via a global. If the timer callback code was entered, but then a new timer was immediately
scheduled (prior to the callback acquiring the mutex and calling DeleteTimerQueueTimer),
there was a small window where the timer could be re-scheduled via ChangeTimerQueueTimer
and then immediately deleted once the already running callback acquired the mutex and
then called DeleteTimerQueueTimer. This resulted in the newly scheduled timer never firing.
Reviewed by Oliver Hunt.
- platform/win/SharedTimerWin.cpp: (WebCore::queueTimerProc): Don't delete the timer in the callback. (WebCore::setSharedTimerFireTime): Always delete and create the timer instead of using ChangeTimerQueueTimer. (WebCore::stopSharedTimer): Call DeleteTimerQueueTimer directly.
- 10:06 AM Changeset in webkit [39246] by
-
- 6 edits in trunk/WebCore
2008-12-12 Kai Brüning <kai@granus.net>
Reviewed and tweaked by Darin Adler.
- fix https://bugs.webkit.org/show_bug.cgi?id=18205 DOMNode objects are garbage collected although there are strong references <rdar://problem/6441200>
Fixes resurrection bug for wrapper objects by using an NSMapTable with zeroing weak
memory for the wrapper reference for DOMWrapperCache (DOMInternal.mm),
JSWrapperCache (WebScriptObject.mm) and wrapperCache (DOMRGBColor.mm).
BUILDING_ON_TIGER is used to create a Leopard-only NSMapTable or an old-style
procedural map table for Tiger systems.
No regression tests yet since we don't currently run any tests in GC mode.
- bindings/objc/DOMInternal.h: added WebCore::createWrapperCache for use by all three caches
- bindings/objc/DOMInternal.mm: (WebCore::createWrapperCache): Contains the compile-time check for map table creation (WebCore::getDOMWrapper): HashMap -> NSMapTable (WebCore::addDOMWrapper): ditto (WebCore::removeDOMWrapper): ditto
- bindings/objc/DOMObject.mm: removed [DOMObject finalize]
- bindings/objc/DOMRGBColor.mm: removed [DOMRGBColor finalize] (WebCore::getWrapperForRGB): CFMutableDictionaryRef -> NSMapTable (WebCore::setWrapperForRGB): ditto (WebCore::removeWrapperForRGB): ditto
- bindings/objc/WebScriptObject.mm: (WebCore::getJSWrapper): HashMap -> NSMapTable (WebCore::addJSWrapper): ditto (WebCore::removeJSWrapper): ditto (-[WebScriptObject finalize]): removed call of removeJSWrapper()
- 9:42 AM Changeset in webkit [39245] by
-
- 2 edits in trunk/WebKitTools
2008-12-12 Brent Fulgham <bfulgham@gmail.com>
Reviewed by Adam Roben.
Increase timeout in call to initWithURL so that people actually see
new web pages when they type URLs rather than a blank screen.
- WinLauncher/WinLauncher.cpp: (loadURL): Increase timeout in initWithURL from 0 to 60 seconds.
- 9:30 AM Changeset in webkit [39244] by
-
- 2 edits in trunk/WebKitTools
2008-12-12 Darin Adler <Darin Adler>
- Scripts/do-webcore-rename: Add a renaming idea.
- 8:10 AM Changeset in webkit [39243] by
-
- 3 edits in trunk/WebCore
2008-12-12 Dimitri Glazkov <Dimitri Glazkov>
Reviewed by Alexey Proskuryakov.
https://bugs.webkit.org/show_bug.cgi?id=22813
Remove unused references to JSDOMBinding, CallFrame, and JSLock.
- dom/Node.cpp: Removed CallFrame and JSLock header includes.
- loader/FrameLoader.cpp: Removed JSDOMBinding header include.
- 8:09 AM Changeset in webkit [39242] by
-
- 3 edits1 add in trunk
Update the WebKit.qrc and add a script to automatically generate the file.
With the way rcc and qmake work this can not be done at build time
as the WebKit.qrc must sit inside the directory that contains the files
and at build time we may not change the content of the source directory.
- 8:08 AM Changeset in webkit [39241] by
-
- 3 edits in trunk
Back out r39222 as this is breaking the build on Gentoo (aclocal-1.10)
The m4 directory does not exist and we now have a compile issue on
Gentoo systems.
- 6:11 AM Changeset in webkit [39240] by
-
- 2 edits in trunk/WebCore
REGRESSION: Canvas is broken in high dpi mode
<rdar://problem/6432739> <https://bugs.webkit.org/show_bug.cgi?id=22823>
Reviewed by Alexey Proskuryakov.
Simply made sure that we correctly scale the graphics context to
account for the difference between logical and buffer resolution.
- 5:49 AM Changeset in webkit [39239] by
-
- 4 edits in trunk/WebKit/qt
2008-12-12 Simon Hausmann <Simon Hausmann>
Reviewed by Tor Arne Vestbø.
Fix pressing return/enter not triggering any action on web sites
that define event handlers, such as the JS console in the web
inspector.
Process the key events in the DOM first and if not handled map them
to editor actions.
- 5:18 AM Changeset in webkit [39238] by
-
- 6 edits in trunk/WebCore
2008-12-12 Tor Arne Vestbø <tavestbo@trolltech.com>
Rubber-stamped by Oliver Hunt.
Share PluginView::paintMissingPluginIcon() between ports
Also, enable this feature for Qt/X11, Qt/Mac and GTK
- 5:16 AM Changeset in webkit [39237] by
-
- 2 edits in trunk/WebCore
2008-12-12 Tor Arne Vestbø <tavestbo@trolltech.com>
Reviewed by Simon Hausmann.
[Qt/Mac] Implement PluginView::updatePluginWidget()
We should update the window and clip rect regardless of whether or
not the plugin has been loaded, for example to ensure that the
missing plugin image is placed correctly.
- 5:15 AM Changeset in webkit [39236] by
-
- 8 edits in trunk/WebCore
2008-12-12 Tor Arne Vestbø <tavestbo@trolltech.com>
Rubber-stamped by Oliver Hunt.
Make PluginView::updatePluginWidget() non-const
We can do this now since frameRectsChanged() is no longer const. This
also allows us to get rid of the mutables in the PluginView.
- 5:09 AM Changeset in webkit [39235] by
-
- 2 edits in trunk/WebKit/win
2008-12-12 Tor Arne Vestbø <tavestbo@trolltech.com>
Rubber-stamped by Oliver Hunt.
Remove mutables from EmbeddedWidget
We can do this now that frameRectsChanged() is no longer const
- 3:35 AM Changeset in webkit [39234] by
-
- 3 edits in trunk/WebKit/qt
2008-12-12 Ariya Hidayat <ariya.hidayat@trolltech.com>
Reviewed by Simon Hausmann.
Create the plugin widget even though the web page has no associated
view. This prevents the plugin to be uselessly constructed more than once.
- WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::createPlugin):
- tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::createViewlessPlugin):
- 2:54 AM Changeset in webkit [39233] by
-
- 4 edits in trunk/WebCore
2008-12-12 Tor Arne Vestbø <tavestbo@trolltech.com>
Reviewed by Simon Hausmann.
Implement ImageSource::filenameExtension() for the Qt port
We're using QImageReader::imageFormat().toLower() to check
that the image format is supported, and if it is we store
the resulting extension when creating the ImageDecoderQt.
- 1:42 AM Changeset in webkit [39232] by
-
- 3 edits in trunk/WebKit/qt
2008-12-11 Enrico Ros <enrico.ros@m31.com>
Reviewed by Simon Hausmann.
Fix the broken focus behavior that happened when QWebPage lost
focus to a popup menu.
The previous code didn't notify the QWebPage at all when the
focus was back in (breaking focus rects, caret blinking, ...).
By the way when a popup is show, 2 FocusOut events are delivered
to the QWebPage, but this doesn't seem to hurt.
Added a test to check popup opening, closing a lineedit blinks.
- 12:22 AM Changeset in webkit [39231] by
-
- 3 edits in trunk/WebKit/qt
2008-12-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
Reviewed by Tor Arne Vestbø.
When the web page is navigated away, delete the instance
of the native plugin.
http://trolltech.com/developer/task-tracker/index_html?id=214946&method=entry
- WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::):
- tests/qwebpage/tst_qwebpage.cpp: (PluginTrackedPage::PluginTrackedPage): (PluginTrackedPage::createPlugin): (tst_QWebPage::destroyPlugin):
- 12:03 AM Changeset in webkit [39230] by
-
- 1 edit in trunk/JavaScriptCore/ChangeLog
Fix typo
- 12:02 AM Changeset in webkit [39229] by
-
- 15 edits2 copies in trunk/JavaScriptCore
2008-12-11 Sam Weinig <sam@webkit.org>
Reviewed by Geoffrey Garen.
Remove dependancy on having the Instruction buffer in order to
deref Structures used for property access and global resolves.
Instead, we put references to the necessary Structures in axillary
data structures on the CodeBlock. This is not an ideal solution,
as we still pay for having the Structures in two places and we
would like to eventually just hold on to offsets into the machine
code buffer.
- Also removes CodeBlock bloat in non-JIT by #ifdefing the JIT only data structures.
- GNUmakefile.am:
- JavaScriptCore.pri:
- JavaScriptCore.scons:
- JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
- JavaScriptCore.xcodeproj/project.pbxproj:
- JavaScriptCoreSources.bkl:
- bytecode/CodeBlock.cpp: (JSC::isGlobalResolve): (JSC::isPropertyAccess): (JSC::instructionOffsetForNth): (JSC::printGlobalResolveInfo): (JSC::printStructureStubInfo): (JSC::CodeBlock::printStructures): (JSC::CodeBlock::dump): (JSC::CodeBlock::~CodeBlock): (JSC::CodeBlock::shrinkToFit):
- bytecode/CodeBlock.h: (JSC::GlobalResolveInfo::GlobalResolveInfo): (JSC::getNativePC): (JSC::CodeBlock::instructions): (JSC::CodeBlock::getStubInfo): (JSC::CodeBlock::getBytecodeIndex): (JSC::CodeBlock::addPropertyAccessInstruction): (JSC::CodeBlock::addGlobalResolveInstruction): (JSC::CodeBlock::numberOfStructureStubInfos): (JSC::CodeBlock::addStructureStubInfo): (JSC::CodeBlock::structureStubInfo): (JSC::CodeBlock::addGlobalResolveInfo): (JSC::CodeBlock::globalResolveInfo): (JSC::CodeBlock::numberOfCallLinkInfos): (JSC::CodeBlock::addCallLinkInfo): (JSC::CodeBlock::callLinkInfo):
- bytecode/Instruction.h: (JSC::PolymorphicAccessStructureList::PolymorphicStubInfo::set): (JSC::PolymorphicAccessStructureList::PolymorphicAccessStructureList):
- bytecode/Opcode.h: (JSC::):
- bytecode/StructureStubInfo.cpp: Copied from bytecode/CodeBlock.cpp. (JSC::StructureStubInfo::deref):
- bytecode/StructureStubInfo.h: Copied from bytecode/CodeBlock.h. (JSC::StructureStubInfo::StructureStubInfo): (JSC::StructureStubInfo::initGetByIdSelf): (JSC::StructureStubInfo::initGetByIdProto): (JSC::StructureStubInfo::initGetByIdChain): (JSC::StructureStubInfo::initGetByIdSelfList): (JSC::StructureStubInfo::initGetByIdProtoList): (JSC::StructureStubInfo::initPutByIdTransition): (JSC::StructureStubInfo::initPutByIdReplace): (JSC::StructureStubInfo::):
- bytecompiler/BytecodeGenerator.cpp: (JSC::BytecodeGenerator::emitResolve): (JSC::BytecodeGenerator::emitGetById): (JSC::BytecodeGenerator::emitPutById): (JSC::BytecodeGenerator::emitCall): (JSC::BytecodeGenerator::emitConstruct): (JSC::BytecodeGenerator::emitCatch):
- interpreter/Interpreter.cpp: (JSC::Interpreter::tryCTICachePutByID): (JSC::Interpreter::tryCTICacheGetByID): (JSC::Interpreter::cti_op_get_by_id_self_fail): (JSC::getPolymorphicAccessStructureListSlot): (JSC::Interpreter::cti_op_get_by_id_proto_list): (JSC::Interpreter::cti_op_resolve_global):
- jit/JIT.cpp: (JSC::JIT::JIT): (JSC::JIT::privateCompileMainPass): (JSC::JIT::privateCompileSlowCases): (JSC::JIT::privateCompile):
- jit/JITPropertyAccess.cpp: (JSC::JIT::compileGetByIdHotPath): (JSC::JIT::compilePutByIdHotPath): (JSC::JIT::compileGetByIdSlowCase): (JSC::JIT::compilePutByIdSlowCase): (JSC::JIT::privateCompileGetByIdSelfList): (JSC::JIT::privateCompileGetByIdProtoList): (JSC::JIT::privateCompileGetByIdChainList):
Dec 11, 2008:
- 11:51 PM Changeset in webkit [39228] by
-
- 4 edits in trunk/WebCore
2008-12-11 Stephanie Lewis <Stephanie Lewis>
Reviewed by Geoff Garen
Account for the size of the response and request headers as well as other overhead
when calculating the size a resource takes up in the cache. Halts unbounded
growth in the cache. Reduced stress test memory high water marks by > 50%.
Uses estimates gathered from the stress test to set the overhead size.
A version of the patch was created that calculated most of the sizes, but it was
decided that the patch was still at a basic level an estimate. What gains it made
in accuracy was offset by the complexity involved in creating and updating the
estimate.
- loader/Cache.cpp: (WebCore::Cache::resourceAccessed): (WebCore::Cache::TypeStatistic::addResource): (WebCore::Cache::dumpLRULists):
- loader/CachedResource.cpp: (WebCore::CachedResource::overheadSize):
- loader/CachedResource.h: (WebCore::CachedResource::size):
- 11:28 PM Changeset in webkit [39227] by
-
- 17 edits6 deletes in trunk
2008-12-11 Cameron Zwarich <zwarich@apple.com>
Rubber-stamped by Mark Rowe.
Roll out r39212 due to assertion failures during layout tests, multiple
layout test failures, memory leaks, and obvious incorrectness.
WebKit/mac:
- WebView/WebPreferenceKeysPrivate.h:
- WebView/WebPreferences.mm: (-[WebPreferences fullDocumentTeardownEnabled]):
- WebView/WebPreferencesPrivate.h:
WebKit/win:
- Interfaces/IWebPreferencesPrivate.idl:
- WebPreferenceKeysPrivate.h:
- WebPreferences.cpp:
- WebPreferences.h:
WebKitTools:
- DumpRenderTree/LayoutTestController.cpp: (LayoutTestController::staticFunctions):
- DumpRenderTree/LayoutTestController.h:
- DumpRenderTree/mac/DumpRenderTree.mm: (resetWebViewToConsistentStateBeforeTesting):
- DumpRenderTree/mac/LayoutTestControllerMac.mm:
- DumpRenderTree/win/DumpRenderTree.cpp: (resetWebViewToConsistentStateBeforeTesting):
- DumpRenderTree/win/LayoutTestControllerWin.cpp: (LayoutTestController::pauseTransitionAtTimeOnElementWithId):
LayoutTests:
- security/override-preferences-2-expected.txt: Removed.
- security/override-preferences-2.html: Removed.
- security/override-preferences-expected.txt: Removed.
- security/override-preferences.html: Removed.
- security/override-zzz-reset-expected.txt: Removed.
- security/override-zzz-reset.html: Removed.
- 8:20 PM Changeset in webkit [39226] by
-
- 7 edits in trunk/JavaScriptCore
2008-12-11 Gavin Barraclough <barraclough@apple.com>
Reviewed by Oliver Hunt.
Remove CTI_ARGUMENTS mode, use va_start implementation on Windows,
unifying JIT callback (cti_*) argument access on OS X & Windows
No performance impact.
- interpreter/Interpreter.h:
- jit/JIT.cpp: (JSC::JIT::privateCompileCTIMachineTrampolines):
- jit/JIT.h:
- jit/JITInlineMethods.h: (JSC::JIT::emitCTICall):
- jit/JITPropertyAccess.cpp: (JSC::JIT::privateCompilePutByIdTransition):
- wtf/Platform.h:
- 6:02 PM Changeset in webkit [39225] by
-
- 20 edits7 adds in trunk
Reviewed by Holger Freyther.
Fixes: https://bugs.webkit.org/show_bug.cgi?id=22814
Add <wml> image element support. Based on HTML/SVGImage{Element/Loader}, with
the only difference that WML defines a second source attribute 'localsrc', that
takes precedence over the 'src' attribute. If loading the 'localsrc' attribute
fails, the user agent should try loading the 'src' attribute. If both fail the
'alt' fallback content will be used - just like in HTML.
Fixes: fast/wml/img-localsrc.wml (<img> and 'localsrc' attribute)
fast/wml/img-src-localsrc-alt.wml ('localsrc'/'src' fallback handling)
fast/wml/img-src.wml (<img> and 'src' attribute)
- 5:15 PM Changeset in webkit [39224] by
-
- 2 edits in trunk/WebKit/mac
2008-12-11 Stephanie Lewis <Stephanie Lewis>
Fix build.
- WebView/WebView.mm:
- 5:01 PM Changeset in webkit [39223] by
-
- 4 edits in trunk/WebKit/gtk
Make webkit_web_view_set_window_features internal
Calling this method will not result in a notify::window-features
signal being emitted. This would allow replacing a
WebKitWebWindowFeature on a WebKitWebView without anyone noticing
and the client code would monitor the wrong object.
- 4:37 PM Changeset in webkit [39222] by
-
- 3 edits in trunk
2008-12-11 Daniel Macks <dmacks@netspace.org>
Reviewed by Darin Adler.
Put libtool macro files in subdir that it wants.
- GNUmakefile.am:
- configure.ac:
- 4:37 PM Changeset in webkit [39221] by
-
- 2 edits in trunk/WebCore
2008-12-11 Holger Hans Peter Freyther <zecke@selfish.org>
Reviewed by Darin Adler.
Do not run into the WebCore::DocumentLoader::updateLoading
ASSERT on Gtk+/CURL when trying to load tests from our LayoutTests.
Do not call setPrimaryLoadComplete when the
activeDocumentLoader has already been replaced. This can happen
when a script executed from within FramerLoader::didFinishLoading will
navigate to another URL.
The assertion is caused by existing tests (e.g.
fast/history/clicked-link-is-visited.html) reproducing this with
network backends not equal to curl is tough or maybe not
even possible.
- loader/DocumentLoader.cpp: (WebCore::DocumentLoader::setPrimaryLoadComplete):
- 4:20 PM Changeset in webkit [39220] by
-
- 2 edits in trunk/WebKit/mac
2008-12-11 Stephanie Lewis <Stephanie Lewis>
Reviewed by Oliver Hunt.
Empty Web cache before quitting a debug build in order
to report accurate CachedResource leaks.
- WebView/WebView.mm: (-[WebView _close]):
- 3:42 PM Changeset in webkit [39219] by
-
- 6 edits in trunk/WebCore
Reviewed by Eric Seidel.
- Remove some dead, commented-out code from WMLAElement.
- Add missing virtual destructor for <noop>, as suggested by Alexey.
- Refactor addHTMLAlignment in a static helper function to share with WML.
- 2:33 PM Changeset in webkit [39218] by
-
- 3 edits2 adds in trunk
<rdar://problem/6302405> Crash (null-deref) when using :before pseudoselector with content CSS rule in SVG
<https://bugs.webkit.org/show_bug.cgi?id=22804>
Reviewed by Adele Peterson.
This issue was caused by css generated content resulting in non-svg flowboxes
being injected into SVG content. As SVG spec does not describe behaviour in
this case, and neither Opera nor Firefox displays such generated content, so
now we make svg text layout and rendering just ignore any such content.
Test: svg/css/crash-css-generated-content.xhtml
- 1:56 PM Changeset in webkit [39217] by
-
- 5 edits in trunk/WebCore
2008-12-11 Cameron Zwarich <zwarich@apple.com>
Reviewed by Dave Hyatt.
Bug 21256: REGRESSION (r36906): horizontally repeating image leaves ghosts when vertical scrolling
<https://bugs.webkit.org/show_bug.cgi?id=21256>
<rdar://problem/6362978>
The ScrollView refactoring in r36906 caused the ScrollView and the
platform widget to disagree about whether optimizing scrolling via
blitting is allowed. The easiest way to fix this is to make ScrollView
simply ask the platform widget whether this is safe on platforms that
are affected.
It is not possible to write a layout test for this bug because it
involves the back/forward cache.
- platform/ScrollView.cpp: (WebCore::ScrollView::ScrollView): (WebCore::ScrollView::setCanBlitOnScroll): (WebCore::ScrollView::canBlitOnScroll): (WebCore::ScrollView::platformSetCanBlitOnScroll): (WebCore::ScrollView::platformCanBlitOnScroll):
- platform/ScrollView.h:
- platform/mac/ScrollViewMac.mm: (WebCore::ScrollView::platformSetCanBlitOnScroll): (WebCore::ScrollView::platformCanBlitOnScroll):
- platform/wx/ScrollViewWx.cpp: (WebCore::ScrollView::platformSetCanBlitOnScroll): (WebCore::ScrollView::platformCanBlitOnScroll):
- 1:27 PM Changeset in webkit [39216] by
-
- 2 edits in trunk/WebKit/mac
2008-12-11 Anders Carlsson <andersca@apple.com>
Fix Tiger build.
- Misc/WebNSDataExtras.h:
- 1:26 PM Changeset in webkit [39215] by
-
- 3 edits2 adds in trunk
WebKit/mac:
2008-12-11 Anders Carlsson <andersca@apple.com>
Reviewed by Cameron Zwarich.
https://bugs.webkit.org/show_bug.cgi?id=22797
REGRESSION: Crash at http://news.cnet.com/8301-17939_109-10119149-2.html
Make sure to protect the stream because destroyStream can otherwise cause it to be deleted.
- Plugins/WebBaseNetscapePluginStream.mm: (WebNetscapePluginStream::destroyStreamWithReason):
LayoutTests:
2008-12-11 Anders Carlsson <andersca@apple.com>
Reviewed by Cameron Zwarich.
https://bugs.webkit.org/show_bug.cgi?id=22797
REGRESSION: Crash at http://news.cnet.com/8301-17939_109-10119149-2.html
- http/tests/plugins/get-url-expected.txt: Added.
- http/tests/plugins/get-url.html: Added.
- 12:44 PM Changeset in webkit [39214] by
-
- 3 edits in trunk/LayoutTests
Reviewed by Eric Seidel.
Fix typo in doctype (correct wapforum.org URL)
- 11:16 AM Changeset in webkit [39213] by
-
- 2 edits in trunk/WebCore
2008-12-11 Brent Fulgham <bfulgham@gmail.com>
Reviewed by Adam Roben.
Correct build break due to malformed XML in Visual Studio project
following @r39205 change.
- WebCore.vcproj/WebCore.vcproj: Correct file entry so project loads.
- 11:10 AM Changeset in webkit [39212] by
-
- 16 edits6 adds in trunk
2008-12-10 Glenn Wilson <gwilson@google.com>
Reviewed by Adam Roben.
Added new methods for overriding default WebPreference values
and for resetting preferences to their defaults.
https://bugs.webkit.org/show_bug.cgi?id=20534
- WebView/WebPreferenceKeysPrivate.h:
- WebView/WebPreferences.mm: (-[WebPreferences resetToDefaults]): new method (-[WebPreferences overridePreference:flag:]): new method
- WebView/WebPreferencesPrivate.h: new method signatures
2008-12-10 Glenn Wilson <gwilson@google.com>
Reviewed by Adam Roben.
Added support for overriding default preferences per-test.
https://bugs.webkit.org/show_bug.cgi?id=20534
Two new methods were added: resetToDefaults and overridePreference.
- Interfaces/IWebPreferencesPrivate.idl: new method signatures
- WebPreferenceKeysPrivate.h: added new key for internal state
- WebPreferences.cpp: added new methods (WebPreferences::overridePreference): new method (WebPreferences::resetToDefaults): new method
- WebPreferences.h: new method signatures
2008-12-10 Glenn Wilson <gwilson@google.com>
Reviewed by Adam Roben.
Changed LayoutTestController and DumpRenderTree to allow for manual
overriding of default preferences at test time. Also added support for
resetting the preferences after each test.
https://bugs.webkit.org/show_bug.cgi?id=20534
- DumpRenderTree/LayoutTestController.cpp: Added callback method for overriding preferences
- DumpRenderTree/LayoutTestController.h: Added signature for callback
- DumpRenderTree/win/DumpRenderTree.cpp: Added calls to reset preferences after each test if necessary
- DumpRenderTree/win/LayoutTestControllerWin.cpp: Added JS override function
- DumpRenderTree/mac/DumpRenderTree.mm: Added calls to reset preferences after each test if necessary
- DumpRenderTree/mac/LayoutTestControllerMac.mm: Added JS override function
- 8:24 AM Changeset in webkit [39211] by
-
- 11 edits in trunk/WebCore
Reviewed by Dave Hyatt.
This gets rid of the per-animation timers which were used when an animation
started, ended and looped. Their job is now done by the main AnimationController's
timer. It is now set to fire as needed. For instance, if there is a delay, it will
fire after the delay time and then every 30ms to run the animation. The start, loop
and end events are generated as needed during the firing of this timer.
I had to add one more bit of code. When animation timers used to fire the animation events.
This would always happen from the RunLoop, so any style changes that happened in the
event handler would get picked up on the next updateRendering() call. But now the start
event is generated during the styleIsAvailable() call, which is in the middle of the
updateRendering() cycle. And calling an event handler in the middle of updateRendering()
is not allowed and causes style changes to get missed. We already have a mechanism in
AnimationController to defer updateRendering() calls. So I added logic to defer all
event handling to there. Now, I put any request for event handling into a list and ask
for a deferred updateRendering() call. When that deferred timer fires, I go through that
list, send all the events and then call updateRendering().
- 7:57 AM Changeset in webkit [39210] by
-
- 7 edits in trunk/WebKit/qt
2008-12-11 Yael Aharon <yael.aharon@nokia.com>
Reviewed by Simon Hausmann.
Allow applications to save and restore their state between loads.
- 7:45 AM Changeset in webkit [39209] by
-
- 2 edits in trunk/WebCore
2008-12-11 Simon Hausmann <simon.hausmann@nokia.com>
Fix the Qt build with an empty filenameExtension() implementation.
- 7:03 AM Changeset in webkit [39208] by
-
- 2 edits in trunk/WebCore
Fix crash in the cairo implementation of the SVGPaintServer
For SVGFonts the RenderObject can be zero. The existing SVGFont
test cases is exposing this bug. Qt and other ports have fixed
this issue by adding null checks as well.
- 6:46 AM Changeset in webkit [39207] by
-
- 13 edits1 copy2 adds in trunk/WebCore
2008-12-11 Holger Freyther <zecke@selfish.org>
Reviewed by Simon Hausmann.
Make the Qt port follow the Win, Mac, Gtk+ port in regard to Font
handling. FontQt.cpp from now on is only implementing the complex path. Create
FontFallbackListQt.cpp and FontPlatformDataQt.cpp to work within
the framework set by the Font code.
Sharing the Font.cpp implementation allows the Qt port to support
the CSS font faces and SVG fonts.
Split out the Qt4.3 Font handling into FonQt43.cpp to allow to more
easily deprecate it.
This commit is removing a lot of #ifdefs from Font.h as the Qt Font
implementation is now in line with the rest of WebCore.
- WebCore.pro:
- platform/graphics/Font.h: Remove #ifdefs (WebCore::Font::letterSpacing): (WebCore::Font::setLetterSpacing): (WebCore::Font::isPlatformFont):
- platform/graphics/FontFallbackList.h:
- platform/graphics/SimpleFontData.cpp: (WebCore::SimpleFontData::SimpleFontData): (WebCore::SimpleFontData::platformGlyphInit): There is no GlyphCache on Qt, move the initialisation over. (WebCore::SimpleFontData::~SimpleFontData):
- platform/graphics/SimpleFontData.h: (WebCore::SimpleFontData::getQtFont):
- platform/graphics/qt/FontCacheQt.cpp: (WebCore::FontCache::getCachedFontPlatformData): Remove unused parameter (WebCore::FontCache::releaseFontData): Add to build
- platform/graphics/qt/FontCustomPlatformData.cpp: (WebCore::FontCustomPlatformData::~FontCustomPlatformData): (WebCore::FontCustomPlatformData::fontPlatformData): (WebCore::createFontCustomPlatformData):
- platform/graphics/qt/FontCustomPlatformData.h:
- platform/graphics/qt/FontFallbackListQt.cpp: Added. (WebCore::FontFallbackList::FontFallbackList): (WebCore::FontFallbackList::invalidate): (WebCore::FontFallbackList::releaseFontData): (WebCore::FontFallbackList::determinePitch): (WebCore::FontFallbackList::fontDataAt): (WebCore::FontFallbackList::fontDataForCharacters): (WebCore::FontFallbackList::setPlatformFont):
- platform/graphics/qt/FontPlatformData.h: (WebCore::FontPlatformData::font): (WebCore::FontPlatformData::size):
- platform/graphics/qt/FontPlatformDataQt.cpp: Added. (WebCore::FontPlatformData::FontPlatformData):
- platform/graphics/qt/FontQt.cpp: (WebCore::Font::drawComplexText): (WebCore::Font::floatWidthForComplexText): (WebCore::Font::offsetForPositionForComplexText): (WebCore::Font::selectionRectForComplexText): (WebCore::Font::font):
- platform/graphics/qt/FontQt43.cpp: Added. Moved Qt4.3 code from FontQt.cpp (WebCore::Font::drawComplexText): (WebCore::Font::floatWidthForComplexText): (WebCore::Font::offsetForPositionForComplexText): (WebCore::Font::selectionRectForComplexText):
- platform/graphics/qt/GlyphPageTreeNodeQt.cpp: (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData): (WebCore::GlyphPageTreeNode::pruneTreeFontData):
- platform/graphics/qt/SimpleFontDataQt.cpp: (WebCore::SimpleFontData::determinePitch): (WebCore::SimpleFontData::containsCharacters): (WebCore::SimpleFontData::platformInit): (WebCore::SimpleFontData::platformGlyphInit): (WebCore::SimpleFontData::platformDestroy):
- platform/qt/RenderThemeQt.cpp: (WebCore::RenderThemeQt::adjustButtonStyle): Avoid crashes.
- 6:14 AM Changeset in webkit [39206] by
-
- 5 edits in trunk
WebCorv
2008-12-11 Holger Freyther <zecke@selfish.org>
Reviewed by Simon Hausmann.
For Qt it is not pratical to have a FontCache and GlyphPageTreeNode
implementation. This is one of the reasons why the Qt port is currently not
using WebCore/platform/graphics/Font.cpp. By allowing to not use
the simple/fast-path the Qt port will be able to use it.
Introduce USE(FONT_FAST_PATH) and define it for every port but the
Qt one.
- platform/graphics/Font.cpp: (WebCore::Font::drawText): (WebCore::Font::floatWidth): (WebCore::Font::selectionRectForText): (WebCore::Font::offsetForPosition):
- platform/graphics/Font.h:
JavaScriptCore
2008-12-11 Holger Freyther <zecke@selfish.org>
Reviewed by Simon Hausmann.
For Qt it is not pratical to have a FontCache and GlyphPageTreeNode
implementation. This is one of the reasons why the Qt port is currently not
using WebCore/platform/graphics/Font.cpp. By allowing to not use
the simple/fast-path the Qt port will be able to use it.
Introduce USE(FONT_FAST_PATH) and define it for every port but the
Qt one.
- wtf/Platform.h: Enable USE(FONT_FAST_PATH)
- 3:18 AM Changeset in webkit [39205] by
-
- 6 edits1 copy in trunk/WebCore
2008-12-11 Holger Hans Peter Freyther <zecke@selfish.org>
Reviewed by Darin Adler.
Split out the font fast path from Fast.cpp into FontFastPath.cpp. This
will allow the Qt port to share most of WebCore::Font
implementation but the fast path. Qt does not provide the API to get
individual Glyphs making the fast path hard to support.
- GNUmakefile.am:
- WebCore.vcproj/WebCore.vcproj:
- WebCore.xcodeproj/project.pbxproj:
- WebCoreSources.bkl:
- platform/graphics/Font.cpp:
- platform/graphics/FontFastPath.cpp: Added. (WebCore::Font::glyphDataForCharacter):
- 3:15 AM Changeset in webkit [39204] by
-
- 3 edits in trunk/JavaScriptCore
2008-12-04 Gabor Loki <loki@inf.u-szeged.hu>
Reviewed by Darin Adler and landed by Holger Freyther.
<https://bugs.webkit.org/show_bug.cgi?id=22648>
Fix threading on Qt-port and Gtk-port for Sampling tool.
- wtf/ThreadingGtk.cpp: (WTF::waitForThreadCompletion):
- wtf/ThreadingQt.cpp: (WTF::waitForThreadCompletion):
- 2:22 AM Changeset in webkit [39203] by
-
- 2 edits in trunk/WebCore
2008-12-11 Robert Carr <racarr@svn.gnome.org>
Reviewed by Holger Freyther.
Code in PlatformScreenGtk for screenDepth and screenRect can not
assume that the platformWindow for the widget has a valid "window"
member. For example in the case of, a new browser view opening as a
child of a GtkNotebook, but never being switched to, or manually
realized. Solve by using the toplevel window of the widget, rather
than the widget itself.
- platform/gtk/PlatformScreenGtk.cpp: (WebCore::screenDepth): (WebCore::screenRect):
- 2:20 AM Changeset in webkit [39202] by
-
- 6 edits in trunk/LayoutTests
2008-12-08 Dean McNamee <deanm@chromium.org>
Reviewed by Darin Adler.
Always append a trailing slash when using PHP's sys_get_temp_dir().
This allows these tests to run on Linux, where this API returns the
directory without a trailing slash.
- http/tests/xmlhttprequest/resources/access-control-basic-preflight-cache-invalidation.php:
- http/tests/xmlhttprequest/resources/access-control-basic-preflight-cache-timeout.php:
- http/tests/xmlhttprequest/resources/access-control-basic-preflight-cache.php:
- http/tests/xmlhttprequest/resources/portabilityLayer.php:
- http/tests/xmlhttprequest/resources/reset-temp-file.php:
- 2:09 AM Changeset in webkit [39201] by
-
- 13 edits in trunk
2008-12-08 Tor Arne Vestbø <tavestbo@trolltech.com>
Reviewed by Darin Adler and Holger Freyther.
Make Widget::frameRectsChanged() and overrides non-const
This will hopefully allow us to get rid of some of the mutables in
the classes that react to the callback by changing their own state.
- 2:03 AM Changeset in webkit [39200] by
-
- 3 edits in trunk/WebCore
Reimplement RenderTheme::caretBlinkInterval for Qt.
The QApplication::cursorFlashTime is in milliseconds and describes
the whole cycle while WebCore expects half a cycle.
- 12:27 AM Changeset in webkit [39199] by
-
- 2 edits in trunk/WebCore
2008-12-09 Trenton Schulz <trenton.schulz@nokia.com>
Reviewed by Tor Arne Vestbø.
[Qt/Mac] Don't call HIGetScaleFactor() if we're not on Tiger or better