ac2525ce25a7fd5cade91da32db8e889d65a4645
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-10-21  Nat Duca  <nduca@chromium.org>
2
3         [chromium] Make setVisibility extension- and thread-correct
4         https://bugs.webkit.org/show_bug.cgi?id=70635
5
6         Reviewed by Kenneth Russell.
7
8         * platform/graphics/chromium/Extensions3DChromium.h:
9         * platform/graphics/chromium/LayerRendererChromium.cpp:
10         (WebCore::LayerRendererChromium::initialize):
11         (WebCore::LayerRendererChromium::setVisible):
12         * platform/graphics/chromium/LayerRendererChromium.h:
13         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
14         (WebCore::LayerRendererCapabilities::LayerRendererCapabilities):
15         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
16         (WebCore::CCLayerTreeHostImpl::setVisible):
17
18 2011-10-21  Beth Dakin  <bdakin@apple.com>
19
20         https://bugs.webkit.org/show_bug.cgi?id=70647
21         Common but unreproducible crash under [ScrollbarPartAnimation setCurrentProgress:]
22         -and corresponding-
23         <rdar://problem/9542018>
24
25         Reviewed by Sam Weinig.
26
27         This patch implements two speculative fixes for this crash.
28
29         First, block exceptions around all of the code responsible for calling 
30         stopAnimation. If that code throws any exceptions, we want to make sure the other 
31         animations are still stopped.
32         * platform/mac/ScrollAnimatorMac.mm:
33         (-[WebScrollbarPartAnimation scrollAnimatorDestroyed]):
34         (-[WebScrollbarPainterDelegate scrollAnimatorDestroyed]):
35         (WebCore::ScrollAnimatorMac::~ScrollAnimatorMac):
36
37         Only send AppKit these notifications for active pages. I originally made these 
38         assertions, and I found that they were hit a surprising number of times. If we 
39         only send notifications for active pages, then we should greatly reduce and 
40         possibly eliminate our chances of hitting this crash.
41         (WebCore::ScrollAnimatorMac::notifyPositionChanged):
42         (WebCore::ScrollAnimatorMac::contentAreaWillPaint):
43         (WebCore::ScrollAnimatorMac::mouseEnteredContentArea):
44         (WebCore::ScrollAnimatorMac::mouseExitedContentArea):
45         (WebCore::ScrollAnimatorMac::mouseMovedInContentArea):
46         (WebCore::ScrollAnimatorMac::willStartLiveResize):
47         (WebCore::ScrollAnimatorMac::contentsResized):
48         (WebCore::ScrollAnimatorMac::willEndLiveResize):
49         (WebCore::ScrollAnimatorMac::contentAreaDidShow):
50         (WebCore::ScrollAnimatorMac::contentAreaDidHide):
51         (WebCore::ScrollAnimatorMac::didBeginScrollGesture):
52         (WebCore::ScrollAnimatorMac::didEndScrollGesture):
53
54 2011-10-21  Mark Hahnenberg  <mhahnenberg@apple.com>
55
56         Add put to the MethodTable
57         https://bugs.webkit.org/show_bug.cgi?id=70439
58
59         Reviewed by Oliver Hunt.
60
61         No new tests.
62
63         * WebCore.exp.in:
64         * bindings/js/JSDOMWindowCustom.cpp: Added static put since it was overlooked in 
65         previous patches.
66         (WebCore::JSDOMWindow::putVirtual):
67         (WebCore::JSDOMWindow::put):
68         * bindings/js/JSDOMWindowShell.cpp: Ditto.
69         (WebCore::JSDOMWindowShell::putVirtual):
70         (WebCore::JSDOMWindowShell::put):
71         * bindings/js/JSDOMWindowShell.h:
72
73 2011-10-21  Dmitry Lomov  <dslomov@google.com>
74
75         https://bugs.webkit.org/show_bug.cgi?id=70580
76         [Chromium] Implement MessagePort transfer in chromium port of webkit.
77
78         Reviewed by David Levin.
79
80         * bindings/v8/SerializedScriptValue.cpp:
81         (WebCore::V8ObjectMap::Writer::writeTransferredMessagePort):
82         (WebCore::V8ObjectMap::Serializer::Serializer):
83         (WebCore::V8ObjectMap::Serializer::doSerialize):
84         (WebCore::V8ObjectMap::Reader::read):
85         (WebCore::V8ObjectMap::Deserializer::Deserializer):
86         (WebCore::V8ObjectMap::Deserializer::tryGetTransferredMessagePort):
87         (WebCore::SerializedScriptValue::SerializedScriptValue):
88         (WebCore::SerializedScriptValue::deserialize):
89
90 2011-10-21  Ojan Vafai  <ojan@chromium.org>
91
92         r97693 caused 42 failures on the chromium mac bots
93         https://bugs.webkit.org/show_bug.cgi?id=70300
94
95         Can't test this until https://bugs.webkit.org/show_bug.cgi?id=70660
96         is fixed. The fix for that bug will test this codepath as well though.
97
98         * rendering/RenderBlock.cpp:
99         (WebCore::RenderBlock::computeBlockPreferredLogicalWidths):
100
101 2011-10-21  Vineet Chaudhary  <vineet.chaudhary@motorola.com>
102
103         Setting form.enctype reflected attribute behaves strangely.
104         https://bugs.webkit.org/show_bug.cgi?id=44879
105
106         Reviewed by Darin Adler.
107
108         The spec says form.enctype should be application/x-www-form-urlencoded,
109         So as "text", "plain", "multipart" or "form-data" these are not a valid value so must be ignored.
110
111         * loader/FormSubmission.cpp:
112         (WebCore::FormSubmission::Attributes::parseEncodingType):
113
114 2011-10-21  Matthew Delaney  <mdelaney@apple.com>
115
116         Ensure periodic flushing of canvas drawing context
117         https://bugs.webkit.org/show_bug.cgi?id=70646
118
119         Reviewed by Simon Fraser.
120
121         No new tests. No current way to track tests that cause hangs or
122         non-deterministic drops in performance.
123
124         * platform/graphics/cg/ImageBufferDataCG.h: Adds a timestamp of last tracked flush.
125         * platform/graphics/cg/ImageBufferCG.cpp: Ensures periodic flushes on the drawing context.
126         (WebCore::ImageBuffer::ImageBuffer):
127         (WebCore::ImageBuffer::context): Flushes context if we're beyond flush interval.
128         (WebCore::ImageBuffer::copyNativeImage): Updates last flush timestamp.
129         (WebCore::ImageBuffer::getUnmultipliedImageData): Updates last flush timestamp.
130         (WebCore::ImageBuffer::getPremultipliedImageData): Updates last flush timestamp.
131         (WebCore::ImageBuffer::putUnmultipliedImageData): Updates last flush timestamp.
132         (WebCore::ImageBuffer::putPremultipliedImageData): Updates last flush timestamp.
133
134 2011-10-21  Adam Barth  <abarth@webkit.org>
135
136         Introduce Event::hasInterface to make uses of interfaceName more readable
137         https://bugs.webkit.org/show_bug.cgi?id=70652
138
139         Reviewed by Eric Seidel.
140
141         Eric felt that this approach would be more readable because it requires
142         less syntax at each callsite.
143
144         * bindings/js/JSErrorHandler.cpp:
145         (WebCore::JSErrorHandler::handleEvent):
146         * bindings/objc/DOMEvents.mm:
147         (kitClass):
148         * bindings/v8/V8WindowErrorHandler.cpp:
149         (WebCore::V8WindowErrorHandler::callListenerFunction):
150         * bindings/v8/V8WorkerContextErrorHandler.cpp:
151         (WebCore::V8WorkerContextErrorHandler::callListenerFunction):
152         * dom/Event.cpp:
153         (WebCore::Event::hasInterface):
154         * dom/Event.h:
155         * dom/EventDispatcher.cpp:
156         (WebCore::EventDispatcher::determineDispatchBehavior):
157         * dom/Node.cpp:
158         (WebCore::Node::defaultEventHandler):
159         * html/HTMLInputElement.cpp:
160         (WebCore::HTMLInputElement::defaultEventHandler):
161         * html/HTMLTextAreaElement.cpp:
162         (WebCore::HTMLTextAreaElement::defaultEventHandler):
163         * html/TextFieldInputType.cpp:
164         (WebCore::TextFieldInputType::forwardEvent):
165         (WebCore::TextFieldInputType::shouldSubmitImplicitly):
166         * inspector/InspectorDOMStorageResource.cpp:
167         (WebCore::InspectorDOMStorageResource::handleEvent):
168
169 2011-10-21  Adam Klein  <adamk@chromium.org>
170
171         [MutationObservers] Implement basic subtree observation
172         https://bugs.webkit.org/show_bug.cgi?id=70436
173
174         Reviewed by Ryosuke Niwa.
175
176         Note that this patch only implements "basic" subtree semantics,
177         not the fully robust semantics described in
178         http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1622.html.
179         Most importantly, this change does not handle the case where mutations
180         occur in a temporarily detached subtree.
181
182         The plan is to implement those semantics in a followup to avoid
183         blocking other parts of the MutationObserver spec that rely on
184         the existence of subtree observation but not its specific
185         implementation.
186
187         Test: fast/mutation/observe-subtree.html
188
189         * dom/Node.cpp:
190         (WebCore::addMatchingObservers): Static helper method for registeredMutationObserversOfType().
191         (WebCore::Node::registeredMutationObserversOfType): Walk up the tree looking for observers.
192         * dom/NodeRareData.h:
193         (WebCore::MutationObserverEntry::hasAllOptions): A stricter, renamed from matches().
194
195 2011-10-21  Joshua Bell  <jsbell@chromium.org>
196
197         IndexedDB: objectStore.transaction property should be readonly
198         https://bugs.webkit.org/show_bug.cgi?id=62395
199
200         Reviewed by Tony Chang.
201
202         Implement the IDBObjectStore.transaction property defined by the spec.
203
204         Test: storage/indexeddb/readonly-properties.html
205
206         * storage/IDBObjectStore.cpp:
207         (WebCore::IDBObjectStore::transaction):
208         * storage/IDBObjectStore.h:
209         * storage/IDBObjectStore.idl:
210
211 2011-10-21  Adam Barth  <abarth@webkit.org>
212
213         Event.h has too many virtual isMumbleEvent() functions
214         https://bugs.webkit.org/show_bug.cgi?id=70636
215
216         Reviewed by Dimitri Glazkov.
217
218         We should use the new interfaceName() way of doing run-time type inference.
219
220         * bindings/js/JSErrorHandler.cpp:
221         (WebCore::JSErrorHandler::handleEvent):
222         * bindings/js/JSEventCustom.cpp:
223         (WebCore::JSEvent::clipboardData):
224         * bindings/objc/DOMEvents.mm:
225         (kitClass):
226         * bindings/v8/V8WindowErrorHandler.cpp:
227         (WebCore::V8WindowErrorHandler::callListenerFunction):
228         * bindings/v8/V8WorkerContextErrorHandler.cpp:
229         (WebCore::V8WorkerContextErrorHandler::callListenerFunction):
230         * bindings/v8/custom/V8EventCustom.cpp:
231         (WebCore::V8Event::clipboardDataAccessorGetter):
232         * dom/BeforeLoadEvent.h:
233         (WebCore::BeforeLoadEvent::interfaceName):
234         * dom/BeforeTextInsertedEvent.h:
235         * dom/ClipboardEvent.cpp:
236         * dom/ClipboardEvent.h:
237         * dom/CompositionEvent.cpp:
238         * dom/CompositionEvent.h:
239         * dom/ErrorEvent.cpp:
240         * dom/ErrorEvent.h:
241         * dom/Event.cpp:
242         (WebCore::Event::storesResultAsString):
243         (WebCore::Event::storeResult):
244         (WebCore::Event::clipboardData):
245         * dom/Event.h:
246         * dom/Event.idl:
247             - Remove this interface from the CPP bindings because this function
248               no longer exists.  It's unclear to me how strong our API
249               commitments are in the CPP bindings.
250         * dom/EventDispatcher.cpp:
251         (WebCore::EventDispatcher::determineDispatchBehavior):
252         * dom/MessageEvent.cpp:
253         * dom/MessageEvent.h:
254         * dom/MutationEvent.cpp:
255         * dom/MutationEvent.h:
256         * dom/Node.cpp:
257         (WebCore::Node::defaultEventHandler):
258         * dom/OverflowEvent.cpp:
259         * dom/OverflowEvent.h:
260         * dom/PageTransitionEvent.h:
261         * dom/ProgressEvent.h:
262         * dom/TextEvent.cpp:
263         * dom/TextEvent.h:
264         * dom/WheelEvent.cpp:
265         * dom/WheelEvent.h:
266         * html/HTMLInputElement.cpp:
267         (WebCore::HTMLInputElement::defaultEventHandler):
268         * html/HTMLTextAreaElement.cpp:
269         (WebCore::HTMLTextAreaElement::defaultEventHandler):
270         * html/TextFieldInputType.cpp:
271         (WebCore::TextFieldInputType::forwardEvent):
272         (WebCore::TextFieldInputType::shouldSubmitImplicitly):
273         * html/shadow/TextControlInnerElements.cpp:
274         (WebCore::TextControlInnerTextElement::defaultEventHandler):
275         * svg/SVGZoomEvent.cpp:
276         * svg/SVGZoomEvent.h:
277
278 2011-10-21  Raymond Toy  <rtoy@google.com>
279
280         Flush denormals in Biquad, ZeroPole, and DynamicsCompressor.
281
282         We only flush when saving the state variables instead of in the
283         loops so that we don't impact performance too much when there are
284         no denormals.  This will at least not propagate the denormals any
285         further within the class.
286         
287         https://bugs.webkit.org/show_bug.cgi?id=70626
288
289         Reviewed by Kenneth Russell.
290
291         * platform/audio/Biquad.cpp:
292         (WebCore::Biquad::process):
293         Flush denormals when storing the filter state back in to class
294         filter state.  
295         * platform/audio/DynamicsCompressorKernel.cpp:
296         (WebCore::DynamicsCompressorKernel::process):
297         Ditto.
298         * platform/audio/ZeroPole.cpp:
299         (WebCore::ZeroPole::process):
300         Ditto.
301
302 2011-10-21  Vsevolod Vlasov  <vsevik@chromium.org>
303
304         Web Inspector: Advanced search results should be cleared on navigation.
305         https://bugs.webkit.org/show_bug.cgi?id=70627
306
307         Reviewed by Pavel Feldman.
308
309         * inspector/front-end/AdvancedSearchController.js:
310         (WebInspector.AdvancedSearchController):
311         (WebInspector.AdvancedSearchController.prototype._frameNavigated):
312
313 2011-10-21  Rafael Weinstein  <rafaelw@chromium.org>
314
315         [MutationObservers] Implement WebKitMutationObserver.observe for childList changes
316         https://bugs.webkit.org/show_bug.cgi?id=68955
317
318         Reviewed by Ryosuke Niwa.
319
320         This patch adds a ChildListMutationScope object which manages the coalescing of
321         multiple child removals and additions within DOM operations into single childList
322         mutation records.
323
324         Note that this patch doesn't cover all the cases which can be coalesced (it only
325         covers ContainerNode.*, and Node.innerHTML/innerText). A separate bug,
326         https://bugs.webkit.org/show_bug.cgi?id=70385, has been opened to track the
327         remaining cases.
328
329         Test: fast/mutation/observe-childList.html
330
331         * CMakeLists.txt:
332         * GNUmakefile.list.am:
333         * WebCore.gypi:
334         * WebCore.pro:
335         * WebCore.vcproj/WebCore.vcproj:
336         * WebCore.xcodeproj/project.pbxproj:
337         * dom/ChildListMutationScope.cpp: Added.
338         (WebCore::ChildListAccumulation::ChildListAccumulation::ChildListAccumulation):
339         (WebCore::ChildListAccumulation::ChildListAccumulation::~ChildListAccumulation):
340         (WebCore::ChildListAccumulation::ChildListAccumulation::childAdded):
341         (WebCore::ChildListAccumulation::ChildListAccumulation::willRemoveChild):
342         (WebCore::ChildListAccumulation::ChildListAccumulation::dispatch):
343         (WebCore::ChildListAccumulation::ChildListAccumulation::clear):
344         (WebCore::ChildListAccumulation::ChildListAccumulation::isEmpty):
345         (WebCore::ChildListAccumulation::ChildListAccumulator::ChildListAccumulator):
346         (WebCore::ChildListAccumulation::ChildListAccumulator::~ChildListAccumulator):
347         (WebCore::ChildListAccumulation::ChildListAccumulator::initialize):
348         (WebCore::ChildListAccumulation::ChildListAccumulator::instance):
349         (WebCore::ChildListAccumulation::ChildListAccumulator::childAdded):
350         (WebCore::ChildListAccumulation::ChildListAccumulator::willRemoveChild):
351         (WebCore::ChildListAccumulation::ChildListAccumulator::incrementScopingLevel):
352         (WebCore::ChildListAccumulation::ChildListAccumulator::decrementScopingLevel):
353         (WebCore::ChildListMutationScope::ChildListMutationScope):
354         (WebCore::ChildListMutationScope::~ChildListMutationScope):
355         (WebCore::ChildListMutationScope::childAdded):
356         (WebCore::ChildListMutationScope::willRemoveChild):
357         * dom/ChildListMutationScope.h: Added.
358         * dom/ContainerNode.cpp:
359         (WebCore::ContainerNode::insertBefore):
360         (WebCore::ContainerNode::replaceChild):
361         (WebCore::willRemoveChildren):
362         (WebCore::dispatchChildInsertionEvents):
363         (WebCore::dispatchChildRemovalEvents):
364         * dom/Element.cpp:
365         (WebCore::enqueueAttributesMutationRecord):
366         * dom/Node.cpp:
367         (WebCore::Node::setTextContent):
368         (WebCore::Node::registeredMutationObserversOfType):
369         * dom/WebKitMutationObserver.cpp:
370         (WebCore::WebKitMutationObserver::disconnect):
371         * html/HTMLElement.cpp:
372         (WebCore::replaceChildrenWithFragment):
373         (WebCore::replaceChildrenWithText):
374
375 2011-10-21  Sheriff Bot  <webkit.review.bot@gmail.com>
376
377         Unreviewed, rolling out r98079.
378         http://trac.webkit.org/changeset/98079
379         https://bugs.webkit.org/show_bug.cgi?id=70624
380
381         The extensions tests enabled are failing on the Chromium Win
382         Dbg bot (Requested by jchaffraix on #webkit).
383
384         * inspector/front-end/ExtensionAPI.js:
385         (buildExtensionAPIInjectedScript):
386
387 2011-10-21  Dan Bernstein  <mitz@apple.com>
388
389         Column rules positioned incorrectly in vertical-rl block with horizontal border or padding
390         https://bugs.webkit.org/show_bug.cgi?id=70622
391
392         Reviewed by Beth Dakin.
393
394         Tests: fast/multicol/vertical-lr/rules-with-border-before.html
395                fast/multicol/vertical-rl/rules-with-border-before.html
396
397         * rendering/RenderBlock.cpp:
398         (WebCore::RenderBlock::paintColumnRules): Changed to use the physical left border and padding for the
399         left edge of the horizontal column rule.
400
401 2011-10-21  Simon Fraser  <simon.fraser@apple.com>
402
403         Fix Windows build.
404
405         * rendering/RenderLayerCompositor.cpp:
406         (WebCore::RenderLayerCompositor::hasAnyAdditionalCompositedLayers):
407
408 2011-10-21  Devdatta Deshpande  <pwjd73@motorola.com>
409
410         [Gtk] mousemove event always has metaKey == true
411         https://bugs.webkit.org/show_bug.cgi?id=35299
412
413         Reviewed by Martin Robinson.
414
415         GDK_MOD2_MASK doesn't always mean meta so we can't use it to identify
416         the meta key state. Use GDK_META_MASK instead.
417
418         Test: platform/gtk/fast/events/event-sender-metakey.html
419
420         * platform/gtk/PlatformMouseEventGtk.cpp:
421         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
422
423 2011-10-21  Andreas Kling  <kling@webkit.org>
424
425         Style and Link elements' sheet() should return CSSStyleSheet.
426         https://bugs.webkit.org/show_bug.cgi?id=70608
427
428         Reviewed by Antti Koivisto.
429
430         Return a CSSStyleSheet* instead of a StyleSheet* in these functions
431         since we know they are always CSSStyleSheets.
432         Also remove some now-unnecessary isCSSStyleSheet() checks.
433
434         * dom/StyleElement.h:
435         (WebCore::StyleElement::sheet):
436         * html/HTMLLinkElement.cpp:
437         * html/HTMLLinkElement.h:
438         (WebCore::HTMLLinkElement::sheet):
439         * page/PageSerializer.cpp:
440         (WebCore::PageSerializer::serializeFrame):
441
442 2011-10-21  Vsevolod Vlasov  <vsevik@chromium.org>
443
444         Web Inspector: Advanced search is working very slowly and does not show searching progress.
445         https://bugs.webkit.org/show_bug.cgi?id=70611
446
447         Search implementation changed so that we do not start searching in the next file unless
448         the previous one was already searched. This allows to interrupt search.
449         Not all search matches are added on UI by default now, only first 20 for each file.
450         Search progress information and search stop button were added to drawer status bar.
451
452         Reviewed by Pavel Feldman.
453
454         * English.lproj/localizedStrings.js:
455         * inspector/ContentSearchUtils.cpp:
456         (WebCore::ContentSearchUtils::getRegularExpressionMatchesByLines):
457         (WebCore::ContentSearchUtils::countRegularExpressionMatches):
458         * inspector/front-end/AdvancedSearchController.js:
459         (WebInspector.AdvancedSearchController.prototype._onSearchResult):
460         (WebInspector.AdvancedSearchController.prototype._onSearchFinished):
461         (WebInspector.AdvancedSearchController.prototype.startSearch):
462         (WebInspector.AdvancedSearchController.prototype.resetSearch):
463         (WebInspector.AdvancedSearchController.prototype.stopSearch):
464         (WebInspector.SearchView):
465         (WebInspector.SearchView.prototype.get statusBarItems):
466         (WebInspector.SearchView.prototype.get counterElement):
467         (WebInspector.SearchView.prototype.set resultsPane):
468         (WebInspector.SearchView.prototype.searchStarted):
469         (WebInspector.SearchView.prototype._updateSearchResultsMessage):
470         (WebInspector.SearchView.prototype._updateSearchProgress):
471         (WebInspector.SearchView.prototype.resetResults):
472         (WebInspector.SearchView.prototype._resetCounters):
473         (WebInspector.SearchView.prototype.nothingFound):
474         (WebInspector.SearchView.prototype.addSearchResult):
475         (WebInspector.SearchView.prototype.searchFinished):
476         (WebInspector.SearchView.prototype._searchStopButtonPressed):
477         (WebInspector.SearchResultsPane):
478         (WebInspector.FileBasedSearchResultsPane):
479         (WebInspector.FileBasedSearchResultsPane.prototype.addSearchResult):
480         (WebInspector.FileBasedSearchResultsPane.prototype._fileTreeElementExpanded):
481         (WebInspector.FileBasedSearchResultsPane.prototype._appendSearchMatches):
482         (WebInspector.FileBasedSearchResultsPane.prototype._appendShowMoreMatchesElement):
483         (WebInspector.FileBasedSearchResultsPane.prototype._showMoreMatchesElementSelected):
484         (WebInspector.FileBasedSearchResultsPane.prototype._addFileTreeElement):
485         (WebInspector.FileBasedSearchResultsPane.prototype._regexMatchRanges):
486         * inspector/front-end/Drawer.js:
487         (WebInspector.Drawer.prototype.hide):
488         * inspector/front-end/Images/statusbarButtonGlyphs.png:
489         * inspector/front-end/ScriptsSearchScope.js:
490         (WebInspector.ScriptsSearchScope):
491         (WebInspector.ScriptsSearchScope.prototype.performSearch.filterOutContentScripts):
492         (WebInspector.ScriptsSearchScope.prototype.performSearch.continueSearch):
493         (WebInspector.ScriptsSearchScope.prototype.performSearch.searchCallbackWrapper):
494         (WebInspector.ScriptsSearchScope.prototype.performSearch):
495         (WebInspector.ScriptsSearchScope.prototype.stopSearch):
496         * inspector/front-end/TimelinePanel.js:
497         (WebInspector.TimelinePanel.prototype._registerShortcuts):
498         * inspector/front-end/inspector.css:
499         (#drawer-status-bar .search-status-bar-item):
500         (#drawer-status-bar .search-status-bar-message):
501         (#drawer-status-bar .search-status-bar-progress):
502         (#drawer-status-bar .search-status-bar-stop-button-item):
503         (#drawer-status-bar .search-status-bar-stop-button .glyph):
504         (#drawer-status-bar .search-results-status-bar-message):
505         (.search-view .search-results):
506         (#search-results-pane-file-based .search-results-outline-disclosure):
507         (#search-results-pane-file-based .search-result):
508         (#search-results-pane-file-based .search-result:hover):
509         (#search-results-pane-file-based .show-more-matches):
510         (#search-results-pane-file-based .show-more-matches:hover):
511         (#search-results-pane-file-based .search-match:hover):
512         * inspector/front-end/utilities.js:
513         ():
514
515 2011-10-20  Zhenyao Mo  <zmo@google.com>
516
517         Implement mechanism to enable privileged webgl extensions
518         https://bugs.webkit.org/show_bug.cgi?id=70538
519
520         Reviewed by Darin Fisher.
521
522         * html/canvas/WebGLRenderingContext.cpp:
523         (WebCore::WebGLRenderingContext::allowPrivilegedExtensions): check page/Settings flag.
524         * page/Settings.cpp: Add the flag.
525         (WebCore::Settings::Settings):
526         (WebCore::Settings::setPrivilegedWebGLExtensionsEnabled):
527         * page/Settings.h: Ditto.
528         (WebCore::Settings::privilegedWebGLExtensionsEnabled):
529
530 2011-10-20  Pavel Podivilov  <podivilov@chromium.org>
531
532         Web Inspector: first line in file is not highlighted.
533         https://bugs.webkit.org/show_bug.cgi?id=70504
534
535         Reviewed by Pavel Feldman.
536
537         * inspector/front-end/SourceFrame.js:
538         (WebInspector.SourceFrame.prototype._initializeTextViewer):
539
540 2011-10-21  Andreas Kling  <kling@webkit.org>
541
542         Simplify CSSStyleRule::setSelectorText().
543         https://bugs.webkit.org/show_bug.cgi?id=70607
544
545         Reviewed by Antti Koivisto.
546
547         Remove unnecessary isCSSStyleSheet() check and redundant Document finding
548         logic (CSSStyleSheet::document() will return the owner node's Document just
549         like this code would.)
550
551         * css/CSSStyleRule.cpp:
552         (WebCore::CSSStyleRule::setSelectorText):
553
554 2011-10-21  Alejandro G. Castro  <alex@igalia.com>
555
556         [cairo] Forward declaration of GraphicsContextState uses class instead of struct
557         https://bugs.webkit.org/show_bug.cgi?id=70522
558
559         The type is a struct not a class, replace the definition in the
560         forward declaration.
561
562         Reviewed by Martin Robinson.
563
564         * platform/graphics/cairo/PlatformContextCairo.h:
565
566 2011-10-20  Andrey Kosyakov  <caseq@chromium.org>
567
568         Web Inspector: make extension tests pass on chromium
569         https://bugs.webkit.org/show_bug.cgi?id=70334
570
571         Reviewed by Pavel Feldman.
572
573         * inspector/front-end/ExtensionAPI.js:
574         (buildExtensionAPIInjectedScript):
575
576 2011-10-20  Peter Rybin  <peter.rybin@gmail.com>
577
578         Web Inspector: reimplement protocol backend/frontend source generator
579         https://bugs.webkit.org/show_bug.cgi?id=69295
580
581         Reviewed by Pavel Feldman.
582
583         Old 2-stage python+perf generator that uses intermediate IDL output is
584         being replaced with a solid python script. This is for simplicity and
585         as a base for the future JSON validator.
586
587         * CMakeLists.txt:
588         * CodeGenerators.pri:
589         * DerivedSources.make:
590         * GNUmakefile.am:
591         * WebCore.gyp/WebCore.gyp:
592         * inspector/CodeGeneratorInspector.pm: Removed.
593         * inspector/CodeGeneratorInspector.py: Added.
594         * inspector/Inspector.json:
595         * inspector/generate-inspector-idl: Removed.
596
597 2011-10-20  Adam Barth  <abarth@webkit.org>
598
599         Attemp to fix a bunch of tests PLATFORM(MAC).  We can't use a static
600         map because that's shared between threads (and events exist in worker
601         threads).  It migh be better to add a thread-specific map, but we can
602         do that in another patch.
603
604         * bindings/js/JSEventCustom.cpp:
605         (WebCore::toJS):
606         * bindings/v8/custom/V8EventCustom.cpp:
607         (WebCore::toV8):
608
609 2011-10-20  Simon Fraser  <simon.fraser@apple.com>
610
611         Hidden composited iframes cause infinite loop
612         https://bugs.webkit.org/show_bug.cgi?id=52655
613
614         Reviewed by Darin Adler.
615         
616         visibility:hidden is problematic for compositing, because it causes
617         RenderLayers to be removed from the z-order layer tree. This confuses
618         RenderLayerCompositor in several ways; it never sees these layers
619         when traversing the tree as it computes compositing requirements, or
620         rebuilds the layer tree.
621         
622         This is a particular problem with composited iframes. When an iframe
623         becomes composited, scheduleSetNeedsStyleRecalc() is called on that
624         iframe's ownerElement in the parent document. If this happens inside
625         Document::updateStyleForAllDocuments(), we get into an infinite loop
626         because notifyIFramesOfCompositingChange() queues up style update as we
627         bounce in and out of compositing mode, so documentsThatNeedStyleRecalc
628         never empties out.
629         
630         This is an initial, conservative fix that doesn't attempt to fix all
631         the issues with visibility. It changes RenderLayerCompositor to count
632         the number of compositing RenderLayers, and to not leave compositing
633         mode if there are any (even if they are hidden, so not hit while
634         traversing the z-order tree). This avoids the infinite loop.
635
636         Test: compositing/visibility/hidden-iframe.html
637
638         * rendering/RenderLayer.cpp:
639         (WebCore::RenderLayer::ensureBacking):
640         (WebCore::RenderLayer::clearBacking):
641         * rendering/RenderLayerCompositor.cpp:
642         (WebCore::RenderLayerCompositor::RenderLayerCompositor):
643         (WebCore::RenderLayerCompositor::hasAnyAdditionalCompositedLayers):
644         (WebCore::RenderLayerCompositor::updateCompositingLayers):
645         (WebCore::RenderLayerCompositor::computeCompositingRequirements):
646         * rendering/RenderLayerCompositor.h:
647         (WebCore::RenderLayerCompositor::layerBecameComposited):
648         (WebCore::RenderLayerCompositor::layerBecameNonComposited):
649
650 2011-10-20  Antoine Labour  <piman@chromium.org>
651
652         Make WebCore depend on translator_glsl instead of translator_common
653         https://bugs.webkit.org/show_bug.cgi?id=70548
654
655         Reviewed by Kenneth Russell.
656
657         This is a build-only fix. Tested by checking WebKit still compiles and
658         link.
659
660         * WebCore.gyp/WebCore.gyp:
661
662 2011-10-20  Dana Jansens  <danakj@chromium.org>
663
664         [Chromium] Fix opaque flag default and for ImageLayerChromium
665         https://bugs.webkit.org/show_bug.cgi?id=70554
666
667         Reviewed by James Robinson.
668
669         Covered by layout tests.
670
671         * platform/graphics/chromium/ImageLayerChromium.cpp:
672         (WebCore::ImageLayerChromium::setContents): Set opaque flag based on if the image claims to have alpha.
673         * platform/graphics/chromium/LayerChromium.cpp:
674         (WebCore::LayerChromium::LayerChromium): Match the default opaque value in GraphicsLayerChromium.
675
676 2011-10-20  Yosifumi Inoue  <yosin@chromium.org>
677
678         [Forms][File] Add tooltip to "No file selected" text
679         https://bugs.webkit.org/show_bug.cgi?id=70474
680
681         Reviewed by Kent Tamura.
682
683         No new tests. Existing tests cover all changes.
684
685         This patch provides tooltip for text portion of upload file control
686         tell users to know actual text of truncated text of file name and
687         "No file selected" text. Tooltip is always displayed even if user
688         select only one file for truncated displayed file name.
689
690         * html/FileInputType.cpp:
691         (WebCore::FileInputType::defaultToolTip): Implement default tooltip logic.
692         * html/FileInputType.h: declaration of new method defaultToolTip.
693         * html/HTMLInputElement.cpp:
694         (WebCore::HTMLInputElement::defaultToolTip): Impelement new method defaultToolTip.
695         * html/HTMLInputElement.h: declaration of new method defaultToolTip.
696         * html/InputType.cpp:
697         (WebCore::InputType::defaultToolTip): Implement default method of defaultToolTip method.
698         * html/InputType.h: declaration of new method defaultToolTip.
699         * page/Chrome.cpp:
700         (WebCore::Chrome::setToolTip): Use new method HTMLInputElement::defaultToolTip and move default tooltip logic to FileInputType::defaultToolTip method.
701
702 2011-10-20  Darin Adler  <darin@apple.com>
703
704         Remove OptionElement (first half)
705         https://bugs.webkit.org/show_bug.cgi?id=70276
706
707         Reviewed by Kent Tamura.
708
709         Refactoring that does not require new tests.
710
711         * css/SelectorChecker.cpp:
712         (WebCore::SelectorChecker::checkOneSelector): Use hasTagName
713         and toHTMLOptionElement instead of toOptionElement.
714
715         * dom/OptionElement.cpp: Deleted contents. Remove file later.
716         * dom/OptionElement.h: Ditto.
717
718         * html/HTMLOptionElement.cpp:
719         (WebCore::HTMLOptionElement::HTMLOptionElement): Initialize m_isSelected.
720         (WebCore::HTMLOptionElement::createForJSConstructor): Initialize the
721         selected attribute rather than calling setDefaultSelected.
722         (WebCore::HTMLOptionElement::text): Moved the code here from
723         OptionElement::collectOptionLabelOrText.
724         (WebCore::HTMLOptionElement::index): Moved the code here from
725         OptionElement::optionIndex.
726         (WebCore::HTMLOptionElement::parseMappedAttribute): Removed unneeded
727         code to call setValue and setLabel. Changed the code that called
728         setSelected to instead set m_isSelected and added a FIXME about why
729         that's probably wrong, but same behavior as before.
730         (WebCore::HTMLOptionElement::value): Moved the code here from
731         OptionElement::collectOptionValue. Added a FIXME about incorrect
732         whitespace stripping.
733         (WebCore::HTMLOptionElement::selected): Use m_isSelected.
734         (WebCore::HTMLOptionElement::setSelected): Use m_isSelected and
735         call setSelectedState instead of OptionElement::setSelectedState.
736         (WebCore::HTMLOptionElement::setSelectedState): Moved the code
737         here from OptionElement::setSelectedState.
738         (WebCore::HTMLOptionElement::label): Streamlined the code.
739         (WebCore::HTMLOptionElement::textIndentedToRespectGroupLabel):
740         Moved the code here from OptionElement::collectOptionTextRespectingGroupLabel.
741         (WebCore::HTMLOptionElement::insertedIntoTree): Use m_isSelected
742         and rewrote comment for clarity.
743         (WebCore::HTMLOptionElement::collectOptionInnerText): Moved this
744         here from OptionElement, and changed to use StringBuilder.
745         (WebCore::toHTMLOptionElement): Added.
746
747         * html/HTMLOptionElement.h: Removed OptionElement.h include.
748         Removed OptionElement base class. Removed unneeded friend declarations.
749         Made value and selected functions non-virtual. Removed unneeded
750         defaultSelected and setDefaultSelected functions. Made the
751         textIndentedToRespectGroupLabel and setSelectedState functions
752         be non-virtual and public. Added a collectOptionInnerText function.
753         Replaced m_data with m_value, m_label, and m_selected.
754
755         * html/HTMLSelectElement.cpp:
756         (WebCore::toOptionElement): Added. Helper to keep existing code
757         close to the same.
758         (WebCore::HTMLSelectElement::nextValidIndex): Use hasTagName
759         instead of isOptionElement.
760         (WebCore::HTMLSelectElement::saveLastSelection): Use HTMLOptionElement
761         type instead of OptionElement.
762         (WebCore::HTMLSelectElement::setActiveSelectionAnchorIndex): Ditto.
763         (WebCore::HTMLSelectElement::updateListBoxSelection): Ditto.
764         (WebCore::HTMLSelectElement::listBoxOnChange): Ditto.
765         (WebCore::HTMLSelectElement::recalcListItems): Ditto.
766         (WebCore::HTMLSelectElement::selectedIndex): Ditto.
767         (WebCore::HTMLSelectElement::setSelectedIndex): Ditto.
768         (WebCore::HTMLSelectElement::optionToListIndex): Ditto.
769         (WebCore::HTMLSelectElement::listToOptionIndex): Ditto.
770         (WebCore::HTMLSelectElement::deselectItemsWithoutValidation): Ditto.
771         (WebCore::HTMLSelectElement::saveFormControlState): Ditto.
772         (WebCore::HTMLSelectElement::restoreFormControlState): Ditto.
773         (WebCore::HTMLSelectElement::appendFormData): Ditto.
774         (WebCore::HTMLSelectElement::reset): Ditto.
775         (WebCore::HTMLSelectElement::updateSelectedState): Ditto.
776         (WebCore::HTMLSelectElement::lastSelectedListIndex): Ditto.
777         (WebCore::HTMLSelectElement::typeAheadFind): Ditto.
778         (WebCore::HTMLSelectElement::accessKeySetSelectedIndex): Ditto.
779         (WebCore::HTMLSelectElement::length): Ditto.
780
781         * rendering/RenderListBox.cpp:
782         (WebCore::RenderListBox::updateFromElement): Use HTMLOptionElement,
783         hasTagName, and toHTMLOptionElement.
784         (WebCore::RenderListBox::addFocusRingRects): Ditto.
785         (WebCore::RenderListBox::paintItemForeground): Ditto.
786         (WebCore::RenderListBox::paintItemBackground): Ditto.
787         * rendering/RenderMenuList.cpp:
788         (WebCore::RenderMenuList::updateOptionsWidth): Ditto.
789         (WebCore::RenderMenuList::setTextFromOption): Ditto.
790         (WebCore::RenderMenuList::itemText): Ditto.
791         (WebCore::RenderMenuList::itemIsSelected): Ditto.
792
793 2011-10-20  Adam Barth  <abarth@webkit.org>
794
795         Attempt to fix crash for infinite recursion.
796
797         * bindings/v8/custom/V8EventCustom.cpp:
798         (WebCore::toV8):
799
800 2011-10-20  Dirk Pranke  <dpranke@chromium.org>
801
802         Still lots of crashes in the chromium debug bots.
803
804         Unreviewed, rolling out r97982.
805         http://trac.webkit.org/changeset/97982
806         https://bugs.webkit.org/show_bug.cgi?id=70328
807
808         crashing in asserts in chromium debug builds
809
810         * dom/DeviceMotionController.cpp:
811         (WebCore::DeviceMotionController::timerFired):
812         (WebCore::DeviceMotionController::addListener):
813         (WebCore::DeviceMotionController::removeListener):
814         (WebCore::DeviceMotionController::removeAllListeners):
815         * dom/DeviceMotionController.h:
816         * dom/DeviceOrientationController.cpp:
817         * dom/DeviceOrientationController.h:
818         * dom/Document.cpp:
819         * dom/Document.h:
820         * dom/ScriptExecutionContext.h:
821         * page/GeolocationController.cpp:
822         * page/GeolocationController.h:
823
824 2011-10-20  Adam Barth  <abarth@webkit.org>
825
826         Attempt to fix the GTK build.
827
828         * GNUmakefile.am:
829
830 2011-10-20  Adam Barth  <abarth@webkit.org>
831
832         CloseEvent.idl isn't conditional on WebSockets.
833
834         * dom/EventFactory.in:
835
836 2011-10-20  Adam Barth  <abarth@webkit.org>
837
838         Event.h shouldn't need to know about every ifdef and feature that uses events
839         https://bugs.webkit.org/show_bug.cgi?id=70483
840
841         Reviewed by Eric Seidel.
842
843         This patch expands make_event_factory.pl to create a
844         DOM_EVENT_INTERFACES_FOR_EACH macro that we can use to generate code
845         for each Event interface.  We then apply that macro to removing a large
846         number of virtual functions on Event.  Instead of having a Boolean
847         virtual function for each subclass of Event, we have a single virtual
848         interfaceName function, which returns an AtomicString.  We then use the
849         AtomicString to jump through a HashMap to find the appropriate
850         JavaScript wrapper type.
851
852         This patch does not remove all of the Boolean virtual functions because
853         I got exhausted making all of these edits, but I did remove all the
854         ones that involve ifdefs.  A future patch will remove more.
855
856         * WebCore.xcodeproj/project.pbxproj:
857         * bindings/js/JSEventCustom.cpp:
858         (WebCore::toJS):
859         * bindings/v8/custom/V8EventCustom.cpp:
860         (WebCore::toV8):
861         * dom/BeforeLoadEvent.h:
862         (WebCore::BeforeLoadEvent::interfaceName):
863         (WebCore::BeforeLoadEvent::isBeforeLoadEvent):
864         * dom/BeforeTextInsertedEvent.cpp:
865         (WebCore::BeforeTextInsertedEvent::interfaceName):
866         * dom/BeforeTextInsertedEvent.h:
867         * dom/ClipboardEvent.cpp:
868         (WebCore::ClipboardEvent::interfaceName):
869         * dom/ClipboardEvent.h:
870         * dom/CompositionEvent.cpp:
871         (WebCore::CompositionEvent::interfaceName):
872         * dom/CompositionEvent.h:
873         * dom/CustomEvent.cpp:
874         (WebCore::CustomEvent::interfaceName):
875         * dom/CustomEvent.h:
876         * dom/DeviceMotionEvent.cpp:
877         (WebCore::DeviceMotionEvent::interfaceName):
878         * dom/DeviceMotionEvent.h:
879         * dom/DeviceOrientationEvent.cpp:
880         (WebCore::DeviceOrientationEvent::interfaceName):
881         * dom/DeviceOrientationEvent.h:
882         * dom/ErrorEvent.cpp:
883         (WebCore::ErrorEvent::interfaceName):
884         * dom/ErrorEvent.h:
885         * dom/Event.cpp:
886         (WebCore::Event::interfaceName):
887         * dom/Event.h:
888         * dom/EventNames.cpp:
889         (WebCore::EventNames::EventNames):
890         * dom/EventNames.h:
891         * dom/HashChangeEvent.h:
892         (WebCore::HashChangeEvent::interfaceName):
893         * dom/KeyboardEvent.cpp:
894         (WebCore::KeyboardEvent::interfaceName):
895         * dom/KeyboardEvent.h:
896         * dom/MessageEvent.cpp:
897         (WebCore::MessageEvent::interfaceName):
898         * dom/MessageEvent.h:
899         * dom/MouseEvent.cpp:
900         (WebCore::MouseEvent::interfaceName):
901         * dom/MouseEvent.h:
902         * dom/MutationEvent.cpp:
903         (WebCore::MutationEvent::interfaceName):
904         * dom/MutationEvent.h:
905         * dom/OverflowEvent.cpp:
906         (WebCore::OverflowEvent::interfaceName):
907         * dom/OverflowEvent.h:
908         * dom/PageTransitionEvent.cpp:
909         (WebCore::PageTransitionEvent::interfaceName):
910         * dom/PageTransitionEvent.h:
911         * dom/PopStateEvent.cpp:
912         (WebCore::PopStateEvent::interfaceName):
913         * dom/PopStateEvent.h:
914         * dom/ProgressEvent.cpp:
915         (WebCore::ProgressEvent::interfaceName):
916         * dom/ProgressEvent.h:
917         * dom/TextEvent.cpp:
918         (WebCore::TextEvent::interfaceName):
919         * dom/TextEvent.h:
920         * dom/TouchEvent.cpp:
921         (WebCore::TouchEvent::interfaceName):
922         * dom/TouchEvent.h:
923         * dom/UIEvent.h:
924         * dom/WebKitAnimationEvent.cpp:
925         (WebCore::WebKitAnimationEvent::interfaceName):
926         * dom/WebKitAnimationEvent.h:
927         * dom/WebKitTransitionEvent.cpp:
928         (WebCore::WebKitTransitionEvent::interfaceName):
929         * dom/WebKitTransitionEvent.h:
930         * dom/WheelEvent.cpp:
931         (WebCore::WheelEvent::interfaceName):
932         * dom/WheelEvent.h:
933         * dom/make_event_factory.pl:
934         (printFactoryFile):
935         (printMacroFile):
936         (printHeadersFile):
937         * html/canvas/WebGLContextEvent.cpp:
938         (WebCore::WebGLContextEvent::interfaceName):
939         * html/canvas/WebGLContextEvent.h:
940         * inspector/InspectorDOMStorageResource.cpp:
941         (WebCore::InspectorDOMStorageResource::handleEvent):
942         * p2p/MediaStreamEvent.cpp:
943         (WebCore::MediaStreamEvent::interfaceName):
944         * p2p/MediaStreamEvent.h:
945         * page/SpeechInputEvent.cpp:
946         (WebCore::SpeechInputEvent::interfaceName):
947         * page/SpeechInputEvent.h:
948         * storage/IDBVersionChangeEvent.cpp:
949         (WebCore::IDBVersionChangeEvent::interfaceName):
950         * storage/IDBVersionChangeEvent.h:
951         * storage/StorageEvent.cpp:
952         (WebCore::StorageEvent::interfaceName):
953         * storage/StorageEvent.h:
954         * svg/SVGZoomEvent.cpp:
955         (WebCore::SVGZoomEvent::interfaceName):
956         * svg/SVGZoomEvent.h:
957         * webaudio/AudioProcessingEvent.cpp:
958         (WebCore::AudioProcessingEvent::interfaceName):
959         * webaudio/AudioProcessingEvent.h:
960         * webaudio/OfflineAudioCompletionEvent.cpp:
961         (WebCore::OfflineAudioCompletionEvent::interfaceName):
962         * webaudio/OfflineAudioCompletionEvent.h:
963         * websockets/CloseEvent.h:
964         (WebCore::CloseEvent::interfaceName):
965         * xml/XMLHttpRequestProgressEvent.h:
966         (WebCore::XMLHttpRequestProgressEvent::interfaceName):
967
968 2011-10-20  Nat Duca  <nduca@chromium.org>
969
970         [chromium] Route onSwapBuffersComplete from LayerRenderer to CCScheduler.
971
972         Reviewed by James Robinson.
973
974         * platform/graphics/chromium/LayerRendererChromium.cpp:
975         (WebCore::LayerRendererSwapBuffersCompleteCallbackAdapter::create):
976         (WebCore::LayerRendererSwapBuffersCompleteCallbackAdapter::~LayerRendererSwapBuffersCompleteCallbackAdapter):
977         (WebCore::LayerRendererSwapBuffersCompleteCallbackAdapter::onSwapBuffersComplete):
978         (WebCore::LayerRendererSwapBuffersCompleteCallbackAdapter::LayerRendererSwapBuffersCompleteCallbackAdapter):
979         (WebCore::LayerRendererChromium::initialize):
980         (WebCore::LayerRendererChromium::~LayerRendererChromium):
981         (WebCore::LayerRendererChromium::swapBuffers):
982         (WebCore::LayerRendererChromium::onSwapBuffersComplete):
983         * platform/graphics/chromium/LayerRendererChromium.h:
984         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
985         (WebCore::CCHeadsUpDisplay::onSwapBuffers):
986         * platform/graphics/chromium/cc/CCHeadsUpDisplay.h:
987         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
988         (WebCore::LayerRendererCapabilities::LayerRendererCapabilities):
989         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
990         (WebCore::CCLayerTreeHostImpl::swapBuffers):
991         (WebCore::CCLayerTreeHostImpl::onSwapBuffersComplete):
992         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
993         * platform/graphics/chromium/cc/CCScheduler.cpp:
994         (WebCore::CCScheduler::requestRedraw):
995         (WebCore::CCScheduler::didDrawAndSwap):
996         (WebCore::CCScheduler::didSwapBuffersComplete):
997         (WebCore::CCScheduler::didSwapBuffersAbort):
998         * platform/graphics/chromium/cc/CCScheduler.h:
999         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
1000         (WebCore::CCSingleThreadProxy::compositeImmediately):
1001         * platform/graphics/chromium/cc/CCSingleThreadProxy.h:
1002         (WebCore::CCSingleThreadProxy::onSwapBuffersCompleteOnImplThread):
1003         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
1004         (WebCore::CCThreadProxySchedulerClient::scheduleDrawAndSwap):
1005         (WebCore::CCThreadProxy::drawLayersAndReadbackOnImplThread):
1006         (WebCore::CCThreadProxy::onSwapBuffersCompleteOnImplThread):
1007         (WebCore::CCThreadProxy::finishAllRenderingOnImplThread):
1008         (WebCore::CCThreadProxy::drawLayersAndSwapOnImplThread):
1009         (WebCore::CCThreadProxy::drawLayersOnImplThread):
1010         * platform/graphics/chromium/cc/CCThreadProxy.h:
1011
1012 2011-10-20  Julien Chaffraix  <jchaffraix@webkit.org>
1013
1014         RenderDeprecatedFlexibleBox does not call its children's layout method
1015         https://bugs.webkit.org/show_bug.cgi?id=64842
1016
1017         Reviewed by David Hyatt.
1018
1019         Tests: fast/flexbox/021-vertical.html
1020                fast/flexbox/crash-flexbox-no-layout-child.html
1021
1022         The FlexBoxIterator would skip any child with visibility: collapsed. However those child
1023         would need layout but their layout() function would never be called.
1024
1025         This change refactors the way flexible box handles visibility: collapsed child and mark sure
1026         their layout() function is called but makes sure that they don't participate in the flex box
1027         dimensions.
1028
1029         * rendering/RenderDeprecatedFlexibleBox.cpp:
1030         (WebCore::FlexBoxIterator::next): Do not skip visibility: collapsed child.
1031         (WebCore::childDoesNotAffectWidthOrFlexing): Helper function.
1032
1033         (WebCore::RenderDeprecatedFlexibleBox::calcHorizontalPrefWidths):
1034         (WebCore::RenderDeprecatedFlexibleBox::calcVerticalPrefWidths):
1035         (WebCore::gatherFlexChildrenInfo):
1036         (WebCore::RenderDeprecatedFlexibleBox::layoutHorizontalBox):
1037         (WebCore::RenderDeprecatedFlexibleBox::layoutVerticalBox):
1038         (WebCore::RenderDeprecatedFlexibleBox::applyLineClamp):
1039         (WebCore::RenderDeprecatedFlexibleBox::allowedChildFlex):
1040         Updated to skip the now seen visibility: collapsed child during the
1041         iteration.
1042
1043 2011-10-20  Raymond Toy  <rtoy@google.com>
1044
1045         Implement SSE denormal disabler for windows.
1046
1047         https://bugs.webkit.org/show_bug.cgi?id=70517
1048
1049         Reviewed by Kenneth Russell.
1050
1051         * platform/audio/DenormalDisabler.h:
1052         (WebCore::DenormalDisabler::DenormalDisabler):
1053         Add implementation for Windows.
1054         (WebCore::DenormalDisabler::~DenormalDisabler):
1055         Ditto.
1056         (WebCore::DenormalDisabler::flushDenormalFloatToZero):
1057         Unify Windows with mac/linux.
1058         (WebCore::DenormalDisabler::getCSR):
1059         Define only if we're not on Windows.
1060         (WebCore::DenormalDisabler::setCSR):
1061         Ditto.
1062
1063 2011-10-20  Alexey Proskuryakov  <ap@apple.com>
1064
1065         REGRESSION (r96823): Contextual menu closes immediately when control-clicking in Flash plug-in
1066         https://bugs.webkit.org/show_bug.cgi?id=70534
1067         <rdar://problem/10308827>
1068
1069         Reviewed by Darin Adler.
1070
1071         * plugins/PluginView.cpp: (WebCore::PluginView::handleEvent): Return true for contextmenu
1072         event, so that plug-ins won't get a default WebKit context menu. We can't know if the
1073         plug-in is handling mousedown (or even mouseup) by displaying a menu.
1074
1075 2011-10-17  Nat Duca  <nduca@chromium.org>
1076
1077         [chromium] Allow CCLayerTreeHostImpl to call back to proxy via CCLayerTreeHostImplClient
1078         https://bugs.webkit.org/show_bug.cgi?id=70291
1079
1080         Reviewed by James Robinson.
1081
1082         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
1083         (WebCore::CCLayerTreeHost::createLayerTreeHostImpl):
1084         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
1085         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
1086         (WebCore::CCLayerTreeHostImpl::create):
1087         (WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
1088         (WebCore::CCLayerTreeHostImpl::scrollRootLayer):
1089         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
1090         * platform/graphics/chromium/cc/CCScrollController.h:
1091         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
1092         (WebCore::CCSingleThreadProxy::start):
1093         * platform/graphics/chromium/cc/CCSingleThreadProxy.h:
1094         (WebCore::CCSingleThreadProxy::setNeedsRedrawOnImplThread):
1095         (WebCore::CCSingleThreadProxy::setNeedsCommitOnImplThread):
1096         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
1097         (WebCore::CCThreadProxy::scrollRootLayerOnImplThread):
1098         (WebCore::CCThreadProxy::initializeImplOnCCThread):
1099         (WebCore::CCThreadProxy::initializeLayerRendererOnCCThread):
1100         (WebCore::CCThreadProxy::layerTreeHostClosedOnCCThread):
1101         * platform/graphics/chromium/cc/CCThreadProxy.h:
1102         (WebCore::CCThreadProxy::setNeedsRedrawOnImplThread):
1103         (WebCore::CCThreadProxy::setNeedsCommitOnImplThread):
1104
1105 2011-10-20  Tony Chang  <tony@chromium.org>
1106
1107         fix repaint bugs in new flexbox
1108         https://bugs.webkit.org/show_bug.cgi?id=70450
1109
1110         Reviewed by David Hyatt.
1111
1112         Test: css3/flexbox/repaint.html
1113               css3/flexbox/repaint-rtl-column.html
1114
1115         * rendering/RenderFlexibleBox.cpp:
1116         (WebCore::RenderFlexibleBox::layoutBlock): Use LayoutRepainter and LayoutStateMaintainer
1117             to repaint the flexbox.
1118         (WebCore::RenderFlexibleBox::layoutAndPlaceChildrenInlineDirection):
1119         (WebCore::RenderFlexibleBox::adjustLocationLogicalTopForChild): Use repaintDuringLayoutIfMoved
1120             when changing the alignment of a child to handle the child moving.
1121
1122 2011-10-20  Dan Bernstein  <mitz@apple.com>
1123
1124         Flipped-blocks writing mode blocks do not hit test their overflow
1125         https://bugs.webkit.org/show_bug.cgi?id=70546
1126
1127         Reviewed by Sam Weinig.
1128
1129         Test: fast/writing-mode/flipped-blocks-hit-test-overflow.html
1130
1131         * rendering/RenderBlock.cpp:
1132         (WebCore::RenderBlock::nodeAtPoint): Flip the overflow rect if necessary.
1133
1134 2011-10-20  David Hyatt  <hyatt@apple.com>
1135
1136         https://bugs.webkit.org/show_bug.cgi?id=70539
1137         
1138         Make the 'clip' property work in variable width regions.
1139
1140         Reviewed by Dan Bernstein.
1141
1142         Added new test in fast/regions.
1143
1144         * rendering/RenderBox.cpp:
1145         (WebCore::RenderBox::clipRect):
1146         * rendering/RenderBox.h:
1147         * rendering/RenderLayer.cpp:
1148         (WebCore::RenderLayer::calculateClipRects):
1149         (WebCore::RenderLayer::calculateRects):
1150         (WebCore::RenderLayer::repaintBlockSelectionGaps):
1151         * rendering/RenderLayerBacking.cpp:
1152         (WebCore::clipBox):
1153
1154 2011-10-20  Simon Fraser  <simon.fraser@apple.com>
1155
1156         Fix build breakage on some platforms after r98008.
1157
1158         * page/FrameTree.cpp:
1159
1160 2011-10-20  Vincent Scheib  <scheib@chromium.org>
1161
1162         MouseLock compile and run time flags.
1163         https://bugs.webkit.org/show_bug.cgi?id=70530
1164
1165         Reviewed by Darin Fisher.
1166
1167         No new tests.
1168
1169         * bindings/generic/RuntimeEnabledFeatures.cpp:
1170         * bindings/generic/RuntimeEnabledFeatures.h:
1171         (WebCore::RuntimeEnabledFeatures::webkitMouseLockAPIEnabled):
1172         (WebCore::RuntimeEnabledFeatures::setWebkitMouseLockAPIEnabled):
1173         (WebCore::RuntimeEnabledFeatures::webkitLockMouseEnabled):
1174         (WebCore::RuntimeEnabledFeatures::webkitUnlockMouseEnabled):
1175         (WebCore::RuntimeEnabledFeatures::webkitMouseLockedEnabled):
1176         * page/Settings.cpp:
1177         (WebCore::Settings::Settings):
1178         * page/Settings.h:
1179         (WebCore::Settings::setMouseLockEnabled):
1180         (WebCore::Settings::mouseLockEnabled):
1181
1182 2011-10-20  Tony Chang  <tony@chromium.org>
1183
1184         Fix a compiler warning in MediaStreamTrack.cpp:
1185         ../../third_party/WebKit/Source/WebCore/dom/MediaStreamTrack.cpp: In member function 'WTF::String WebCore::MediaStreamTrack::kind() const':
1186         ../../third_party/WebKit/Source/WebCore/dom/MediaStreamTrack.cpp:61:1: error: control reaches end of non-void function [-Werror=return-type]
1187
1188         Unreviewed build fix.
1189
1190         * dom/MediaStreamTrack.cpp:
1191         (WebCore::MediaStreamTrack::kind):
1192
1193 2011-10-20  Gustavo Noronha Silva  <gns@gnome.org>
1194
1195         One more GTK+ build fix. Remove CueLoader files from the build.
1196
1197         * GNUmakefile.list.am:
1198
1199 2011-10-20  Ken Buchanan <kenrb@chromium.org>
1200
1201         Crash in updateFirstLetter on :after generated content
1202         https://bugs.webkit.org/show_bug.cgi?id=70031
1203
1204         Reviewed by David Hyatt.
1205
1206         Preventing findBeforeAfterParent() from returning a first-letter block and overwriting its style.
1207         Instead, it returns the block's parent.
1208
1209         * rendering/RenderBlock.cpp:
1210         (WebCore::RenderBlock::updateFirstLetter):
1211         * rendering/RenderObjectChildList.cpp:
1212         (WebCore::findBeforeAfterParent)
1213         (WebCore::RenderObjectChildList::updateBeforeAfterContent): First-letter siblings now already have style applied, so this clause is redundant
1214
1215 2011-10-20  Simon Fraser  <simon.fraser@apple.com>
1216
1217         Add a way to print the Frame tree from the debugger.
1218
1219         Reviewed by Sam Weinig.
1220         
1221         Add a showFrameTree(frame) method, callable from gdb,
1222         which dumps the Frame tree, including the frame's view,
1223         document, owner element and URI.
1224
1225         * page/FrameTree.cpp:
1226         (printIndent):
1227         (printFrames):
1228         (showFrameTree):
1229         * page/FrameTree.h:
1230         * rendering/RenderLayer.cpp:
1231         (WebCore::RenderLayer::updateClipRects):
1232         * rendering/RenderLayerCompositor.cpp:
1233         (WebCore::RenderLayerCompositor::requiresCompositingForFrame):
1234
1235 2011-10-20  Andreas Kling  <kling@webkit.org>
1236
1237         Remove StyleBase::cssText().
1238         https://bugs.webkit.org/show_bug.cgi?id=70521
1239
1240         Reviewed by Antti Koivisto.
1241
1242         * css/StyleBase.cpp:
1243         * css/StyleBase.h:
1244
1245 2011-10-20  Eugene Nalimov  <enal@chromium.org>
1246
1247         Playing HTMLAudioElement can be garbage collected
1248         https://bugs.webkit.org/show_bug.cgi?id=66878
1249
1250         Reviewed by Adam Barth.
1251
1252         Make HTMLAudioElement an 'active' one, meaning that it cannot be
1253         garbage collected if it has panding activity. Had to make
1254         HTMLMediaElement::hasPendingActivity() and
1255         HTMLAudioElement::hasPendingActivity() public, otherwise automatically
1256         generated code would not compile. 
1257
1258         Test: no test, as automatic test is blocked by
1259         https://bugs.webkit.org/show_bug.cgi?id=70421
1260         You don't want to sit down and listen if audio stream played completely,
1261         and cannot rely on 'ended' event because events are lost when events
1262         listener is collected. 
1263
1264         * html/HTMLAudioElement.idl:
1265         * html/HTMLAudioElement.h:
1266         (WebCore::HTMLAudioElement::hasPendingActivity):
1267         * html/HTMLMediaElement.h:
1268
1269 2011-10-20  Mark Hahnenberg  <mhahnenberg@apple.com>
1270
1271         Rename static deleteProperty to deletePropertyByIndex
1272         https://bugs.webkit.org/show_bug.cgi?id=70257
1273
1274         Reviewed by Geoffrey Garen.
1275
1276         No new tests.
1277
1278         Renaming versions of deleteProperty that use an unsigned as the property
1279         name to "deletePropertyByIndex" in preparation for adding them to the 
1280         MethodTable, which requires unique names for each method.
1281
1282         * bridge/runtime_array.cpp:
1283         (JSC::RuntimeArray::deletePropertyVirtual):
1284         (JSC::RuntimeArray::deletePropertyByIndex):
1285         * bridge/runtime_array.h:
1286
1287 2011-10-20  Eric Carlson  <eric.carlson@apple.com>
1288
1289         Rename some Cue classes to TextTrack
1290         https://bugs.webkit.org/show_bug.cgi?id=70346
1291
1292         Rename CueLoader -> TextTrackLoader, CachedCues -> CachedTextTrack, and CueIndex -> TextTrackIndex.
1293
1294         Reviewed by Darin Adler.
1295
1296         No new tests, renames only.
1297
1298         * CMakeLists.txt:
1299         * GNUmakefile.list.am:
1300         * WebCore.gypi:
1301         * WebCore.pro:
1302         * WebCore.xcodeproj/project.pbxproj:
1303         * html/CueIndex.cpp: Removed.
1304         * html/CueIndex.h: Removed.
1305         * html/LoadableTextTrack.cpp:
1306         (WebCore::LoadableTextTrack::load):
1307         (WebCore::LoadableTextTrack::newCuesAvailable):
1308         (WebCore::LoadableTextTrack::cueLoadingStarted):
1309         (WebCore::LoadableTextTrack::cueLoadingCompleted):
1310         * html/LoadableTextTrack.h:
1311         (WebCore::LoadableTextTrack::shouldLoadCues):
1312         * html/MutableTextTrack.h:
1313         * html/TextTrackIndex.cpp: Copied from Source/WebCore/html/CueIndex.cpp.
1314         (WebCore::TextTrackCueSet::difference):
1315         (WebCore::TextTrackCueSet::unionSet):
1316         (WebCore::TextTrackCueSet::add):
1317         (WebCore::TextTrackCueSet::contains):
1318         (WebCore::TextTrackCueSet::remove):
1319         (WebCore::TextTrackCueSet::isEmpty):
1320         (WebCore::TextTrackCueSet::size):
1321         (WebCore::TextTrackIndex::fetchNewCuesFromLoader):
1322         (WebCore::TextTrackIndex::removeCuesFromIndex):
1323         (WebCore::TextTrackIndex::visibleCuesAtTime):
1324         (WebCore::TextTrackIndex::add):
1325         (WebCore::TextTrackIndex::remove):
1326         * html/TextTrackIndex.h: Copied from Source/WebCore/html/CueIndex.h.
1327         (WebCore::TextTrackCueSet::TextTrackCueSet):
1328         (WebCore::TextTrackCueSet::~TextTrackCueSet):
1329         * loader/CueLoader.cpp: Removed.
1330         * loader/CueLoader.h: Removed.
1331         * loader/TextTrackLoader.cpp: Copied from Source/WebCore/loader/CueLoader.cpp.
1332         (WebCore::TextTrackLoader::TextTrackLoader):
1333         (WebCore::TextTrackLoader::~TextTrackLoader):
1334         (WebCore::TextTrackLoader::cueLoadTimerFired):
1335         (WebCore::TextTrackLoader::processNewCueData):
1336         (WebCore::TextTrackLoader::didReceiveData):
1337         (WebCore::TextTrackLoader::notifyFinished):
1338         (WebCore::TextTrackLoader::load):
1339         (WebCore::TextTrackLoader::newCuesParsed):
1340         (WebCore::TextTrackLoader::getNewCues):
1341         * loader/TextTrackLoader.h: Copied from Source/WebCore/loader/CueLoader.h.
1342         (WebCore::TextTrackLoaderClient::~TextTrackLoaderClient):
1343         (WebCore::TextTrackLoader::create):
1344         * loader/cache/CachedCues.cpp: Removed.
1345         * loader/cache/CachedCues.h: Removed.
1346         * loader/cache/CachedResourceLoader.cpp:
1347         (WebCore::createResource):
1348         (WebCore::CachedResourceLoader::requestCues):
1349         * loader/cache/CachedResourceLoader.h:
1350         * loader/cache/CachedTextTrack.cpp: Copied from Source/WebCore/loader/cache/CachedCues.cpp.
1351         (WebCore::CachedTextTrack::CachedTextTrack):
1352         (WebCore::CachedTextTrack::~CachedTextTrack):
1353         (WebCore::CachedTextTrack::data):
1354         * loader/cache/CachedTextTrack.h: Copied from Source/WebCore/loader/cache/CachedCues.h.
1355
1356 2011-10-20  Joseph Pecoraro  <joepeck@webkit.org>
1357
1358         Remove Now Unused FileChooserSettings.deprecatedAcceptTypes
1359         https://bugs.webkit.org/show_bug.cgi?id=70473
1360
1361         Reviewed by Dan Bernstein.
1362
1363         * html/FileInputType.cpp:
1364         (WebCore::FileInputType::handleDOMActivateEvent):
1365         (WebCore::FileInputType::receiveDropForDirectoryUpload):
1366         * platform/FileChooser.h:
1367
1368 2011-10-20  Andreas Kling  <kling@webkit.org>
1369
1370         Simplify CSSParser::document().
1371         https://bugs.webkit.org/show_bug.cgi?id=70518
1372
1373         Reviewed by Antti Koivisto.
1374
1375         We don't need to climb up the entire parent chain here to find the
1376         Document, just grab it from m_styleSheet (which will do the climbing
1377         for us if necessary.)
1378
1379         * css/CSSParser.cpp:
1380         (WebCore::CSSParser::document):
1381
1382 2011-10-20  Pierre Rossi  <pierre.rossi@gmail.com>
1383
1384         [Qt] FontCache::createFontPlatformData() is broken, a default font is returned
1385         even if the family does not match.
1386         https://bugs.webkit.org/show_bug.cgi?id=55036
1387
1388         The problem here was that a FontPlatformData
1389         object is always created, regardless of whether
1390         the request for a given font family can be
1391         satisfied or not.
1392
1393         Reviewed by Andreas Kling.
1394
1395         Covered by existing tests.
1396
1397         * platform/graphics/qt/FontCacheQt.cpp:
1398         (WebCore::FontCache::createFontPlatformData):
1399
1400 2011-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1401
1402         When user is panning with the tiled backing store, the page
1403         isn't notified about the scroll position change
1404         https://bugs.webkit.org/show_bug.cgi?id=70495
1405
1406         Reviewed by Simon Hausmann.
1407
1408         When using the tiled backing store the UI handles scrolling,
1409         and sends setFixedVisibleContentRect after panning/scale ends.
1410
1411         If we actually changed position we need to send the scroll DOM event.
1412
1413         Covered by existing tests, though we are not testing the tiled backing store yet.
1414
1415         * page/FrameView.cpp:
1416         (WebCore::FrameView::setFixedVisibleContentRect):
1417         * page/FrameView.h:
1418         * platform/ScrollView.h:
1419         (WebCore::ScrollView::setFixedVisibleContentRect):
1420
1421 2011-10-20  John Knottenbelt  <jknotten@chromium.org>
1422
1423         Touch events should take page scale into account
1424         https://bugs.webkit.org/show_bug.cgi?id=69798
1425
1426         Reviewed by Adam Barth.
1427
1428         Test: fast/events/touch/page-scaled-touch-gesture-click.html
1429
1430         * page/EventHandler.cpp:
1431         (WebCore::EventHandler::handleTouchEvent):
1432
1433 2011-10-20  Andreas Kling  <kling@webkit.org>
1434
1435         CSSMutableStyleDeclaration: Simplify setNeedsStyleRecalc().
1436         https://bugs.webkit.org/show_bug.cgi?id=70509
1437
1438         Reviewed by Antti Koivisto.
1439
1440         We don't need to climb up the entire parent chain here to find the
1441         Document, just grab it from the parentStyleSheet() (which will do
1442         the climbing for us if necessary.)
1443
1444         * css/CSSMutableStyleDeclaration.cpp:
1445         (WebCore::CSSMutableStyleDeclaration::setNeedsStyleRecalc):
1446
1447 2011-10-20  Andreas Kling  <kling@webkit.org>
1448
1449         CSSStyleDeclaration: Remove inheritance from StyleBase.
1450         https://bugs.webkit.org/show_bug.cgi?id=70411
1451
1452         Reviewed by Antti Koivisto.
1453
1454         * bindings/js/JSDOMBinding.h:
1455         (WebCore::root):
1456
1457             Specialized root() for CSSStyleDeclaration and CSSMutableStyleDeclaration.
1458
1459         * css/CSSMutableStyleDeclaration.cpp:
1460         (WebCore::CSSMutableStyleDeclaration::setNeedsStyleRecalc):
1461
1462             Start the parent chain traversal from the parentStyleSheet().
1463
1464         (WebCore::CSSMutableStyleDeclaration::addSubresourceStyleURLs):
1465         * css/CSSParser.cpp:
1466         (WebCore::parseColorValue):
1467         (WebCore::parseSimpleLengthValue):
1468         (WebCore::CSSParser::parseValue):
1469         (WebCore::CSSParser::parseColor):
1470         (WebCore::CSSParser::parseDeclaration):
1471
1472             Remove now-unnecessary assertions and casts.
1473
1474         * css/CSSStyleDeclaration.cpp:
1475         (WebCore::CSSStyleDeclaration::CSSStyleDeclaration):
1476         * css/CSSStyleDeclaration.h:
1477         (WebCore::CSSStyleDeclaration::~CSSStyleDeclaration):
1478         (WebCore::CSSStyleDeclaration::parentRule):
1479         (WebCore::CSSStyleDeclaration::setParentRule):
1480         (WebCore::CSSStyleDeclaration::setParentStyleSheet):
1481         (WebCore::CSSStyleDeclaration::parentStyleSheet):
1482
1483             Make CSSStyleDeclaration inherit directly from RefCounted, and have either
1484             a CSSRule or CSSStyleSheet parent. Eventually it should only need to have
1485             rules as parents, but CSSParser depends on having style sheet parents for
1486             URL completion and primitive value cache.
1487
1488         * css/StyleBase.h:
1489         * css/CSSStyleDeclaration.h:
1490         (WebCore::CSSStyleDeclaration::isMutableStyleDeclaration):
1491
1492             Moved from StyleBase down to CSSStyleDeclaration.
1493
1494         * css/CSSStyleRule.cpp:
1495         (WebCore::CSSStyleRule::~CSSStyleRule):
1496         (WebCore::CSSStyleRule::setSelectorText):
1497         * css/WebKitCSSKeyframeRule.cpp:
1498         (WebCore::WebKitCSSKeyframeRule::~WebKitCSSKeyframeRule):
1499         (WebCore::WebKitCSSKeyframeRule::setDeclaration):
1500         * css/WebKitCSSKeyframesRule.cpp:
1501         (WebCore::WebKitCSSKeyframesRule::~WebKitCSSKeyframesRule):
1502         (WebCore::WebKitCSSKeyframesRule::append):
1503         (WebCore::WebKitCSSKeyframesRule::deleteRule):
1504         * dom/StyledElement.cpp:
1505         (WebCore::StyledElement::createInlineStyleDecl):
1506         (WebCore::StyledElement::destroyInlineStyleDecl):
1507         (WebCore::StyledElement::attributeChanged):
1508         (WebCore::StyledElement::createMappedDecl):
1509         (WebCore::StyledElement::didMoveToNewOwnerDocument):
1510         * html/HTMLTableElement.cpp:
1511         (WebCore::HTMLTableElement::additionalAttributeStyleDecls):
1512         (WebCore::HTMLTableElement::addSharedCellBordersDecl):
1513         (WebCore::HTMLTableElement::addSharedCellPaddingDecl):
1514         (WebCore::HTMLTableElement::addSharedGroupDecls):
1515         * page/PageSerializer.cpp:
1516         (WebCore::PageSerializer::retrieveResourcesForCSSDeclaration):
1517         * svg/SVGFontFaceElement.cpp:
1518         (WebCore::SVGFontFaceElement::SVGFontFaceElement):
1519
1520             Use the new parenting methods of CSSStyleDeclaration.
1521
1522         * css/StyleBase.cpp:
1523         (WebCore::StyleBase::node):
1524
1525             Remove the isMutableStyleDeclaration() code path.
1526
1527 2011-10-20  Pavel Feldman  <pfeldman@google.com>
1528
1529         Web Inspector: detach should call hide so that overrides are processed.
1530         https://bugs.webkit.org/show_bug.cgi?id=70503
1531
1532         Reviewed by Yury Semikhatsky.
1533
1534         * inspector/front-end/ConsolePanel.js:
1535         (WebInspector.ConsolePanel.prototype.hide):
1536         * inspector/front-end/View.js:
1537         (WebInspector.View):
1538         (WebInspector.View.prototype.hide):
1539         (WebInspector.View.prototype.detach):
1540
1541 2011-10-20  Csaba Osztrogon√°c  <ossy@webkit.org>
1542
1543         [Qt] Roll-back r97964, r97972 and fix in https://bugs.webkit.org/show_bug.cgi?id=70328.
1544
1545         * dom/DeviceMotionController.cpp:
1546         (WebCore::DeviceMotionController::timerFired):
1547         (WebCore::DeviceMotionController::addListener):
1548         (WebCore::DeviceMotionController::removeListener):
1549         (WebCore::DeviceMotionController::removeAllListeners):
1550         (WebCore::DeviceMotionController::suspend):
1551         (WebCore::DeviceMotionController::resume):
1552         * dom/DeviceMotionController.h:
1553         * dom/DeviceOrientationController.cpp:
1554         (WebCore::DeviceOrientationController::suspend):
1555         (WebCore::DeviceOrientationController::resume):
1556         * dom/DeviceOrientationController.h:
1557         * dom/Document.cpp:
1558         (WebCore::Document::suspendActiveDOMObjects):
1559         (WebCore::Document::resumeActiveDOMObjects):
1560         (WebCore::Document::stopActiveDOMObjects):
1561         * dom/Document.h:
1562         * dom/ScriptExecutionContext.h:
1563         * page/GeolocationController.cpp:
1564         (WebCore::GeolocationController::suspend):
1565         (WebCore::GeolocationController::resume):
1566         * page/GeolocationController.h:
1567
1568 2011-10-20  Sheriff Bot  <webkit.review.bot@gmail.com>
1569
1570         Unreviewed, rolling out r97964 and r97972.
1571         http://trac.webkit.org/changeset/97964
1572         http://trac.webkit.org/changeset/97972
1573         https://bugs.webkit.org/show_bug.cgi?id=70502
1574
1575         They broke all geolocation tests in debug mode (Requested by
1576         Ossy on #webkit).
1577
1578         * dom/DeviceMotionController.cpp:
1579         (WebCore::DeviceMotionController::timerFired):
1580         (WebCore::DeviceMotionController::addListener):
1581         (WebCore::DeviceMotionController::removeListener):
1582         (WebCore::DeviceMotionController::removeAllListeners):
1583         * dom/DeviceMotionController.h:
1584         * dom/DeviceOrientationController.cpp:
1585         * dom/DeviceOrientationController.h:
1586         * dom/Document.cpp:
1587         * dom/Document.h:
1588         * dom/ScriptExecutionContext.h:
1589         * page/GeolocationController.cpp:
1590         * page/GeolocationController.h:
1591
1592 2011-10-20  Ilya Tikhonovsky  <loislo@chromium.org>
1593
1594         Unreviewed fix for Date.prototype.toISO8601Compact.
1595         It was generated wrong string for the dates with no leading zeros like 2011.11.11.
1596
1597         * inspector/front-end/utilities.js:
1598
1599 2011-10-20  Pavel Feldman  <pfeldman@google.com>
1600
1601         Web Inspector: minor CPU profiling UX improvements
1602         https://bugs.webkit.org/show_bug.cgi?id=70499
1603
1604         Store profile type. Store time percentage toggle state.
1605
1606         Reviewed by Yury Semikhatsky.
1607
1608         * inspector/front-end/ProfileDataGridTree.js:
1609         * inspector/front-end/ProfileView.js:
1610         (WebInspector.CPUProfileView.profileCallback):
1611         (WebInspector.CPUProfileView.prototype._changeView.set else):
1612
1613 2011-10-20  Vsevolod Vlasov  <vsevik@chromium.org>
1614
1615         Web Inspector: Advanced search results should keep working after pretty print toggled.
1616         https://bugs.webkit.org/show_bug.cgi?id=70347
1617
1618         Reviewed by Pavel Feldman.
1619
1620         * inspector/front-end/AdvancedSearchController.js:
1621         (WebInspector.SearchScope.prototype.createSearchResultsPane):
1622         (WebInspector.FileBasedSearchResultsPane.prototype.createAnchor):
1623         (WebInspector.FileBasedSearchResultsPane.prototype.addSearchResult):
1624         (WebInspector.FileBasedSearchResultsPane.prototype._regexMatchRanges):
1625         (WebInspector.FileBasedSearchResultsPane.prototype._createContentSpan):
1626         * inspector/front-end/BreakpointManager.js:
1627         (WebInspector.BreakpointManager.prototype._materializeBreakpoint):
1628         * inspector/front-end/CompilerSourceMapping.js:
1629         (WebInspector.CompilerSourceMapping.prototype.sourceLocationToCompiledLocation):
1630         * inspector/front-end/DebuggerPresentationModel.js:
1631         (WebInspector.DebuggerPresentationModel.prototype.createLinkifier):
1632         (WebInspector.DebuggerPresentationModel.prototype.continueToLine):
1633         (WebInspector.DebuggerPresentationModel.LinkifierFormatter):
1634         (WebInspector.DebuggerPresentationModel.LinkifierFormatter.prototype.formatRawSourceCodeAnchor):
1635         (WebInspector.DebuggerPresentationModel.DefaultLinkifierFormatter):
1636         (WebInspector.DebuggerPresentationModel.DefaultLinkifierFormatter.prototype.formatRawSourceCodeAnchor):
1637         (WebInspector.DebuggerPresentationModel.Linkifier):
1638         (WebInspector.DebuggerPresentationModel.Linkifier.prototype.linkifyLocation):
1639         (WebInspector.DebuggerPresentationModel.Linkifier.prototype.linkifyResource):
1640         (WebInspector.DebuggerPresentationModel.Linkifier.prototype.linkifyRawSourceCode):
1641         (WebInspector.DebuggerPresentationModel.Linkifier.prototype._updateAnchor):
1642         * inspector/front-end/RawSourceCode.js:
1643         (WebInspector.RawSourceCode.SourceMapping.prototype.uiLocationToRawLocation):
1644         (WebInspector.RawSourceCode.PlainSourceMapping.prototype.uiLocationToRawLocation):
1645         (WebInspector.RawSourceCode.FormattedSourceMapping.prototype.uiLocationToRawLocation):
1646         (WebInspector.RawSourceCode.CompilerSourceMapping.prototype.uiLocationToRawLocation):
1647         * inspector/front-end/ScriptsSearchScope.js:
1648         (WebInspector.ScriptsSearchResultsPane):
1649         (WebInspector.ScriptsSearchResultsPane.prototype.createAnchor):
1650         (WebInspector.ScriptsSearchResultsPane.LinkifierFormatter):
1651         (WebInspector.ScriptsSearchResultsPane.LinkifierFormatter.prototype.formatRawSourceCodeAnchor):
1652         * inspector/front-end/inspector.html:
1653
1654 2011-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1655
1656         m_client in DeviceMotionController can never be 0, so no need to check for it
1657         https://bugs.webkit.org/show_bug.cgi?id=70490
1658
1659         Reviewed by Simon Hausmann.
1660
1661         No behavior change, thus no new tests.
1662
1663         * dom/DeviceMotionController.cpp:
1664         (WebCore::DeviceMotionController::timerFired):
1665         (WebCore::DeviceMotionController::addListener):
1666         (WebCore::DeviceMotionController::removeListener):
1667         (WebCore::DeviceMotionController::removeAllListeners):
1668         (WebCore::DeviceMotionController::suspend):
1669         (WebCore::DeviceMotionController::resume):
1670
1671 2011-10-20  Cary Clark  <caryclark@google.com>
1672
1673         [Chromium Skia on Mac] Improve focus ring
1674         https://bugs.webkit.org/show_bug.cgi?id=70124
1675
1676         Reviewed by Adam Barth.
1677         
1678         The focus ring code formerly outset the bounds of
1679         the component rectangles by fractional amounts. Because
1680         the rectangles are SkIRect (integer based), the fractional
1681         outset had no effect.
1682
1683         The equivalent code in GraphicsContextMac.mm computes
1684         the curve radius and rectangle outset with integers, so
1685         the use of floats in Skia's case, besides not working,
1686         is unnecessary.
1687
1688         The Skia code also failed to take the offset into account.
1689         In LayoutTests, the focus rings either have an offset of
1690         0 or 2. The CoreGraphics code increases the ring's rectangles
1691         by the offset, then passes the result to wkDrawFocusRing.
1692
1693         I did not find any documentation about how wkDrawFocusRing
1694         further inflates the focus ring, but empirically I determined
1695         that adding 2 to the offset generated rings with identical
1696         outer diameters.
1697  
1698         With these adjustments, the layout tests generate focus rings
1699         in the Skia on Mac case that match the coverage of the
1700         Chromium CG-based platform, in particular, matching:
1701         
1702         editing/inserting/editable-inline-element.html
1703         editing/selection/3690703-2.html
1704
1705         * platform/graphics/skia/GraphicsContextSkia.cpp:
1706         (WebCore::getFocusRingOutset):
1707         (WebCore::GraphicsContext::drawFocusRing):
1708
1709 2011-10-20  Zoltan Herczeg  <zherczeg@webkit.org>
1710
1711         Improve NEON based GaussianBlur
1712         https://bugs.webkit.org/show_bug.cgi?id=70493
1713
1714         Reviewed by Csaba Osztrogon√°c.
1715
1716         vmov instruction is less complex than vtbl.
1717
1718         * platform/graphics/filters/arm/FEGaussianBlurNEON.cpp:
1719
1720 2011-10-20  Pavel Feldman  <pfeldman@google.com>
1721
1722         Not reviewed: follow up to 97961 - dispatching of hide on detach was missing.
1723
1724         * inspector/front-end/AuditsPanel.js:
1725         (WebInspector.AuditsPanel.prototype.show):
1726         * inspector/front-end/View.js:
1727         (WebInspector.View.prototype.detach):
1728         * inspector/front-end/utilities.js:
1729
1730 2011-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1731
1732         Properly suspend/resume Geolocation/DeviceMotion/DeviceOrientation objects
1733         https://bugs.webkit.org/show_bug.cgi?id=70328
1734
1735         Reviewed by Simon Hausmann.
1736
1737         Based on code from iOS and the N9.
1738
1739         No new tests, as the suspend/resume functionality is not fully working yet.
1740
1741         * dom/DeviceMotionController.cpp:
1742         (WebCore::DeviceMotionController::suspend):
1743         (WebCore::DeviceMotionController::resume):
1744         * dom/DeviceMotionController.h:
1745         * dom/DeviceOrientationController.cpp:
1746         (WebCore::DeviceOrientationController::addListener):
1747         (WebCore::DeviceOrientationController::removeListener):
1748         (WebCore::DeviceOrientationController::removeAllListeners):
1749         (WebCore::DeviceOrientationController::suspend):
1750         (WebCore::DeviceOrientationController::resume):
1751         * dom/DeviceOrientationController.h:
1752         * dom/Document.cpp:
1753         (WebCore::Document::suspendActiveDOMObjects):
1754         (WebCore::Document::resumeActiveDOMObjects):
1755         (WebCore::Document::stopActiveDOMObjects):
1756         * dom/Document.h:
1757         * dom/ScriptExecutionContext.h:
1758         * page/GeolocationController.cpp:
1759         (WebCore::GeolocationController::suspend):
1760         (WebCore::GeolocationController::resume):
1761         * page/GeolocationController.h:
1762
1763 2011-10-20  Antti Koivisto  <antti@apple.com>
1764
1765         Move rule matching and applying to separate functions from CSSStyleSelector::styleForElement
1766         https://bugs.webkit.org/show_bug.cgi?id=70408
1767
1768         Reviewed by Andreas Kling.
1769
1770         - Move matching code to matchAllRules and applying to applyMatchedDeclarations.
1771         - Encapsulate the matching results into a struct, use everywhere.
1772         - Move first-line style adjustment to adjustRenderStyle().
1773         - Remove unnecessary tests for resolveForRootDefault when applying the style
1774         - Use applyMatchedDeclarations also from pseudoStyleForElement
1775
1776         * css/CSSStyleSelector.cpp:
1777         (WebCore::CSSStyleSelector::matchAllRules):
1778         (WebCore::CSSStyleSelector::matchUARules):
1779         (WebCore::CSSStyleSelector::styleForElement):
1780         (WebCore::CSSStyleSelector::pseudoStyleForElement):
1781         (WebCore::CSSStyleSelector::styleForPage):
1782         (WebCore::CSSStyleSelector::adjustRenderStyle):
1783         (WebCore::CSSStyleSelector::pseudoStyleRulesForElement):
1784         (WebCore::CSSStyleSelector::applyMatchedDeclarations):
1785         * css/CSSStyleSelector.h:
1786         (WebCore::CSSStyleSelector::MatchResult::MatchResult):
1787
1788 2011-10-19  Pavel Feldman  <pfeldman@google.com>
1789
1790         Web Inspector: get rid of manual view hierarchy management.
1791         https://bugs.webkit.org/show_bug.cgi?id=70417
1792
1793         Reviewed by Yury Semikhatsky.
1794
1795         * inspector/front-end/AuditsPanel.js:
1796         (WebInspector.AuditsPanel.prototype.show):
1797         (WebInspector.AuditsPanel.prototype._clearButtonClicked):
1798         * inspector/front-end/ConsolePanel.js:
1799         (WebInspector.ConsolePanel.prototype.show):
1800         (WebInspector.ConsolePanel.prototype.hide):
1801         * inspector/front-end/DetailedHeapshotGridNodes.js:
1802         (WebInspector.HeapSnapshotGenericObjectNode.prototype.queryObjectContent.else.formatResult):
1803         (WebInspector.HeapSnapshotGenericObjectNode.prototype.queryObjectContent):
1804         * inspector/front-end/DetailedHeapshotView.js:
1805         (WebInspector.DetailedHeapshotView.prototype.show.profileCallback2):
1806         (WebInspector.DetailedHeapshotView.prototype.show):
1807         (WebInspector.DetailedHeapshotView.prototype._changeView):
1808         * inspector/front-end/IFrameView.js:
1809         * inspector/front-end/NetworkPanel.js:
1810         (WebInspector.NetworkLogView):
1811         (WebInspector.NetworkLogView.prototype._initializeView):
1812         (WebInspector.NetworkPanel.prototype.show):
1813         (WebInspector.NetworkPanel.prototype._showResource):
1814         (WebInspector.NetworkPanel.prototype._closeVisibleResource):
1815         * inspector/front-end/Panel.js:
1816         (WebInspector.Panel.prototype.show):
1817         (WebInspector.Panel.prototype.detach):
1818         * inspector/front-end/ProfilesPanel.js:
1819         (WebInspector.ProfilesPanel.prototype._reset):
1820         (WebInspector.ProfilesPanel.prototype.closeVisibleView):
1821         * inspector/front-end/RemoteObject.js:
1822         * inspector/front-end/ResourcePreviewView.js:
1823         (WebInspector.ResourcePreviewView.prototype.contentLoaded):
1824         * inspector/front-end/ResourceResponseView.js:
1825         (WebInspector.ResourceResponseView.prototype.contentLoaded):
1826         * inspector/front-end/ResourceTimingView.js:
1827         (WebInspector.ResourceTimingView.prototype.show):
1828         * inspector/front-end/ResourcesPanel.js:
1829         (WebInspector.ResourcesPanel.prototype.reset):
1830         (WebInspector.ResourcesPanel.prototype._innerShowView):
1831         (WebInspector.FrameResourceTreeElement.prototype._recreateSourceView):
1832         * inspector/front-end/ScriptsPanel.js:
1833         (WebInspector.ScriptsPanel.prototype._uiSourceCodeRemoved):
1834         (WebInspector.ScriptsPanel.prototype._createSourceFrame):
1835         (WebInspector.ScriptsPanel.prototype._removeSourceFrame):
1836         * inspector/front-end/SourceFrame.js:
1837         (WebInspector.SourceFrame):
1838         (WebInspector.SourceFrame.prototype.show):
1839         * inspector/front-end/TabbedPane.js:
1840         (WebInspector.TabbedPane):
1841         (WebInspector.TabbedPane.prototype.appendTab):
1842         (WebInspector.TabbedPane.prototype._hideTab):
1843         * inspector/front-end/View.js:
1844         (WebInspector.View):
1845         (WebInspector.View.prototype.show):
1846         (WebInspector.View.prototype.hide):
1847         (WebInspector.View.prototype.attach):
1848         (WebInspector.View.prototype.detach):
1849         (WebInspector.View.prototype._addChildView):
1850         (WebInspector.View.prototype._removeChildView):
1851         (WebInspector.View.prototype.dispatchToVisibleChildren):
1852         (WebInspector.View.prototype._handleInsertedIntoDocument):
1853         (WebInspector.View.prototype._handleRemovedFromDocument):
1854         (WebInspector.View.prototype.printViewHierarchy):
1855         (WebInspector.View.prototype._collectViewHierarchy):
1856         * inspector/front-end/inspector.html:
1857         * inspector/front-end/inspector.js:
1858
1859 2011-10-20  Vsevolod Vlasov  <vsevik@chromium.org>
1860
1861         Web Inspector: Enable support for advanced search in script's static content provider.
1862         https://bugs.webkit.org/show_bug.cgi?id=70354
1863
1864         Reviewed by Pavel Feldman.
1865
1866         Test: http/tests/inspector/search/search-in-static.html
1867
1868         * inspector/front-end/AdvancedSearchController.js:
1869         (WebInspector.FileBasedSearchResultsPane.prototype.addSearchResult):
1870         * inspector/front-end/ConsolePanel.js:
1871         (WebInspector.ConsolePanel.prototype.performSearch):
1872         * inspector/front-end/ContentProviders.js:
1873         (WebInspector.StaticContentProvider.prototype.searchInContent):
1874         * inspector/front-end/ElementsTreeOutline.js:
1875         ():
1876         * inspector/front-end/NetworkPanel.js:
1877         (WebInspector.NetworkLogView.prototype.performSearch):
1878         * inspector/front-end/ScriptsPanel.js:
1879         (WebInspector.ScriptsPanel.prototype._showSourceLine):
1880         * inspector/front-end/SourceFrame.js:
1881         (WebInspector.SourceFrame.createSearchRegex):
1882         * inspector/front-end/utilities.js:
1883         ():
1884
1885 2011-10-20  Raphael Kubo da Costa  <kubo@profusion.mobi>
1886
1887         [EFL] Do not manually set the frameRect in different places in ScrollbarEfl.
1888         https://bugs.webkit.org/show_bug.cgi?id=70427
1889
1890         Reviewed by Kenneth Rohde Christiansen.
1891
1892         This commit is related to the effort towards having a different
1893         scrollbar (with a size > 0) for DumpRenderTree.
1894
1895         Scrollbar::Scrollbar() already calls setFrameRect() with the size
1896         obtained from ScrollbarTheme::scrollbarThickness(), which is currently
1897         always 0 for us, so the call to setFrameRect() in ScrollbarEfl's
1898         constructor is not needed and would break things if scrollbarThickness
1899         is changed to return another value.
1900
1901         The frameRect is also not changed in ScrollbarEfl::setParent() anymore,
1902         as it also does not take scrollbarThickness() into account and thus
1903         breaks using other themes such as ScrollbarThemeMock in DumpRenderTree.
1904         Right now, it is always going to be 0 anyway.
1905
1906         It is still work in progress, though -- it'd be good to somehow move the
1907         theming code to ScrollbarThemeEfl, as right now scrollbar EDCs with a
1908         non-zero min size will not cause the scrollbars to have non-zero size.
1909
1910         No new tests, this is machinery needed to run the current tests.
1911
1912         * platform/efl/ScrollbarEfl.cpp:
1913         (ScrollbarEfl::ScrollbarEfl):
1914         (ScrollbarEfl::setParent):
1915
1916 2011-10-20  Sheriff Bot  <webkit.review.bot@gmail.com>
1917
1918         Unreviewed, rolling out r97954.
1919         http://trac.webkit.org/changeset/97954
1920         https://bugs.webkit.org/show_bug.cgi?id=70486
1921
1922         clean build failed on chromium.mac: File
1923         "../inspector/CodeGeneratorInspector.py", line 34, in <module>
1924         import json (Requested by loislo on #webkit).
1925
1926         * CMakeLists.txt:
1927         * CodeGenerators.pri:
1928         * DerivedSources.make:
1929         * GNUmakefile.am:
1930         * WebCore.gyp/WebCore.gyp:
1931         * inspector/CodeGeneratorInspector.pm: Added.
1932         (new):
1933         (GenerateModule):
1934         (GenerateInterface):
1935         (generateAgentDeclaration):
1936         (generateFrontendConstructorImpl):
1937         (generateFunctions):
1938         (generateFrontendFunction):
1939         (camelCase):
1940         (generateBackendFunction):
1941         (generateBackendSendResponse):
1942         (generateBackendReportProtocolError):
1943         (generateArgumentGetters):
1944         (generateBackendDispatcher):
1945         (generateBackendMessageParser):
1946         (collectBackendJSStubFunctions):
1947         (collectBackendJSStubEvents):
1948         (generateBackendStubJS):
1949         (generateHeader):
1950         (generateSource):
1951         (typeTraits):
1952         (paramTypeTraits):
1953         (generateBackendAgentFieldsAndConstructor):
1954         (finish):
1955         * inspector/CodeGeneratorInspector.py: Removed.
1956         * inspector/Inspector.json:
1957         * inspector/generate-inspector-idl: Added.
1958
1959 2011-10-20  Adenilson Cavalcanti  <adenilson.silva@openbossa.org>
1960
1961         Enable geolocation client based flag for Qt5
1962         https://bugs.webkit.org/show_bug.cgi?id=70330
1963
1964         Reviewed by Kenneth Rohde Christiansen.
1965
1966         This will enable client based geolocation for Qt5.
1967
1968         No new tests, this enables flags for Qt5.
1969
1970         * features.pri:
1971
1972 2011-10-20  Kentaro Hara  <haraken@chromium.org>
1973
1974         Implement a MessageEvent constructor for V8
1975         https://bugs.webkit.org/show_bug.cgi?id=70296
1976
1977         Reviewed by Adam Barth.
1978
1979         Test: fast/events/constructors/message-event-constructor.html
1980
1981         * bindings/v8/OptionsObject.cpp:
1982         (WebCore::OptionsObject::getKeyValue): Returns RefPtr<DOMWindow> corresponding to a given key.
1983         (WebCore::OptionsObject::getKeyValue): Returns MessagePortArray corresponding to a given key.
1984         * bindings/v8/OptionsObject.h:
1985         * bindings/v8/custom/V8EventConstructors.cpp: Added a MessageEvent constructor.
1986         * dom/MessageEvent.idl: Makes MessageEvent constructible for V8.
1987
1988 2011-10-20  Peter Rybin  <peter.rybin@gmail.com>
1989
1990         Web Inspector: reimplement protocol backend/frontend source generator
1991         https://bugs.webkit.org/show_bug.cgi?id=69295
1992
1993         Reviewed by Pavel Feldman.
1994
1995         Old 2-stage python+perf generator that uses intermediate IDL output is
1996         being replaced with a solid python script. This is for simplicity and
1997         as a base for the future JSON validator.
1998
1999         * CMakeLists.txt:
2000         * CodeGenerators.pri:
2001         * DerivedSources.make:
2002         * GNUmakefile.am:
2003         * WebCore.gyp/WebCore.gyp:
2004         * inspector/CodeGeneratorInspector.pm: Removed.
2005         * inspector/CodeGeneratorInspector.py: Added.
2006         * inspector/Inspector.json:
2007         * inspector/generate-inspector-idl: Removed.
2008
2009 2011-10-18  Pavel Podivilov  <podivilov@chromium.org>
2010
2011         Web Inspector: encode source map url as source map page url query parameter.
2012         https://bugs.webkit.org/show_bug.cgi?id=70327
2013
2014         Reviewed by Pavel Feldman.
2015
2016         * inspector/front-end/CompilerSourceMappingProvider.js:
2017         (WebInspector.CompilerSourceMappingProvider):
2018         (WebInspector.CompilerSourceMappingProvider.prototype.loadSourceMapping.frameLoaded):
2019         (WebInspector.CompilerSourceMappingProvider.prototype.loadSourceMapping):
2020         (WebInspector.CompilerSourceMappingProvider.prototype.loadSourceCode):
2021         (WebInspector.CompilerSourceMappingProvider.prototype._sendRequest):
2022         * inspector/front-end/RawSourceCode.js:
2023         (WebInspector.RawSourceCode.CompilerSourceMapping.prototype.uiSourceCodeList):
2024
2025 2011-10-19  Alexander Pavlov  <apavlov@chromium.org>
2026
2027         Web Inspector: The "x" in "980px x 36px" looks weird in the inspector node callout
2028         https://bugs.webkit.org/show_bug.cgi?id=69857
2029
2030         Reviewed by Pavel Feldman.
2031
2032         * inspector/DOMNodeHighlighter.cpp:
2033
2034 2011-10-20  Sheriff Bot  <webkit.review.bot@gmail.com>
2035
2036         Unreviewed, rolling out r97917.
2037         http://trac.webkit.org/changeset/97917
2038         https://bugs.webkit.org/show_bug.cgi?id=70475
2039
2040         number of crashes on Snow Leopard/Lion tests bots
2041         http://build.webkit.org/results/Lion%20Intel%20Release%20(Tests)/r97917%20(2020)/http/tests/inspector
2042         /extensions-network-redirect-crash-log.txt (Requested by
2043         loislo on #webkit).
2044
2045         * css/SelectorChecker.cpp:
2046         (WebCore::SelectorChecker::checkOneSelector):
2047         * dom/OptionElement.cpp:
2048         (WebCore::OptionElement::setSelectedState):
2049         (WebCore::OptionElement::optionIndex):
2050         (WebCore::OptionElement::collectOptionLabelOrText):
2051         (WebCore::OptionElement::collectOptionInnerText):
2052         (WebCore::OptionElement::normalizeText):
2053         (WebCore::OptionElement::collectOptionTextRespectingGroupLabel):
2054         (WebCore::OptionElementData::OptionElementData):
2055         (WebCore::OptionElementData::~OptionElementData):
2056         (WebCore::toOptionElement):
2057         (WebCore::isOptionElement):
2058         * dom/OptionElement.h:
2059         (WebCore::OptionElement::~OptionElement):
2060         (WebCore::OptionElementData::value):
2061         (WebCore::OptionElementData::setValue):
2062         (WebCore::OptionElementData::label):
2063         (WebCore::OptionElementData::setLabel):
2064         (WebCore::OptionElementData::selected):
2065         (WebCore::OptionElementData::setSelected):
2066         * html/HTMLOptionElement.cpp:
2067         (WebCore::HTMLOptionElement::HTMLOptionElement):
2068         (WebCore::HTMLOptionElement::createForJSConstructor):
2069         (WebCore::HTMLOptionElement::text):
2070         (WebCore::HTMLOptionElement::index):
2071         (WebCore::HTMLOptionElement::parseMappedAttribute):
2072         (WebCore::HTMLOptionElement::value):
2073         (WebCore::HTMLOptionElement::selected):
2074         (WebCore::HTMLOptionElement::setSelected):
2075         (WebCore::HTMLOptionElement::setSelectedState):
2076         (WebCore::HTMLOptionElement::defaultSelected):
2077         (WebCore::HTMLOptionElement::setDefaultSelected):
2078         (WebCore::HTMLOptionElement::label):
2079         (WebCore::HTMLOptionElement::textIndentedToRespectGroupLabel):
2080         (WebCore::HTMLOptionElement::insertedIntoTree):
2081         * html/HTMLOptionElement.h:
2082         * html/HTMLSelectElement.cpp:
2083         (WebCore::HTMLSelectElement::nextValidIndex):
2084         (WebCore::HTMLSelectElement::saveLastSelection):
2085         (WebCore::HTMLSelectElement::setActiveSelectionAnchorIndex):
2086         (WebCore::HTMLSelectElement::updateListBoxSelection):
2087         (WebCore::HTMLSelectElement::listBoxOnChange):
2088         (WebCore::HTMLSelectElement::recalcListItems):
2089         (WebCore::HTMLSelectElement::selectedIndex):
2090         (WebCore::HTMLSelectElement::setSelectedIndex):
2091         (WebCore::HTMLSelectElement::optionToListIndex):
2092         (WebCore::HTMLSelectElement::listToOptionIndex):
2093         (WebCore::HTMLSelectElement::deselectItemsWithoutValidation):
2094         (WebCore::HTMLSelectElement::saveFormControlState):
2095         (WebCore::HTMLSelectElement::restoreFormControlState):
2096         (WebCore::HTMLSelectElement::appendFormData):
2097         (WebCore::HTMLSelectElement::reset):
2098         (WebCore::HTMLSelectElement::updateSelectedState):
2099         (WebCore::HTMLSelectElement::lastSelectedListIndex):
2100         (WebCore::HTMLSelectElement::typeAheadFind):
2101         (WebCore::HTMLSelectElement::accessKeySetSelectedIndex):
2102         (WebCore::HTMLSelectElement::length):
2103         * platform/graphics/cg/ImageBufferCG.cpp:
2104         (WebCore::ImageBuffer::copyImage):
2105         * rendering/RenderListBox.cpp:
2106         (WebCore::RenderListBox::updateFromElement):
2107         (WebCore::RenderListBox::addFocusRingRects):
2108         (WebCore::RenderListBox::paintItemForeground):
2109         (WebCore::RenderListBox::paintItemBackground):
2110         * rendering/RenderMenuList.cpp:
2111         (WebCore::RenderMenuList::updateOptionsWidth):
2112         (WebCore::RenderMenuList::setTextFromOption):
2113         (WebCore::RenderMenuList::itemText):
2114         (WebCore::RenderMenuList::itemIsSelected):
2115
2116 2011-10-20  Carol Szabo  <carol@webkit.org>
2117
2118         Tiled Backing Store does not regenerate tiles when it should
2119         https://bugs.webkit.org/show_bug.cgi?id=57798
2120
2121         Reviewed by Darin Adler.
2122
2123         Changed TiledBackingStore::adjustVisibleRect to take into account
2124         contentsSize, the same way as it is done when tiles are generated.
2125
2126         This is an issue that requires a certain sequence of API calls which
2127         may not be easily simulated from DumpRenderTree, but which is 
2128         easily reproduced with QtTest. This is why I have provided only
2129         a Qt specific test despite this being a generic problem.
2130
2131         * platform/graphics/TiledBackingStore.cpp:
2132         (WebCore::TiledBackingStore::adjustVisibleRect):
2133         Changed to take into account ContentsSize.
2134         (WebCore::TiledBackingStore::visibleContentsRect):
2135         Added to return the intersection of the viewport's visible rect with
2136         the ContentsRect.
2137         (WebCore::TiledBackingStore::createTiles):
2138         Changed to take into account the ContentsSize when calculating the
2139         previously visible rect.
2140         * platform/graphics/TiledBackingStore.h:
2141
2142 2011-10-19  Jer Noble  <jer.noble@apple.com>
2143
2144         compositing/video tests time out on Lion
2145         https://bugs.webkit.org/show_bug.cgi?id=70448
2146
2147         Reviewed by Eric Carlson.
2148
2149         Covered by existing tests.
2150
2151         AVFoundation will occasionally fill it's playback buffers before collecting enough
2152         statistical information to answer YES to isLikelyToKeepUp.  In this situation, set the
2153         ready state to HAVE_ENOUGH_DATA, on the presumption that if the playback buffers are
2154         full, playback will probably not stall.
2155
2156         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
2157         (WebCore::MediaPlayerPrivateAVFoundation::updateStates):
2158
2159 2011-10-19  Kentaro Hara  <haraken@chromium.org>
2160
2161         MessageEvent.data can be stored as ScriptValue.
2162         https://bugs.webkit.org/show_bug.cgi?id=68978
2163
2164         Reviewed by Hajime Morita.
2165
2166         Currently, the following test cases fail or crash:
2167
2168         - shouldBe("new MessageEvent('eventType', { data: test_object }).data", "test_object") -> FAIL
2169         - new MessageEvent('eventType', { data: document }).data -> CRASH
2170
2171         This is because MessageEvent.data is implemented just as SerializedScriptValue
2172         and it cannot keep ScriptValue passed by JavaScript. This patch makes the following changes:
2173
2174         - If MessageEvent is constructed with ScriptValue, it is stored as ScriptValue internally.
2175         When MessageEvent.data is called, the ScriptValue is returned.
2176         - If MessageEvent is constructed with SerializedScriptValue, it is stored as
2177         SerializedScriptValue internally (since we cannot deserialize it into ScriptValue
2178         at this point because of lack of ExecState). When MessageEvent.data is called,
2179         the SerializedScriptValue is deserialized into the corresponding ScriptValue,
2180         and the ScriptValue is returned.
2181
2182         This patch does not make a fix for ObjC bindings code, since we need to first fix
2183         the bug 28774, as commented in dom/MessageEvent.h and dom/MessageEvent.cpp.
2184
2185         Test: fast/events/constructors/message-event-constructor.html
2186               fast/dom/message-port-deleted-by-accessor.html
2187               fast/events/init-events.html
2188               fast/eventsource/eventsource-attribute-listeners.html
2189
2190         * bindings/js/JSMessageEventCustom.cpp:
2191         (WebCore::JSMessageEvent::data): Custom getter for MessageEvent.data. Supported ScriptValue.
2192         (WebCore::JSMessageEvent::handleInitMessageEvent): Changed SerializedScriptValue to ScriptValue. Removed a 'doTransfer' parameter.
2193         (WebCore::JSMessageEvent::initMessageEvent): Removed a 'doTransfer' parameter.
2194         (WebCore::JSMessageEvent::webkitInitMessageEvent): Ditto.
2195         * bindings/v8/custom/V8MessageEventCustom.cpp:
2196         (WebCore::V8MessageEvent::dataAccessorGetter): Custom getter for MessageEvent.data. Supported ScriptValue.
2197         (WebCore::V8MessageEvent::portsAccessorGetter): Removed extra spaces.
2198         (WebCore::V8MessageEvent::initMessageEventCallback): Changed SerializedScriptValue to ScriptValue.
2199         * dom/MessageEvent.cpp:
2200         (WebCore::MessageEvent::MessageEvent): Supported ScriptValue.
2201         (WebCore::MessageEvent::initMessageEvent): Supported ScriptValue.
2202         (WebCore::MessageEvent::isMessageEvent): Removed extra spaces.
2203         * dom/MessageEvent.h: Added DataType::DataTypeScriptValue.
2204         (WebCore::MessageEvent::create): Supported ScriptValue.
2205         (WebCore::MessageEvent::dataAsScriptValue): Getter for data. Insert ASSERT() to guarantee that this accessor is not called for unintended type of data.
2206         (WebCore::MessageEvent::dataAsSerializedScriptValue): Ditto.
2207         (WebCore::MessageEvent::dataAsString): Ditto.
2208         (WebCore::MessageEvent::dataAsBlob): Ditto.
2209         (WebCore::MessageEvent::dataAsArrayBuffer): Ditto.
2210         * dom/MessageEvent.idl: Changed SerializedScriptValue to DOMObject (i.e. ScriptValue). This patch does not touch an ObjC part. Removed [CachedAttribute] from MessageEvent.data, since it is now a DOMObject and needs not to be cached.
2211
2212 2011-10-19  Adam Barth  <abarth@webkit.org>
2213
2214         Attempt to fix GTK build.
2215
2216         * GNUmakefile.am:
2217
2218 == Rolled over to ChangeLog-2011-10-19 ==