1 2009-11-12 Jeremy Orlow <jorlow@chromium.org>
3 Reviewed by Dmitry Titov.
5 LocalStorage quota should include key sizes in its count
6 https://bugs.webkit.org/show_bug.cgi?id=31451
8 * storage/StorageMap.cpp:
9 (WebCore::StorageMap::setItem):
10 Count keys in the quota when adding a new item.
11 (WebCore::StorageMap::removeItem):
12 Remove the key's length from the quota if we're removing the item.
13 (WebCore::StorageMap::importItem):
14 Assume that we're adding things for the first time.
15 Count keys in the quota.
17 2009-11-13 Dominik Röttsches <dominik.roettsches@access-company.com>
19 Reviewed by Eric Seidel.
21 Unify TextBoundaries implementations by only relying on WTF Unicode abstractions
22 https://bugs.webkit.org/show_bug.cgi?id=31468
24 Moving TextBoundariesICU.cpp to TextBoundaries.cpp
25 by removing the direct ICU dependency and replacing it
26 with WTF functions and WebCore's own TextBreakIterator
30 * platform/graphics/gtk/SimpleFontDataGtk.cpp:
31 * platform/text/TextBoundaries.cpp: Added.
32 (WebCore::findNextWordFromIndex):
33 (WebCore::findWordBoundary):
34 * platform/text/TextBoundariesICU.cpp: Removed.
35 * platform/text/TextBreakIterator.h:
36 * platform/text/TextBreakIteratorICU.cpp:
37 (WebCore::textBreakLast):
38 (WebCore::textBreakPrevious):
40 2009-11-13 Shinichiro Hamaji <hamaji@chromium.org>
42 Reviewed by Darin Adler.
44 WebCore::externalRepresentation should update layout before getting render object
45 https://bugs.webkit.org/show_bug.cgi?id=31459
47 * rendering/RenderTreeAsText.cpp:
48 (WebCore::externalRepresentation):
50 2009-11-13 Adam Roben <aroben@apple.com>
52 Tell FrameLoaderClient when window objects in isolated worlds are
55 Fixes <http://webkit.org/b/31124> Tell the WebFrameLoadDelegate when
56 window objects in isolated worlds are cleared
58 Test: http/tests/security/isolatedWorld/didClearWindowObject.html
60 Reviewed by Dave Hyatt.
62 * bindings/js/JSDOMBinding.h:
63 (WebCore::WebCoreJSClientData::getAllWorlds): Added. Copies all the
64 worlds in m_worldSet to the passed-in Vector.
66 * bindings/js/ScriptController.cpp:
67 (WebCore::ScriptController::getAllWorlds): Added. Calls through to
69 (WebCore::ScriptController::initScript): Changed to call
70 FrameLoader::dispatchDidClearWindowObjectInWorld.
72 * bindings/js/ScriptController.h: Added getAllWorlds.
74 * loader/EmptyClients.h:
75 (WebCore::EmptyFrameLoaderClient::dispatchDidClearWindowObjectInWorld):
76 Updated for FrameLoaderClient change.
78 * loader/FrameLoader.cpp:
79 (WebCore::FrameLoader::receivedFirstData):
80 (WebCore::FrameLoader::begin):
81 Changed to call dispatchDidClearWindowObjectsInAllWorlds.
83 (WebCore::FrameLoader::dispatchDidClearWindowObjectsInAllWorlds):
84 Added. Retrieves all the worlds, then calls through to
85 dispatchDidClearWindowObjectInWorld for each one.
86 (WebCore::FrameLoader::dispatchDidClearWindowObjectInWorld): Replaces
87 dispatchWindowObjectAvailable. Calls up to the client, then, if the
88 world is the mainThreadNormalWorld(), tells the Inspector about it,
91 * loader/FrameLoader.h: Replaced dispatchWindowObjectAvailable with
92 dispatchDidClearWindowObjectInWorld. Added
93 dispatchDidClearWindowObjectsInAllWorlds.
95 * loader/FrameLoaderClient.h: Replaced windowObjectCleared with
96 dispatchDidClearWindowObjectForWorld.
98 2009-11-13 Vitaly Repeshko <vitalyr@chromium.org>
100 Reviewed by Dimitri Glazkov.
102 [V8] Fix SVG context assignment for pod types.
103 https://bugs.webkit.org/show_bug.cgi?id=31497
105 I broke this in r50958.
107 Tested by svg/custom/viewport-update2.svg.
109 * bindings/scripts/CodeGeneratorV8.pm:
111 2009-11-13 Andrei Popescu <andreip@google.com>
113 Reviewed by Dmitry Titov.
115 Bring the platform/android files inline with Android 2.0
116 https://bugs.webkit.org/show_bug.cgi?id=31423
118 No new tests required: these are all Android-specific files.
120 * platform/android/ClipboardAndroid.cpp:
121 (WebCore::ClipboardAndroid::files):
122 * platform/android/ClipboardAndroid.h:
123 * platform/android/FileChooserAndroid.cpp:
124 (WebCore::FileChooser::basenameForWidth):
125 (WebCore::fileButtonChooseFileLabel):
126 * platform/android/KeyEventAndroid.cpp:
127 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
128 * platform/android/LocalizedStringsAndroid.cpp:
129 (WebCore::contextMenuItemTagOpenLinkInNewWindow):
130 (WebCore::contextMenuItemTagDownloadLinkToDisk):
131 (WebCore::contextMenuItemTagCopyLinkToClipboard):
132 (WebCore::contextMenuItemTagOpenImageInNewWindow):
133 (WebCore::contextMenuItemTagDownloadImageToDisk):
134 (WebCore::contextMenuItemTagCopyImageToClipboard):
135 (WebCore::contextMenuItemTagOpenFrameInNewWindow):
136 (WebCore::contextMenuItemTagCopy):
137 (WebCore::contextMenuItemTagGoBack):
138 (WebCore::contextMenuItemTagGoForward):
139 (WebCore::contextMenuItemTagStop):
140 (WebCore::contextMenuItemTagReload):
141 (WebCore::contextMenuItemTagCut):
142 (WebCore::contextMenuItemTagPaste):
143 (WebCore::contextMenuItemTagNoGuessesFound):
144 (WebCore::contextMenuItemTagIgnoreSpelling):
145 (WebCore::contextMenuItemTagLearnSpelling):
146 (WebCore::contextMenuItemTagSearchWeb):
147 (WebCore::contextMenuItemTagLookUpInDictionary):
148 (WebCore::contextMenuItemTagOpenLink):
149 (WebCore::contextMenuItemTagIgnoreGrammar):
150 (WebCore::contextMenuItemTagSpellingMenu):
151 (WebCore::contextMenuItemTagShowSpellingPanel):
152 (WebCore::contextMenuItemTagCheckSpelling):
153 (WebCore::contextMenuItemTagCheckSpellingWhileTyping):
154 (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
155 (WebCore::contextMenuItemTagFontMenu):
156 (WebCore::contextMenuItemTagBold):
157 (WebCore::contextMenuItemTagItalic):
158 (WebCore::contextMenuItemTagUnderline):
159 (WebCore::contextMenuItemTagOutline):
160 (WebCore::contextMenuItemTagWritingDirectionMenu):
161 (WebCore::contextMenuItemTagTextDirectionMenu):
162 (WebCore::contextMenuItemTagDefaultDirection):
163 (WebCore::contextMenuItemTagLeftToRight):
164 (WebCore::contextMenuItemTagRightToLeft):
165 (WebCore::mediaElementLoadingStateText):
166 (WebCore::mediaElementLiveBroadcastStateText):
167 (WebCore::searchableIndexIntroduction):
168 (WebCore::resetButtonDefaultLabel):
169 (WebCore::submitButtonDefaultLabel):
170 (WebCore::inputElementAltText):
171 * platform/android/RenderThemeAndroid.cpp:
172 (WebCore::RenderTheme::themeForPage):
173 (WebCore::RenderThemeAndroid::baselinePosition):
174 (WebCore::RenderThemeAndroid::paintButton):
175 (WebCore::adjustMenuListStyleCommon):
176 (WebCore::RenderThemeAndroid::paintCombo):
177 * platform/android/ScreenAndroid.cpp:
178 * platform/android/ScrollViewAndroid.cpp:
179 (WebCore::ScrollView::platformOffscreenContentRectangle):
180 * platform/android/TemporaryLinkStubs.cpp:
181 (JSC::Bindings::dispatchJNICall):
182 * platform/android/WidgetAndroid.cpp:
183 (WebCore::Widget::setFrameRect):
185 2009-11-13 Norbert Leser <norbert.leser&nokia.com>
187 Reviewed by Eric Seidel.
189 Added macros for USERINCLUDE paths within symbian blocks
190 to guarantee inclusion of respective header files from local path
191 first (to avoid clashes with same names of header files in system include path).
195 2009-11-13 Hironori Bono <hbono@chromium.org>
197 Reviewed by Oliver Hunt.
199 Implement composition events introduced in DOM Level 3.
200 This change adds a new IDL which defines the composition events, adds a class which
201 implements the composition events, and sends the composition events according to
203 https://bugs.webkit.org/show_bug.cgi?id=26310
205 Test: fast/events/ime-composition-events-001.html
207 * DerivedSources.make: Added CompositionEvent so we can compile "CompositionEvent.idl".
208 * GNUmakefile.am: Added "CompositionEvent.{cpp,h,idl}".
209 * WebCore.gypi: ditto.
211 * WebCore.vcproj/WebCore.vcproj: ditto.
212 * WebCore.xcodeproj/project.pbxproj: Added "CompositionEvent.{cpp,h,idl}" and "JSCompositionEvent.{cpp,h}".
213 * WebCoreSources.bkl: Added "JSCompositionEvent.{cpp,h}".
214 * bindings/js/JSEventCustom.cpp:
215 (WebCore::toJS): Call isCompositionEvent() to create the CompositionEvent wrapper.
216 * bindings/v8/DOMObjectsInclude.h: Added "JSCompositionEvent.h".
217 * bindings/v8/DerivedSourcesAllInOne.cpp: Added "JSCompositionEvent.cpp".
218 * bindings/v8/V8DOMWrapper.cpp: Call isCompositionEvent() to identify an event as a CompositionEvent.
219 (WebCore::V8DOMWrapper::convertEventToV8Object):
220 * bindings/v8/V8Index.cpp: Added "V8CompositionEvent.h".
221 * bindings/v8/V8Index.h: Added V8Index::COMPOSITIONEVENT.
222 * dom/CompositionEvent.cpp: Implements the CompositionEvent class.
223 (WebCore::CompositionEvent::CompositionEvent):
224 (WebCore::CompositionEvent::~CompositionEvent):
225 (WebCore::CompositionEvent::initCompositionEvent):
226 (WebCore::CompositionEvent::isCompositionEvent):
227 * dom/CompositionEvent.h: Declares the CompositionEvent class.
228 (WebCore::CompositionEvent::create):
229 (WebCore::CompositionEvent::data):
230 * dom/CompositionEvent.idl: Added the IDL of DOM CompositionEvent.
232 (WebCore::Event::isCompositionEvent): Added a method to identify an event is a CompositionEvent.
234 * dom/EventNames.h: Added composition{start,update,end} to eventNames.
235 * editing/Editor.cpp:
236 (WebCore::Editor::confirmComposition): Sent a CompositionEnd event.
237 (WebCore::Editor::setComposition): Sent a Composition{Start,Update,End} event.
239 2009-11-13 Jens Alfke <snej@chromium.org>
241 Reviewed by Dimitri Glazkov.
243 Fix a link error in unofficial GCC 4.4 builds on Linux.
244 https://bugs.webkit.org/show_bug.cgi?id=31477
246 * bindings/v8/V8Binding.cpp: Add explicit instantiations of v8StringToWebCoreString template.
248 2009-11-13 Eric Seidel <eric@webkit.org>
250 No review, build fix only.
252 Fix Debug build after http://trac.webkit.org/changeset/50960.
254 The CounterNode class does not support all methods necessary to efficiently update the counter tree as needed per CSS2.1
255 https://bugs.webkit.org/show_bug.cgi?id=31213
257 * rendering/CounterNode.cpp:
258 (WebCore::showTreeAndMark):
259 * rendering/RenderCounter.cpp:
260 (WebCore::destroyCounterNodeChildren):
262 2009-11-13 Dirk Schulze <krit@webkit.org>
264 Reviewed by Gustavo Noronha.
266 [CAIRO] shadow support for Canvas and SVG
267 [https://bugs.webkit.org/show_bug.cgi?id=30960]
269 We currently fill a path with solid color instead of filling
270 a clipping path. This causes problems on some composite operators,
271 since Cairo modifies the area outside the path.
272 This fixes the behavior of WebKitGtk on fast/canvas/canvas-composite-alpha.html
274 Thanks to Benjamin Otte for tracking the bug down.
276 * platform/graphics/cairo/GraphicsContextCairo.cpp:
277 (WebCore::setPlatformFill):
279 2009-11-12 Dumitru Daniliuc <dumi@chromium.org>
281 Reviewed by Dimitri Glazkov.
283 Adding Chromium's DatabaseTracker implementation.
285 https://bugs.webkit.org/show_bug.cgi?id=31440
287 * WebCore.gyp/WebCore.gyp:
289 * storage/DatabaseTracker.h:
290 * storage/chromium/DatabaseTrackerChromium.cpp:
291 (WebCore::DatabaseTracker::fullPathForDatabase):
292 (WebCore::DatabaseTracker::getMaxSizeForDatabase):
293 * storage/chromium/QuotaTracker.cpp:
294 (WebCore::QuotaTracker::updateDatabaseSize):
295 * storage/chromium/QuotaTracker.h:
297 2009-11-13 Carol Szabo <carol.szabo@nokia.com>
299 Reviewed by Darin Adler.
301 The CounterNode class is missing some basic tree navigation methods common in other WebKit trees such as the rendering tree
302 https://bugs.webkit.org/show_bug.cgi?id=31213
303 Added tree navigation methods that permit full implementation of CSS2.1
304 counter feature without using recursion proportional to the counter
306 No new tests because I did not find any bug that is fixed by this
307 commit yet, this just reduces the size of the patch for 11031 and
308 helps respond to some concerns regarding that patch.
310 * rendering/CounterNode.cpp:
311 (WebCore::CounterNode::CounterNode):
313 (WebCore::CounterNode::nextInPreOrderAfterChildren):
314 (WebCore::CounterNode::nextInPreOrder):
315 Added to support non-recursive tree traversal necessary for
316 efficient full implementation of CSS2.1 counters.
318 (WebCore::CounterNode::lastDescendant):
319 (WebCore::CounterNode::previousInPreOrder):
320 Moved this methods such that they occupy a place similar to that of
321 identically named methods on the render tree. This allows for their
322 broader use needed in full implementation of CSS2.1 counters.
324 (WebCore::CounterNode::resetRenderer):
325 (WebCore::CounterNode::resetRenderers):
326 (WebCore::CounterNode::recount):
327 (WebCore::CounterNode::insertAfter):
328 (WebCore::CounterNode::removeChild):
329 Changed such that insertion/removal of a counter, triggers not only
330 recalculation of PrefixWidths, but also reassesment of values in
331 counter nodes. This is the basis full implementation of CSS2.1
332 counters. It does not change current behavior by much because of
333 changes needed to the recalculation algorithm, but those are comming
334 in the patch for 11031.
335 (WebCore::showTreeAndMark):
336 * rendering/CounterNode.h:
337 * rendering/RenderCounter.cpp:
339 Only changed argument type to prepare for implementation of Darin
340 Adler's recommendation for the patch to 11031.
342 (WebCore::RenderCounter::invalidate):
343 (WebCore::destroyCounterNodeChildren):
344 (WebCore::RenderCounter::destroyCounterNodes):
345 * rendering/RenderCounter.h:
346 * rendering/RenderObjectChildList.cpp:
347 (WebCore::invalidateCountersInContainer):
348 (WebCore::RenderObjectChildList::invalidateCounters):
349 * rendering/RenderObjectChildList.h:
350 Added the ability to restrict invalidation to counters with a given
352 Also invalidated counters that are on the child container itself
353 which were missed by the previous algorithm, but were a valid case.
355 2009-11-13 Vitaly Repeshko <vitalyr@chromium.org>
357 Reviewed by Dimitri Glazkov.
359 [V8] Protect SVG animated properties from destruction in bindings.
360 https://bugs.webkit.org/show_bug.cgi?id=31474
362 See http://crbug.com/26719.
364 Tested by LayoutTests/svg/custom/js-update-transform-addition.svg
367 Made sure we keep a reference to SVG properties while setting a
369 * bindings/scripts/CodeGeneratorV8.pm:
370 * bindings/v8/V8Proxy.h:
371 (WebCore::V8Proxy::withSVGContext):
373 2009-11-13 Brent Fulgham <bfulgham@webkit.org>
375 Reviewed by Alexey Proskuryakov.
377 [CAIRO] shadow support for Canvas and SVG.
378 [https://bugs.webkit.org/show_bug.cgi?id=30960]
380 Incorporate Benjamin Otte's recommendations to avoid
381 a buffer overrun, and small performance improvement.
383 * platform/graphics/cairo/GraphicsContextCairo.cpp:
384 (WebCore::copyContextProperties): Correctly size output
385 storage for cairo_get_dash to avoid buffer overrun.
386 (WebCore::drawPathShadow): Prefer cairo_fill_extents
387 to slower cairo_stroke_extents when not drawing shadows.
389 2009-11-13 Dumitru Daniliuc <dumi@chromium.org>
391 Reviewed by Dimitri Glazkov.
393 Do not register Chromium's HTML5 DB VFS as the default
394 VFS. Otherwise, other sqlite DB users in the same process will
397 https://bugs.webkit.org/show_bug.cgi?id=31462
399 * platform/sql/chromium/SQLiteFileSystemChromium.cpp:
400 (WebCore::SQLiteFileSystem::openDatabase):
401 * platform/sql/chromium/SQLiteFileSystemChromiumPosix.cpp:
402 (WebCore::SQLiteFileSystem::registerSQLiteVFS):
403 * platform/sql/chromium/SQLiteFileSystemChromiumWin.cpp:
404 (WebCore::SQLiteFileSystem::registerSQLiteVFS):
406 2009-11-13 Alexey Proskuryakov <ap@apple.com>
410 * platform/network/cf/SocketStreamHandleCFNet.cpp:
411 (WebCore::SocketStreamHandle::SocketStreamHandle): Explicitly cast "-1" to CFOptionFlags,
412 avoiding a sign mismatch warning.
414 2009-11-13 Alexey Proskuryakov <ap@apple.com>
418 * platform/network/cf/SocketStreamHandleCFNet.cpp:
419 (WebCore::SocketStreamHandle::readStreamCallback):
420 (WebCore::SocketStreamHandle::writeStreamCallback):
421 Use ASSERT_UNUSED for unused stream parameter.
423 2009-11-12 Alexey Proskuryakov <ap@apple.com>
425 Reviewed by Darin Adler.
427 https://bugs.webkit.org/show_bug.cgi?id=31441
428 Implement SocketStreamHandleCFNet
430 Existing WebSocket tests now pass on Mac. No proxy support yet.
432 * platform/network/SocketStreamHandleClient.h:
433 * platform/network/cf/SocketStreamHandle.h:
434 (WebCore::SocketStreamHandle::shouldUseSSL):
435 (WebCore::SocketStreamHandle::refAuthenticationClient):
436 (WebCore::SocketStreamHandle::derefAuthenticationClient):
437 (WebCore::SocketStreamHandle::):
438 * platform/network/cf/SocketStreamHandleCFNet.cpp:
439 (WebCore::SocketStreamHandle::SocketStreamHandle):
440 (WebCore::SocketStreamHandle::chooseProxy):
441 (WebCore::SocketStreamHandle::createStreams):
442 (WebCore::SocketStreamHandle::copyCFStreamDescription):
443 (WebCore::SocketStreamHandle::readStreamCallback):
444 (WebCore::SocketStreamHandle::writeStreamCallback):
445 (WebCore::SocketStreamHandle::~SocketStreamHandle):
446 (WebCore::SocketStreamHandle::platformSend):
447 (WebCore::SocketStreamHandle::platformClose):
448 (WebCore::SocketStreamHandle::receivedCredential):
449 (WebCore::SocketStreamHandle::receivedRequestToContinueWithoutCredential):
450 (WebCore::SocketStreamHandle::receivedCancellation):
452 2009-11-12 Pavel Feldman <pfeldman@chromium.org>
454 Reviewed by Timothy Hatcher.
456 Web Inspector: preload status bar button glyphs
457 in order to prevent them from flickering (take 2).
459 https://bugs.webkit.org/show_bug.cgi?id=31439
461 * inspector/front-end/inspector.js:
464 2009-11-13 Pavel Feldman <pfeldman@chromium.org>
466 Reviewed by Adam Barth.
468 Chromium: [REGRESSION] Crash while stopping on a breakpoint.
471 https://bugs.webkit.org/show_bug.cgi?id=31467
473 * bindings/v8/V8Proxy.cpp:
474 (WebCore::V8Proxy::canAccessPrivate):
476 2009-11-13 Dirk Schulze <krit@webkit.org>
478 Reviewed by Gustavo Noronha.
480 [CAIRO] shadow support for Canvas and SVG
481 [https://bugs.webkit.org/show_bug.cgi?id=30960]
483 This is the fix of a regression, caused by the shadow patch
484 from the bug above. Reinserted the save and restore calls
485 that were accidently removed by the previous patch.
487 * platform/graphics/cairo/GraphicsContextCairo.cpp:
488 (WebCore::setPlatformFill):
489 (WebCore::setPlatformStroke):
491 2009-11-13 Pavel Feldman <pfeldman@chromium.org>
493 Not reviewed. Reverting r50908 since it makes inspector tests
496 https://bugs.webkit.org/show_bug.cgi?id=31439
498 * inspector/front-end/inspector.js:
500 2009-11-13 Mikhail Naganov <mnaganov@chromium.org>
502 Reviewed by Timothy Hatcher.
504 Enable 'console.profile()' and 'console.profileEnd()'
505 regardless of JAVASCRIPT_DEBUGGER.
507 https://bugs.webkit.org/show_bug.cgi?id=31293
510 * bindings/js/JSConsoleCustom.cpp:
511 (WebCore::JSConsole::profile):
512 (WebCore::JSConsole::profileEnd):
513 * bindings/v8/custom/V8ConsoleCustom.cpp: Added.
514 (WebCore::CALLBACK_FUNC_DECL):
515 * bindings/v8/custom/V8CustomBinding.h:
518 2009-11-12 David Levin <levin@chromium.org>
524 * bindings/v8/ScriptController.h:
525 (WebCore::ScriptController::evaluateInWorld): Add a dummy
526 method which isn't called in chromium to make things compile.
528 2009-11-12 Anantanarayanan G Iyengar <ananta@chromium.org>
530 Reviewed by Adam Barth.
532 The document-open.html test was flaky at times. The test invokes the layout test plugin
533 which in its destroy stream handler opens a new document. This basically tears down the
534 stream and the associated plugin instance, which causes a crash when the plugin stream
535 dereferences an invalid m_client pointer which points to the PluginView instance which
536 is invalid at this time. Fix is to set the m_client pointer to NULL in the stop function
537 and check for the same.
539 https://bugs.webkit.org/show_bug.cgi?id=31067
541 * plugins/PluginStream.cpp:
542 (WebCore::PluginStream::stop):
543 (WebCore::PluginStream::destroyStream):
545 2009-11-12 Dumitru Daniliuc <dumi@chromium.org>
547 Reviewed by Dimitri Glazkov.
549 Renaming some parameters passed to DB-related methods to better
550 indicate their purpose.
552 https://bugs.webkit.org/show_bug.cgi?id=31449
554 * platform/chromium/ChromiumBridge.h:
556 2009-11-12 Simon Fraser <simon.fraser@apple.com>
558 Reviewed by Dan Bernstein.
560 Transformed reflected elements are clipped inside element with opacity
561 https://bugs.webkit.org/show_bug.cgi?id=30957
563 transparencyClipBox() attemped to minimize the size of the transparency layer by mapping
564 each clip rect into painting space before taking the unions. This, however, did not work
565 correctly with combinations of reflections and transforms. Fixed by unioning the
566 clipRect and mapping through transforms along the way.
568 Also leave some #ifdeffed code in beginTransparencyLayers() that makes it easy to see
569 where the transparency layers are.
571 Test: fast/reflections/opacity-reflection-transform.html
573 * rendering/RenderLayer.cpp:
574 (WebCore::expandClipRectForDescendantsAndReflection):
575 (WebCore::transparencyClipBox):
576 (WebCore::RenderLayer::beginTransparencyLayers):
578 2009-11-12 Adam Barth <abarth@webkit.org>
580 Reviewed by Darin Fisher.
582 Improve SecurityOrigin::toString comment
583 https://bugs.webkit.org/show_bug.cgi?id=31041
585 * page/SecurityOrigin.h:
587 2009-11-12 Shinichiro Hamaji <hamaji@chromium.org>
589 Reviewed by Darin Adler.
591 externalRepresentation should take Frame as the argument
592 https://bugs.webkit.org/show_bug.cgi?id=31393
594 No new tests as this is just a refactoring.
597 * rendering/RenderTreeAsText.cpp:
598 (WebCore::externalRepresentation):
599 * rendering/RenderTreeAsText.h:
601 2009-11-12 Ben Murdoch <benm@google.com>
603 Reviewed by Dimitri Glazkov.
605 [Android] The Android specific files in page/Android are out of date.
606 https://bugs.webkit.org/show_bug.cgi?id=31437
610 * page/android/DragControllerAndroid.cpp:
611 (WebCore::DragController::dragOperation): Added.
612 (WebCore::DragController::cleanupAfterSystemDrag):
613 * page/android/EventHandlerAndroid.cpp:
614 (WebCore::EventHandler::accessKeyModifiers): Added.
615 * page/android/InspectorControllerAndroid.cpp: Removed.
617 2009-11-12 Brent Fulgham <bfulgham@webkit.org>
619 Reviewed by Simon Fraser.
621 [CAIRO] shadow support for Canvas and SVG.
622 [https://bugs.webkit.org/show_bug.cgi?id=30960]
624 Implement Canvas/SVG shadow support for Cairo. This patch
625 uses the filter code from SVG Filters. That means that it is
626 necessary to activate filters to see the shadows.
628 Test: fast/canvas/canvas-shadow.html
631 * WebCore.vcproj/WebCore.vcproj: Add new ImageBufferFilter files.
632 * platform/graphics/GraphicsContext.h:
633 * platform/graphics/cairo/GraphicsContextCairo.cpp:
634 (GraphicsContext::calculateShadowBufferDimensions): New helper routine.
635 (WebCore::setPlatformFill):
636 (WebCore::setPlatformStroke):
637 (WebCore::copyContextProperties):
638 (WebCore::drawPathShadow):
639 (WebCore::GraphicsContext::fillPath):
640 (WebCore::GraphicsContext::strokePath):
641 (WebCore::GraphicsContext::drawPath):
642 (WebCore::GraphicsContext::setPlatformShadow):
643 (WebCore::GraphicsContext::createPlatformShadow):
644 * platform/graphics/cairo/ImageCairo.cpp:
645 (WebCore::BitmapImage::draw): Add filter effect.
646 * platform/graphics/filters/Filter.h: Correct 'const' signatures.
647 * platform/graphics/filters/ImageBufferFilter.cpp: Added.
648 * platform/graphics/filters/ImageBufferFilter.h: Added.
649 * svg/graphics/filters/SVGFilter.cpp: Correct 'const' signatures.
650 * svg/graphics/filters/SVGFilter.h: Correct 'const' signatures.
652 2009-11-12 Dmitry Titov <dimich@chromium.org>
654 Reviewed by Alexey Proskuryakov.
656 Add postTaskToMainThread to ScriptExecutionContext.
657 Move the code to post task to the main thread into a new method on ScriptExecutionContext,
658 to use as a helper implementation of the virtual ScriptExecutionContext::postTask(Task) in
659 contexts that live on the main thread.
660 https://bugs.webkit.org/show_bug.cgi?id=31427
662 No new tests - simply moving the code.
665 (WebCore::Document::postTask):
666 * dom/ScriptExecutionContext.cpp:
667 (WebCore::ScriptExecutionContextTaskTimer::ScriptExecutionContextTaskTimer):
668 (WebCore::ScriptExecutionContextTaskTimer::fired):
669 (WebCore::PerformTaskData::PerformTaskData):
670 (WebCore::PerformTaskData::performTask):
671 (WebCore::ScriptExecutionContext::postTaskToMainThread):
672 * dom/ScriptExecutionContext.h:
674 2009-11-12 Simon Fraser <simon.fraser@apple.com>
676 Reviewed by Darin Adler.
678 Fix crash when removing compositing layers when GC is enabled
679 https://bugs.webkit.org/show_bug.cgi?id=31429
681 Workaround <rdar://problem/7390716> by special-casing the removal
682 of all sublayers when GC is enabled.
684 * platform/graphics/mac/GraphicsLayerCA.mm:
685 (WebCore::safeSetSublayers):
686 (WebCore::GraphicsLayerCA::updateSublayerList):
687 (WebCore::GraphicsLayerCA::swapFromOrToTiledLayer):
689 2009-11-12 Jens Alfke <snej@chromium.org>
691 Reviewed by Dimitri Glazkov.
693 The last of the V8 binding optimizations.
694 - Replace string-valued element accessors with a shared getter/setter function.
695 - Change error handling flow of control to avoid extra branches and function calls.
696 https://bugs.webkit.org/show_bug.cgi?id=31443
698 * bindings/scripts/CodeGeneratorV8.pm:
699 * bindings/v8/V8Binding.cpp:
700 (WebCore::getElementStringAttr): Body of string-valued Element getter function.
701 (WebCore::setElementStringAttr): Body of string-valued Element setter function.
702 * bindings/v8/V8Binding.h:
704 2009-11-12 Sam Weinig <sam@webkit.org>
706 Reviewed by Oliver Hunt.
708 Fix for <rdar://problem/7267951>
709 Canvas methods should reject uses of NaN and Infinity.
711 Test: fast/canvas/canvas-with-illegal-args.html
713 * html/canvas/CanvasRenderingContext2D.cpp:
714 (WebCore::CanvasRenderingContext2D::scale):
715 (WebCore::CanvasRenderingContext2D::rotate):
716 (WebCore::CanvasRenderingContext2D::translate):
717 (WebCore::CanvasRenderingContext2D::transform):
718 (WebCore::CanvasRenderingContext2D::setTransform):
720 2009-11-12 Pavel Feldman <pfeldman@chromium.org>
722 Reviewed by Timothy Hatcher.
724 Web Inspector: profile timeline panel, fix obvious problems.
726 https://bugs.webkit.org/show_bug.cgi?id=31432
728 * inspector/front-end/AbstractTimelinePanel.js:
729 (WebInspector.AbstractTimelinePanel.prototype.updateGraphDividersIfNeeded):
730 * inspector/front-end/TimelinePanel.js:
731 (WebInspector.TimelinePanel.prototype._setWindowPosition):
732 (WebInspector.TimelineCalculator):
733 (WebInspector.TimelineCalculator.prototype.get minimumBoundary):
734 (WebInspector.TimelineCalculator.prototype.get maximumBoundary):
735 (WebInspector.TimelineCalculator.prototype.reset):
736 (WebInspector.TimelineCalculator.prototype.updateBoundaries):
737 (WebInspector.TimelineCalculator.prototype.formatValue):
738 (WebInspector.TimelineGraph):
739 (WebInspector.TimelineGraph.prototype.refresh):
740 * inspector/front-end/utilities.js:
741 (Element.prototype.hasStyleClass):
743 2009-11-12 Pavel Feldman <pfeldman@chromium.org>
745 Reviewed by Timothy Hatcher.
747 Web Inspector: preload status bar button glyphs
748 in order to prevent them from flickering.
750 https://bugs.webkit.org/show_bug.cgi?id=31439
752 * inspector/front-end/inspector.js:
755 2009-11-12 Adam Roben <aroben@apple.com>
757 Replace worldIDs with world objects
759 Part of <http://webkit.org/b/31414> Implement new SPI for dealing with
760 user scripts/stylesheets and isolated worlds
762 Reviewed by Sam Weinig.
764 Covered by existing tests.
766 * WebCore.base.exp: Update exported symbols to match what now exists
767 and is needed by WebKit.
769 * bindings/js/ScheduledAction.cpp:
770 (WebCore::ScheduledAction::execute): Updated for function rename.
772 * bindings/js/ScriptController.cpp: Removed code that dealt with
774 (WebCore::ScriptController::createWorld): Added. Returns a new world
775 suitable for use on the main thread.
776 (WebCore::ScriptController::executeScriptInWorld): Renamed from
777 executeScriptInIsolatedWorld, since this works just fine with a
780 * bindings/js/ScriptController.h: Added createWorld, removed functions
781 that took worldIDs, renamed executeScriptInIsolatedWorld to
782 executeScriptInWorld.
785 (WebCore::Frame::injectUserScripts):
786 (WebCore::Frame::injectUserScriptsForWorld):
787 Updated for changes to UserScriptMap and ScriptController.
789 * page/Frame.h: Changed injectUserScriptsForWorld to take a
790 DOMWrapperWorld* instead of a worldID.
792 * page/PageGroup.cpp:
793 (WebCore::PageGroup::addUserScriptToWorld):
794 (WebCore::PageGroup::addUserStyleSheetToWorld):
795 (WebCore::PageGroup::removeUserScriptFromWorld):
796 (WebCore::PageGroup::removeUserStyleSheetFromWorld):
797 (WebCore::PageGroup::removeUserScriptsFromWorld):
798 (WebCore::PageGroup::removeUserStyleSheetsFromWorld):
800 Changed these functions to take a DOMWrapperWorld* instead of a
801 worldID. Also updated for changes to UserScript and UserStyleSheet.
804 * page/UserStyleSheet.h: Changed not to hold a worldID, since it was
807 * page/UserScriptTypes.h:
808 * page/UserStyleSheetTypes.h: Changed UserScriptMap and
809 UserStyleSheetMap to use a RefPtr<DOMWrapperWorld> instead of a
810 worldID as their key type.
813 2009-11-12 Brian Weinstein <bweinstein@apple.com>
815 Reviewed by Tim Hatcher.
817 Fixes <http://webkit.org/b/31260>.
818 Web Inspector: Main Resources Other than HTML are mis-detected.
820 Even if the resource is a main resource, look at its CachedResource type,
821 because it might be an image, stylesheet, or JavaScript file, and we
822 want to show them all correctly.
824 * inspector/InspectorResource.cpp:
825 (WebCore::InspectorResource::cachedResourceType): Move this method out so it can be called in multiple places.
826 (WebCore::InspectorResource::type):
827 * inspector/InspectorResource.h:
829 2009-11-12 Jens Alfke <snej@chromium.org>
831 Reviewed by Dimitri Glazkov.
833 Table-driven setup for V8 binding template callback functions. 100k in code savings.
834 https://bugs.webkit.org/show_bug.cgi?id=31420
836 * bindings/scripts/CodeGeneratorV8.pm: Change generated ConfigureXXXTemplate fn
837 to call configureTemplate().
838 * bindings/v8/V8Binding.cpp:
839 (WebCore::configureTemplate): New function; does all the standard configuration work.
840 (WebCore::createCallback): De-inlined wrapper for FunctionTemplate creation.
841 * bindings/v8/V8Binding.h:
842 * bindings/v8/V8Proxy.cpp:
843 (WebCore::batchConfigureAttributes): Just wrapped the very long fn parameter list.
844 (WebCore::batchConfigureCallbacks): New function, used by configureTemplate.
845 (WebCore::batchConfigureConstants): Just wrapped the very long fn parameter list.
846 * bindings/v8/V8Proxy.h:
848 2009-11-12 Dumitru Daniliuc <dumi@chromium.org>
850 Unreviewed, fix Chromium build after http://trac.webkit.org/changeset/50876.
852 * platform/sql/chromium/SQLiteFileSystemChromiumPosix.cpp:
854 2009-11-12 Eric Carlson <eric.carlson@apple.com>
856 Reviewed by Dan Bernstein.
858 <rdar://problem/7388969> Add DOM API for fullscreen video
860 DOM API for fullscreen <video>.
862 Tests: media/media-fullscreen-inline.html
863 media/media-fullscreen-not-in-document.html
866 Add webkitbeginfullscreen and webkitendfullscreen.
868 * html/HTMLAttributeNames.in:
869 Add onwebkitbeginfullscreen and onwebkitendfullscreen.
871 * html/HTMLMediaElement.cpp:
872 (WebCore::HTMLMediaElement::parseMappedAttribute):
873 Deal with onwebkitbeginfullscreen and onwebkitendfullscreen.
874 (WebCore::HTMLMediaElement::enterFullscreen):
875 Schedule webkitbeginfullscreenEvent event, don't set m_isFullscreen unless we
876 actually do enter fullscreen.
877 (WebCore::HTMLMediaElement::exitFullscreen):
878 Schedule webkitendfullscreenEvent event.
879 (WebCore::HTMLMediaElement::webkitEnterFullScreen):
880 (WebCore::HTMLMediaElement::webkitExitFullScreen):
881 (WebCore::HTMLMediaElement::webkitSupportsFullscreen):
882 (WebCore::HTMLMediaElement::webkitDisplayingFullscreen):
883 New, access to fullscreen properties and methods.
885 * html/HTMLMediaElement.h:
886 * html/HTMLMediaElement.idl:
887 Declare methods needed for fullscreen API.
889 * html/HTMLVideoElement.cpp:
890 (WebCore::HTMLVideoElement::supportsFullscreen):
891 Return false if a movie does not have video.
894 Add webkitbeginfullscreen and webkitendfullscreen.
896 2009-11-12 Adam Barth <abarth@webkit.org>
898 Reviewed by Dimitri Glazkov.
900 [Chromium] Sify compose button alerts error
901 https://bugs.webkit.org/show_bug.cgi?id=31394
903 Test: http/tests/security/calling-versus-current.html
905 We're supposed to use the calling context for security checks. In JSC
906 land, this is the lexicalGlobalObject.
908 * bindings/v8/V8Proxy.cpp:
909 (WebCore::V8Proxy::canAccessPrivate):
911 2009-11-12 Daniel Bates <dbates@webkit.org>
913 Reviewed by Darin Adler.
915 https://bugs.webkit.org/show_bug.cgi?id=30291
917 Fixes an issue where the returned drop effect is incorrect when
918 effectAllowed == "uninitialized".
920 According to section 7.9.2 of the HTML 5 spec.
921 <http://dev.w3.org/html5/spec/Overview.html#the-dragevent-and-datatransfer-interfaces>
922 when effectAllowed = "uninitialized" the resulting dropEffect should be the
923 user-specified dropEffect (i.e. "copy", "move", "link") and "none" for any
926 No test cases are included because we have an existing test case from
930 (WebCore::dragOpFromIEOp): Added case for op == "uninitialized".
932 2009-11-12 Pavel Feldman <pfeldman@chromium.org>
934 Reviewed by Timothy Hatcher.
936 Web Inspector: Do not highlight node on refresh.
938 https://bugs.webkit.org/show_bug.cgi?id=31419
940 * inspector/front-end/ElementsPanel.js:
941 (WebInspector.ElementsPanel.prototype.reset):
943 2009-11-12 Pavel Feldman <pfeldman@chromium.org>
945 Reviewed by Timothy Hatcher.
947 Web Inspector: Minor timeline fixes.
949 https://bugs.webkit.org/show_bug.cgi?id=31417
951 * inspector/front-end/TimelinePanel.js:
952 (WebInspector.TimelinePanel.prototype._getRecordDetails):
953 (WebInspector.TimelineRecordTreeElement.prototype.onattach):
954 (WebInspector.TimelineRecordTreeElement.prototype._updateDetails):
955 (WebInspector.TimelineRecordTreeElement.prototype.refresh):
957 2009-11-12 Alexey Proskuryakov <ap@apple.com>
959 SnowLeopard build fix.
961 Renamed initWithClient to initWithAuthenticationClient.
963 * platform/network/mac/AuthenticationMac.mm:
964 (-[WebCoreAuthenticationClientAsChallengeSender initWithAuthenticationClient:]):
965 (WebCore::AuthenticationChallenge::setAuthenticationClient):
967 2009-11-12 Chris Fleizach <cfleizach@apple.com>
969 Reviewed by Darin Adler.
971 ARIA: add alert type roles
972 https://bugs.webkit.org/show_bug.cgi?id=31392
974 Test: platform/mac/accessibility/aria-alerts.html
976 * accessibility/AccessibilityObject.h:
977 * accessibility/AccessibilityRenderObject.cpp:
978 * accessibility/mac/AccessibilityObjectWrapper.mm:
980 2009-11-11 Alexey Proskuryakov <ap@apple.com>
982 Reviewed by Darin Adler.
984 https://bugs.webkit.org/show_bug.cgi?id=31386
985 Make Mac AuthenticationChallenge usable from cross-platform code
987 No change in behavior, so no tests.
989 * platform/network/ResourceHandle.cpp:
990 (WebCore::ResourceHandle::clearAuthentication):
991 * platform/network/ResourceHandleInternal.h:
992 (WebCore::ResourceHandleInternal::ResourceHandleInternal):
993 Don't store m_currentCFChallenge, which was only used for a single assertion. Unlike the
994 NSURLConnection case, CF challenge doesn't carry a sender with it, so the copy in web challenge
997 * platform/network/cf/AuthenticationChallenge.h:
998 (WebCore::AuthenticationChallenge::setAuthenticationClient): Added a setter to match the new
999 Mac interface. Previously, one had to create a new AuthenticationChallenge to replace client.
1001 * platform/network/cf/ResourceHandleCFNet.cpp:
1002 (WebCore::ResourceHandle::didReceiveAuthenticationChallenge): Fixed assertions after removal
1003 of m_currentCFChallenge. Also, there is no need to set client now, as it's guaranteed to
1006 * platform/network/mac/AuthenticationChallenge.h:
1007 (WebCore::AuthenticationChallenge::m_sender): Explained the existence of this member to the
1008 best of my understanding.
1009 (WebCore::AuthenticationChallenge::m_nsChallenge): Renamed from m_macChallenge to prevent
1010 confusion with "mac" and "web" challenges in ResourceHandleInternal.
1012 * platform/network/mac/AuthenticationMac.mm:
1013 (WebCoreAuthenticationClientAsChallengeSender): Added a Obj-C wrapper for AuthenticationClient,
1014 making it possible to use the latter with NSURLAuthenticationChallenge.
1015 (WebCore::AuthenticationChallenge::AuthenticationChallenge): Updated for m_macChallenge ->
1016 m_nsChallenge renaming.
1017 (WebCore::AuthenticationChallenge::setAuthenticationClient): Wrap the client in Obj-C and
1018 set it as sender (or unset, if client is null).
1020 * platform/network/mac/ResourceHandleMac.mm:
1021 (WebCoreResourceHandleAsDelegate) WebCoreResourceHandleAsDelegate no longer doubles as
1022 authentication challenge sender.
1023 (WebCore::ResourceHandle::~ResourceHandle): A navigation can happen underneath an
1024 authentication sheet.
1025 (WebCore::ResourceHandle::didReceiveAuthenticationChallenge): Form m_currentWebChallenge
1026 using the new setAuthenticationClient() method.
1027 (WebCore::ResourceHandle::didCancelAuthenticationChallenge): Fixed an incorrect assertion.
1028 Since didCancelAuthenticationChallenge is called by connection, the passed challenge is
1029 the original Mac one, not the one we created for use with authentication sheet. I don't
1030 know when a connection would cancel authentication in practice, so I haven't tested this.
1032 2009-11-12 Patrick Mueller <Patrick_Mueller@us.ibm.com>
1034 Reviewed by Timothy Hatcher.
1036 Web Inspector: breakpoint sidebar entries should allow click over entire list item
1037 https://bugs.webkit.org/show_bug.cgi?id=31411
1039 No new tests; no new functionality, small usability change.
1041 * inspector/front-end/BreakpointsSidebarPane.js:
1042 (WebInspector.BreakpointsSidebarPane.prototype._appendBreakpointElement):
1043 (WebInspector.BreakpointsSidebarPane.prototype._appendBreakpointElement.breakpointClicked):
1045 2009-11-12 Patrick Mueller <Patrick_Mueller@us.ibm.com>
1047 Reviewed by Timothy Hatcher.
1049 Web Inspector: breakpoints in named evals are not restored after a reload
1050 https://bugs.webkit.org/show_bug.cgi?id=31375
1054 * inspector/front-end/ScriptsPanel.js:
1055 (WebInspector.ScriptsPanel.prototype.addScript):
1056 * manual-tests/inspector/bp-in-named-eval-after-reload.html: Added.
1058 2009-11-12 Benjamin Poulain <benjamin.poulain@nokia.com>
1060 Reviewed by Kenneth Rohde Christiansen.
1062 Custom printing shrink factors
1063 https://bugs.webkit.org/show_bug.cgi?id=29042
1065 This reverts commit r49769. The public API for this needs to be reviewed
1066 before its inclusion in Qt.
1068 * page/PrintContext.cpp:
1069 (WebCore::PrintContext::begin):
1070 * page/Settings.cpp:
1071 (WebCore::Settings::Settings):
1074 2009-11-12 Alexander Pavlov <apavlov@chromium.org>
1076 Reviewed by Pavel Feldman.
1078 Web Inspector: Resource errors/warnings not shown in the Resource tree.
1080 Error/Warning bubbles are not displayed next to the resource in the
1081 Resources panel if those occur before the resource is attached to the tree.
1082 https://bugs.webkit.org/show_bug.cgi?id=31404
1084 Test: manual-tests/inspector/styled-error-bubbles-in-scripts.html
1086 * inspector/front-end/AbstractTimelinePanel.js:
1087 (WebInspector.AbstractTimelinePanel.prototype.removeItem):
1088 * inspector/front-end/ResourcesPanel.js:
1089 (WebInspector.ResourceSidebarTreeElement.prototype.onattach):
1091 2009-11-12 Philippe Normand <pnormand@igalia.com>
1093 Reviewed by Jan Alonzo.
1095 https://bugs.webkit.org/show_bug.cgi?id=31047
1096 [GTK] Failing test media/video-played-ranges-1.html
1098 Follow-up of r50726, don't block the UI thread when calling
1099 gst_element_get_state(). Also fixed a compilation warning and some
1102 * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
1103 (WebCore::playbackPosition):
1104 (WebCore::MediaPlayerPrivate::seek):
1105 (WebCore::MediaPlayerPrivate::setRate):
1107 2009-11-12 Philippe Normand <pnormand@igalia.com>
1109 Reviewed by Jan Alonzo.
1111 https://bugs.webkit.org/show_bug.cgi?id=31047
1112 [GTK] Failing test media/video-played-ranges-1.html
1114 don't pause pipeline if already paused, same for play()
1116 * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
1117 (WebCore::MediaPlayerPrivate::play):
1118 (WebCore::MediaPlayerPrivate::pause):
1120 2009-11-12 Kinuko Yasuda <kinuko@google.com>
1122 Reviewed by David Levin.
1124 Support Gtk scrollwheel behavior for horizontal scrollbars on Linux
1126 https://bugs.webkit.org/show_bug.cgi?id=31292
1128 No new tests. (Corresponding test for Gtk+ is
1129 platform/gtk/scrollbars/overflow-scrollbar-horizontal-wheel-scroll.html)
1131 * page/EventHandler.cpp:
1132 * page/chromium/EventHandlerChromium.cpp:
1134 2009-11-12 Yuta Kitamura <yutak@chromium.org>
1136 Reviewed by Eric Seidel.
1138 Prevent text inside a multi-column block from being split into columns.
1140 If the tentative height of a multi-column block was too small, we need to
1141 expand the block height and try to layout again, in order to prevent text
1142 from being split into different columns.
1144 CSS Multicolumn text is split awkwardly
1145 https://bugs.webkit.org/show_bug.cgi?id=22249
1147 Test: fast/multicol/single-line.html
1149 * rendering/RenderBlock.cpp:
1150 (WebCore::RenderBlock::layoutColumns):
1151 * rendering/RenderBlock.h:
1152 * rendering/RenderLineBoxList.cpp:
1153 (WebCore::RenderLineBoxList::paint):
1154 * rendering/RenderView.h:
1155 (WebCore::RenderView::setTruncatedAt):
1156 (WebCore::RenderView::setMinimumColumnHeight):
1157 (WebCore::RenderView::minimumColumnHeight):
1159 2009-11-11 Kent Tamura <tkent@chromium.org>
1161 Reviewed by Darin Adler.
1163 Fix a bug that RenderFileUploadControl isn't initialized with multiple files.
1164 https://bugs.webkit.org/show_bug.cgi?id=31195
1166 Test: fast/forms/input-file-re-render.html
1168 * rendering/RenderFileUploadControl.cpp:
1169 (WebCore::RenderFileUploadControl::RenderFileUploadControl):
1171 2009-11-09 Dumitru Daniliuc <dumi@chromium.org>
1173 Reviewed by Dimitri Glazkov.
1175 Fixing Chromium's POSIX VFS implementation, by adding the required
1176 "used file descriptors" logic.
1178 https://bugs.webkit.org/show_bug.cgi?id=31275
1180 * platform/sql/chromium/SQLiteFileSystemChromiumPosix.cpp:
1182 2009-11-11 Chris Fleizach <cfleizach@apple.com>
1184 Reviewed by Oliver Hunt.
1186 need to implement aria tree roles
1187 https://bugs.webkit.org/show_bug.cgi?id=31284
1189 Tests: platform/mac/accessibility/aria-multiselectable.html
1190 platform/mac/accessibility/aria-tree.html
1192 * accessibility/AccessibilityList.cpp:
1193 (WebCore::AccessibilityList::accessibilityIsIgnored):
1194 * accessibility/AccessibilityObject.cpp:
1195 (WebCore::AccessibilityObject::ariaTreeRows):
1196 (WebCore::AccessibilityObject::ariaTreeItemContent):
1197 (WebCore::AccessibilityObject::ariaTreeItemDisclosedRows):
1198 * accessibility/AccessibilityObject.h:
1200 (WebCore::AccessibilityObject::isTree):
1201 (WebCore::AccessibilityObject::isTreeItem):
1202 (WebCore::AccessibilityObject::setIsExpanded):
1203 (WebCore::AccessibilityObject::canSetExpandedAttribute):
1204 (WebCore::AccessibilityObject::hierarchicalLevel):
1205 (WebCore::AccessibilityObject::setSelectedRows):
1206 (WebCore::AccessibilityObject::performDefaultAction):
1207 * accessibility/AccessibilityRenderObject.cpp:
1208 (WebCore::AccessibilityRenderObject::hierarchicalLevel):
1209 (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
1210 (WebCore::AccessibilityRenderObject::isExpanded):
1211 (WebCore::AccessibilityRenderObject::setElementAttributeValue):
1212 (WebCore::AccessibilityRenderObject::elementAttributeValue):
1213 (WebCore::AccessibilityRenderObject::setIsExpanded):
1214 (WebCore::AccessibilityRenderObject::isSelected):
1215 (WebCore::AccessibilityRenderObject::setSelected):
1216 (WebCore::AccessibilityRenderObject::setSelectedRows):
1217 (WebCore::createARIARoleMap):
1218 (WebCore::AccessibilityRenderObject::canSetExpandedAttribute):
1219 (WebCore::AccessibilityRenderObject::ariaTreeSelectedRows):
1220 (WebCore::AccessibilityRenderObject::ariaListboxSelectedChildren):
1221 (WebCore::AccessibilityRenderObject::selectedChildren):
1222 * accessibility/AccessibilityRenderObject.h:
1223 * accessibility/mac/AccessibilityObjectMac.mm:
1224 (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):
1225 * accessibility/mac/AccessibilityObjectWrapper.mm:
1226 (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
1228 (-[AccessibilityObjectWrapper subrole]):
1229 (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
1230 (-[AccessibilityObjectWrapper accessibilityIsAttributeSettable:]):
1231 (-[AccessibilityObjectWrapper accessibilityPerformShowMenuAction]):
1232 (-[AccessibilityObjectWrapper accessibilitySetValue:forAttribute:]):
1233 (-[AccessibilityObjectWrapper accessibilityArrayAttributeCount:]):
1234 * html/HTMLAttributeNames.in:
1236 2009-11-11 Brent Fulgham <bfulgham@webkit.org>
1238 Build fix after @r50760 with ENABLE_FILTERS.
1240 * platform/graphics/filters/SourceAlpha.cpp:
1241 (WebCore::SourceAlpha::apply): Supply ColorSpace to fillRect.
1242 * svg/graphics/filters/SVGFEFlood.cpp: Supply ColorSpace argument
1245 2009-11-11 Fumitoshi Ukai <ukai@chromium.org>
1247 Reviewed by Alexey Proskuryakov.
1249 Fix WebSocket frame parser of frame_type with high-order bit set.
1250 https://bugs.webkit.org/show_bug.cgi?id=30668
1252 If buffer is smaller than frame's length, it should break the loop
1253 instead of reading next byte.
1255 Tests: websocket/tests/frame-length-longer-than-buffer.html
1256 websocket/tests/frame-length-skip.html
1258 * websockets/WebSocketChannel.cpp:
1259 (WebCore::WebSocketChannel::didReceiveData):
1261 2009-11-11 Yusuke Sato <yusukes@chromium.org>
1263 Reviewed by Adam Barth.
1265 [chromium] Remove t2embed.dll functions from FontCustomPlatformData.cpp for Chromium
1266 https://bugs.webkit.org/show_bug.cgi?id=31345
1268 Remove dependency on t2embed.dll so that Chromium for Windows can start even if t2embed.dll cannot be accessed.
1270 * platform/graphics/chromium/FontCustomPlatformData.cpp:
1271 (WebCore::FontCustomPlatformData::~FontCustomPlatformData): Remove TTDeleteEmbeddedFont() call. Always use RemoveFontMemResourceEx().
1272 (WebCore::FontCustomPlatformData::fontPlatformData): Remove TTGetNewFontName() call.
1273 (WebCore::createFontCustomPlatformData): Remove TTLoadEmbeddedFont() call. Always use AddFontMemResourceEx() via renameAndActivateFont() in opentype/OpenTypeUtility.h. Remove EOTStream class as well.
1275 2009-11-11 Beth Dakin <bdakin@apple.com>
1277 Build fix. No review needed.
1279 * platform/graphics/gtk/FontGtk.cpp:
1280 (WebCore::Font::drawComplexText):
1282 2009-11-11 Beth Dakin <bdakin@apple.com>
1284 Build fix. No review needed.
1286 * platform/graphics/cairo/FontCairo.cpp:
1287 (WebCore::Font::drawGlyphs):
1289 2009-11-11 Beth Dakin <bdakin@apple.com>
1291 Windows build fix. No review needed.
1293 * platform/graphics/win/FontCGWin.cpp:
1294 (WebCore::Font::drawGlyphs):
1296 2009-11-11 Beth Dakin <bdakin@apple.com>
1298 Reviewed by Simon Fraser.
1300 Fix for https://bugs.webkit.org/show_bug.cgi?id=31382
1301 Make -webkit-color-correction work with shadows
1303 From canvas, just send DeviceColorSpace to setShadow() for now.
1304 Will fix soon when I address https://bugs.webkit.org/show_bug.cgi?id=31319
1305 * html/canvas/CanvasRenderingContext2D.cpp:
1306 (WebCore::CanvasRenderingContext2D::setShadow):
1307 (WebCore::CanvasRenderingContext2D::applyShadow):
1309 setShadow() and setPlatformShadow() now take a ColorSpace.
1310 * platform/graphics/GraphicsContext.cpp:
1311 (WebCore::GraphicsContext::setShadow):
1312 * platform/graphics/GraphicsContext.h:
1313 * platform/graphics/cg/GraphicsContextCG.cpp:
1314 (WebCore::createCGColorWithColorSpace): New helper to create a
1315 color in a ColorSpace.
1316 (WebCore::setCGFillColor): Call new helper.
1317 (WebCore::setCGStrokeColor): Call new helper.
1318 (WebCore::GraphicsContext::setPlatformShadow): Call new helper.
1319 * platform/graphics/haiku/GraphicsContextHaiku.cpp:
1320 (WebCore::GraphicsContext::setPlatformShadow):
1322 Send appropriate ColorSpace to setShadow().
1323 * platform/graphics/mac/FontMac.mm:
1324 (WebCore::Font::drawGlyphs):
1325 * rendering/EllipsisBox.cpp:
1326 (WebCore::EllipsisBox::paint):
1327 * rendering/InlineFlowBox.cpp:
1328 (WebCore::InlineFlowBox::paintTextDecorations):
1329 * rendering/InlineTextBox.cpp:
1330 (WebCore::paintTextWithShadows):
1331 (WebCore::InlineTextBox::paintDecoration):
1332 * rendering/RenderBoxModelObject.cpp:
1333 (WebCore::RenderBoxModelObject::paintBoxShadow):
1334 * rendering/SVGInlineTextBox.cpp:
1335 (WebCore::SVGInlineTextBox::paintCharacters):
1336 * rendering/SVGRenderSupport.cpp:
1337 (WebCore::SVGRenderBase::prepareToRenderSVGContent):
1339 Attempt to keep ports building.
1340 * platform/graphics/cairo/GraphicsContextCairo.cpp:
1341 (WebCore::GraphicsContext::setPlatformShadow):
1342 * platform/graphics/qt/GraphicsContextQt.cpp:
1343 (WebCore::GraphicsContext::setPlatformShadow):
1344 * platform/graphics/skia/GraphicsContextSkia.cpp:
1345 (WebCore::GraphicsContext::setPlatformShadow):
1346 * platform/graphics/wince/GraphicsContextWince.cpp:
1347 (WebCore::GraphicsContext::setPlatformShadow):
1348 * platform/graphics/wx/GraphicsContextWx.cpp:
1349 (WebCore::GraphicsContext::setPlatformShadow):
1351 2009-11-11 Kent Tamura <tkent@chromium.org>
1353 Reviewed by Darin Adler.
1355 Print the file text of a file upload control in DumpRenderTree for ease of tests.
1356 https://bugs.webkit.org/show_bug.cgi?id=31195
1358 * rendering/RenderFileUploadControl.cpp:
1359 (WebCore::RenderFileUploadControl::paintObject):
1360 (WebCore::RenderFileUploadControl::fileTextValue):
1361 * rendering/RenderFileUploadControl.h:
1362 (WebCore::RenderFileUploadControl::isFileUploadControl):
1363 (WebCore::toRenderFileUploadControl):
1364 * rendering/RenderObject.h:
1365 (WebCore::RenderObject::isFileUploadControl):
1366 * rendering/RenderTreeAsText.cpp:
1367 (WebCore::operator<<):
1369 2009-11-11 Gavin Barraclough <barraclough@apple.com>
1371 Reviewed by Sam Weinig.
1373 DOM Wrappers for some nodes may not be marked.
1374 https://bugs.webkit.org/show_bug.cgi?id=31380
1376 Some markChildren methods are calling getCachedDOMNodeWrapper, which will find
1377 the wrapper for the current world only. This means that wrappers may be GC'ed
1378 prematurely, and properties lost.
1380 Move to a model more like markDOMObjectWrapper, mark wrappers for all worlds.
1382 * bindings/js/JSAttrCustom.cpp:
1383 (WebCore::JSAttr::markChildren):
1384 * bindings/js/JSDOMBinding.cpp:
1385 (WebCore::markDOMNodeWrapper):
1386 * bindings/js/JSDOMBinding.h:
1387 * bindings/js/JSNamedNodeMapCustom.cpp:
1388 (WebCore::JSNamedNodeMap::markChildren):
1389 * bindings/js/JSNodeCustom.cpp:
1390 (WebCore::JSNode::markChildren):
1391 * bindings/js/JSSVGElementInstanceCustom.cpp:
1392 (WebCore::JSSVGElementInstance::markChildren):
1393 * bindings/js/JSStyleSheetCustom.cpp:
1394 (WebCore::JSStyleSheet::markChildren):
1396 2009-11-11 Ben Murdoch <benm@google.com>
1398 Reviewed by Darin Adler.
1400 bindings/js/ScriptObject.cpp is missing and ENABLE(INSPECTOR) guard.
1401 https://bugs.webkit.org/show_bug.cgi?id=31384
1403 No functionality change so no tests required.
1405 * bindings/js/ScriptObject.cpp: Add ENABLE(INSPECTOR) guard around the JSInspectorBackend.h include.
1407 2009-11-11 Jens Alfke <snej@chromium.org>
1409 Reviewed by Dimitri Glazkov.
1411 The Big De-Inlining. 450k code size reduction (32-bit x86.)
1412 - Various inline functions in V8Binding.h made non-inline.
1413 - Some renaming for consistency.
1414 - New function createRawTemplate().
1415 https://bugs.webkit.org/show_bug.cgi?id=31383
1417 * bindings/scripts/CodeGeneratorV8.pm:
1418 * bindings/v8/V8Binding.cpp:
1419 (WebCore::v8DOMWrapperToNative):
1420 (WebCore::v8ValueToWebCoreString):
1421 (WebCore::v8ValueToAtomicWebCoreString):
1423 (WebCore::toWebCoreString):
1424 (WebCore::toWebCoreStringWithNullCheck):
1425 (WebCore::toAtomicWebCoreStringWithNullCheck):
1426 (WebCore::toWebCoreStringWithNullOrUndefinedCheck):
1427 (WebCore::isUndefinedOrNull):
1428 (WebCore::v8Boolean):
1429 (WebCore::v8UndetectableString):
1430 (WebCore::v8StringOrNull):
1431 (WebCore::v8StringOrUndefined):
1432 (WebCore::v8StringOrFalse):
1433 (WebCore::v8StringToWebCoreString):
1434 (WebCore::v8ExternalString):
1435 (WebCore::createRawTemplate): New function.
1436 * bindings/v8/V8Binding.h:
1437 (WebCore::v8DOMWrapperTo):
1438 (WebCore::v8DOMWrapperToNode):
1439 (WebCore::v8StringToWebCoreString):
1440 (WebCore::v8StringToAtomicWebCoreString):
1442 2009-11-11 Jens Alfke <snej@chromium.org>
1444 Reviewed by Dimitri Glazkov.
1446 More V8 de-inlining (outlining?) Abstracted a chunk of boilerplate code from every
1447 event-listener setter into a new subroutine transferHiddenDependency().
1448 https://bugs.webkit.org/show_bug.cgi?id=31377
1450 * bindings/scripts/CodeGeneratorV8.pm: Replace boilerplate with call to transferHiddenDependency().
1451 * bindings/v8/V8Utilities.cpp:
1452 (WebCore::transferHiddenDependency): New.
1453 * bindings/v8/V8Utilities.h: Declaration of transferHiddenDependency.
1455 2009-11-11 Brian Weinstein <bweinstein@apple.com>
1457 Reviewed by Beth Dakin.
1459 If we are on Windows, don't try and get the kCGColorSpaceSRGB ColorSpace,
1460 because there is a CG bug preventing this from working.
1462 * platform/graphics/cg/GraphicsContextCG.cpp:
1463 (WebCore::sRGBColorSpaceRef):
1465 2009-11-11 Pavel Feldman <pfeldman@chromium.org>
1467 Reviewed by Timothy Hatcher.
1469 Check that if Storage panel exists before calling its methods
1471 https://bugs.webkit.org/show_bug.cgi?id=31343
1473 * inspector/front-end/inspector.js:
1474 (WebInspector.addDatabase):
1475 (WebInspector.addCookieDomain):
1476 (WebInspector.addDOMStorage):
1477 (WebInspector.updateDOMStorage):
1479 2009-11-11 Jens Alfke <snej@chromium.org>
1481 Reviewed by Dimitri Glazkov.
1483 De-inline convertNodeToV8Object(), which expands to a lot of asm code and is inlined 136
1484 times in the generated V8 bindings.
1485 https://bugs.webkit.org/show_bug.cgi?id=31368
1487 * bindings/v8/V8DOMWrapper.cpp:
1488 (WebCore::V8DOMWrapper::convertNodeToV8Object): Moved body here from .h file
1489 * bindings/v8/V8DOMWrapper.h: Removed inline method body.
1491 2009-11-11 Jessie Berlin <jberlin@webkit.org>
1493 Reviewed by Timothy Hatcher.
1495 Display the correct summary in the web inspector for the shorthands
1496 border-color, border-width, border-style, margin, and padding.
1497 https://bugs.webkit.org/show_bug.cgi?id=7987
1499 Test: fast/css/shorthands-four-values.html
1501 * css/CSSMutableStyleDeclaration.cpp:
1502 (WebCore::CSSMutableStyleDeclaration::get4Values):
1503 Display the summary information in the same way the shorthand would be
1504 specified in a css rule.
1506 2009-11-11 Jens Alfke <snej@chromium.org>
1508 Reviewed by Dimitri Glazkov.
1510 Make V8 bindings return NULL handles instead of calling v8::Undefined(). This has equivalent
1511 meaning to the caller, saves code, and appears to save a few cycles at runtime too.
1512 https://bugs.webkit.org/show_bug.cgi?id=31367
1514 * bindings/scripts/CodeGeneratorV8.pm: Change "v8::Undefined()" to "v8::Handle<v8::Value>()"
1516 2009-11-11 Jens Alfke <snej@chromium.org>
1518 Reviewed by Dimitri Glazkov.
1520 Optimize V8 getDOMNodeMap(), a hot function in Dromaeo DOM tests, by increasing inlining.
1522 * bindings/v8/DOMData.cpp:
1523 (WebCore::DOMData::getCurrent): Moved getCurrentMainThread to MainThreadDOMData::getCurrent
1524 so it can be inlined by its caller.
1525 * bindings/v8/DOMData.h:
1526 * bindings/v8/MainThreadDOMData.cpp:
1527 (WebCore::MainThreadDOMData::getCurrent): Moved here from DOMData.cpp.
1528 (WebCore::MainThreadDOMData::getMainThreadStore): Added UNLIKELY macro to improve codegen.
1529 (WebCore::MainThreadDOMData::getCurrentMainThreadStore): Combination of getCurrentMainThread
1530 and getStore, which inline both calls together.
1531 * bindings/v8/MainThreadDOMData.h:
1532 (WebCore::MainThreadDOMData::getStore): Broke out nonvirtual getMainThreadStore for inlineability.
1533 * bindings/v8/V8DOMMap.cpp:
1534 (WebCore::getDOMNodeMap): Call new getCurrentMainThreadStore, which is faster.
1536 2009-11-11 Nate Chapin <japhet@chromium.org>
1538 Reviewed by Dimitri Glazkov.
1540 Add methods to KURLGoogle.cpp declared in http://trac.webkit.org/changeset/50784 but not defined when using KURLGoogle.
1542 https://bugs.webkit.org/show_bug.cgi?id=31357
1544 * platform/KURLGoogle.cpp:
1545 (WebCore::isSchemeFirstChar):
1546 (WebCore::isSchemeChar):
1547 (WebCore::KURL::hasPort):
1548 (WebCore::KURL::removePort):
1549 (WebCore::protocolIsValid):
1551 2009-11-11 Brent Fulgham <bfulgham@webkit.org>
1553 Build fix, no reviewed.
1555 Correct setPlatformFillColor and setPlatformStrokeColor calls
1556 to match new ColorSpace-supporting signatures.
1558 * platform/graphics/win/GraphicsContextCairoWin.cpp: Add the
1559 color space to the set[...]Color calls.
1561 2009-11-10 Alexey Proskuryakov <ap@apple.com>
1563 Reviewed by Sam Weinig.
1565 https://bugs.webkit.org/show_bug.cgi?id=31327
1566 Clean up SocketStreamHandleClient interface
1568 No change in behavior.
1570 * platform/network/SocketStreamHandleClient.h: Removed willOpenStream and willSendData.
1571 (WebCore::SocketStreamHandleClient::willOpenStream): Removed. This is currently not used by
1572 the only client (WebSocketChannel), and it's not clear what this callback's semantics
1574 (WebCore::SocketStreamHandleClient::willSendData): Ditto.
1575 (WebCore::SocketStreamHandleClient::receivedCancellation): Removed, because it was misplaced.
1576 For ResourceHandle, this method is called when the user cancels authentication sheet,
1577 not when something happens with the stream.
1579 * websockets/WebSocketChannel.h: Some WebSocketChannel methods were virtual without any
1580 reason. Also, added didReceiveAuthenticationChallenge/didCancelAuthenticationChallenge.
1582 * websockets/WebSocketChannel.cpp: Adjusted for the above change. Authentication-related
1583 callbacks have no real implementation yet.
1585 2009-11-11 Zoltan Horvath <zoltan@webkit.org>
1587 Reviewed by Eric Seidel.
1589 Allow custom memory allocation control for the part of page directory in WebCore
1590 https://bugs.webkit.org/show_bug.cgi?id=31350
1592 Inherits the following classes from Noncopyable because these are instantiated
1593 by 'new' and these are no need to be copyable:
1595 class DragController - instantiated at: WebCore/page/Page.cpp:107
1596 class FocusController - instantiated at: WebCore/page/Page.cpp:109
1597 class Settings - instantiated at: WebCore/page/Page.cpp:116
1598 class PluginHalter - instantiated at: WebCore/page/Page.cpp:160
1599 struct ScheduledEvent - instantiated at: WebCore/page/FrameView.cpp:1275
1600 class UserScript - instantiated at: WebCore/page/PageGroup.cpp:208
1601 struct EventHandlerDragState - instantiated at: WebCore/page/EventHandler.cpp:182
1602 class XSSAuditor - instantiated at: WebCore/bindings/js/ScriptController.cpp:70
1603 class UserStyleSheet - instantiated at: WebCore/page/PageGroup.cpp:222
1605 Inherits PropertyWrapperBase class from Noncopyable because (its child class)
1606 PropertyWrapper is instantiated by 'new' in
1607 WebCore/page/animation/AnimationBase.cpp:564 it is no need to be copyable.
1609 * page/DragController.h:
1610 * page/EventHandler.h:
1611 * page/FocusController.h:
1612 * page/FrameView.cpp:
1613 * page/PluginHalter.h:
1615 * page/UserScript.h:
1616 * page/UserStyleSheet.h:
1617 * page/XSSAuditor.h:
1618 * page/animation/AnimationBase.cpp:
1620 2009-11-11 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1622 Reviewed by Kenneth Rohde Christiansen.
1624 https://bugs.webkit.org/show_bug.cgi?id=31323
1625 Fix a few compiler warnings
1627 No new tests as there is no new functionality.
1629 * editing/htmlediting.cpp:
1630 (WebCore::isRenderedAsNonInlineTableImageOrHR): Use explicit
1631 parentheses to silence gcc 4.4 -Wparentheses warnings
1633 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
1635 Reviewed by Mark Rowe.
1637 Set m_hasPendingGeometryChange to true by default, so that
1638 at least one call to NPP_SetWindow is executed, which is
1639 needed by the DRT plugin testing framework.
1641 * plugins/PluginView.cpp:
1642 (WebCore::PluginView::PluginView):
1644 2009-11-11 Csaba Osztrogonác <ossy@webkit.org>
1646 Rubber-stamped by Kenneth Rohde Christiansen.
1648 https://bugs.webkit.org/show_bug.cgi?id=31348
1649 [Qt] Remove unnecessary LUT creator from WebCore.pro
1653 2009-11-11 Simon Hausmann <simon.hausmann@nokia.com>
1655 Reviewed by Tor Arne Vestbø.
1657 Introduce a function for querying the input method status
1660 * platform/qt/QWebPageClient.h:
1662 2009-11-11 Benjamin Otte <otte@gnome.org>
1664 Reviewed by Jan Alonzo.
1666 [GTK] Black artifacts in youtube.com/html5
1668 Paint the video to the given size. It's the job of the callers to keep
1669 track of aspect ratio. RenderVideo.cpp does it for the <video>
1671 https://bugs.webkit.org/show_bug.cgi?id=30925
1673 * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
1674 (WebCore::MediaPlayerPrivate::paint):
1676 2009-11-11 Joanmarie Diggs <joanmarie.diggs@gmail.com>
1678 Reviewed by Reviewed by Jan Alonzo.
1680 https://bugs.webkit.org/show_bug.cgi?id=30901
1681 [Gtk] Need to de-lint the Atk a11y code
1683 Cleaned up some missed capitalization style-guideline violations.
1685 * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1687 2009-11-11 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1689 Reviewed by Eric Seidel.
1691 [Qt] Make the default style background color valid.
1692 Currently the color is transparent but invalid, this causes
1693 list boxes in QtWebKit to be drawn with a black background
1695 https://bugs.webkit.org/show_bug.cgi?id=31295
1697 * rendering/style/RenderStyle.h:
1698 (WebCore::InheritedFlags::initialBackgroundColor):
1699 * rendering/style/StyleBackgroundData.cpp:
1700 (WebCore::StyleBackgroundData::StyleBackgroundData):
1702 2009-11-10 Gavin Barraclough <barraclough@apple.com>
1704 Reviewed by Geoff Garen.
1706 Simplify the ownership model for worlds - rather than having a pair of weak references
1707 between DOMWrapperWorld and ScriptController/ScriptCachedFrameData, give the latter an
1708 ref pointer to the former. This reduces complexity & cost of the caching entries in the
1712 * bindings/js/JSDOMBinding.cpp:
1713 (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
1714 * bindings/js/JSDOMBinding.h:
1715 (WebCore::DOMWrapperWorld::forgetDocument):
1716 * bindings/js/ScriptCachedFrameData.cpp:
1717 (WebCore::ScriptCachedFrameData::ScriptCachedFrameData):
1718 (WebCore::ScriptCachedFrameData::restore):
1719 (WebCore::ScriptCachedFrameData::clear):
1720 * bindings/js/ScriptCachedFrameData.h:
1721 * bindings/js/ScriptController.cpp:
1722 (WebCore::ScriptController::~ScriptController):
1723 (WebCore::ScriptController::clearWindowShell):
1724 (WebCore::ScriptController::initScript):
1725 (WebCore::ScriptController::updateDocument):
1726 * bindings/js/ScriptController.h:
1728 2009-11-10 Shinichiro Hamaji <hamaji@chromium.org>
1730 Reviewed by Darin Adler.
1732 rename counter to makeCounterNode in RenderCounter.cpp
1733 https://bugs.webkit.org/show_bug.cgi?id=31289
1735 No new test because this is just a small refactoring.
1737 * rendering/RenderCounter.cpp:
1738 (WebCore::findPlaceForCounter):
1739 (WebCore::makeCounterNode):
1740 (WebCore::RenderCounter::originalText):
1742 2009-11-10 Daniel Bates <dbates@webkit.org>
1744 Reviewed by Oliver Hunt.
1746 https://bugs.webkit.org/show_bug.cgi?id=30754
1750 Removed method EventHandler::dragSourceMovedTo, since it is no longer
1751 needed. This method fired a drag event whenever the mouse moved, but
1752 section 7.9.4 of the HTML 5 spec. defines the drag-and-drop processing
1753 model independent of when the mouse moves. See "Among other changes..."
1754 in the change log for patch 1 for more details.
1756 * WebCore.DragSupport.exp:
1757 * page/EventHandler.cpp: Removed method EventHandler::dragSourceMovedTo.
1758 (WebCore::EventHandler::handleDrag): Updated comment about reentrancy issue.
1759 * page/EventHandler.h:
1761 2009-11-10 Daniel Bates <dbates@webkit.org>
1763 Reviewed by Oliver Hunt.
1765 https://bugs.webkit.org/show_bug.cgi?id=30754
1769 As per Section 7.9.4 of the HTML 5 spec. <http://dev.w3.org/html5/spec/Overview.html#drag-and-drop-processing-model>,
1770 the drag event should always fire before the dragover event.
1772 In fixing this bug, this patch also makes our drag processing model
1773 conform to the HTML 5 spec.
1775 Among the changes, this patch ensures that the drag event isn't fired outside
1776 of the drag-and-drop processing loop, WebCore::EventHandler::updateDragAndDrop.
1777 Currently, the drag event is fired whenever the mouse button is down and the OS
1778 detects the mouse moved. But, as per the spec, the drag event should
1779 fire approx. every 350ms so long as the mouse button is down.
1781 Test: fast/events/drag-and-drop-fire-drag-dragover.html
1783 * page/EventHandler.cpp:
1784 (WebCore::EventHandler::clear):
1785 (WebCore::EventHandler::canHandleDragAndDropForTarget): Formerly named handleDragAndDropForTarget.
1786 Modified to determine when we are in the correct instance of EventHandler to service the drag
1788 (WebCore::EventHandler::updateDragAndDrop): Moved code from WebCore::EventHandler::dragSourceMovedTo
1790 (WebCore::EventHandler::cancelDragAndDrop):
1791 (WebCore::EventHandler::performDragAndDrop):
1792 (WebCore::EventHandler::clearDragState):
1793 * page/EventHandler.h: Added field m_shouldOnlyFireDragOverEvent to determine whether
1794 we should fire both drag and dragover events or only the dragover event.
1796 2009-11-10 Vitaly Repeshko <vitalyr@chromium.org>
1798 Reviewed by Dimitri Glazkov.
1800 [V8] Fix crash in V8CustomXPathNSResolver (http://crbug.com/26726).
1801 https://bugs.webkit.org/show_bug.cgi?id=31301
1803 Tested by new fast/xpath/xpath-detached-iframe-resolver-crash.html.
1805 Allowed passing V8Proxy for the calling JS context:
1806 * bindings/v8/V8DOMWrapper.h:
1807 (WebCore::V8DOMWrapper::getXPathNSResolver):
1808 * bindings/v8/custom/V8CustomXPathNSResolver.cpp:
1809 (WebCore::V8CustomXPathNSResolver::create):
1810 (WebCore::V8CustomXPathNSResolver::V8CustomXPathNSResolver):
1811 (WebCore::V8CustomXPathNSResolver::lookupNamespaceURI):
1812 * bindings/v8/custom/V8CustomXPathNSResolver.h:
1813 * bindings/v8/custom/V8DocumentCustom.cpp:
1814 (WebCore::CALLBACK_FUNC_DECL):
1816 2009-11-10 Yael Aharon <yael.aharon@nokia.com>
1818 Reviewed by Timothy Hatcher.
1820 Implement URL decomposition IDL attributes for HTMLAnchorElement.
1821 https://bugs.webkit.org/show_bug.cgi?id=29972.
1823 Add methods for setting different parts of the URL in href attribute.
1825 Tests: fast/dom/HTMLAnchorElement/set-href-attribute-hash.html
1826 fast/dom/HTMLAnchorElement/set-href-attribute-host.html
1827 fast/dom/HTMLAnchorElement/set-href-attribute-hostname.html
1828 fast/dom/HTMLAnchorElement/set-href-attribute-pathname.html
1829 fast/dom/HTMLAnchorElement/set-href-attribute-port.html
1830 fast/dom/HTMLAnchorElement/set-href-attribute-protocol.html
1831 fast/dom/HTMLAnchorElement/set-href-attribute-search.html
1833 * bindings/js/JSLocationCustom.cpp:
1834 (WebCore::JSLocation::setPort):
1835 * html/HTMLAnchorElement.cpp:
1836 (WebCore::parsePortFromStringPosition):
1837 (WebCore::HTMLAnchorElement::setHash):
1838 (WebCore::HTMLAnchorElement::setHost):
1839 (WebCore::HTMLAnchorElement::setHostname):
1840 (WebCore::HTMLAnchorElement::setPathname):
1841 (WebCore::HTMLAnchorElement::setPort):
1842 (WebCore::HTMLAnchorElement::setProtocol):
1843 (WebCore::HTMLAnchorElement::setSearch):
1844 * html/HTMLAnchorElement.h:
1845 * html/HTMLAnchorElement.idl:
1846 * loader/FrameLoader.cpp:
1847 (WebCore::FrameLoader::iconURL):
1848 * platform/KURL.cpp:
1849 (WebCore::KURL::removePort):
1850 (WebCore::KURL::setPort):
1851 (WebCore::KURL::prettyURL):
1852 (WebCore::protocolIsValid):
1854 (WebCore::KURL::canSetHostOrPort):
1855 (WebCore::KURL::canSetPathname):
1856 (WebCore::KURL::hasPort):
1857 * platform/network/soup/ResourceHandleSoup.cpp:
1860 2009-11-10 Nate Chapin <japhet@chromium.org>
1862 Unreviewed, fix Chromium build after http://trac.webkit.org/changeset/50760.
1864 * platform/chromium/PopupMenuChromium.cpp:
1865 (WebCore::PopupContainer::paintBorder):
1866 (WebCore::PopupListBox::paint):
1867 (WebCore::PopupListBox::paintRow):
1868 * platform/graphics/chromium/TransparencyWin.cpp:
1869 (WebCore::TransparencyWin::setupLayerForWhiteLayer):
1870 * platform/graphics/skia/GraphicsContextSkia.cpp:
1871 (WebCore::GraphicsContext::fillRect):
1872 (WebCore::GraphicsContext::fillRoundedRect):
1873 (WebCore::GraphicsContext::setPlatformFillColor):
1874 (WebCore::GraphicsContext::setPlatformStrokeColor):
1875 * rendering/RenderMediaControlsChromium.cpp:
1876 (WebCore::paintMediaSlider):
1877 (WebCore::paintMediaVolumeSlider):
1878 (WebCore::paintMediaTimelineContainer):
1879 * rendering/RenderThemeChromiumMac.mm:
1880 (WebCore::RenderThemeChromiumMac::paintMenuListButton):
1882 2009-11-10 Brady Eidson <beidson@apple.com>
1884 Reviewed by Sam Weinig.
1886 Repro crash saving pcmag.com article as a webarchive.
1887 <rdar://problem/7381219> and https://webkit.org/b/31322
1889 Test: http/tests/webarchive/cross-origin-stylesheet-crash.html
1891 * css/CSSStyleSheet.cpp:
1892 (WebCore::CSSStyleSheet::addSubresourceStyleURLs): Walk the stylesheet itself instead
1893 of creating a CSSRuleList (and subjecting ourselves to the security origin check)
1895 2009-11-10 Beth Dakin <bdakin@apple.com>
1897 Attempt 2 to fix Tiger build. No review needed.
1899 * platform/graphics/cg/GraphicsContextCG.cpp:
1900 (WebCore::deviceRGBColorSpaceRef):
1901 (WebCore::sRGBColorSpaceRef):
1903 2009-11-10 Kevin Ollivier <kevino@theolliviers.com>
1905 wx build fix. Changes needed after r50760.
1907 * platform/graphics/wx/GraphicsContextWx.cpp:
1908 (WebCore::GraphicsContext::GraphicsContext):
1909 * platform/wx/wxcode/mac/carbon/non-kerned-drawing.cpp:
1910 (WebCore::drawTextWithSpacing):
1912 2009-11-10 Alexey Proskuryakov <ap@apple.com>
1916 * platform/network/ResourceHandle.h: Only inherit from AuthenticationClient on platforms
1917 that use ResourceHandle as a delegate (Mac, CFNetwork, Curl).
1919 2009-11-10 Beth Dakin <bdakin@apple.com>
1921 Tiger build fix. No review needed.
1923 * platform/graphics/cg/GraphicsContextCG.cpp:
1924 (WebCore::sRGBColorSpaceRef):
1926 2009-11-10 Alexey Proskuryakov <ap@apple.com>
1928 Reviewed by Dan Bernstein.
1930 https://bugs.webkit.org/show_bug.cgi?id=31312
1931 Decouple authentication panel callbacks from ResourceHandle
1933 No change in functionality.
1935 SocketStreamHandle also needs to request credentials, so it's not appropriate to store
1936 ResourceHandle as delegate.
1938 * WebCore.vcproj/WebCore.vcproj:
1939 * platform/network/AuthenticationClient.h: Added.
1940 Added a new interface for listening to authentication panel notifications.
1942 * WebCore.xcodeproj/project.pbxproj: Added AuthenticationClient.h. Let Visual Studio do what
1943 it wants with the project file.
1945 (WebCore::AuthenticationClient::ref): Using our usual method of exposing refcounting on an
1947 (WebCore::AuthenticationClient::deref): Ditto.
1949 * platform/network/ResourceHandle.h:
1950 (WebCore::ResourceHandle::refAuthenticationClient): Ditto.
1951 (WebCore::ResourceHandle::derefAuthenticationClient): Ditto.
1953 * platform/network/cf/AuthenticationCF.cpp:
1954 (WebCore::AuthenticationChallenge::AuthenticationChallenge):
1955 (WebCore::AuthenticationChallenge::platformCompare):
1956 * platform/network/cf/AuthenticationChallenge.h:
1957 (WebCore::AuthenticationChallenge::authenticationClient):
1958 * platform/network/chromium/AuthenticationChallenge.h:
1959 (WebCore::AuthenticationChallenge::authenticationClient):
1960 * platform/network/curl/AuthenticationChallenge.h:
1961 (WebCore::AuthenticationChallenge::authenticationClient):
1962 Keeping a reference to AuthenticationClient, not to ResourceHandle.
1964 2009-11-10 Beth Dakin <bdakin@apple.com>
1966 Second attempted gtk build fix. No review needed.
1968 * html/canvas/CanvasStyle.cpp:
1969 (WebCore::CanvasStyle::applyStrokeColor):
1972 2009-11-10 Gavin Barraclough <barraclough@apple.com>
1974 Reviewed by Geoff Garen.
1976 Fix back/forwards cache with JSC isolated worlds.
1977 https://bugs.webkit.org/show_bug.cgi?id=31310
1978 <rdar://problem/7328111> Cached back navigation doesn't restore global object in extension isolated world
1980 Store the global object for all worlds, not just the normal world.
1981 Also maintain bidirectional weak references between the ScriptCachedFrameData and the DOMWrapperWorld,
1982 so we can forget global objects if a world goes away.
1984 * bindings/js/JSDOMBinding.cpp:
1985 (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
1986 * bindings/js/JSDOMBinding.h:
1987 (WebCore::DOMWrapperWorld::rememberScriptCachedFrameData):
1988 (WebCore::DOMWrapperWorld::forgetScriptCachedFrameData):
1989 * bindings/js/ScriptCachedFrameData.cpp:
1990 (WebCore::ScriptCachedFrameData::ScriptCachedFrameData):
1991 (WebCore::ScriptCachedFrameData::forgetWorld):
1992 (WebCore::ScriptCachedFrameData::domWindow):
1993 (WebCore::ScriptCachedFrameData::restore):
1994 (WebCore::ScriptCachedFrameData::clear):
1995 * bindings/js/ScriptCachedFrameData.h:
1996 * bindings/js/ScriptController.h:
1998 2009-11-10 Csaba Osztrogonác <ossy@webkit.org>
2000 [Qt] Unreviewed buildfix after r50760.
2002 * platform/graphics/qt/GraphicsContextQt.cpp:
2003 (WebCore::GraphicsContext::GraphicsContext):
2005 2009-11-10 Beth Dakin <bdakin@apple.com>
2007 Attempted build fix. (No review needed.)
2009 * GNUmakefile.am: Adding ColorSpace.h
2011 2009-11-10 Brian Weinstein <bweinstein@apple.com>
2013 Reviewed by NOBODY - Build Fix.
2015 Updated function calls to take a ColorSpace argument, passing
2016 in DeviceColorSpace for now - this should be fixed. Also added
2017 ColorSpace.h to WebCore project.
2019 * WebCore.vcproj/WebCore.vcproj:
2020 * platform/graphics/win/FontCGWin.cpp:
2021 (WebCore::Font::drawGlyphs):
2022 * platform/graphics/win/GraphicsContextCGWin.cpp:
2023 (WebCore::GraphicsContext::GraphicsContext):
2024 * platform/win/PopupMenuWin.cpp:
2025 (WebCore::PopupMenu::paint):
2026 * platform/win/WebCoreTextRenderer.cpp:
2027 (WebCore::doDrawTextAtPoint):
2028 * rendering/RenderThemeSafari.cpp:
2029 (WebCore::RenderThemeSafari::paintMenuListButton):
2031 2009-11-10 Jens Alfke <snej@chromium.org>
2033 Reviewed by Darin Adler.
2035 Optimizations to Element::getAttribute
2036 https://bugs.webkit.org/show_bug.cgi?id=30926
2039 (WebCore::Element::getAttribute): User case-insensitive compare instead of lowercasing the name.
2040 * dom/NamedAttrMap.cpp:
2041 (WebCore::NamedNodeMap::getAttributeItem): Avoid redundant compares, and do fast/likely compares first.
2042 * platform/text/PlatformString.h:
2043 (WebCore::equalPossiblyIgnoringCase): New inline method, used by both of the above.
2045 2009-11-10 Beth Dakin <bdakin@apple.com>
2047 Reviewed by Darin Adler.
2049 Fix for <rdar://problem/7059710>
2051 https://bugs.webkit.org/show_bug.cgi?id=31196 Implement -webkit-
2052 color-correction for CSS colors
2054 New exported symbol for GraphicsContext::fillColor() which now
2055 accepts a ColorSpace as an optional parameter.
2058 Added a new file, ColorSpace.h, to define the ColorSpace enum.
2059 * WebCore.xcodeproj/project.pbxproj:
2061 Computed Style for -webkit-color-correction
2062 * css/CSSComputedStyleDeclaration.cpp:
2064 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2066 Parse -webkit-color-correction
2067 * css/CSSParser.cpp:
2068 (WebCore::CSSParser::parseValue):
2070 Map CSS identifiers to the appropriate values of the ColorSpace enum
2071 * css/CSSPrimitiveValueMappings.h:
2072 (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
2073 (WebCore::CSSPrimitiveValue::operator ColorSpace):
2075 New property -webkit-color-correction
2076 * css/CSSPropertyNames.in:
2078 Map -webkit-color-correction into the RenderStyle.
2079 * css/CSSStyleSelector.cpp:
2080 (WebCore::CSSStyleSelector::applyProperty):
2083 * css/CSSValueKeywords.in:
2085 Comment out the reference to sRGB since it will now be inherited as
2086 a value from CSSValueKeywords.
2087 * css/SVGCSSValueKeywords.in:
2089 Definition of the ColorSpace enum.
2090 * platform/graphics/ColorSpace.h: Added.
2093 These functions all now take a ColorSpace as a parameter.
2094 * platform/graphics/GraphicsContext.cpp:
2095 (WebCore::GraphicsContext::setStrokeColor):
2096 (WebCore::GraphicsContext::setFillColor):
2097 (WebCore::GraphicsContext::drawHighlightForText):
2099 Return the appropriate ColorSpace.
2100 (WebCore::GraphicsContext::strokeColorSpace):
2101 (WebCore::GraphicsContext::fillColorSpace):
2103 These functions all call other functions which require a ColorSpace
2105 (WebCore::GraphicsContext::setStrokePattern):
2106 (WebCore::GraphicsContext::setFillPattern):
2107 (WebCore::GraphicsContext::setStrokeGradient):
2108 (WebCore::GraphicsContext::setFillGradient):
2110 All of the GraphicsContext functions that take a Color should now
2111 also take a ColorSpace.
2112 * platform/graphics/GraphicsContext.h:
2114 Added new member variables stokeColorSpace and fillColorSpace.
2115 * platform/graphics/GraphicsContextPrivate.h:
2116 (WebCore::GraphicsContextState::GraphicsContextState):
2118 Attempt to keep the Cairo port building with all of the massive
2119 changes to GraphicsContext.
2120 * platform/graphics/cairo/GraphicsContextCairo.cpp:
2121 (WebCore::GraphicsContext::fillRect):
2122 (WebCore::GraphicsContext::setPlatformFillColor):
2123 (WebCore::GraphicsContext::setPlatformStrokeColor):
2124 (WebCore::GraphicsContext::fillRoundedRect):
2127 * platform/graphics/cg/GraphicsContextCG.cpp:
2128 (WebCore::sRGBColorSpaceRef): New static function that returns a
2129 CGColorSpaceRef for the sRGB color space.
2130 (WebCore::deviceRGBColorSpaceRef): New static function that returns
2131 a CGColorSpaceRef for the device RGB color space.
2133 (WebCore::setCGFillColor): Now takes a ColorSpace parameter and
2134 sets the fill color to the specified color in the given ColorSpace.
2135 (WebCore::setCGStrokeColor): Same, but for stroke.
2137 (WebCore::setCGFillColorSpace): New static to set the
2138 CGFillColorSpace to the given ColorSpace
2139 (WebCore::setCGStrokeColorSpace): Same, but for stroke.
2141 Send ColorSpaces when appropriate, set ColorSpaces when
2142 appropriate, and check ColorSpaces when appropriate.
2143 (WebCore::GraphicsContext::GraphicsContext):
2144 (WebCore::GraphicsContext::drawRect):
2145 (WebCore::GraphicsContext::drawLine):
2146 (WebCore::GraphicsContext::fillPath):
2147 (WebCore::GraphicsContext::strokePath):
2148 (WebCore::GraphicsContext::fillRect):
2149 (WebCore::GraphicsContext::fillRoundedRect):
2150 (WebCore::GraphicsContext::strokeRect):
2151 (WebCore::GraphicsContext::drawLineForText):
2152 (WebCore::GraphicsContext::setPlatformStrokeColor):
2153 (WebCore::GraphicsContext::setPlatformFillColor):
2155 Attempt to keep Haiku building.
2156 * platform/graphics/haiku/GraphicsContextHaiku.cpp:
2157 (WebCore::GraphicsContext::fillRect):
2158 (WebCore::GraphicsContext::fillRoundedRect):
2159 (WebCore::GraphicsContext::setPlatformStrokeColor):
2160 (WebCore::GraphicsContext::setPlatformFillColor):
2162 Attempt to keep QT building.
2163 * platform/graphics/qt/GraphicsContextQt.cpp:
2164 (WebCore::GraphicsContext::fillRect):
2165 (WebCore::GraphicsContext::fillRoundedRect):
2166 (WebCore::GraphicsContext::setPlatformStrokeColor):
2167 (WebCore::GraphicsContext::setPlatformFillColor):
2169 Attempt to keep Wince building.
2170 * platform/graphics/wince/GraphicsContextWince.cpp:
2171 (WebCore::GraphicsContext::fillRect):
2172 (WebCore::GraphicsContext::setPlatformFillColor):
2173 (WebCore::GraphicsContext::setPlatformStrokeColor):
2174 (WebCore::GraphicsContext::clearRect):
2175 (WebCore::GraphicsContext::fillRoundedRect):
2176 (WebCore::GraphicsContext::setPlatformShadow):
2178 Attempt to keep WX building.
2179 * platform/graphics/wx/GraphicsContextWx.cpp:
2180 (WebCore::GraphicsContext::fillRect):
2181 (WebCore::GraphicsContext::fillRoundedRect):
2182 (WebCore::GraphicsContext::setPlatformStrokeColor):
2183 (WebCore::GraphicsContext::setPlatformFillColor):
2185 Added functions colorSpace() and setColorSpace()
2186 * rendering/style/RenderStyle.h:
2187 (WebCore::InheritedFlags::colorSpace):
2188 (WebCore::InheritedFlags::setColorSpace):
2190 The ColorSpace is stored here.
2191 * rendering/style/StyleRareInheritedData.cpp:
2192 (WebCore::StyleRareInheritedData::StyleRareInheritedData):
2193 (WebCore::StyleRareInheritedData::operator==):
2194 * rendering/style/StyleRareInheritedData.h:
2196 All of these call sites call GraphicsContext functions which now
2197 require ColorSpaces.
2198 * editing/SelectionController.cpp:
2199 (WebCore::SelectionController::paintCaret):
2200 * html/canvas/CanvasRenderingContext2D.cpp:
2201 (WebCore::CanvasRenderingContext2D::drawTextInternal):
2202 * html/canvas/CanvasStyle.cpp:
2203 (WebCore::CanvasStyle::applyStrokeColor):
2204 (WebCore::CanvasStyle::applyFillColor):
2205 * inspector/InspectorController.cpp:
2206 (WebCore::drawOutlinedQuad):
2207 * page/FrameView.cpp:
2208 (WebCore::FrameView::paintContents):
2209 * platform/ScrollbarTheme.h:
2210 (WebCore::ScrollbarTheme::paintScrollCorner):
2211 * platform/ScrollbarThemeComposite.cpp:
2212 (WebCore::ScrollbarThemeComposite::paintScrollCorner):
2213 * platform/graphics/Image.cpp:
2214 (WebCore::Image::fillWithSolidColor):
2215 * platform/graphics/mac/FontMac.mm:
2216 (WebCore::Font::drawGlyphs):
2217 * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
2218 (WebCore::MediaPlayerPrivate::paint):
2219 * rendering/EllipsisBox.cpp:
2220 (WebCore::EllipsisBox::paint):
2221 * rendering/InlineFlowBox.cpp:
2222 (WebCore::InlineFlowBox::paintTextDecorations):
2223 * rendering/InlineTextBox.cpp:
2224 (WebCore::updateGraphicsContext):
2225 (WebCore::paintTextWithShadows):
2226 (WebCore::InlineTextBox::paint):
2227 (WebCore::InlineTextBox::paintSelection):
2228 (WebCore::InlineTextBox::paintCompositionBackground):
2229 (WebCore::InlineTextBox::paintDecoration):
2230 (WebCore::InlineTextBox::paintTextMatchMarker):
2231 (WebCore::InlineTextBox::paintCompositionUnderline):
2232 * rendering/InlineTextBox.h:
2233 * rendering/RenderBlock.cpp:
2234 (WebCore::RenderBlock::fillHorizontalSelectionGap):
2235 (WebCore::RenderBlock::fillVerticalSelectionGap):
2236 (WebCore::RenderBlock::fillLeftSelectionGap):
2237 (WebCore::RenderBlock::fillRightSelectionGap):
2238 * rendering/RenderBoxModelObject.cpp:
2239 (WebCore::RenderBoxModelObject::paintFillLayerExtended):
2240 (WebCore::RenderBoxModelObject::paintBoxShadow):
2241 * rendering/RenderFileUploadControl.cpp:
2242 (WebCore::RenderFileUploadControl::paintObject):
2243 * rendering/RenderFrameSet.cpp:
2244 (WebCore::RenderFrameSet::paintColumnBorder):
2245 (WebCore::RenderFrameSet::paintRowBorder):
2246 * rendering/RenderImage.cpp:
2247 (WebCore::RenderImage::paintReplaced):
2248 * rendering/RenderLayer.cpp:
2249 (WebCore::RenderLayer::paintScrollCorner):
2250 (WebCore::RenderLayer::paintResizer):
2251 * rendering/RenderListBox.cpp:
2252 (WebCore::RenderListBox::paintItemForeground):
2253 (WebCore::RenderListBox::paintItemBackground):
2254 * rendering/RenderListMarker.cpp:
2255 (WebCore::RenderListMarker::paint):
2256 * rendering/RenderObject.cpp:
2257 (WebCore::RenderObject::drawLineForBoxSide):
2258 (WebCore::RenderObject::drawArcForBoxSide):
2259 * rendering/RenderReplaced.cpp:
2260 (WebCore::RenderReplaced::paint):
2261 * rendering/RenderScrollbarTheme.cpp:
2262 (WebCore::RenderScrollbarTheme::paintScrollCorner):
2263 * rendering/RenderThemeMac.mm:
2264 (WebCore::RenderThemeMac::paintMenuListButton):
2265 * rendering/RenderView.cpp:
2266 (WebCore::RenderView::paintBoxDecorations):
2267 * rendering/RenderWidget.cpp:
2268 (WebCore::RenderWidget::paint):
2269 * rendering/SVGInlineTextBox.cpp:
2270 (WebCore::SVGInlineTextBox::paintSelection):
2271 * svg/graphics/SVGPaintServerGradient.cpp:
2272 (WebCore::SVGPaintServerGradient::setup):
2273 * svg/graphics/SVGPaintServerSolid.cpp:
2274 (WebCore::SVGPaintServerSolid::setup):
2276 2009-11-10 Keishi Hattori <casey.hattori@gmail.com>
2278 Reviewed by Timothy Hatcher.
2280 Web Inspector: Speed up syntax highlighter
2281 https://bugs.webkit.org/show_bug.cgi?id=31291
2283 * inspector/front-end/SourceFrame.js:
2284 (WebInspector.SourceFrame.prototype._loaded):
2285 (WebInspector.SourceSyntaxHighlighter.prototype.process.moveToNextLine): Replace the line content node.
2286 (WebInspector.SourceSyntaxHighlighter.prototype.process):
2287 (WebInspector.SourceSyntaxHighlighter.prototype.appendNonToken):
2288 (WebInspector.SourceSyntaxHighlighter.prototype.syntaxHighlightNode):
2289 (WebInspector.CSSSourceSyntaxHighlighter):
2290 (WebInspector.JavaScriptSourceSyntaxHighlighter):
2292 2009-11-09 Jeremy Orlow <jorlow@chromium.org>
2294 Reviewed by Eric Seidel.
2296 Remove session storage setting
2297 https://bugs.webkit.org/show_bug.cgi?id=31279
2299 Remove session storage from Settings. It was added temporarily so we could
2300 disable it by default at runtime in Chromium. We now disable these things in a
2301 different way, so it's time to remove it. Qt also depended on this setting for
2302 a short period of time, but after talking to them we agreed that it should be
2305 This bug is the second half of https://bugs.webkit.org/show_bug.cgi?id=30602
2307 * page/DOMWindow.cpp:
2308 (WebCore::DOMWindow::sessionStorage):
2309 * page/Settings.cpp:
2310 (WebCore::Settings::Settings):
2313 2009-11-10 Dan Bernstein <mitz@apple.com>
2315 Reviewed by Eric Carlson and Darin Adler.
2317 WebCore part of making full-screen video pause during scrubbing.
2319 * WebCore.Video.exp: Sorted and added HTMLMediaElement::beginScrubbing()
2320 and HTMLMediaElement::endScrubbing().
2322 2009-11-10 Anton Muhin <antonm@chromium.org>
2324 Reviewed by Adam Barth.
2326 Reapply 50562 reverted by 50588 due to issues with sandboxing (should be fine now).
2327 https://bugs.webkit.org/show_bug.cgi?id=31051
2329 * bindings/v8/V8GCController.cpp:
2330 (WebCore::V8GCController::gcEpilogue):
2331 (WebCore::V8GCController::checkMemoryUsage):
2332 * bindings/v8/V8GCController.h:
2333 * bindings/v8/V8Proxy.cpp:
2334 (WebCore::V8Proxy::evaluate):
2335 (WebCore::V8Proxy::runScript):
2336 (WebCore::V8Proxy::callFunction):
2338 2009-11-10 Zoltan Horvath <zoltan@webkit.org>
2340 Reviewed by Darin Adler.
2342 Allow custom memory allocation control for the part of loader directory in WebCore
2343 https://bugs.webkit.org/show_bug.cgi?id=31161
2345 Inherits the following classes from Noncopyable because these are instantiated
2346 by 'new' and these are no need to be copyable:
2348 class Request - WebCore/loader/loader.cpp:100
2349 struct ScheduledRedirection - WebCore/loader/RedirectScheduler.cpp:164
2350 class ApplicationCacheStorage - WebCore/loader/appcache/ApplicationCacheStorage.cpp:1121
2351 class ApplicationCacheHost - WebCore/loader/DocumentLoader.cpp:151
2352 class ImageEventSender - WebCore/loader/ImageLoader.cpp:54
2353 struct ProgressItem - WebCore/loader/ProgressTracker.cpp:169
2355 Inherits ThreadableLoaderClient class from Noncopyable because (its child class)
2356 MainThreadBridge is instantiated by 'new' in
2357 WebCore/loader/WorkerThreadableLoader.cpp:59 it is no need to be copyable.
2359 ThreadableLoaderClient's inheriting has been changed to public.
2361 * loader/ImageLoader.cpp:
2362 * loader/ProgressTracker.cpp:
2363 * loader/RedirectScheduler.cpp:
2365 * loader/ThreadableLoaderClient.h:
2366 * loader/WorkerThreadableLoader.h:
2367 * loader/appcache/ApplicationCacheHost.h:
2368 * loader/appcache/ApplicationCacheStorage.h:
2370 2009-11-10 Philippe Normand <pnormand@igalia.com>
2372 Reviewed by Eric Seidel.
2374 https://bugs.webkit.org/show_bug.cgi?id=31047
2375 [GTK] Failing test media/video-played-ranges-1.html
2377 WebKit coding style fixes.
2379 * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
2380 (WebCore::mediaPlayerPrivateMessageCallback):
2381 (WebCore::MediaPlayerPrivate::naturalSize):
2382 (WebCore::MediaPlayerPrivate::paint):
2383 (WebCore::mimeTypeCache):
2385 2009-11-10 Oliver Hunt <oliver@apple.com>
2387 Remove build failure introduced by earlier build fix.
2389 * bindings/v8/custom/V8WebGLIntArrayCustom.cpp:
2391 2009-11-10 Oliver Hunt <oliver@apple.com>
2393 Is this the last build fix? grep tells me yes.
2395 * bindings/v8/custom/V8DocumentCustom.cpp:
2396 (WebCore::CALLBACK_FUNC_DECL):
2398 2009-11-10 Oliver Hunt <oliver@apple.com>
2400 Hopefully the last one. Why aren't these autogenerated?
2402 * bindings/v8/V8DOMWrapper.cpp:
2403 (WebCore::V8DOMWrapper::setIndexedPropertiesToExternalArray):
2404 (WebCore::V8DOMWrapper::getTemplate):
2405 (WebCore::V8DOMWrapper::convertToV8Object):
2407 2009-11-10 Oliver Hunt <oliver@apple.com>
2409 Another chrome build fix.
2411 * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
2412 (WebCore::CALLBACK_FUNC_DECL):
2414 2009-11-10 Oliver Hunt <oliver@apple.com>
2416 Yet another chrome buildfix
2418 * bindings/v8/custom/V8WebGLArrayBufferCustom.cpp:
2419 (WebCore::CALLBACK_FUNC_DECL):
2420 * bindings/v8/custom/V8WebGLArrayCustom.h:
2421 (WebCore::constructCanvasArray):
2422 * bindings/v8/custom/V8WebGLByteArrayCustom.cpp:
2423 (WebCore::CALLBACK_FUNC_DECL):
2424 (WebCore::INDEXED_PROPERTY_GETTER):
2425 (WebCore::INDEXED_PROPERTY_SETTER):
2426 * bindings/v8/custom/V8WebGLFloatArrayCustom.cpp:
2427 (WebCore::CALLBACK_FUNC_DECL):
2428 (WebCore::INDEXED_PROPERTY_GETTER):
2429 (WebCore::INDEXED_PROPERTY_SETTER):
2430 * bindings/v8/custom/V8WebGLIntArrayCustom.cpp:
2431 (WebCore::CALLBACK_FUNC_DECL):
2432 (WebCore::INDEXED_PROPERTY_GETTER):
2433 (WebCore::INDEXED_PROPERTY_SETTER):
2434 * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
2435 (WebCore::CALLBACK_FUNC_DECL):
2436 (WebCore::vertexAttribAndUniformHelperf):
2437 (WebCore::uniformHelperi):
2438 (WebCore::uniformMatrixHelper):
2439 * bindings/v8/custom/V8WebGLShortArrayCustom.cpp:
2440 (WebCore::CALLBACK_FUNC_DECL):
2441 (WebCore::INDEXED_PROPERTY_GETTER):
2442 (WebCore::INDEXED_PROPERTY_SETTER):
2443 * bindings/v8/custom/V8WebGLUnsignedByteArrayCustom.cpp:
2444 (WebCore::CALLBACK_FUNC_DECL):
2445 (WebCore::INDEXED_PROPERTY_GETTER):
2446 (WebCore::INDEXED_PROPERTY_SETTER):
2447 * bindings/v8/custom/V8WebGLUnsignedIntArrayCustom.cpp:
2448 (WebCore::CALLBACK_FUNC_DECL):
2449 (WebCore::INDEXED_PROPERTY_GETTER):
2450 (WebCore::INDEXED_PROPERTY_SETTER):
2451 * bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp:
2452 (WebCore::CALLBACK_FUNC_DECL):
2453 (WebCore::INDEXED_PROPERTY_GETTER):
2454 (WebCore::INDEXED_PROPERTY_SETTER):
2456 2009-11-10 Oliver Hunt <oliver@apple.com>
2460 * bindings/v8/V8Index.h:
2462 2009-11-10 Joanmarie Diggs <joanmarie.diggs@gmail.com>
2464 Reviewed by Reviewed by Jan Alonzo.
2466 https://bugs.webkit.org/show_bug.cgi?id=30901
2467 [Gtk] Need to de-lint the Atk a11y code
2469 Removal of various and sundry style-violating nits.
2471 * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
2473 2009-11-10 Philippe Normand <pnormand@igalia.com>
2475 Reviewed by Jan Alonzo.
2477 https://bugs.webkit.org/show_bug.cgi?id=31047
2478 [GTK] Failing test media/video-played-ranges-1.html
2480 Fix playback rate setter by remembering the rate was changed. Also
2481 correctly handle reverse playback by doing a seek from end to
2482 beginning of the media.
2484 * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
2485 (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
2486 (WebCore::MediaPlayerPrivate::currentTime):
2487 (WebCore::MediaPlayerPrivate::seek):
2488 (WebCore::MediaPlayerPrivate::hasAudio):
2489 (WebCore::MediaPlayerPrivate::setVolume):
2490 (WebCore::MediaPlayerPrivate::setRate):
2491 (WebCore::MediaPlayerPrivate::updateStates):
2492 * platform/graphics/gtk/MediaPlayerPrivateGStreamer.h:
2494 2009-11-10 Oliver Hunt <oliver@apple.com>
2496 Reviewed by Maciej Stachowiak.
2498 Rename 3D Canvas related classes to use WebGL prefix
2499 https://bugs.webkit.org/show_bug.cgi?id=29095
2501 Automatic rename of all WebGL related types from Canvas* to
2502 WebGL* per more recent version of the WebGL spec.
2504 Due to the automatic rename I've removed the 600+ line change list.
2506 2009-11-09 Dirk Schulze <krit@webkit.org>
2508 Reviewed by Oliver Hunt.
2510 SVG feDisplacementMap is not implemented
2511 [https://bugs.webkit.org/show_bug.cgi?id=31255]
2513 This is the implementation of the SVG filter effect
2516 Test: svg/filters/feDisplacementMap.svg
2518 * svg/graphics/filters/SVGFEDisplacementMap.cpp:
2519 (WebCore::FEDisplacementMap::apply):
2521 2009-11-09 Kent Tamura <tkent@chromium.org>
2523 Reviewed by Darin Adler.
2525 Add a comment about null strings and hash functions.
2526 https://bugs.webkit.org/show_bug.cgi?id=29118
2528 * platform/text/StringHash.h:
2530 2009-11-09 Martin Robinson <martin.james.robinson@gmail.com>
2532 Reviewed by Darin Adler.
2534 Compiler warnings in InspectorResource.h
2535 https://bugs.webkit.org/show_bug.cgi?id=29231
2537 Fix compilation warnings by removing addition operation on an enum type.
2539 * inspector/InspectorResource.h:
2540 (WebCore::InspectorResource::):
2541 (WebCore::InspectorResource::Changes::hasChange):
2542 (WebCore::InspectorResource::Changes::set):
2543 (WebCore::InspectorResource::Changes::setAll):
2545 2009-11-09 Anders Carlsson <andersca@apple.com>
2547 Reviewed by Darin Adler and Dan Bernstein.
2549 <rdar://problem/7328395>
2550 https://bugs.webkit.org/show_bug.cgi?id=31277
2552 When an object tag's style changes (for example when child nodes are added/removed),
2553 reuse its Frame (if it has one) instead of creating multiple Frames.
2555 Test: fast/dom/HTMLObjectElement/children-changed.html
2557 * loader/FrameLoader.cpp:
2558 (WebCore::FrameLoader::requestObject):
2560 2009-11-09 Norbert Leser <norbert.leser@nokia.com>
2562 Reviewed by Kenneth Rohde Christiansen.
2564 Moved macro MMP_RULES (LINKEROPTION) into symbian instead of symbian-sbsv2,
2565 since adjustment of RW-section base address will be needed for all new symbian
2566 tool chains, specifically for arm and gcc compilation targets.
2567 Also, change target address to 0xE00000 to be sufficient for all targets.
2571 2009-11-09 Pavel Feldman <pfeldman@chromium.org>
2573 Reviewed by Timothy Hatcher.
2575 Web Inspector: Crash when inspecting
2576 WebCore\manual-tests\inspector\dom-mutation.html
2578 https://bugs.webkit.org/show_bug.cgi?id=31259
2580 * inspector/InspectorDOMAgent.cpp:
2581 (WebCore::InspectorDOMAgent::handleEvent):
2583 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2585 Reviewed by Kenneth Rohde Christiansen.
2587 [Qt] Few classes have virtual functions but non-virtual destructor
2588 https://bugs.webkit.org/show_bug.cgi?id=31269
2590 No new tests as there is no functional change.
2592 * platform/qt/QWebPageClient.h:
2593 (QWebPageClient::~QWebPageClient): Add virtual destructor.
2595 2009-11-09 Yael Aharon <yael.aharon@nokia.com>
2597 Reviewed by Kenneth Rohde Christiansen.
2599 [Qt] Allow setting HTTP headers with empty value in XMLHTTPRequest
2600 https://bugs.webkit.org/show_bug.cgi?id=31140
2602 QtNetwork interprets null string as request to remove the header, not add it.
2603 Replace null values with empty values before passing them to QtNetwork.
2605 Test: http/tests/xmlhttprequest/xmlhttprequest-setrequestheader-no-value.html
2607 * platform/network/qt/ResourceRequestQt.cpp:
2608 (WebCore::ResourceRequest::toNetworkRequest):
2610 2009-11-09 Vadim Zeitlin <vadim@wxwidgets.org>
2612 Reviewed by Kevin Ollivier.
2614 [wx] Fix handling of alpha channel when using wxWidgets 2.9: it was
2615 simply ignored before resulting in transparent areas being black in PNG
2618 https://bugs.webkit.org/show_bug.cgi?id=30823
2620 * platform/image-decoders/wx/ImageDecoderWx.cpp:
2621 (WebCore::RGBA32Buffer::asNewNativeImage):
2623 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2625 Reviewed by Kenneth Rohde Christiansen.
2627 Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings
2628 https://bugs.webkit.org/show_bug.cgi?id=31040
2630 No new tests as there is no functional change.
2633 (WebCore::Document::recalcStyleSelector):
2634 * editing/TextIterator.cpp:
2635 (WebCore::pushFullyClippedState):
2636 * editing/VisibleSelection.cpp:
2637 (WebCore::VisibleSelection::appendTrailingWhitespace):
2638 * html/HTMLLinkElement.cpp:
2639 (WebCore::HTMLLinkElement::process):
2640 * loader/RedirectScheduler.cpp:
2641 (WebCore::RedirectScheduler::mustLockBackForwardList):
2642 * loader/appcache/ApplicationCacheGroup.cpp:
2643 (WebCore::ApplicationCacheGroup::didFinishLoadingManifest):
2644 * platform/graphics/qt/FontCacheQt.cpp:
2645 (WebCore::FontPlatformDataCacheKey::computeHash):
2646 * rendering/RenderBlock.cpp:
2647 (WebCore::RenderBlock::handleRunInChild):
2648 * rendering/RenderBox.cpp:
2649 (WebCore::RenderBox::calcHeight):
2650 * rendering/RenderTextControlMultiLine.cpp:
2651 (WebCore::RenderTextControlMultiLine::nodeAtPoint):
2652 * rendering/style/RenderStyle.cpp:
2653 (WebCore::RenderStyle::diff):
2654 * svg/SVGAnimateElement.cpp:
2655 (WebCore::parseNumberValueAndUnit):
2656 * svg/SVGAnimationElement.cpp:
2657 (WebCore::SVGAnimationElement::startedActiveInterval):
2658 * svg/SVGPreserveAspectRatio.cpp:
2659 (WebCore::SVGPreserveAspectRatio::getCTM):
2661 2009-11-09 Shinichiro Hamaji <hamaji@chromium.org>
2663 Reviewed by Dimitri Glazkov.
2665 Win chromium is slow to draw transparent texts
2666 https://bugs.webkit.org/show_bug.cgi?id=31258
2668 Clip graphics context to reduce calculation.
2670 No new tests because this change only affects performance.
2672 * platform/graphics/chromium/FontChromiumWin.cpp:
2673 (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::initializeForGDI):
2674 (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::~TransparencyAwareFontPainter):
2676 2009-11-09 Carol Szabo <carol.szabo@nokia.com>
2678 Reviewed by Darin Adler.
2680 showTree(CounterNode*) generates too little info and has too many spaces.
2681 https://bugs.webkit.org/show_bug.cgi?id=31212
2683 No new tests as the change has no functional effect it is just for
2686 * rendering/CounterNode.cpp:
2687 (WebCore::showTreeAndMark):
2688 Changed to also show addresses of parent, next and previous
2691 2009-11-09 Stuart Morgan <stuartmorgan@chromium.org>
2693 Reviewed by Darin Adler.
2695 Moves Mac implementation of setUseSecureKeyboardEntry to Frame.cpp and
2696 enables it PLATFORM(CHROMIUM) in addition to PLATFORM(MAC).
2698 https://bugs.webkit.org/show_bug.cgi?id=31083
2700 No new tests; implementation is unchanged.
2703 (WebCore::Frame::setUseSecureKeyboardEntry):
2704 * page/mac/FrameMac.mm:
2706 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2708 Reviewed by Jan Alonzo.
2710 Make XP_UNIX tests consistent
2711 https://bugs.webkit.org/show_bug.cgi?id=31250
2713 No new tests as there is no functional change.
2715 * plugins/PluginView.cpp:
2716 (WebCore::PluginView::setFrameRect): Test if XP_UNIX is defined
2717 instead of the value of the macro
2719 * plugins/gtk/PluginViewGtk.cpp:
2720 (WebCore::PluginView::setNPWindowIfNeeded): Test if the XP_UNIX is
2721 defined instead of using the PLATFORM macro to be consistent
2722 (WebCore::PluginView::getValue): Ditto.
2724 2009-11-09 Kevin Watters <kevinwatters@gmail.com>
2726 Reviewed by Darin Adler.
2728 Thunk to the main thread from ~Database to deref Database's m_document.
2730 If the Database was the Document's last referrer, then ~Document occurs on the
2731 Database thread, and ASSERT(!m_styleRecalcTimer.isActive()) hits a main thread
2732 ASSERT in debug builds.
2734 * storage/Database.cpp:
2735 (WebCore::derefDocument):
2736 (WebCore::Database::~Database):
2738 2009-11-09 Mark Mentovai <mark@chromium.org>
2740 Reviewed by Dan Bernstein.
2742 Track "can have scrollbar" state within FrameView independently of the
2743 individual scrollbar states in ScrollView.
2745 rdar://problem/7215132, https://bugs.webkit.org/show_bug.cgi?id=29167
2746 REGRESSION (r48064): mint.com loses scrollbars after coming out of
2749 rdar://problem/7314421, https://bugs.webkit.org/show_bug.cgi?id=30517
2750 REGRESSION (r48064): Extra scroll bars in GarageBand Lesson Store.
2752 Test: fast/overflow/scrollbar-restored.html
2755 * page/FrameView.cpp:
2756 (WebCore::FrameView::FrameView):
2757 (WebCore::FrameView::resetScrollbars):
2758 (WebCore::FrameView::setCanHaveScrollbars):
2759 (WebCore::FrameView::updateCanHaveScrollbars):
2760 (WebCore::FrameView::layout):
2762 * platform/ScrollView.h:
2764 2009-11-09 Keishi Hattori <casey.hattori@gmail.com>
2766 Reviewed by Timothy Hatcher.
2768 Web Inspector: CSS syntax highlighter doesn't recognize negative numbers
2769 https://bugs.webkit.org/show_bug.cgi?id=31257
2771 * inspector/front-end/SourceFrame.js:
2773 2009-11-09 Alexander Pavlov <apavlov@chromium.org>
2775 Reviewed by Timothy Hatcher.
2777 Web Inspector: Debugger shortcuts (F8, F10, F11) have no effect if the Console view is open
2778 https://bugs.webkit.org/show_bug.cgi?id=31252
2780 Route F1-F12 keypresses in the Console view to the current panel if there is one.
2782 Test: manual-tests/inspector/debugger-shortcuts-with-console-opened.html
2784 * inspector/front-end/ConsoleView.js:
2785 (WebInspector.ConsoleView.prototype._promptKeyDown):
2786 * inspector/front-end/utilities.js:
2788 * manual-tests/inspector/debugger-shortcuts-with-console-opened.html: Added.
2790 2009-11-09 Yael Aharon <yael.aharon@nokia.com>
2792 Reviewed by Kenneth Rohde Christiansen.
2794 [Qt] Pass credentials provided by XMLHTTPRequest to the network request.
2795 https://bugs.webkit.org/show_bug.cgi?id=31208
2797 After r42483, the credentials are no longer passed to the network request
2798 in the URL of the request.
2799 Pass the credentials from XMLHTTPRequest to the network request, the same
2800 way that other ports do.
2802 After this patch LayoutTests/http/xmlhttprequest/basic-auth.html passes.
2804 * platform/network/qt/ResourceHandleQt.cpp:
2805 (WebCore::ResourceHandle::start):
2806 (WebCore::ResourceHandle::loadResourceSynchronously):
2808 2009-11-09 Zoltan Horvath <zoltan@webkit.org>
2812 https://bugs.webkit.org/show_bug.cgi?id=31161
2814 Roll back r50657 because it breaks the MAC builds.
2816 * loader/ImageLoader.cpp:
2817 * loader/ProgressTracker.cpp:
2818 * loader/RedirectScheduler.cpp:
2820 * loader/ThreadableLoaderClient.h:
2821 * loader/WorkerThreadableLoader.h:
2822 * loader/appcache/ApplicationCacheHost.h:
2823 * loader/appcache/ApplicationCacheStorage.h:
2824 * loader/icon/IconDatabaseClient.h:
2826 2009-11-09 Zoltan Horvath <zoltan@webkit.org>
2828 Reviewed by Darin Adler.
2830 Allow custom memory allocation control for the part of loader directory in WebCore
2831 https://bugs.webkit.org/show_bug.cgi?id=31161
2833 Inherits the following classes from Noncopyable because these are instantiated
2834 by 'new' and these are no need to be copyable:
2836 class Request - WebCore/loader/loader.cpp:100
2837 struct ScheduledRedirection - WebCore/loader/RedirectScheduler.cpp:164
2838 class IconDatabaseClient - WebCore/loader/icon/IconDatabase.cpp:89
2839 class ApplicationCacheStorage - WebCore/loader/appcache/ApplicationCacheStorage.cpp:1121
2840 class ApplicationCacheHost - WebCore/loader/DocumentLoader.cpp:151
2841 class ImageEventSender - WebCore/loader/ImageLoader.cpp:54
2842 struct ProgressItem - WebCore/loader/ProgressTracker.cpp:169
2844 Inherits ThreadableLoaderClient class from Noncopyable because (its child class)
2845 MainThreadBridge is instantiated by 'new' in
2846 WebCore/loader/WorkerThreadableLoader.cpp:59 it is no need to be copyable.
2848 ThreadableLoaderClient's inheriting has been changed to public.
2850 * loader/ImageLoader.cpp:
2851 * loader/ProgressTracker.cpp:
2852 * loader/RedirectScheduler.cpp:
2854 * loader/ThreadableLoaderClient.h:
2855 * loader/WorkerThreadableLoader.h:
2856 * loader/appcache/ApplicationCacheHost.h:
2857 * loader/appcache/ApplicationCacheStorage.h:
2858 * loader/icon/IconDatabaseClient.h:
2860 2009-11-09 Zoltan Horvath <zoltan@webkit.org>
2862 Reviewed by Darin Adler.
2864 Allow custom memory allocation control for WebCore's DocLoader
2865 https://bugs.webkit.org/show_bug.cgi?id=31163
2867 Inherits DocLoader class from Noncopyable because it is
2868 instantiated by 'new' in WebCore/dom/Document.cpp:370 and
2869 it is no need to be copyable.
2871 * loader/DocLoader.h:
2873 2009-11-09 Zoltan Horvath <zoltan@webkit.org>
2875 Reviewed by Darin Adler.
2877 Allow custom memory allocation control for WebCore's Tokenizer
2878 https://bugs.webkit.org/show_bug.cgi?id=31162
2880 Inherits Tokenizer class from Noncopyable because (its child class)
2881 ImageTokenizer instantiated by 'new' in WebCore/loader/ImageDocument.cpp:178
2882 and it is no need to be copyable.
2886 2009-11-09 Zoltan Horvath <zoltan@webkit.org>
2888 Reviewed by Darin Adler.
2890 Allow custom memory allocation control for WebCore's DeleteButtonController
2891 https://bugs.webkit.org/show_bug.cgi?id=31105
2893 Inherits DeleteButtonController class from Noncopyable because it is
2894 instantiated by 'new' in WebCore/editing/Editor.cpp:919 and
2895 it is no need to be copyable.
2897 * editing/DeleteButtonController.h:
2899 2009-11-09 Martin Robinson <martin.james.robinson@gmail.com>
2901 Reviewed by Jan Alonzo.
2903 [GTK] Expose Page::tabKeyCyclesThroughElements in the API
2904 https://bugs.webkit.org/show_bug.cgi?id=30482
2906 Expose Page::tabKeyCyclesThroughElements as a property of
2909 No new tests; fast/events/keypress-insert-tab.html is no longer skipped.
2911 * platform/gtk/KeyEventGtk.cpp: Correct m_text for tab key presses.
2912 (WebCore::singleCharacterString):
2914 2009-11-09 Joanmarie Diggs <joanmarie.diggs@gmail.com>
2916 Reviewed by Xan Lopez.
2918 https://bugs.webkit.org/show_bug.cgi?id=25415
2919 [GTK][ATK] Please implement support for get_text_at_offset
2921 Fix a crasher that occurred with text which included newline
2922 chars in the markup.
2924 * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
2925 (convertUniCharToUTF8):
2927 2009-11-05 Jakub Wieczorek <faw217@gmail.com>
2929 Reviewed by Holger Freyther.
2931 [Qt] The XML tokenizer reports a parse error twice if it occurs before the document element is found.
2932 https://bugs.webkit.org/show_bug.cgi?id=31144
2934 XMLTokenizer::doEnd() uses an additional logic to report a parse failure in
2935 documents that end prematurely but are not considered invalid by QXmlStream.
2936 This is to stay compatible with the libxml2 implementation.
2937 However, that code path would be also hit in situations when it should not,
2938 i.e. the error would have already been caught and handled. As a result, the
2939 same error would be reported twice.
2941 No new tests, because the problem is already covered by
2942 fast/parser/xml-declaration-missing-ending-mark.html.
2944 * dom/XMLTokenizerQt.cpp:
2945 (WebCore::XMLTokenizer::doEnd):
2947 2009-11-08 Keishi Hattori <casey.hattori@gmail.com>
2949 Reviewed by Pavel Feldman.
2951 Web Inspector: Inspector should support copy() in the command line
2952 https://bugs.webkit.org/show_bug.cgi?id=31238
2954 * inspector/InspectorBackend.cpp:
2955 (WebCore::InspectorBackend::copyText): Added.
2956 * inspector/InspectorBackend.h: Added copyText
2957 * inspector/InspectorBackend.idl: Added copyText
2958 * inspector/front-end/InjectedScript.js:
2959 (InjectedScript._copy): Added.
2960 (InjectedScript._ensureCommandLineAPIInstalled):
2962 2009-11-08 Drew Wilson <atwilson@chromium.org>
2964 Reviewed by Dimitri Glazkov.
2966 V8 WorkerContextExecutionProxy does not handle SharedWorkers
2967 https://bugs.webkit.org/show_bug.cgi?id=31226
2969 Now checks to see what type of context is active and creates the
2970 appropriate wrapper (DEDICATEDWORKERCONTEXT vs SHAREDWORKERCONTEXT).
2972 Added support for converting to SharedWorkers and SharedWorkerContexts.
2974 Test: Existing layout tests cover this case (start passing in Chrome).
2976 * bindings/v8/WorkerContextExecutionProxy.cpp:
2977 (WebCore::WorkerContextExecutionProxy::initContextIfNeeded):
2978 Now generates the right type of DOMWrapper for SharedWorkerContexts.
2979 (WebCore::WorkerContextExecutionProxy::convertToV8Object):
2980 Added support for SHAREDWORKERCONTEXT.
2981 (WebCore::WorkerContextExecutionProxy::convertEventTargetToV8Object):
2982 Added support for SharedWorker and SharedWorkerContext.
2984 2009-11-08 Johnny Ding <johnnyding.webkit@gmail.com>
2986 Reviewed by Dimitri Glazkov.
2988 https://bugs.webkit.org/show_bug.cgi?id=31224
2989 [V8] Return StyleSheet object instead of HTMLStyleElement w/document.styleSheets named property getter.
2991 Test: fast/dom/StyleSheet/get-stylesheet-byname.html
2993 * bindings/v8/custom/V8StyleSheetListCustom.cpp:
2994 (WebCore::NAMED_PROPERTY_GETTER):
2996 2009-11-08 Pavel Feldman <pfeldman@chromium.org>
2998 Reviewed by Timothy Hatcher.
3000 Web Inspector: "Search again" on scripts panel switches
3001 to the script this search started with.
3003 https://bugs.webkit.org/show_bug.cgi?id=31243
3005 * inspector/front-end/Panel.js:
3006 (WebInspector.Panel.prototype.jumpToNextSearchResult):
3008 2009-11-08 Kent Tamura <tkent@chromium.org>
3010 Reviewed by Darin Adler.
3012 Simplify Icon interface.
3013 https://bugs.webkit.org/show_bug.cgi?id=31154
3015 - Remove Icon::createIconForFile(). createIconForFiles() covers
3016 createIconForFile()'s role.
3017 - Remove FileChooser::chooseIcon()
3018 - Change the parameter types of FileChooser constructor and the
3019 factory method, String -> const Vector<String>&, in order to
3020 support initialization with multiple files.
3021 - Remove the icon loading code in IconChromiumWin.cpp, which
3022 doesn't work because of the sandbox.
3024 No tests because it's just a refactoring.
3026 * platform/FileChooser.cpp:
3027 (WebCore::FileChooser::FileChooser):
3028 (WebCore::FileChooser::create):
3029 (WebCore::FileChooser::chooseFile):
3030 (WebCore::FileChooser::chooseFiles):
3031 * platform/FileChooser.h:
3032 * platform/graphics/Icon.h:
3033 * platform/graphics/chromium/IconChromiumLinux.cpp:
3034 * platform/graphics/chromium/IconChromiumMac.cpp:
3035 * platform/graphics/chromium/IconChromiumWin.cpp:
3036 (WebCore::Icon::createIconForFiles):
3037 * platform/graphics/gtk/IconGtk.cpp:
3038 (WebCore::Icon::createIconForFiles):
3039 * platform/graphics/haiku/IconHaiku.cpp:
3040 * platform/graphics/mac/IconMac.mm:
3041 (WebCore::Icon::createIconForFiles):
3042 * platform/graphics/qt/IconQt.cpp:
3043 (WebCore::Icon::createIconForFiles):
3044 * platform/graphics/win/IconWin.cpp:
3045 (WebCore::Icon::createIconForFiles):
3046 * platform/graphics/wx/IconWx.cpp:
3047 * rendering/RenderFileUploadControl.cpp:
3048 (WebCore::RenderFileUploadControl::RenderFileUploadControl):
3050 2009-11-08 Daniel Bates <dbates@webkit.org>
3052 Reviewed by Adam Barth.
3054 https://bugs.webkit.org/show_bug.cgi?id=31098
3056 Allows same-origin plugin-based content to load.
3058 Test: http/tests/security/xssAuditor/object-src-inject.html
3060 * page/XSSAuditor.cpp:
3061 (WebCore::XSSAuditor::canLoadExternalScriptFromSrc): Modified to call XSSAuditor::isSameOriginResource.
3062 (WebCore::XSSAuditor::canLoadObject): Ditto.
3063 (WebCore::XSSAuditor::canSetBaseElementURL): Ditto.
3064 (WebCore::XSSAuditor::isSameOriginResource): Added.
3065 * page/XSSAuditor.h:
3067 2009-11-08 David Levin <levin@chromium.org>
3069 Reviewed by NOBODY (chromium build fix).
3071 * platform/network/HTTPParsers.cpp:
3072 (WebCore::parseDate): Changed this to not
3073 use a date parser that needs ExecState passed.
3075 2009-11-08 David Levin <levin@chromium.org>
3077 Unreviewed build fix for chromium.
3079 * platform/graphics/skia/GraphicsContextSkia.cpp:
3080 (WebCore::GraphicsContext::fillPath):
3081 (WebCore::GraphicsContext::fillRect):
3082 (WebCore::GraphicsContext::strokePath):
3083 (WebCore::GraphicsContext::strokeRect):
3085 2009-11-08 David Levin <levin@chromium.org>
3087 Unreviewed build fix for chromium.
3089 Build fix for https://bugs.webkit.org/show_bug.cgi?id=31219
3090 Clean up GraphicsContext's current concept of ColorSpace
3092 * platform/graphics/skia/GraphicsContextSkia.cpp:
3093 (WebCore::GraphicsContext::fillPath):
3094 (WebCore::GraphicsContext::fillRect):
3095 (WebCore::GraphicsContext::strokePath):
3096 (WebCore::GraphicsContext::strokeRect):
3098 2009-11-08 Pavel Feldman <pfeldman@chromium.org>
3100 Reviewed by Timothy Hatcher.
3102 Web Inspector: [REGRESSION] committing style edit
3103 clears elements panel selection.
3105 https://bugs.webkit.org/show_bug.cgi?id=31242
3107 * inspector/front-end/ElementsTreeOutline.js:
3108 (WebInspector.ElementsTreeOutline.prototype.update):
3109 * inspector/front-end/StylesSidebarPane.js:
3110 (WebInspector.StylePropertyTreeElement.prototype.):
3111 (WebInspector.StylePropertyTreeElement.prototype):
3113 2009-11-08 Janne Koskinen <janne.p.koskinen@digia.com>
3115 Reviewed by Holger Freyther.
3117 ResourceRequest to be class instead of struct
3118 https://bugs.webkit.org/show_bug.cgi?id=30670
3120 Started as a compilation fix for Symbian where the compiler makes a distinction between
3121 class and struct in function argument signatures.
3122 Changed all forward declarations of ResourceRequest to have class in the forward
3123 declaration instead of struct and changed the definition of ResourceRequest to be class
3124 and added access qualifiers where missing. Additionally two references of friend
3125 struct ResourceRequestBase changed to class instead.
3127 * history/HistoryItem.h:
3128 * inspector/InspectorController.h:
3129 * inspector/InspectorResource.h:
3130 * loader/DocumentThreadableLoader.h:
3131 * loader/FrameLoaderClient.h:
3132 * loader/MainResourceLoader.h:
3133 * loader/ResourceLoadNotifier.h:
3134 * loader/SubresourceLoader.h:
3135 * loader/SubresourceLoaderClient.h:
3136 * loader/ThreadableLoader.h:
3137 * loader/WorkerThreadableLoader.h:
3138 * loader/appcache/ApplicationCache.h:
3139 * loader/appcache/ApplicationCacheHost.h:
3140 * platform/CrossThreadCopier.h:
3141 * platform/network/ResourceHandle.h:
3142 * platform/network/ResourceHandleClient.h:
3143 * platform/network/ResourceRequestBase.h:
3144 * platform/network/cf/ResourceRequest.h:
3145 * platform/network/cf/ResourceRequestCFNet.h:
3146 * platform/network/chromium/ResourceRequest.h:
3147 * platform/network/curl/ResourceRequest.h:
3148 * platform/network/qt/ResourceRequest.h:
3149 * platform/network/soup/ResourceRequest.h:
3150 * xml/XMLHttpRequest.h:
3152 2009-11-08 Dan Bernstein <mitz@apple.com>
3154 Reviewed by Simon Fraser.
3156 <rdar://problem/7363434> Crash inside RenderObject::localToAbsolute
3157 below FrameView::layout
3158 https://bugs.webkit.org/show_bug.cgi?id=31093
3160 Test: fast/block/positioning/relative-positioned-inline-container.html
3162 In <http://trac.webkit.org/changeset/19148>, setStaticY() was changed
3163 to mark the object for layout, doing so without marking its ancestors.
3164 However, RenderBlock::skipLeadingWhitespace and
3165 RenderBlock::skipTrailingWhitespace() call setStaticY() on a relative-
3166 positioned inline container, causing it to be marked for layout without
3167 ever going back to give it layout, and thus layout could end with a
3168 dirty object still in the tree, leading to all sorts of badness.
3170 The fix is to revert setStaticY() to not marking the object dirty, and
3171 instead do it in the call sites that require it, which are in
3172 RenderBlock and RenderFlexibleBox.
3174 * rendering/RenderBlock.cpp:
3175 (WebCore::RenderBlock::adjustPositionedBlock):
3176 * rendering/RenderFlexibleBox.cpp:
3177 (WebCore::RenderFlexibleBox::layoutHorizontalBox):
3178 (WebCore::RenderFlexibleBox::layoutVerticalBox):
3179 * rendering/RenderLayer.cpp:
3180 * rendering/RenderLayer.h:
3181 (WebCore::RenderLayer::setStaticY):
3183 2009-11-07 Daniel Bates <dbates@webkit.org>
3185 Reviewed by Darin Adler.
3187 https://bugs.webkit.org/show_bug.cgi?id=20780
3189 Fixes an issue where the onchange event handler is not fired when the
3190 input field is autocompleted.
3192 We cannot test this using DRT since DRT cannot emulate autocompletion.
3193 So, a manual-test is included.
3195 Tests: manual-tests/autocompletion-fire-onchange.html
3197 * manual-tests/autocompletion-fire-onchange.html: Added.
3198 * rendering/RenderTextControl.cpp:
3199 (WebCore::RenderTextControl::setInnerTextValue):
3201 2009-11-07 Benjamin Otte <otte@gnome.org>
3203 Reviewed by Holger Freyther.
3205 Mark redrawn areas on image surfaces as dirty.
3207 This is required to conform to the Cairo API, but is currently only
3208 used by debugging tools like cairo-trace.
3210 * platform/graphics/cairo/ImageBufferCairo.cpp:
3211 (WebCore::ImageBuffer::platformTransformColorSpace):
3212 (WebCore::putImageData):
3214 2009-11-07 Joanmarie Diggs <joanmarie.diggs@gmail.com>
3216 Reviewed by Xan Lopez.
3218 https://bugs.webkit.org/show_bug.cgi?id=30878
3219 [Gtk] atk_text_get_text() fails in entries when the end_offset is -1
3221 If the end_offset is -1, use the String length as the end_offset.
3223 * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
3224 (webkit_accessible_text_get_text):
3226 2009-11-06 Beth Dakin <bdakin@apple.com>
3228 Reviewed by Adele Peterson.
3230 Fix for https://bugs.webkit.org/show_bug.cgi?id=31219 Clean up
3231 GraphicsContext's current concept of ColorSpace
3233 ColorSpace is now called ColorType. The variables on the state we
3234 appropriately re-named as well. I removed strokeColorSpace() and
3235 fillColorSpace() from GraphicsContext since they were never called.
3237 * platform/graphics/GraphicsContext.cpp:
3238 (WebCore::GraphicsContext::setStrokeColor):
3239 (WebCore::GraphicsContext::setFillColor):
3240 (WebCore::GraphicsContext::setStrokePattern):
3241 (WebCore::GraphicsContext::setFillPattern):
3242 (WebCore::GraphicsContext::setStrokeGradient):
3243 (WebCore::GraphicsContext::setFillGradient):
3244 * platform/graphics/GraphicsContext.h:
3246 * platform/graphics/GraphicsContextPrivate.h:
3247 (WebCore::GraphicsContextState::GraphicsContextState):
3248 * platform/graphics/cairo/GraphicsContextCairo.cpp:
3249 (WebCore::GraphicsContext::fillPath):
3250 (WebCore::GraphicsContext::strokePath):
3251 * platform/graphics/cg/GraphicsContextCG.cpp:
3252 (WebCore::calculateDrawingMode):
3253 (WebCore::GraphicsContext::drawPath):
3254 (WebCore::GraphicsContext::fillPath):
3255 (WebCore::GraphicsContext::strokePath):
3256 (WebCore::GraphicsContext::fillRect):
3257 (WebCore::GraphicsContext::strokeRect):
3258 * platform/graphics/qt/GraphicsContextQt.cpp:
3259 (WebCore::GraphicsContext::fillPath):
3260 (WebCore::GraphicsContext::strokePath):
3261 (WebCore::GraphicsContext::fillRect):
3262 * platform/graphics/wince/GraphicsContextWince.cpp:
3263 (WebCore::GraphicsContext::fillPath):
3264 (WebCore::GraphicsContext::fillRect):
3266 2009-11-06 Brian Weinstein <bweinstein@apple.com>
3268 Reviewed by Tim Hatcher.
3270 Fixes <http://webkit.org/b/31177>.
3271 Web Inspector: Bind backspace to delete cookies and DOM Storage.
3273 Refactor editing code from DOMStorageDataGrid to DataGrid, so other
3274 places in the inspector can use editing in DataGrid (added a FIXME for
3275 some stuff that needs to be generalized).
3277 Also added deleting functionality to DataGrid, and implemented it for
3278 Cookies and DOM Storage. The reason this patch is so big is because of
3279 the refactoring of editing code, which won't be used yet in a cross-datagrid
3280 way, but should be able to.
3282 Additionally, moved the callbacks members from DOMStorageDataGrid to
3283 DOMStorageItemsView, which allowed us to delete DOMStorageDataGrid, to
3284 make the architecture of DOM Storage look a lot more like the Cookies view.
3286 Lastly, added a preventDefault call in ElementsTreeOutline to prevent the
3287 inspector from beeping at you when you delete an element.
3289 * WebCore.gypi: Removed DOMStorageDataGrid.
3290 * WebCore.vcproj/WebCore.vcproj: Removed DOMStorageDataGrid.
3291 * inspector/front-end/CookieItemsView.js:
3292 (WebInspector.CookieItemsView.prototype.dataGridForCookies):
3293 (WebInspector.CookieItemsView.prototype._deleteButtonClicked):
3294 (WebInspector.CookieItemsView.prototype._deleteCookieCallback):
3295 * inspector/front-end/DOMStorageDataGrid.js: Removed.
3296 * inspector/front-end/DOMStorageItemsView.js:
3297 (WebInspector.DOMStorageItemsView.prototype._dataGridForDOMStorageEntries):
3298 (WebInspector.DOMStorageItemsView.prototype._deleteButtonClicked):
3299 (WebInspector.DOMStorageItemsView.prototype._refreshButtonClicked):
3300 (WebInspector.DOMStorageItemsView.prototype._editingCallback):
3301 (WebInspector.DOMStorageItemsView.prototype.deleteSelectedRow):
3302 (WebInspector.DOMStorageItemsView.prototype._deleteCallback):
3303 * inspector/front-end/DataGrid.js:
3304 (WebInspector.DataGrid):
3305 (WebInspector.DataGrid.prototype._ondblclick): Moved from DOMStorageDataGrid to DataGrid + Refactoring.
3306 (WebInspector.DataGrid.prototype._startEditingColumnOfDataGridNode): Ditto.
3307 (WebInspector.DataGrid.prototype._startEditing): Ditto.
3308 (WebInspector.DataGrid.prototype._editingCommitted.moveToNextIfNeeded): Ditto.
3309 (WebInspector.DataGrid.prototype._editingCommitted): Ditto.
3310 (WebInspector.DataGrid.prototype._editingCancelled): Ditto.
3311 (WebInspector.DataGrid.prototype.handleKeyEvent): Added case for delete/backspace.
3312 * inspector/front-end/ElementsTreeOutline.js:
3313 (WebInspector.ElementsTreeOutline.prototype.handleKeyEvent): Added preventDefault call.
3314 * inspector/front-end/WebKit.qrc: Removed DOMStorageDataGrid.
3315 * inspector/front-end/inspector.html: Removed DOMStorageDataGrid.
3317 2009-11-06 Geoffrey Garen <ggaren@apple.com>
3319 Qt build fix: added an ExecState parameter.
3321 * bridge/qt/qt_runtime.cpp:
3322 (JSC::Bindings::convertValueToQVariant):
3323 (JSC::Bindings::convertQVariantToValue):
3325 2009-11-06 Geoffrey Garen <ggaren@apple.com>
3327 https://bugs.webkit.org/show_bug.cgi?id=31197
3328 Implemented a timezone cache not based on Mac OS X's notify_check API.
3330 Updated for JavaScriptCore internal API change.
3332 * bridge/qt/qt_runtime.cpp:
3333 (JSC::Bindings::convertValueToQVariant):
3334 (JSC::Bindings::convertQVariantToValue): Updated for namespace change.
3336 * platform/network/HTTPParsers.cpp:
3337 (WebCore::parseDate): Pass 0 for ExecState, since we don't have one.
3338 (This function probably shouldn't be using a JavaScript date parser
3339 to begin with, but oh well.)
3341 2009-11-06 Anantanarayanan G Iyengar <ananta@chromium.org>
3343 Reviewed by Adam Barth.
3345 The associated webkit bug is https://bugs.webkit.org/show_bug.cgi?id=31067,
3346 which affects Chromium only.
3348 Changes to V8HTMLDocumentCustom.cpp are as below:-
3349 1. The HTMLDocumentOpen function would cause a crash in Chromium if
3350 there was no calling javascript context. We now check for this case
3351 and pass in NULL to the HTMLDocument::open function which can handle
3352 a NULL document parameter.
3353 2. The other functions like HTMLDocumentWrite, HTMLDocumentWriteln, etc
3354 had ASSERTS for a NULL caller frame, which was bogus as it would crash
3355 anyway. We now check for this case and return a failure.
3357 Changes to V8DOMWindowCustom.cpp are as below:-
3358 1. Instead of failing the window.open call made by NPAPI for lack of a
3359 calling javascript context, we now use the entered context as the calling
3362 Tests: plugins/document-open.html
3363 plugins/window-open.html
3365 * bindings/v8/custom/V8DOMWindowCustom.cpp:
3366 (WebCore::CALLBACK_FUNC_DECL):
3367 * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
3368 (WebCore::CALLBACK_FUNC_DECL):
3370 2009-11-06 Steve Block <steveblock@google.com>
3372 Reviewed by Eric Seidel.
3374 Geolocation error code UNKNOWN_ERROR is deprecated.
3375 https://bugs.webkit.org/show_bug.cgi?id=31184
3377 Remove this error code from PositionError, both for use from C++ code and from the JS object.
3379 Updated fast/dom/Geolocation/error.html to test this.
3381 * page/PositionError.h: Modified.
3382 (WebCore::PositionError::): Remove ErrorCode::UNKNOWN_ERROR.
3383 * page/PositionError.idl: Modified. Remove UNKNOWN_ERROR constant.
3384 * page/Geolocation.cpp: Modified.
3385 (WebCore::Geolocation::startRequest): Replace UNKNOWN_ERROR with POSITION_UNAVAILABLE.
3386 * platform/gtk/GeolocationServiceGtk.cpp: Modified.
3387 (WebCore::GeolocationServiceGtk::startUpdating): Replace UNKNOWN_ERROR with POSITION_UNAVAILABLE.
3389 2009-11-06 Dirk Schulze <krit@webkit.org>
3391 Reviewed by Nikolas Zimmermann.
3393 feMorphology filter is not implemented
3394 [https://bugs.webkit.org/show_bug.cgi?id=5863]
3396 The Implementation of feMorphology.
3398 Test: We have allready a test for feMorphology
3399 svg/W3C-SVG-1.1/filters-morph-01-f.svg
3401 * svg/graphics/filters/SVGFEMorphology.cpp:
3402 (WebCore::FEMorphology::apply):
3404 2009-11-06 Steve Block <steveblock@google.com>
3406 Reviewed by Eric Seidel.
3408 V8DOMWindowCustom.cpp is missing WEB_SOCKETS guard on include.
3409 https://bugs.webkit.org/show_bug.cgi?id=31209
3411 Build fix only. No new tests possible.
3413 * bindings/v8/custom/V8DOMWindowCustom.cpp: Modified. Added WEB_SOCKETS guard on inclue of WebSockets.h.
3415 2009-11-06 Drew Wilson <atwilson@chromium.org>
3417 Reviewed by David Levin.
3419 V8 bindings do not support SharedWorkers as event targets
3420 https://bugs.webkit.org/show_bug.cgi?id=31199
3422 No new tests because existing layout tests suffice (they currently
3425 * bindings/v8/V8DOMWrapper.cpp:
3426 (WebCore::V8DOMWrapper::convertEventTargetToV8Object):
3427 Added clause to create a DOM wrapper for SharedWorkers.
3429 2009-11-06 Anton Muhin <antonm@chromium.org>
3431 Reviewed by Adam Barth.
3433 Do not unnecessarly synchronzie in weak reference callbacks.
3434 https://bugs.webkit.org/show_bug.cgi?id=31191
3436 * bindings/v8/DOMData.h:
3437 (WebCore::DOMData::handleWeakObject):
3439 2009-11-06 Alexander Pavlov <apavlov@chromium.org>
3441 Reviewed by Pavel Feldman.
3443 Fix resource content search.
3444 https://bugs.webkit.org/show_bug.cgi?id=31202
3446 * inspector/front-end/AbstractTimelinePanel.js:
3447 (WebInspector.AbstractTimelinePanel.prototype.refresh):
3448 (WebInspector.AbstractTimelinePanel.prototype.removeItem):
3449 * inspector/front-end/TimelinePanel.js:
3450 (WebInspector.TimelineGraph.prototype.refresh):
3452 2009-11-05 Yuta Kitamura <yutak@chromium.org>
3454 Reviewed by Eric Seidel.
3456 Fix ASSERT(currentStyle = renderStyle()).
3457 https://bugs.webkit.org/show_bug.cgi?id=31152
3460 (WebCore::Element::pseudoStyleCacheIsInvalid): We should have used "==" instead of "=".
3462 2009-11-05 Alpha Lam <hclam@chromium.org>
3464 Revert 50562 because it broke Chromium. Not reviewed since this is a build fix and revert.
3466 * bindings/v8/V8GCController.cpp:
3467 (WebCore::V8GCController::gcEpilogue):
3468 * bindings/v8/V8GCController.h:
3469 * bindings/v8/V8Proxy.cpp:
3470 (WebCore::V8Proxy::evaluate):
3471 (WebCore::V8Proxy::runScript):
3472 (WebCore::V8Proxy::callFunction):
3474 2009-11-05 Adam Barth <abarth@webkit.org>
3476 Reviewed by Sam Weinig.
3478 Cross-domain access to stylesheet text should not be allowed
3479 https://bugs.webkit.org/show_bug.cgi?id=20527
3481 Check whether whether the current document can read the cssRules from
3482 the style sheet. Firefox throws a security error here, but we return
3483 null instead because that's what we usually do in these cases.
3485 Test: http/tests/security/cannot-read-cssrules-redirect.html
3486 http/tests/security/cannot-read-cssrules.html
3488 * css/CSSStyleSheet.cpp:
3489 (WebCore::CSSStyleSheet::cssRules):
3491 2009-11-05 Steve Block <steveblock@google.com>
3493 Reviewed by Eric Seidel.
3495 If the Geolocation service fails to start, invoke the error callback asynchronously.
3496 https://bugs.webkit.org/show_bug.cgi?id=28276
3498 All Geolocation callbacks must be invoked asynchronously.
3499 See http://www.w3.org/TR/geolocation-API/#geolocation_interface
3501 No new tests possible with current LayoutTestController.
3503 * page/Geolocation.cpp:
3504 (WebCore::Geolocation::getCurrentPosition): Modified. Asserts that startRequest returned a notifier.
3505 (WebCore::Geolocation::watchPosition): Modified. Asserts that startRequest returned a notifier.
3506 (WebCore::Geolocation::startRequest): Modified. If the Geolocation service fails to start, set a fatal error on the notifier.
3508 2009-11-05 Chris Jerdonek <chris.jerdonek@gmail.com>
3510 Reviewed by Eric Seidel.
3512 Removed the "this is part of the KDE project" comments from
3513 all *.h, *.cpp, *.idl, and *.pm files.
3515 https://bugs.webkit.org/show_bug.cgi?id=31167
3517 The maintenance and architecture page in the project wiki lists
3520 This change includes no changes or additions to test cases
3521 since the change affects only comments.
3523 * bindings/scripts/CodeGeneratorV8.pm:
3524 * bindings/scripts/IDLParser.pm:
3525 * bindings/scripts/IDLStructure.pm:
3526 * css/CSSInheritedValue.cpp:
3527 * css/CSSInitialValue.cpp:
3528 * css/CSSMediaRule.cpp:
3529 * css/CSSNamespace.h:
3530 * css/CSSProperty.cpp:
3531 * css/CSSProperty.h:
3532 * css/CSSRuleList.cpp:
3533 * css/CSSRuleList.h:
3534 * css/CSSSelector.h:
3535 * css/CSSValueList.cpp:
3536 * css/FontValue.cpp:
3537 * css/MediaFeatureNames.cpp:
3538 * css/MediaFeatureNames.h:
3540 * css/SVGCSSStyleSelector.cpp:
3541 * css/ShadowValue.cpp:
3542 * css/StyleSheet.cpp:
3543 * css/StyleSheetList.cpp:
3544 * css/maketokenizer:
3545 * dom/BeforeUnloadEvent.cpp:
3546 * dom/BeforeUnloadEvent.h:
3547 * dom/CSSMappedAttributeDeclaration.cpp:
3548 * dom/EventNames.cpp:
3549 * dom/EventTarget.cpp:
3550 * dom/MappedAttributeEntry.h:
3551 * dom/MouseRelatedEvent.h:
3552 * dom/RangeException.h:
3553 * dom/StyleElement.h:
3555 * html/HTMLHeadElement.h:
3556 * html/HTMLHeadingElement.cpp:
3557 * html/HTMLHeadingElement.h:
3558 * html/HTMLHtmlElement.h:
3559 * html/HTMLImageLoader.h:
3560 * html/HTMLMetaElement.h:
3561 * html/HTMLModElement.cpp:
3562 * html/HTMLModElement.h:
3563 * html/HTMLOptionsCollection.cpp:
3564 * html/HTMLPlugInElement.cpp:
3565 * html/HTMLPreElement.cpp:
3566 * html/HTMLPreElement.h:
3567 * html/HTMLTableCellElement.cpp:
3568 * html/HTMLTableCellElement.h:
3569 * html/HTMLTableColElement.cpp:
3570 * html/HTMLTableColElement.h:
3571 * html/HTMLTablePartElement.cpp:
3572 * html/HTMLTablePartElement.h:
3573 * html/HTMLTitleElement.h:
3574 * page/MouseEventWithHitTestResults.h:
3575 * platform/StaticConstructors.h:
3576 * platform/text/AtomicStringImpl.h:
3577 * platform/text/qt/TextBreakIteratorQt.cpp:
3578 * rendering/AutoTableLayout.h:
3579 * rendering/CounterNode.cpp:
3580 * rendering/EllipsisBox.cpp:
3581 * rendering/EllipsisBox.h:
3582 * rendering/FixedTableLayout.cpp:
3583 * rendering/FixedTableLayout.h:
3584 * rendering/HitTestRequest.h:
3585 * rendering/HitTestResult.h:
3586 * rendering/InlineRunBox.h:
3587 * rendering/PointerEventsHitRules.cpp:
3588 * rendering/PointerEventsHitRules.h:
3589 * rendering/RenderBR.cpp:
3590 * rendering/RenderBR.h:
3591 * rendering/RenderButton.cpp:
3592 * rendering/RenderButton.h:
3593 * rendering/RenderFieldset.cpp:
3594 * rendering/RenderFrameSet.cpp:
3595 * rendering/RenderListItem.cpp:
3596 * rendering/RenderTableRow.cpp:
3597 * rendering/RenderView.h:
3598 * rendering/RootInlineBox.h:
3599 * rendering/SVGInlineTextBox.cpp:
3600 * rendering/SVGInlineTextBox.h:
3601 * rendering/TableLayout.h:
3602 * rendering/break_lines.h:
3603 * rendering/style/SVGRenderStyle.cpp:
3604 * rendering/style/SVGRenderStyle.h:
3605 * rendering/style/SVGRenderStyleDefs.cpp:
3606 * rendering/style/SVGRenderStyleDefs.h:
3607 * svg/GradientAttributes.h:
3608 * svg/LinearGradientAttributes.h:
3609 * svg/PatternAttributes.h:
3610 * svg/RadialGradientAttributes.h:
3611 * svg/SVGAElement.cpp:
3613 * svg/SVGAnimateColorElement.cpp:
3614 * svg/SVGAnimateColorElement.h:
3615 * svg/SVGAnimateElement.cpp:
3616 * svg/SVGAnimateElement.h:
3617 * svg/SVGAnimateTransformElement.h:
3618 * svg/SVGAnimatedPathData.cpp:
3619 * svg/SVGAnimatedPathData.h:
3620 * svg/SVGAnimatedPoints.cpp:
3621 * svg/SVGAnimatedPoints.h:
3622 * svg/SVGAnimationElement.cpp:
3623 * svg/SVGCircleElement.cpp:
3624 * svg/SVGClipPathElement.cpp:
3627 * svg/SVGComponentTransferFunctionElement.cpp:
3628 * svg/SVGComponentTransferFunctionElement.h:
3629 * svg/SVGCursorElement.cpp:
3630 * svg/SVGDefsElement.cpp:
3631 * svg/SVGDescElement.cpp:
3632 * svg/SVGDescElement.h:
3633 * svg/SVGDocument.idl:
3634 * svg/SVGElement.idl:
3635 * svg/SVGElementInstanceList.cpp:
3636 * svg/SVGElementInstanceList.h:
3637 * svg/SVGEllipseElement.cpp:
3638 * svg/SVGExternalResourcesRequired.cpp:
3639 * svg/SVGFEBlendElement.cpp:
3640 * svg/SVGFEBlendElement.h:
3641 * svg/SVGFEColorMatrixElement.cpp:
3642 * svg/SVGFEColorMatrixElement.h:
3643 * svg/SVGFEComponentTransferElement.cpp:
3644 * svg/SVGFEComponentTransferElement.h:
3645 * svg/SVGFECompositeElement.cpp:
3646 * svg/SVGFECompositeElement.h:
3647 * svg/SVGFEFloodElement.cpp:
3648 * svg/SVGFEFloodElement.h:
3649 * svg/SVGFEFuncAElement.cpp:
3650 * svg/SVGFEFuncAElement.h:
3651 * svg/SVGFEFuncBElement.cpp:
3652 * svg/SVGFEFuncBElement.h:
3653 * svg/SVGFEFuncGElement.cpp:
3654 * svg/SVGFEFuncGElement.h:
3655 * svg/SVGFEFuncRElement.cpp:
3656 * svg/SVGFEFuncRElement.h:
3657 * svg/SVGFEGaussianBlurElement.cpp:
3658 * svg/SVGFEGaussianBlurElement.h:
3659 * svg/SVGFEImageElement.cpp:
3660 * svg/SVGFEMergeElement.cpp:
3661 * svg/SVGFEMergeElement.h:
3662 * svg/SVGFEMergeNodeElement.cpp:
3663 * svg/SVGFEOffsetElement.cpp:
3664 * svg/SVGFEOffsetElement.h:
3665 * svg/SVGFETileElement.cpp:
3666 * svg/SVGFETileElement.h:
3667 * svg/SVGFETurbulenceElement.cpp:
3668 * svg/SVGFETurbulenceElement.h:
3669 * svg/SVGFilterElement.cpp:
3670 * svg/SVGGElement.cpp:
3671 * svg/SVGGradientElement.cpp:
3672 * svg/SVGHKernElement.idl:
3673 * svg/SVGLangSpace.cpp:
3674 * svg/SVGLangSpace.h:
3675 * svg/SVGLength.cpp:
3677 * svg/SVGLength.idl:
3678 * svg/SVGLengthList.cpp:
3679 * svg/SVGLengthList.h:
3680 * svg/SVGLineElement.cpp:
3681 * svg/SVGLinearGradientElement.h:
3683 * svg/SVGListTraits.h:
3684 * svg/SVGLocatable.h:
3685 * svg/SVGMaskElement.cpp:
3686 * svg/SVGMatrix.idl:
3687 * svg/SVGMetadataElement.cpp:
3688 * svg/SVGMetadataElement.h:
3689 * svg/SVGMetadataElement.idl:
3690 * svg/SVGNumber.idl:
3691 * svg/SVGNumberList.cpp:
3692 * svg/SVGNumberList.h:
3694 * svg/SVGPathElement.cpp:
3696 * svg/SVGPathSegArc.cpp:
3697 * svg/SVGPathSegArc.h:
3698 * svg/SVGPathSegClosePath.cpp:
3699 * svg/SVGPathSegClosePath.h:
3700 * svg/SVGPathSegCurvetoCubic.cpp:
3701 * svg/SVGPathSegCurvetoCubic.h:
3702 * svg/SVGPathSegCurvetoCubicSmooth.cpp:
3703 * svg/SVGPathSegCurvetoCubicSmooth.h:
3704 * svg/SVGPathSegCurvetoQuadratic.cpp:
3705 * svg/SVGPathSegCurvetoQuadratic.h:
3706 * svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
3707 * svg/SVGPathSegCurvetoQuadraticSmooth.h:
3708 * svg/SVGPathSegLineto.cpp:
3709 * svg/SVGPathSegLineto.h:
3710 * svg/SVGPathSegLinetoHorizontal.cpp:
3711 * svg/SVGPathSegLinetoHorizontal.h:
3712 * svg/SVGPathSegLinetoVertical.cpp:
3713 * svg/SVGPathSegLinetoVertical.h:
3714 * svg/SVGPathSegMoveto.cpp:
3715 * svg/SVGPathSegMoveto.h:
3716 * svg/SVGPatternElement.cpp:
3718 * svg/SVGPointList.cpp:
3719 * svg/SVGPointList.h:
3720 * svg/SVGPolyElement.cpp:
3721 * svg/SVGPolygonElement.cpp:
3722 * svg/SVGPolygonElement.h:
3723 * svg/SVGPolylineElement.cpp:
3724 * svg/SVGPolylineElement.h:
3725 * svg/SVGPreserveAspectRatio.cpp:
3726 * svg/SVGPreserveAspectRatio.h:
3727 * svg/SVGRadialGradientElement.h:
3729 * svg/SVGRectElement.cpp:
3730 * svg/SVGRenderingIntent.h:
3731 * svg/SVGSVGElement.idl:
3732 * svg/SVGScriptElement.cpp:
3733 * svg/SVGSetElement.cpp:
3734 * svg/SVGSetElement.h:
3735 * svg/SVGStopElement.cpp:
3736 * svg/SVGStringList.cpp:
3737 * svg/SVGStringList.h:
3738 * svg/SVGStylable.cpp:
3739 * svg/SVGStylable.h:
3740 * svg/SVGStyleElement.cpp:
3741 * svg/SVGStyleElement.h:
3742 * svg/SVGStyledElement.h:
3743 * svg/SVGStyledLocatableElement.cpp:
3744 * svg/SVGStyledLocatableElement.h:
3745 * svg/SVGStyledTransformableElement.cpp:
3746 * svg/SVGStyledTransformableElement.h:
3747 * svg/SVGSwitchElement.cpp:
3748 * svg/SVGSymbolElement.cpp:
3749 * svg/SVGTRefElement.cpp:
3750 * svg/SVGTSpanElement.cpp:
3751 * svg/SVGTSpanElement.h:
3753 * svg/SVGTextElement.cpp:
3754 * svg/SVGTextElement.h:
3755 * svg/SVGTextPathElement.cpp:
3756 * svg/SVGTextPositioningElement.cpp:
3757 * svg/SVGTextPositioningElement.h:
3758 * svg/SVGTitleElement.cpp:
3759 * svg/SVGTitleElement.h:
3760 * svg/SVGTransform.cpp:
3761 * svg/SVGTransform.h:
3762 * svg/SVGTransform.idl:
3763 * svg/SVGTransformList.cpp:
3764 * svg/SVGTransformList.h:
3765 * svg/SVGTransformable.h:
3766 * svg/SVGURIReference.h:
3767 * svg/SVGUnitTypes.h:
3768 * svg/SVGUseElement.cpp:
3769 * svg/SVGViewElement.cpp:
3770 * svg/SVGZoomAndPan.cpp:
3771 * svg/SVGZoomAndPan.h:
3772 * svg/SVGZoomEvent.cpp:
3774 2009-11-05 Jeremy Orlow <jorlow@chromium.org>
3776 Reviewed by Dimitri Glazkov.
3778 REGRESSION Clean up security origin usage in DOM Storage.
3779 https://bugs.webkit.org/show_bug.cgi?id=31188
3781 Clean up security origin usage in DOM Storage. This fixes a bug in my
3782 refactoring here: https://bugs.webkit.org/show_bug.cgi?id=31149
3784 Instead of having StorageAreaSync's constructor (which is called in the
3785 constructor for StorageAreaImpl) calling a method on StoargeAreaImpl to get the
3786 database identifier, simply have StorageAreaImpl pass the identifier into
3789 No test because there's no change in externally observable behavior.
3791 * storage/StorageAreaImpl.cpp:
3792 (WebCore::StorageAreaImpl::StorageAreaImpl):
3793 * storage/StorageAreaImpl.h:
3794 * storage/StorageAreaSync.cpp:
3795 (WebCore::StorageAreaSync::create):
3796 (WebCore::StorageAreaSync::StorageAreaSync):
3797 * storage/StorageAreaSync.h:
3799 2009-11-05 Scott Violet <sky@google.com>
3801 Reviewed by Dimitri Glazkov.
3803 Need notification of scrolling frame
3804 https://bugs.webkit.org/show_bug.cgi?id=31145
3806 Adds FrameLoaderClient::didChangeScrollOffset that is called when
3807 the frame scrolls. This will be used to know when history state
3808 needs to be updated.
3810 * loader/FrameLoaderClient.h:
3811 (WebCore::FrameLoaderClient::didChangeScrollOffset):
3812 * page/FrameView.cpp:
3813 (WebCore::FrameView::valueChanged):
3815 2009-11-05 Kenneth Russell <kbr@google.com>
3817 Reviewed by Dimitri Glazkov.
3819 [V8] Update bindings to use new API for external arrays
3820 https://bugs.webkit.org/show_bug.cgi?id=31181
3822 No new tests; covered by existing WebGL tests.
3824 * bindings/v8/V8DOMWrapper.cpp:
3825 (WebCore::V8DOMWrapper::setIndexedPropertiesToExternalArray):
3826 (WebCore::V8DOMWrapper::getTemplate):
3827 (WebCore::V8DOMWrapper::convertToV8Object):
3828 * bindings/v8/V8DOMWrapper.h:
3829 * bindings/v8/custom/V8CanvasArrayCustom.h:
3830 (WebCore::constructCanvasArray):
3832 2009-11-05 Alpha Lam <hclam@chromium.org>
3834 Not reviewed, Chromium build fix.
3836 50561 introduces a custom method for SVGMatrix, we need to implement
3839 * bindings/v8/custom/V8CustomBinding.h:
3840 Adding definition for V8SVGMatrixMultiply.
3841 * bindings/v8/custom/V8SVGMatrixCustom.cpp:
3842 (WebCore::CALLBACK_FUNC_DECL):
3843 Implement V8SVGMatrixMultiply according to the same method in JSC.
3845 2009-11-05 Jeremy Orlow <jorlow@chromium.org>
3847 Revert 50569 since it broke QT. Build fix and just a revert, so no review.
3849 * page/DOMWindow.cpp:
3850 (WebCore::DOMWindow::sessionStorage):
3851 * page/Settings.cpp:
3852 (WebCore::Settings::Settings):
3853 (WebCore::Settings::setSessionStorageEnabled):
3855 (WebCore::Settings::sessionStorageEnabled):
3857 2009-11-05 Pavel Feldman <pfeldman@chromium.org>
3859 Reviewed by Timothy Hatcher.
3861 REGRESSION: Web Inspector doesn't show CSS rules properly for iframes
3863 https://bugs.webkit.org/show_bug.cgi?id=30884
3865 Test: inspector/styles-iframe.html
3867 * inspector/front-end/DOMAgent.js:
3868 (WebInspector.DOMNode):
3869 * inspector/front-end/InjectedScript.js:
3870 (InjectedScript.getStyles):
3871 (InjectedScript.getComputedStyle):
3872 (InjectedScript.addStyleSelector):
3873 * inspector/front-end/TestController.js:
3874 (WebInspector.TestController.prototype.notifyDone):
3875 (WebInspector.TestController.prototype.runAfterPendingDispatches):
3876 (WebInspector.evaluateForTestInFrontend.invokeMethod):
3877 (WebInspector.evaluateForTestInFrontend):
3879 2009-11-05 Vitaly Repeshko <vitalyr@chromium.org>
3881 Reviewed by Geoffrey Garen and Dimitri Glazkov.
3883 Rehashing of EventListenerMap leads to loss of EvenListenerList.
3884 https://bugs.webkit.org/show_bug.cgi?id=31027
3886 Tested by new fast/events/event-listener-map-rehash-crash.html.
3888 EventListenerMap modified to store pointers to listener vectors:
3889 * dom/EventTarget.cpp:
3890 (WebCore::EventTargetData::~EventTargetData):
3891 (WebCore::EventTarget::addEventListener):
3892 (WebCore::EventTarget::removeEventListener):
3893 (WebCore::EventTarget::fireEventListeners):
3894 (WebCore::EventTarget::getEventListeners):
3895 (WebCore::EventTarget::removeAllEventListeners):
3896 * dom/EventTarget.h:
3898 Usages updated after interface changes:
3899 * inspector/InspectorDOMAgent.cpp:
3900 (WebCore::InspectorDOMAgent::getEventListenersForNode):
3901 * svg/SVGUseElement.cpp:
3902 (WebCore::SVGUseElement::transferEventListenersToShadowTree):
3904 2009-11-05 Dan Kegel <dank@chromium.org>
3906 Reviewed by Dmitri Titov.
3908 Add missing initialization for m_createdByParser.
3909 https://bugs.webkit.org/show_bug.cgi?id=31089
3911 Test: fast/dom/beforeload/pi-before-load.xhtml in Valgrind
3913 * dom/ProcessingInstruction.cpp:
3914 (WebCore::ProcessingInstruction::ProcessingInstruction):
3916 2009-11-04 Jeremy Orlow <jorlow@chromium.org>
3918 Reviewed by Adam Barth.
3920 DOM Storage runtime flag changes
3921 https://bugs.webkit.org/show_bug.cgi?id=30602
3925 Revert my changes to Settings and instead implement DOM Storage enabling via
3926 the methods agreed upon in https://bugs.webkit.org/show_bug.cgi?id=30240
3928 This stuff was (intentionally) never exposed to web pages or DRT, so there's no
3929 LayoutTest visible changes and thus no tests.
3931 * bindings/v8/custom/V8CustomBinding.h:
3932 * bindings/v8/custom/V8DOMWindowCustom.cpp:
3933 (WebCore::ACCESSOR_RUNTIME_ENABLER):
3934 * page/DOMWindow.cpp:
3935 (WebCore::DOMWindow::sessionStorage):
3936 * page/DOMWindow.idl:
3937 * page/Settings.cpp:
3938 (WebCore::Settings::Settings):
3940 * storage/Storage.cpp:
3941 (WebCore::Storage::setLocalStorageAvailable):
3942 (WebCore::Storage::localStorageAvailable):
3943 (WebCore::Storage::setSessionStorageAvailable):
3944 (WebCore::Storage::sessionStorageAvailable):
3945 * storage/Storage.h:
3947 2009-11-05 Jian Li <jianli@chromium.org>
3949 Reviewed by Pavel Feldman.
3951 Bug 31108 - [V8] REGRESSION: Pause on exception is broken
3952 https://bugs.webkit.org/show_bug.cgi?id=31108
3954 * bindings/v8/V8AbstractEventListener.cpp:
3955 (WebCore::V8AbstractEventListener::invokeEventHandler):
3956 * bindings/v8/V8Utilities.cpp:
3957 (WebCore::reportException):
3959 2009-11-05 Jian Li <jianli@chromium.org>
3961 Reviewed by Dmitri Titov.
3963 We should not bubble up events if we drag something to an iframe that
3964 has an invalid source.
3965 https://bugs.webkit.org/show_bug.cgi?id=30469
3967 Test: http/tests/misc/bubble-drag-events.html
3969 * page/EventHandler.cpp:
3970 (WebCore::EventHandler::handleDragAndDropForTarget):
3971 (WebCore::EventHandler::updateDragAndDrop):
3972 (WebCore::EventHandler::cancelDragAndDrop):
3973 (WebCore::EventHandler::performDragAndDrop):
3974 * page/EventHandler.h:
3975 (WebCore::EventHandler::):
3977 2009-11-05 Pavel Feldman <pfeldman@chromium.org>
3979 Reviewed by Timothy Hatcher.
3981 Web Inspector: speed up Timelines Clear by a factor of thousands.
3983 https://bugs.webkit.org/show_bug.cgi?id=31160
3985 * inspector/front-end/utilities.js:
3986 (Element.prototype.removeChildren):
3988 2009-11-05 Anton Muhin <antonm@chromium.org>
3990 Reviewed by Adam Barth.
3992 If high memory usage is detected, hint to V8 that it might be due
3993 to external objects retained by V8 objects.
3994 https://bugs.webkit.org/show_bug.cgi?id=31051
3996 * bindings/v8/V8GCController.cpp:
3997 (WebCore::GetMemoryUsageInMB):
3998 (WebCore::V8GCController::gcEpilogue):
3999 (WebCore::V8GCController::checkMemoryUsage):
4000 * bindings/v8/V8GCController.h:
4001 * bindings/v8/V8Proxy.cpp:
4002 (WebCore::V8Proxy::evaluate):
4003 (WebCore::V8Proxy::runScript):
4004 (WebCore::V8Proxy::callFunction):
4006 2009-11-05 Jeff Schiller <codedread@gmail.com>
4008 Reviewed by Simon Fraser.
4010 Correct order of matrix multiplication for SVGMatrix.
4011 https://bugs.webkit.org/show_bug.cgi?id=16062
4013 Test: svg/dom/SVGMatrix-interface.xhtml
4015 * bindings/js/JSSVGMatrixCustom.cpp:
4016 (WebCore::JSSVGMatrix::multiply):
4017 * svg/SVGMatrix.idl:
4019 2009-11-04 Pavel Feldman <pfeldman@chromium.org>
4021 Reviewed by Timothy Hatcher.
4023 Web Inspector: Make resource-related records in timeline
4024 actually take some time.
4026 https://bugs.webkit.org/show_bug.cgi?id=31139
4028 * English.lproj/localizedStrings.js:
4029 * inspector/front-end/TimelinePanel.js:
4030 (WebInspector.TimelinePanel):
4031 (WebInspector.TimelinePanel.prototype._formatRecord):
4032 (WebInspector.TimelinePanel.prototype._getRecordDetails):
4033 (WebInspector.TimelinePanel.prototype.reset):
4035 2009-11-04 Jeremy Orlow <jorlow@chromium.org>
4037 Reviewed by Darin Fisher.
4039 Simplify LocalStorageThread
4040 https://bugs.webkit.org/show_bug.cgi?id=30935
4042 This is a re-submit of 50519. LocalStorageTask should have never been ref
4043 counted. I've removed that and switched a PassRefPtr over to a PassOwnPtr.
4045 On LocalStoragethread: Remove reference counting. Get rid of locking. Make some
4046 of the method names a bit more clear. Assert proper thread usage. Join rather
4047 than detaching the thread and doing an ad-hoc form of join. Avoid touching
4048 variables on the background thread when simple to do so. Also create a generic
4049 scheduleTask function rather than one for each task.
4051 No behavior should have changed.
4053 * storage/LocalStorageTask.h:
4054 * storage/LocalStorageThread.cpp:
4055 (WebCore::LocalStorageThread::create):
4056 (WebCore::LocalStorageThread::LocalStorageThread):
4057 (WebCore::LocalStorageThread::~LocalStorageThread):
4058 (WebCore::LocalStorageThread::start):
4059 (WebCore::LocalStorageThread::threadEntryPointCallback):
4060 (WebCore::LocalStorageThread::threadEntryPoint):
4061 (WebCore::LocalStorageThread::scheduleTask):
4062 (WebCore::LocalStorageThread::terminate):
4063 (WebCore::LocalStorageThread::performTerminate):
4064 * storage/LocalStorageThread.h:
4065 * storage/StorageSyncManager.cpp:
4066 (WebCore::StorageSyncManager::StorageSyncManager):
4067 (WebCore::StorageSyncManager::~StorageSyncManager):
4068 (WebCore::StorageSyncManager::scheduleImport):
4069 (WebCore::StorageSyncManager::scheduleSync):
4070 * storage/StorageSyncManager.h:
4072 2009-11-04 Jeremy Orlow <jorlow@chromium.org>
4074 Reviewed by Darin Fisher.
4076 Calling databaseIdentifier on LocalStorage's background thread is not safe.
4077 https://bugs.webkit.org/show_bug.cgi?id=31149
4079 Calling SecurityOrigin::databaseIdentifier on LocalStorage's background thread
4080 is not safe. databaseIdentifier does a bunch of string concatenation which
4081 ref-counts StringImpls in some cases. This was caught by valgrind thread
4082 sanitizer: http://code.google.com/p/chromium/issues/detail?id=25645
4084 There's no way to test for such racyness, unfortunately.
4086 * storage/StorageAreaSync.cpp:
4087 (WebCore::StorageAreaSync::StorageAreaSync):
4088 (WebCore::StorageAreaSync::performImport):
4089 * storage/StorageAreaSync.h:
4090 * storage/StorageSyncManager.cpp:
4091 (WebCore::StorageSyncManager::fullDatabaseFilename):
4092 * storage/StorageSyncManager.h:
4094 2009-11-03 Jeremy Orlow <jorlow@chromium.org>
4096 Reviewed by Darin Fisher.
4098 Clean up StorageAreaSync
4099 https://bugs.webkit.org/show_bug.cgi?id=31100
4101 Major fixes: Break the ref count cycle for StorageArea on the main
4102 thread, not the background thread since the latter is not safe.
4103 Length() needs to block on the import completing.
4105 Small fixes: setItem needs to handle the copy on write case even if it
4106 has an exception. setItem and removeItem should just bail from the
4107 the function if the value hasn't changed rather than wrapping the end
4108 in an if block. Clear should only send an event if it wasn't already
4109 cleared. StorageAreaSync should assert that the final sync was
4112 * storage/StorageAreaImpl.cpp:
4113 (WebCore::StorageAreaImpl::length):
4114 Forgot to block on the import.
4115 (WebCore::StorageAreaImpl::key):
4116 (WebCore::StorageAreaImpl::setItem):
4117 Handle the copy on write case even when there's an exception.
4118 (WebCore::StorageAreaImpl::removeItem):
4119 (WebCore::StorageAreaImpl::clear):
4120 * storage/StorageAreaSync.cpp:
4121 (WebCore::StorageAreaSync::~StorageAreaSync):
4122 (WebCore::StorageAreaSync::scheduleFinalSync):
4123 (WebCore::StorageAreaSync::performImport):
4124 (WebCore::StorageAreaSync::markImported):
4125 (WebCore::StorageAreaSync::blockUntilImportComplete):
4126 * storage/StorageAreaSync.h:
4128 2009-11-05 Zoltan Horvath <zoltan@webkit.org>
4130 Reviewed by Eric Seidel.
4132 Allow custom memory allocation control for WebCore's CachedResource
4133 https://bugs.webkit.org/show_bug.cgi?id=31114
4135 Inherits CachedResource class from Noncopyable because its (its child
4136 class) CachedCSSStyleSheet instantiated by 'new' in WebCore/loader/Cache.cpp:75
4137 and it is no need to be copyable.
4139 * loader/CachedResource.h:
4141 2009-11-04 Mark Mentovai <mark@chromium.org>
4143 Reviewed by Mark Rowe.
4145 Separate the difference between HAVE(CGINTERPOLATION_MEDIUM), which
4146 is true when building on 10.6 or later, and USE(CGINTERPOLATION_MEDIUM)
4147 which is true when targeting 10.6 or later.
4149 HAVE(CGINTERPOLATION_MEDIUM) indicates that kCGInterpolationMedium
4150 is present in the CGInterpolationQuality enum, and must be handled
4151 by a switch that has cases for each enumerated value.
4153 USE(CGINTERPOLATION_MEDIUM) indicates that the product will only run
4154 on 10.6 or later, and that CoreGraphics will understand when
4155 InterpolationMedium is mapped to kCGInterpolationMedium at runtime.
4157 * platform/graphics/cg/GraphicsContextCG.cpp:
4158 (WebCore::GraphicsContext::setImageInterpolationQuality):
4159 (WebCore::GraphicsContext::imageInterpolationQuality):
4161 2009-11-04 Dan Kegel <dank@chromium.org>
4163 Reviewed by Alexey Proskuryakov.
4165 Fix buffer overrun in WebCore::Page::userStyleSheetLocationChanged()
4166 https://bugs.webkit.org/show_bug.cgi?id=31138
4168 Test: LayoutTests/platform/mac/fast/loader/user-stylesheet-fast-path.html in Valgrind
4171 (WebCore::Page::userStyleSheetLocationChanged):
4173 2009-11-04 Timothy Hatcher <timothy@apple.com>
4175 Update the Web Inspector Timeline panel to better match the mock-up.
4177 https://bugs.webkit.org/show_bug.cgi?id=31150
4179 Reviewed by Pavel Feldman.
4181 * inspector/front-end/TimelinePanel.js:
4182 (WebInspector.TimelinePanel.prototype._getRecordDetails):
4183 (WebInspector.TimelinePanel.prototype._dragWindow):
4184 (WebInspector.TimelinePanel.prototype._resizeWindowLeft):
4185 (WebInspector.TimelinePanel.prototype._resizeWindowRight):
4186 (WebInspector.TimelineCategoryTreeElement.prototype.onattach):
4187 (WebInspector.TimelineRecordTreeElement.prototype.onattach):
4188 (WebInspector.TimelineRecordTreeElement.prototype.refresh):
4189 (WebInspector.TimelineCategoryGraph):
4190 * inspector/front-end/inspector.css:
4192 2009-11-05 Justin Garcia <justin.garcia@apple.com>
4194 Reviewed by Adele Peterson.
4196 https://bugs.webkit.org/show_bug.cgi?id=25439
4197 Deleting when in front of a block image removes character from previous paragraph
4199 Added editing/deleting/25439-{1,2,3}.html
4201 * editing/DeleteSelectionCommand.cpp:
4202 (WebCore::DeleteSelectionCommand::mergeParagraphs): Block images, tables and HRs cannot
4203 be made inline with other content. Instead of merging, just move the caret to just before
4204 the selection we deleted.
4205 * editing/htmlediting.cpp:
4206 (WebCore::firstInSpecialElement): Added a FIXME. This function begins iterating up from pos.node(), which
4207 doesn't necessarily contain pos (suppose pos was [img, 0]).
4208 (WebCore::lastInSpecialElement): Ditto.
4209 (WebCore::isRenderedAsNonInlineTableImageOrHR): Moved from visible_units.cpp. Added a check for non-inline images.
4210 * editing/htmlediting.h:
4211 * editing/visible_units.cpp:
4212 (WebCore::startOfParagraph): Use moved/renamed function. Removed FIXME. The problem causing
4213 5027702 is now squarely in first/lastInSpecialElement
4214 (WebCore::endOfParagraph): Ditto.
4216 2009-11-04 Enrica Casucci <enrica@apple.com>
4218 Reviewed by Adele Peterson.
4220 Hang in Mail on attempting to change indent level.
4221 <rdar://problem/7131805>
4222 https://bugs.webkit.org/show_bug.cgi?id=31127
4224 The hang was caused by an infinite loop inside outdentRegion.
4225 The code did not account for the fact that, when a list item
4226 contains multiple paragraphs, outdent moves all paragraphs at
4227 once, invalidating some of the positions we keep track of in the loop.
4228 Some code refactoring has also been done to minimize duplicated code.
4230 Test: editing/execCommand/outdent-multiparagraph-list.html
4232 * editing/IndentOutdentCommand.cpp:
4233 (WebCore::IndentOutdentCommand::indentRegion): Moved code in common with
4234 outdentRegion to doApply.
4235 (WebCore::IndentOutdentCommand::outdentRegion): Fixed endless loop.
4236 (WebCore::IndentOutdentCommand::doApply): Some code refactoring.
4237 * editing/IndentOutdentCommand.h: Added VisiblePosition parameters to
4238 indentRegion and outdentRegion.
4240 2009-11-04 Alpha Lam <hclam@chromium.org>
4242 Reviewed by Eric Carlson.
4244 Volume slider doesn't have a thumb
4245 https://bugs.webkit.org/show_bug.cgi?id=31135
4247 Fixed an incorrect if statement that prevents volume slider
4250 The statement checks if the slider value equals to the current
4251 volume value of the media control to avoid updating the volume
4252 slider. Updating the volume slider control shouldn't be within
4253 this condition because we explicitly set them to be equals
4254 during creation of the controls and also when mouse events are
4255 received on the volume control.
4257 No new tests because existing code breaks:
4258 LayoutTests/media/video-volume-slider.html
4260 It should now start passing on Chromium.
4262 * rendering/MediaControlElements.cpp:
4263 (WebCore::MediaControlVolumeSliderElement::update):
4264 Update the volume slider regardless of the current volume value
4265 of the media control.
4267 2009-11-04 Jenn Braithwaite <jennb@chromium.org>
4269 Reviewed by David Levin.
4271 Need to properly disable applicationCache at runtime
4272 https://bugs.webkit.org/show_bug.cgi?id=30417
4274 Adding applicationCacheEnabled bit to V8 RuntimeEnabledFeatures.
4276 No new exposed functionality, so no new tests.
4278 * bindings/v8/RuntimeEnabledFeatures.cpp:
4279 * bindings/v8/RuntimeEnabledFeatures.h:
4280 (WebCore::RuntimeEnabledFeatures::setApplicationCacheEnabled):
4281 (WebCore::RuntimeEnabledFeatures::applicationCacheEnabled):
4282 * bindings/v8/custom/V8CustomBinding.h:
4283 * bindings/v8/custom/V8DOMWindowCustom.cpp:
4284 (WebCore::ACCESSOR_RUNTIME_ENABLER):
4285 * page/DOMWindow.idl:
4287 2009-11-04 Alexey Proskuryakov <ap@apple.com>
4289 Reviewed by Dan Bernstein.
4291 https://bugs.webkit.org/show_bug.cgi?id=31143
4292 Assertion failure in CredentialStorage::set() when proxy credentials are being set
4294 No test, cannot test proxy behavior.