5c03635693bb84f90565eea027dc912c6262d23e
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2012-01-01  Andreas Kling  <awesomekling@apple.com>
2
3         HTMLCollection: Remove the constructor's custom CollectionCache* argument.
4         <http://webkit.org/b/75414>
5
6         Reviewed by Anders Carlsson.
7
8         We no longer need to initialize HTMLCollections with a custom CollectionCache,
9         so remove the argument from the constructor.
10
11         * html/HTMLCollection.cpp:
12         (WebCore::HTMLCollection::HTMLCollection):
13         * html/HTMLCollection.h:
14         * html/HTMLFormCollection.cpp:
15         (WebCore::HTMLFormCollection::HTMLFormCollection):
16         * html/HTMLNameCollection.cpp:
17         (WebCore::HTMLNameCollection::HTMLNameCollection):
18         * html/HTMLOptionsCollection.cpp:
19         (WebCore::HTMLOptionsCollection::HTMLOptionsCollection):
20         * html/HTMLTableRowsCollection.cpp:
21         (WebCore::HTMLTableRowsCollection::HTMLTableRowsCollection):
22
23 2011-12-31  Dan Bernstein  <mitz@apple.com>
24
25         WebCore changes for: REGRESSION (WebKit2): Cursor, hover states not updated when page scrolls under stationary mouse pointer
26         https://bugs.webkit.org/show_bug.cgi?id=75405
27
28         Reviewed by Anders Carlsson.
29
30         Test: fast/events/frame-scroll-fake-mouse-move.html
31
32         * page/FrameView.cpp:
33         (WebCore::FrameView::scrollPositionChanged): Added a call to
34         EventHandler::dispatchFakeMouseMoveEventSoon().
35
36 2012-01-01  Andreas Kling  <awesomekling@apple.com>
37
38         Cache named item collections on Document, not just their caches.
39         <http://webkit.org/b/75403>
40
41         Reviewed by Anders Carlsson.
42
43         Keep two maps of name -> RefPtr<HTMLNameCollection> on Document. We already
44         had maps for the CollectionCaches and were creating the HTMLNameCollections
45         every time they were accessed. We now let the collections create and manage
46         the CollectionCaches instead of Document.
47
48         No new tests since these collections are not exposed to the web.
49
50         * dom/Document.h:
51         * dom/Document.cpp:
52         (WebCore::Document::windowNamedItems):
53         (WebCore::Document::documentNamedItems):
54
55             Replace the name/CollectionCache maps by name/HTMLNameCollection maps.
56
57         * bindings/js/JSDOMWindowCustom.cpp:
58         (WebCore::namedItemGetter):
59         * bindings/js/JSHTMLDocumentCustom.cpp:
60         (WebCore::JSHTMLDocument::nameGetter):
61
62             Pass names as AtomicStrings to Document's collection getters.
63
64         * html/HTMLNameCollection.h:
65         (WebCore::HTMLNameCollection::create):
66         * html/HTMLNameCollection.cpp:
67         (WebCore::HTMLNameCollection::HTMLNameCollection):
68
69             Store the name in an AtomicString instead of a String, incidentally
70             making traversal of HTMLNameCollections more efficient.
71
72         * html/CollectionType.h:
73
74             Remove two now-unneeded constants.
75
76 2012-01-01  Andreas Kling  <awesomekling@apple.com>
77
78         Remove Document::collectionInfo() and let collections manage their caches.
79         <http://webkit.org/b/75401>
80
81         Reviewed by Anders Carlsson.
82
83         Remove the CollectionCaches from Document and have the document's collections
84         create and manage the caches on-demand instead. This is a step towards merging
85         CollectionCache into HTMLCollection.
86
87         * dom/Document.h:
88         * dom/Document.cpp:
89         * html/HTMLCollection.cpp:
90         (WebCore::HTMLCollection::HTMLCollection):
91         * html/HTMLOptionsCollection.cpp:
92
93 2012-01-01  Andreas Kling  <awesomekling@apple.com>
94
95         RenderThemeMac: Avoid double hash lookup in systemColor().
96         <http://webkit.org/b/75409>
97
98         Reviewed by Anders Carlsson.
99
100         * rendering/RenderThemeMac.mm:
101         (WebCore::RenderThemeMac::systemColor):
102
103 2012-01-01  Andreas Kling  <awesomekling@apple.com>
104
105         CSSStyleSelector: Avoid double hash lookup in keyframeStylesForAnimation().
106         <http://webkit.org/b/75408>
107
108         Reviewed by Anders Carlsson.
109
110         * css/CSSStyleSelector.cpp:
111         (WebCore::CSSStyleSelector::keyframeStylesForAnimation):
112
113 2012-01-01  Andreas Kling  <awesomekling@apple.com>
114
115         KeyframeAnimation: Use hash lookups to determine if property is animated.
116         <http://webkit.org/b/75407>
117
118         Reviewed by Anders Carlsson.
119
120         Clean out an old FIXME about using hash lookups instead of iterating over
121         the properties.
122
123         * page/animation/KeyframeAnimation.cpp:
124         (WebCore::KeyframeAnimation::hasAnimationForProperty):
125         (WebCore::KeyframeAnimation::affectsProperty):
126
127 2011-12-31  Dan Bernstein  <mitz@apple.com>
128
129         WebCore change for <rdar://problem/10463059> Cannot print USPS shipping labels
130         http://webkit.org/b/72801
131
132         Reviewed by Anders Carlsson and Alexey Proskuryakov.
133
134         * WebCore.exp.in: Exported Chrome::print().
135
136 2011-12-31  Dan Bernstein  <mitz@apple.com>
137
138         WebCore changes for <rdar://problem/8750356> REGRESSION (WebKit2): Printing a subframe containing a PDF prints the on-screen view instead of the entire PDF document
139         <http://webkit.org/b/75232>
140
141         Reviewed by Alexey Proskuryakov.
142
143         * WebCore.exp.in: Exported PluginDocument::pluginWidget().
144         * WebCore.xcodeproj/project.pbxproj: Promoted PluginDocument.h to private.
145         * html/PluginDocument.h: Fixed a typo in a comment.
146
147 2011-12-30  Andreas Kling  <awesomekling@apple.com>
148
149         Cache and reuse the HTMLTableElement.rows collection.
150         <http://webkit.org/b/75398>
151
152         Reviewed by Anders Carlsson.
153
154         Let HTMLTableElement::rows() cache the returned collection and tie it to the
155         lifetime of the form.
156
157         Test: fast/dom/table-rows-collection-idempotence.html
158               fast/dom/gc-9.html
159
160         * html/HTMLTableElement.h:
161         * html/HTMLTableElement.cpp:
162         (WebCore::HTMLTableElement::rows):
163
164             Cache the HTMLTableRowsCollection returned by rows() on the HTMLTableElement.
165             Remove the per-table CollectionCache and let the collection manage that.
166
167         * html/HTMLTableRowsCollection.h:
168         * html/HTMLTableRowsCollection.cpp:
169         (WebCore::HTMLTableRowsCollection::HTMLTableRowsCollection):
170         (WebCore::HTMLTableRowsCollection::create):
171
172             Tell the base class constructor to not retain the back-pointer to the table.
173
174 2011-12-30  Andreas Kling  <awesomekling@apple.com>
175
176         Cache and reuse the HTMLSelectElement.options collection.
177         <http://webkit.org/b/75399>
178
179         Reviewed by Anders Carlsson.
180
181         Let HTMLSelectElement::options() cache the returned collection and tie it to the
182         lifetime of the form. This shrinks HTMLSelectElement by sizeof(CollectionCache)
183         minus one pointer.
184
185         Test: fast/dom/select-options-collection-idempotence.html
186               fast/gc-9.html
187
188         * html/HTMLSelectElement.h:
189         * html/HTMLSelectElement.cpp:
190         (WebCore::HTMLSelectElement::options):
191
192             Cache the HTMLOptionsCollection returned by options() on the HTMLSelectElement.
193             Remove the per-select CollectionCache and let the collection manage that.
194
195         * html/HTMLOptionsCollection.h:
196         * html/HTMLOptionsCollection.cpp:
197         (WebCore::HTMLOptionsCollection::create):
198         (WebCore::HTMLOptionsCollection::HTMLOptionsCollection):
199
200             Tell the base class constructor to not retain the back-pointer to the element.
201
202         * html/HTMLSelectElement.cpp:
203         (WebCore::HTMLSelectElement::setRecalcListItems):
204         * html/HTMLOptionsCollection.cpp:
205         (WebCore::HTMLOptionsCollection::invalidateCache):
206
207             Added so HTMLSelectElement can invalidate the collection without triggering
208             unnecessary instantiation of a CollectionCache.
209
210 2011-12-30  Kentaro Hara  <haraken@chromium.org>
211
212         Enable the [Supplemental] IDL on CMake
213         https://bugs.webkit.org/show_bug.cgi?id=75345
214
215         Reviewed by Daniel Bates.
216
217         This patch enables the [Supplemental] IDL on CMake by changing the build
218         flow of CMake as follows.
219
220         - Previous build flow:
221             foreach $idl (all IDL files) {
222                 generate-bindings.pl depends on $idl;
223                 generate-bindings.pl reads $idl;
224                 generate-bindings.pl generates .h and .cpp files for $idl;
225             }
226
227         - New build flow (See the discussions in bug 72138 for more details):
228             resolve-supplemental.pl depends on all IDL files;
229             resolve-supplemental.pl reads all IDL files;
230             resolve-supplemental.pl resolves the dependency of [Supplemental=XXXX];
231             resolve-supplemental.pl outputs supplemental_dependency.tmp;
232             foreach $idl (all IDL files) {
233                 generate-bindings.pl depends on $idl and supplemental_dependency.tmp;
234                 generate-bindings.pl reads $idl;
235                 generate-bindings.pl reads supplemental_dependency.tmp;
236                 generate-bindings.pl generates .h and .cpp files for $idl,
237                     including all attributes in the IDL files that are implementing $idl;
238             }
239
240         Tests: Confirm that build succeeds.
241                http/tests/websocket/tests/*
242
243         * CMakeLists.txt:
244         * UseJSC.cmake: Modified to reflect the new build flow as described above.
245         * UseV8.cmake: Ditto.
246
247 2011-12-30  Robert Hogan  <robert@webkit.org>
248
249         REGRESSION (r94492): Text is shifted to the right in some buttons in the Mac App Store
250         https://bugs.webkit.org/show_bug.cgi?id=74723
251
252         Reviewed by Dan Bernstein.
253
254         Tests: fast/css/absolute-inline-alignment-2.html
255                fast/css/absolute-inline-alignment.html
256
257         Inline positioned elements in the leading spaces of an inline run need to align to 
258         adjacent text, so add them to the run as they're encountered.
259
260         * rendering/RenderBlockLineLayout.cpp:
261         (WebCore::LineInfo::LineInfo): Keep a count of positioned objects encountered when
262          skipping leading whitespace.
263         (WebCore::LineInfo::runsFromLeadingWhitespace):
264         (WebCore::LineInfo::resetRunsFromLeadingWhitespace):
265         (WebCore::LineInfo::incrementRunsFromLeadingWhitespace):
266         (WebCore::RenderBlock::constructLine): Leading positioned objects should not be considered
267          when deciding the number of runs in a line. Otherwise they would contribute towards line 
268          height themselves and prevent a free-standing BR following the positioned object from providing a full 
269          20px of height.
270         (WebCore::RenderBlock::layoutRunsAndFloatsInRange): Since a run containing line-breaks will enter
271          skipLeadingWhitespace for each new line we reset the count every time so that the count of positioned
272          objects we encounter only affects the line they appear on. This case is covered by 
273          fast/inline/styledEmptyInlinesWithBRs.html
274         (WebCore::RenderBlock::LineBreaker::skipLeadingWhitespace): Add a run for each inline positioned object
275          encountered in leading white space. Keep a count of them so that they can be excluded from
276          the total number of runs in constructLine. 
277
278 2011-12-30  Raymond Liu  <raymond.liu@intel.com>
279
280         Remove unnecessary [Custom] attribute in CanvasRenderingContext2D.idl
281         https://bugs.webkit.org/show_bug.cgi?id=75376
282
283         Reviewed by Adam Barth.
284
285         No new tests required.
286
287         * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
288         * html/canvas/CanvasRenderingContext2D.idl:
289
290 2011-12-30  Andreas Kling  <awesomekling@apple.com>
291
292         Cache and reuse the HTMLFormElement.elements collection.
293         <http://webkit.org/b/75375>
294
295         Reviewed by Anders Carlsson.
296
297         Let HTMLFormElement::elements() cache the returned collection and tie it to the
298         lifetime of the form. This reduces memory consumption by ~70 kB (on 64-bit) when
299         viewing your average popular post on reddit.com.
300
301         Test: fast/dom/form-elements-collection-idempotence.html
302               fast/dom/gc-9.html
303
304         * html/HTMLFormElement.h:
305         * html/HTMLFormElement.cpp:
306         (WebCore::HTMLFormElement::elements):
307
308             Cache the HTMLFormCollection returned by elements() on the HTMLFormElement.
309             Remove the per-form CollectionCache and let the collection manage that.
310
311         * html/HTMLCollection.h:
312         * html/HTMLCollection.cpp:
313         (WebCore::HTMLCollection::HTMLCollection):
314         (WebCore::HTMLCollection::create):
315
316             Have the HTMLCollection constructor take a bool argument that decides whether
317             we retain the base node pointer or not. This mechanism is a temporary measure
318             until all collection types are owned by their respective base nodes.
319
320         * html/HTMLFormCollection.h:
321         * html/HTMLFormCollection.cpp:
322         (WebCore::HTMLFormCollection::HTMLFormCollection):
323         (WebCore::HTMLFormCollection::create):
324
325             Tell the base class constructor to not retain the back-pointer to the form.
326
327 2011-12-30  Andreas Kling  <awesomekling@apple.com>
328
329         Unreviewed buildfix after r103841.
330
331         * inspector/InspectorMemoryAgent.cpp:
332
333 2011-12-30  Andreas Kling  <awesomekling@apple.com>
334
335         CSSStyleDeclaration: Only allow setting parent rule at construction.
336         <http://webkit.org/b/75391>
337
338         Reviewed by Dan Bernstein.
339
340         A CSSStyleDeclaration should only ever belong to one CSSRule. Enforce this
341         at compile-time by replacing setParentRule(CSSRule*) with clearParentRule().
342
343         * css/CSSFontFaceRule.cpp:
344         (WebCore::CSSFontFaceRule::~CSSFontFaceRule):
345         * css/CSSStyleDeclaration.h:
346         (WebCore::CSSStyleDeclaration::clearParentRule):
347         * css/CSSStyleRule.cpp:
348         (WebCore::CSSStyleRule::~CSSStyleRule):
349         * css/WebKitCSSKeyframeRule.cpp:
350         (WebCore::WebKitCSSKeyframeRule::~WebKitCSSKeyframeRule):
351
352 2011-12-30  Andreas Kling  <awesomekling@apple.com>
353
354         WebKitCSSKeyframeRule.style.parentRule should point to the keyframe rule.
355         <http://webkit.org/b/75336>
356
357         Reviewed by Antti Koivisto.
358
359         Let CSS animation keyframe rules .style.parentRule point back to the keyframe
360         board, rather than the keyframes rule containing it.
361
362         Test: fast/css/css-keyframe-style-parentRule.html
363
364         * css/CSSParser.cpp:
365         (WebCore::CSSParser::createKeyframeRule):
366         * css/WebKitCSSKeyframeRule.cpp:
367         (WebCore::WebKitCSSKeyframeRule::setDeclaration):
368
369             Set the CSSMutableStyleDeclaration's parent rule when creating it instead
370             of in WebKitCSSKeyframeRule::setDeclaration(). Add assertion to make sure
371             it's only called with declarations already parented to the keyframe rule.
372
373         * css/WebKitCSSKeyframesRule.cpp:
374         (WebCore::WebKitCSSKeyframesRule::~WebKitCSSKeyframesRule):
375         (WebCore::WebKitCSSKeyframesRule::append):
376         (WebCore::WebKitCSSKeyframesRule::deleteRule):
377
378             Stop reparenting keyframe rules' style declarations to the keyframes rule.
379
380 2011-12-30  Yury Semikhatsky  <yurys@chromium.org>
381
382         Web Inspector: use typed front-end API in the memory agent
383         https://bugs.webkit.org/show_bug.cgi?id=75382
384
385         Memory agent now uses generate C++ API for communicating to the front-end.
386
387         Reviewed by Pavel Feldman.
388
389         * inspector/InspectorMemoryAgent.cpp:
390         (WebCore::DOMTreeStatistics::CounterVisitor::CounterVisitor):
391         (WebCore::DOMTreeStatistics::CounterVisitor::counters):
392         (WebCore::DOMTreeStatistics::CounterVisitor::visitNode):
393
394 2011-12-30  Pavel Feldman  <pfeldman@google.com>
395
396         Web Inspector: migrate from "attached" to "compact" styles.
397         https://bugs.webkit.org/show_bug.cgi?id=75381
398
399         When front-end is docked to right, it should look like "detached", but is still "attached".
400         Use "compact" mode instead of "attached" mode in the styles to mitigate it.
401
402         Reviewed by Yury Semikhatsky.
403
404         * inspector/front-end/SearchController.js:
405         (WebInspector.SearchController.prototype.updateSearchLabel):
406         * inspector/front-end/Toolbar.js:
407         (WebInspector.Toolbar.prototype.set compact):
408         (WebInspector.Toolbar.prototype._toolbarDragStart):
409         (WebInspector.Toolbar.prototype._toolbarDrag):
410         * inspector/front-end/helpScreen.css:
411         (body.compact .help-window-outer):
412         (body.compact .help-window-main):
413         (body.compact .help-window-caption):
414         (body.compact .help-close-button):
415         (body.compact .help-content):
416         * inspector/front-end/inspector.css:
417         (body.compact #toolbar):
418         (body.compact.port-qt #toolbar):
419         (body.compact.inactive #toolbar):
420         (body.compact #search-toolbar-label):
421         (body.compact #toolbar-dropdown-arrow):
422         (body.compact #search):
423         (body.compact.port-qt .toolbar-item.close-left, body.compact.port-qt .toolbar-item.close-right):
424         (body.compact #main):
425         * inspector/front-end/inspector.js:
426         (WebInspector.set attached):
427         (WebInspector.get isCompactMode):
428         (WebInspector.get _setCompactMode):
429         (WebInspector._installDockToRight.listener.get if):
430         (WebInspector._installDockToRight.listener):
431         * inspector/front-end/inspectorCommon.css:
432         (body.dock-to-right):
433         (body.dock-to-right.inactive):
434
435 2011-12-30  Sheriff Bot  <webkit.review.bot@gmail.com>
436
437         Unreviewed, rolling out r103794.
438         http://trac.webkit.org/changeset/103794
439         https://bugs.webkit.org/show_bug.cgi?id=75379
440
441         the ASSERT is triggered by several tests (Requested by
442         jchaffraix on #webkit).
443
444         * rendering/RenderTable.cpp:
445         (WebCore::RenderTable::RenderTable):
446         (WebCore::RenderTable::addChild):
447         (WebCore::RenderTable::layout):
448         (WebCore::RenderTable::recalcSections):
449         (WebCore::RenderTable::outerBorderAfter):
450         (WebCore::RenderTable::sectionAbove):
451         (WebCore::RenderTable::sectionBelow):
452         * rendering/RenderTable.h:
453         (WebCore::RenderTable::header):
454         (WebCore::RenderTable::footer):
455         (WebCore::RenderTable::firstBody):
456         (WebCore::RenderTable::hasSections):
457         (WebCore::RenderTable::topSection):
458
459 2011-12-29  Pavel Feldman  <pfeldman@google.com>
460
461         Web Inspector: enable dock-to-right view (still need embedders to support it).
462         https://bugs.webkit.org/show_bug.cgi?id=75360
463
464         Reviewed by Yury Semikhatsky.
465
466         * English.lproj/localizedStrings.js:
467         * inspector/front-end/Settings.js:
468         (WebInspector.Settings):
469         * inspector/front-end/SettingsScreen.js:
470         (WebInspector.SettingsScreen):
471         * inspector/front-end/inspector.js:
472         (WebInspector.set attached):
473         (WebInspector._renderAsAttached.get return):
474         (WebInspector._renderAsAttached):
475         (WebInspector._installDockToRight.updateToolbar):
476
477 2011-12-29  Raymond Liu  <raymond.liu@intel.com>
478
479         Use IDL overloads in AudioContext.idl for createBuffer
480         https://bugs.webkit.org/show_bug.cgi?id=75293
481
482         Reviewed by Adam Barth.
483
484         No new tests required.
485
486         * bindings/js/JSAudioContextCustom.cpp:
487         * bindings/v8/custom/V8AudioContextCustom.cpp:
488         * webaudio/AudioContext.cpp:
489         (WebCore::AudioContext::createBuffer):
490         * webaudio/AudioContext.h:
491         * webaudio/AudioContext.idl:
492
493 2011-12-29  Andreas Kling  <awesomekling@apple.com>
494
495         HTMLDivElement: Remove unnecessary variable in parseMappedAttribute().
496         <http://webkit.org/b/75363>
497
498         Reviewed by Daniel Bates.
499
500         * html/HTMLDivElement.cpp:
501         (WebCore::HTMLDivElement::parseMappedAttribute):
502
503 2011-12-29  Andreas Kling  <awesomekling@apple.com>
504
505         HTMLParagraphElement: Remove unnecessary variable in parseMappedAttribute().
506         <http://webkit.org/b/75362>
507
508         Reviewed by Daniel Bates.
509
510         * html/HTMLParagraphElement.cpp:
511         (WebCore::HTMLParagraphElement::parseMappedAttribute):
512
513 2011-12-29  Andreas Kling  <awesomekling@apple.com>
514
515         Use HashMap<OwnPtr> for Document's named item collection caches.
516         <http://webkit.org/b/75335>
517
518         Reviewed by Daniel Bates.
519
520         * dom/Document.cpp:
521         (WebCore::Document::~Document):
522
523             Remove now-unneeded deleteAllValues() loop.
524
525         (WebCore::Document::nameCollectionInfo):
526
527             Use add() instead of find()/add() to avoid one extra hash lookup.
528
529         * dom/Document.h:
530
531             Switch the value type of m_nameCollectionInfo to use OwnPtr.
532
533 2011-12-29  David Barton  <dbarton@mathscribe.com>
534
535         mfenced skips the first separator if the separators attribute contains multiple separators
536         https://bugs.webkit.org/show_bug.cgi?id=57697
537
538         Reviewed by Dan Bernstein.
539
540         Added 2 test cases.
541
542         * rendering/mathml/RenderMathMLFenced.cpp:
543         (WebCore::RenderMathMLFenced::addChild):
544             - Thanks to Xun Sun <xun.sun@intel.com> for the off-by-one error fix.
545
546 2011-12-29  Alexis Menard  <alexis.menard@openbossa.org>
547
548         Enable the [Supplemental] IDL on Qt.
549         https://bugs.webkit.org/show_bug.cgi?id=75274
550
551         Reviewed by Andreas Kling.
552
553         http://trac.webkit.org/changeset/103783 broke the Qt SL bot.
554         This patch fixes the problem by using 'tr' rather than 'sed' which
555         seems to be more consistent between Mac and Linux.
556
557         * DerivedSources.pri:
558
559 2011-12-29  Vsevolod Vlasov  <vsevik@chromium.org>
560
561         Web Inspector: Scripts navigator should support incremental search by typing.
562         https://bugs.webkit.org/show_bug.cgi?id=75349
563
564         Reviewed by Pavel Feldman.
565
566         * inspector/front-end/ScriptsNavigator.js:
567         (WebInspector.ScriptsNavigator):
568         (WebInspector.ScriptsNavigator.prototype.get defaultFocusedElement):
569         (WebInspector.ScriptsNavigator.prototype.show):
570         (WebInspector.ScriptsNavigator.prototype._reset):
571         (WebInspector.NavigatorTreeOutline):
572         (WebInspector.NavigatorTreeOutline.prototype.scriptTreeElements):
573         (WebInspector.NavigatorTreeOutline.prototype.searchStarted):
574         (WebInspector.NavigatorTreeOutline.prototype.searchFinished):
575         (WebInspector.BaseNavigatorTreeElement.prototype.onreveal):
576         (WebInspector.BaseNavigatorTreeElement.prototype.set titleText):
577         (WebInspector.BaseNavigatorTreeElement.prototype.matchesSearchText):
578         * inspector/front-end/inspector.css:
579         (.outline-disclosure ol.search-match-not-found li.selected .selection):
580         (.outline-disclosure ol.search-match-found li.selected):
581         (.outline-disclosure ol.search-match-found li.selected *):
582         (.outline-disclosure ol.search-match-found li.parent.selected::before):
583         (.outline-disclosure ol.search-match-found li.parent.expanded.selected::before):
584         * inspector/front-end/scriptsPanel.css:
585         (#scripts-navigator-tree-search-box):
586         (#scripts-navigator-tree-search-box.visible):
587         (#scripts-navigator-tree-search-box > input):
588         (.scripts.panel .navigator .search-match-found li.selected .selection):
589         (.scripts.panel .navigator .search-match-not-found li.selected .selection):
590         (.scripts.panel .navigator .searching li.selected .selection):
591         * inspector/front-end/treeoutline.js:
592         (TreeOutline):
593         (TreeOutline.prototype._treeKeyPress):
594         (TreeOutline.prototype._startSearch.focusSearchInput):
595         (TreeOutline.prototype._startSearch):
596         (TreeOutline.prototype._searchTextChanged):
597         (TreeOutline.prototype._showSearchMatchElement):
598         (TreeOutline.prototype._searchInputKeyDown):
599         (TreeOutline.prototype._nextSearchMatch):
600         (TreeOutline.prototype._previousSearchMatch):
601         (TreeOutline.prototype._searchInputBlur):
602         (TreeOutline.prototype._searchFinished):
603         (TreeOutline.prototype.stopSearch):
604
605 2011-12-29  Vsevolod Vlasov  <vsevik@chromium.org>
606
607         Web Inspector: Scripts navigator should trim long file names and show full url in tooltip.
608         https://bugs.webkit.org/show_bug.cgi?id=75343
609
610         Reviewed by Pavel Feldman.
611
612         Test: inspector/debugger/ui-source-code-display-name.html
613
614         * inspector/front-end/ScriptsNavigator.js:
615         (WebInspector.ScriptsNavigator.prototype.setScriptSourceIsDirty):
616         * inspector/front-end/ScriptsPanel.js:
617         (WebInspector.ScriptsPanel.EditorContainer.prototype.showSourceFrame):
618         (WebInspector.ScriptsPanel.EditorContainer.prototype.replaceSourceFrames):
619         (WebInspector.ScriptsPanel.SingleFileEditorContainer.prototype.showSourceFrame):
620         (WebInspector.ScriptsPanel.SingleFileEditorContainer.prototype.replaceSourceFrames):
621         * inspector/front-end/TabbedEditorContainer.js:
622         (WebInspector.TabbedEditorContainer):
623         (WebInspector.TabbedEditorContainer.prototype._appendSourceFrameTab):
624         (WebInspector.TabbedEditorContainer.prototype._tabClosed):
625         (WebInspector.TabbedEditorContainer.prototype._replaceSourceFrameTab.get if):
626         (WebInspector.TabbedEditorContainer.prototype._replaceSourceFrameTab):
627         (WebInspector.TabbedEditorContainer.prototype.get replaceSourceFrames):
628         (WebInspector.TabbedEditorContainer.prototype.reset):
629         * inspector/front-end/TabbedPane.js:
630         (WebInspector.TabbedPane.prototype.appendTab):
631         (WebInspector.TabbedPane.prototype.changeTabTooltip):
632         (WebInspector.TabbedPaneTab):
633         (WebInspector.TabbedPaneTab.prototype.get tooltip):
634         (WebInspector.TabbedPaneTab.prototype.set tooltip):
635         (WebInspector.TabbedPaneTab.prototype._createTabElement):
636         * inspector/front-end/UISourceCode.js:
637         (WebInspector.UISourceCode.prototype._parseURL):
638         * inspector/front-end/utilities.js:
639         ():
640
641 2011-12-29  Alexis Menard  <alexis.menard@openbossa.org>
642
643         getComputedStyle for margin is not implemented.
644         https://bugs.webkit.org/show_bug.cgi?id=75358
645
646         Reviewed by Andreas Kling.
647
648         Implement getComputedStyle for margin.
649
650         Test: fast/css/getComputedStyle/getComputedStyle-margin-shorthand.html
651
652         * css/CSSComputedStyleDeclaration.cpp:
653         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
654
655 2011-12-29  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
656
657         Use HashMap<OwnPtr> in RenderSVGResourcePattern
658         https://bugs.webkit.org/show_bug.cgi?id=75361
659
660         Reviewed by Andreas Kling.
661
662         * rendering/svg/RenderSVGResourcePattern.cpp:
663         (WebCore::RenderSVGResourcePattern::removeAllClientsFromCache):
664         (WebCore::RenderSVGResourcePattern::removeClientFromCache):
665         (WebCore::RenderSVGResourcePattern::applyResource): use HashMap::add() to avoid
666         looking up the hash twice.
667         * rendering/svg/RenderSVGResourcePattern.h: rename m_pattern to m_patternMap to
668         improve readability a little bit.
669
670 2011-12-29  Alexis Menard  <alexis.menard@openbossa.org>
671
672         getComputedStyle for padding is not implemented.
673         https://bugs.webkit.org/show_bug.cgi?id=75352
674
675         Reviewed by Andreas Kling.
676
677         Implement getComputedStyle for padding shorthand property.
678
679         Test: fast/css/getComputedStyle/getComputedStyle-padding-shorthand.html
680
681         * css/CSSComputedStyleDeclaration.cpp:
682         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
683
684 2011-12-29  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
685
686         Use HashMap<OwnPtr> in OriginAccessMap
687         https://bugs.webkit.org/show_bug.cgi?id=75327
688
689         Reviewed by Andreas Kling.
690
691         * page/SecurityPolicy.cpp:
692         (WebCore::SecurityPolicy::addOriginAccessWhitelistEntry):
693         (WebCore::SecurityPolicy::removeOriginAccessWhitelistEntry):
694         (WebCore::SecurityPolicy::resetOriginAccessWhitelists):
695
696 2011-12-29  Pavel Podivilov  <podivilov@chromium.org>
697
698         Web Inspector: support sourceMappingURL magic comment.
699         https://bugs.webkit.org/show_bug.cgi?id=75356
700
701         Reviewed by Pavel Feldman.
702
703         * inspector/ContentSearchUtils.cpp:
704         (WebCore::ContentSearchUtils::findSourceMapURL):
705         * inspector/ContentSearchUtils.h:
706         * inspector/InspectorDebuggerAgent.cpp:
707         (WebCore::InspectorDebuggerAgent::sourceMapURLForScript):
708
709 2011-12-29  Alexander Pavlov  <apavlov@chromium.org>
710
711         Web Inspector: Suggest pop-over doesn't hide on tab switch
712         https://bugs.webkit.org/show_bug.cgi?id=73611
713
714         Reviewed by Pavel Feldman.
715
716         * inspector/front-end/ConsoleView.js:
717         (WebInspector.ConsoleView.prototype.willHide):
718         * inspector/front-end/TextPrompt.js:
719         (WebInspector.TextPrompt.prototype.complete):
720         (WebInspector.TextPrompt.prototype._completionsReady):
721         (WebInspector.TextPrompt.prototype.acceptSuggestion):
722         (WebInspector.TextPrompt.prototype.hideSuggestBox):
723         (WebInspector.TextPrompt.SuggestBox.prototype._completionsReady):
724
725 2011-12-28  Alexander Pavlov  <apavlov@chromium.org>
726
727         Web Inspector: Implement CSS selector profiler
728         https://bugs.webkit.org/show_bug.cgi?id=74004
729
730         Reviewed by Pavel Feldman.
731
732         This implementation of CSS selector profiler measures the total time required to match a certain selector
733         against DOM nodes and apply the style declaration properties to the particular element,
734         as well as the number of selector  matches (i.e. the number of nodes that matched the selector.)
735         The results are approximate due to internal matching algorithm optimizations (shared styles et al.)
736         Multiple selectors with the same selectorText are coalesced into a single record.
737
738         * English.lproj/localizedStrings.js:
739         * WebCore.gypi:
740         * WebCore.vcproj/WebCore.vcproj:
741         * inspector/compile-front-end.sh:
742         * inspector/front-end/CSSSelectorProfileView.js: Added.
743         (WebInspector.CSSSelectorDataGridNode):
744         (WebInspector.CSSSelectorDataGridNode.prototype.get rawData):
745         (WebInspector.CSSSelectorProfileView):
746         (WebInspector.CSSSelectorProfileView.prototype.get statusBarItems):
747         (WebInspector.CSSSelectorProfileView.prototype.get profile):
748         (WebInspector.CSSSelectorProfileView.prototype.set profile):
749         (WebInspector.CSSSelectorProfileView.prototype._createProfileNodes):
750         (WebInspector.CSSSelectorProfileView.prototype.rebuildGridItems):
751         (WebInspector.CSSSelectorProfileView.prototype.refreshData):
752         (WebInspector.CSSSelectorProfileView.prototype.refreshShowAsPercents):
753         (WebInspector.CSSSelectorProfileView.prototype._sortProfile.get selectorComparator):
754         (WebInspector.CSSSelectorProfileView.prototype._sortProfile.timeComparator):
755         (WebInspector.CSSSelectorProfileView.prototype._sortProfile.matchesComparator):
756         (WebInspector.CSSSelectorProfileView.prototype._sortProfile):
757         (WebInspector.CSSSelectorProfileType):
758         (WebInspector.CSSSelectorProfileType.prototype.get buttonTooltip):
759         (WebInspector.CSSSelectorProfileType.prototype.buttonClicked):
760         (WebInspector.CSSSelectorProfileType.prototype.get treeItemTitle):
761         (WebInspector.CSSSelectorProfileType.prototype.get description):
762         (WebInspector.CSSSelectorProfileType.prototype.reset):
763         (WebInspector.CSSSelectorProfileType.prototype.isRecordingProfile):
764         (WebInspector.CSSSelectorProfileType.prototype.setRecordingProfile):
765         (WebInspector.CSSSelectorProfileType.prototype.startRecordingProfile):
766         (WebInspector.CSSSelectorProfileType.prototype.stopRecordingProfile):
767         (WebInspector.CSSSelectorProfileType.prototype.createSidebarTreeElementForProfile):
768         (WebInspector.CSSSelectorProfileType.prototype.createView):
769         * inspector/front-end/DetailedHeapshotView.js:
770         * inspector/front-end/ProfileView.js:
771         * inspector/front-end/ProfilesPanel.js:
772         (WebInspector.ProfileType.prototype.reset):
773         (WebInspector.ProfilesPanel.prototype._reset):
774         (WebInspector.ProfilesPanel.prototype.addProfileHeader):
775         (WebInspector.ProfilesPanel.prototype._removeTemporaryProfile):
776         (WebInspector.ProfilesPanel.prototype.setRecordingProfile):
777         (WebInspector.ProfilesPanel.prototype.takeHeapSnapshot):
778         (WebInspector.ProfilesPanel.prototype._reportHeapSnapshotProgress):
779         (WebInspector.ProfilerDispatcher.prototype.addProfileHeader):
780         * inspector/front-end/WebKit.qrc:
781         * inspector/front-end/inspector.html:
782         * inspector/front-end/profilesPanel.css:
783
784 2011-12-29  Sheriff Bot  <webkit.review.bot@gmail.com>
785
786         Unreviewed, rolling out r103798.
787         http://trac.webkit.org/changeset/103798
788         https://bugs.webkit.org/show_bug.cgi?id=75353
789
790         some small scrollbar differences are making the tests fail on
791         several platforms (Requested by jchaffraix on #webkit).
792
793         * rendering/RenderLayer.cpp:
794         (WebCore::RenderLayer::updateLayerPositionsAfterScroll):
795
796 2011-12-29  Alexander Pavlov  <apavlov@chromium.org>
797
798         Web Inspector: Focus of the DOM tree is not restored when switching to the Elements panel
799         https://bugs.webkit.org/show_bug.cgi?id=75351
800
801         Reviewed by Yury Semikhatsky.
802
803         * inspector/front-end/ElementsPanel.js:
804         (WebInspector.ElementsPanel.prototype.wasShown):
805
806 2011-12-29  Julien Chaffraix  <jchaffraix@webkit.org>
807
808         REGRESSION (r93614): Safari Reader doesn't repaint correctly when scrolling
809         https://bugs.webkit.org/show_bug.cgi?id=67100
810
811         Reviewed by Dan Bernstein.
812
813         Tests: fast/layers/scroll-with-transform-composited-layer-expected.html
814                fast/layers/scroll-with-transform-composited-layer.html
815                fast/layers/scroll-with-transform-layer-expected.html
816                fast/layers/scroll-with-transform-layer.html
817
818         The regression came from a previous optimization that was wrongly kept after r93614.
819
820         * rendering/RenderLayer.cpp:
821         (WebCore::RenderLayer::updateLayerPositionsAfterScroll):
822         Remove the early return for transformed layer. This change worked as we used
823         to call updateLayerPositions from scrollTo which would call updateLayerPosition on
824         all our descendants. After r93614, this is no longer the case and we explicitely need
825         to call updateLayerPosition on our descendants from updateLayerPositionsAfterScroll.
826
827 2011-12-29  Alexander Pavlov  <apavlov@chromium.org>
828
829         Web Inspector: Tree views can be collapsed/hidden using the keyboard arrows
830         https://bugs.webkit.org/show_bug.cgi?id=46272
831
832         Reviewed by Yury Semikhatsky.
833
834         WebInspector.SidebarSectionTreeElement which is not selectable has also been made non-collapsible
835         and expanded by default.
836
837         * inspector/front-end/AuditsPanel.js:
838         (WebInspector.AuditsPanel):
839         * inspector/front-end/ProfilesPanel.js:
840         (WebInspector.ProfilesPanel.prototype._registerProfileType):
841         * inspector/front-end/SidebarTreeElement.js:
842         (WebInspector.SidebarSectionTreeElement):
843         (WebInspector.SidebarSectionTreeElement.prototype.selectable.false.collapse):
844         * inspector/front-end/TimelinePanel.js:
845         (WebInspector.TimelinePanel):
846
847 2011-12-29  Pavel Feldman  <pfeldman@google.com>
848
849         Web Inspector: [chromium] pass dock to side request to the embedder.
850         https://bugs.webkit.org/show_bug.cgi?id=75344
851
852         Reviewed by Yury Semikhatsky.
853
854         I'd like to enable dock-to-right for the front-end window. This is a background work
855         to pass control flow from the front-end to the front-end host.
856
857         * inspector/InspectorFrontendClient.h:
858         * inspector/InspectorFrontendClientLocal.h:
859         (WebCore::InspectorFrontendClientLocal::requestSetDockSide):
860         * inspector/InspectorFrontendHost.cpp:
861         (WebCore::InspectorFrontendHost::requestSetDockSide):
862         * inspector/InspectorFrontendHost.h:
863         * inspector/InspectorFrontendHost.idl:
864         * inspector/front-end/InspectorFrontendHostStub.js:
865         (.WebInspector.InspectorFrontendHostStub.prototype.requestAttachWindow):
866         (.WebInspector.InspectorFrontendHostStub.prototype.requestDetachWindow):
867         (.WebInspector.InspectorFrontendHostStub.prototype.requestSetDockSide):
868
869 2011-12-28  Pavel Podivilov  <podivilov@chromium.org>
870
871         Web Inspector: add "enable source maps" checkbox setting.
872         https://bugs.webkit.org/show_bug.cgi?id=75311
873
874         Reviewed by Pavel Feldman.
875
876         When "enable source maps" is on, all auto detected source maps are silently applied.
877
878         * English.lproj/localizedStrings.js:
879         * inspector/front-end/DebuggerPresentationModel.js:
880         * inspector/front-end/JavaScriptSourceFrame.js:
881         (WebInspector.JavaScriptSourceFrame.prototype.populateTextAreaContextMenu):
882         * inspector/front-end/RawSourceCode.js:
883         (WebInspector.RawSourceCode):
884         (WebInspector.RawSourceCode.prototype.setFormatted):
885         (WebInspector.RawSourceCode.prototype._updateSourceMapping.didCreateSourceMapping):
886         (WebInspector.RawSourceCode.prototype._updateSourceMapping):
887         (WebInspector.RawSourceCode.prototype._createUISourceCode):
888         * inspector/front-end/Settings.js:
889         (WebInspector.Settings):
890         * inspector/front-end/SettingsScreen.js:
891         (WebInspector.SettingsScreen):
892         * inspector/front-end/UISourceCode.js:
893         (WebInspector.UISourceCode):
894         * inspector/front-end/inspector.js:
895         (WebInspector._toolbarItemClicked):
896
897 2011-12-29  Julien Chaffraix  <jchaffraix@webkit.org>
898
899         Tighten our checks for needsSectionRecalc in RenderTable
900         https://bugs.webkit.org/show_bug.cgi?id=73972
901
902         Reviewed by Adam Barth.
903
904         Refactoring covered under the new tests.
905
906         Now most of the functions use the header, first body and footer's 
907         getters that checks if we need a section recalculation. The only
908         exceptions are addChild and recalcSections as they can be called
909         with the bit set.
910
911         * rendering/RenderTable.cpp:
912         (WebCore::RenderTable::layout):
913         (WebCore::RenderTable::outerBorderAfter):
914         (WebCore::RenderTable::sectionAbove):
915         (WebCore::RenderTable::sectionBelow):
916         Updated the previous functions to use the sections' getters.
917
918         (WebCore::RenderTable::RenderTable):
919         (WebCore::RenderTable::addChild):
920         (WebCore::RenderTable::recalcSections):
921         Update the previous functions after the 2 renames
922         (see below).
923
924         * rendering/RenderTable.h:
925         (WebCore::RenderTable::header):
926         (WebCore::RenderTable::footer):
927         (WebCore::RenderTable::firstBody):
928         Added some ASSERT here. Also renamed m_head to m_header
929         and m_foot to m_footer to match the getter and to avoid
930         unneeded abbreviation.
931
932         (WebCore::RenderTable::hasSections):
933         (WebCore::RenderTable::topSection):
934         Updated the previous functions to use the section getters.
935
936 2011-12-28  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
937
938         Use HashMap<OwnPtr> for UserScriptMap and UserStyleSheetMap
939         https://bugs.webkit.org/show_bug.cgi?id=75323
940
941         Reviewed by Darin Adler.
942
943         * dom/Document.cpp:
944         (WebCore::Document::pageGroupUserSheets):
945         * page/PageGroup.cpp:
946         (WebCore::PageGroup::addUserScriptToWorld):
947         (WebCore::PageGroup::addUserStyleSheetToWorld):
948         (WebCore::PageGroup::removeUserScriptFromWorld):
949         (WebCore::PageGroup::removeUserStyleSheetFromWorld): fix a small mistake in
950         previous code. Now the entry for world is removed (and deleted) only if its
951         stylesheet vector is empty.
952         (WebCore::PageGroup::removeUserScriptsFromWorld):
953         (WebCore::PageGroup::removeUserStyleSheetsFromWorld):
954         (WebCore::PageGroup::removeAllUserContent):
955         * page/UserScriptTypes.h:
956         * page/UserStyleSheetTypes.h:
957
958 2011-12-28  Andreas Kling  <awesomekling@apple.com>
959
960         Reduce memory used by NamedNodeMap.
961         <http://webkit.org/b/75333>
962
963         Reviewed by Sam Weinig.
964
965         Give NamedNodeMap's attribute vector an inline capacity of 4. The vast majority
966         of elements have <= 4 attributes, and if they don't have any we normally don't
967         allocate an attribute map at all.
968
969         This reduces memory consumption by 1.2MB (on 64-bit) when loading the full HTML5
970         spec at <http://whatwg.org/c>.
971
972         * dom/NamedNodeMap.h:
973
974 2011-12-28  Andreas Kling  <awesomekling@apple.com>
975
976         Reduce memory used by SpaceSplitString.
977         <http://webkit.org/b/75315>
978
979         Reviewed by Sam Weinig.
980
981         Split the string upon creation instead of waiting until it's accessed.
982         This allows us to get rid of all data members except the substring vector.
983         Since we're storing AtomicStrings, this is way more memory-efficient than
984         the previous implementation in the majority of cases.
985
986         Also reduced the inline capcity of the vector to 2 (from 8), after testing
987         showed this to cover 90% of the cases on the Alexa top sites.
988
989         All in all this reduces memory consumption by 1.1MB (on 64-bit) when
990         loading the full HTML5 spec at <http://whatwg.org/c>. On that same page,
991         less than 2ms is spent (on my MBP) splitting the ~20000 strings.
992
993         * dom/SpaceSplitString.cpp:
994         (WebCore::SpaceSplitStringData::createVector):
995         (WebCore::SpaceSplitStringData::containsAll):
996         (WebCore::SpaceSplitStringData::remove):
997         * dom/SpaceSplitString.h:
998         (WebCore::SpaceSplitStringData::SpaceSplitStringData):
999         (WebCore::SpaceSplitStringData::contains):
1000         (WebCore::SpaceSplitStringData::size):
1001         (WebCore::SpaceSplitStringData::operator[]):
1002
1003 2011-12-28  ChangSeok Oh  <shivamidow@gmail.com>
1004
1005         [GTK] Fix compilation issue when selecting opengl for Accelerated compositing
1006         https://bugs.webkit.org/show_bug.cgi?id=75309
1007
1008         Reviewed by Martin Robinson.
1009
1010         Add TextureMapperGL and TextureMapperGLCairo files.
1011         They define new classes required to implement TextureMapperGL for GTK port.
1012
1013         No new tests required.
1014
1015         * GNUmakefile.list.am:
1016         * platform/graphics/cairo/TextureMapperGLCairo.cpp: Added.
1017         (WebCore::BGRA32PremultimpliedBufferCairo::BGRA32PremultimpliedBufferCairo):
1018         (WebCore::BGRA32PremultimpliedBufferCairo::~BGRA32PremultimpliedBufferCairo):
1019         (WebCore::BGRA32PremultimpliedBufferCairo::beginPaint):
1020         (WebCore::BGRA32PremultimpliedBufferCairo::data):
1021         (WebCore::BGRA32PremultimpliedBufferCairo::endPaint):
1022         (WebCore::uidForImage):
1023         (WebCore::BGRA32PremultimpliedBuffer::create):
1024         * platform/graphics/cairo/TextureMapperGLCairo.h: Added.
1025
1026 2011-12-28  Sheriff Bot  <webkit.review.bot@gmail.com>
1027
1028         Unreviewed, rolling out r103782.
1029         http://trac.webkit.org/changeset/103782
1030         https://bugs.webkit.org/show_bug.cgi?id=75328
1031
1032         broke origin-whitelisting-removal.html (Requested by kling on
1033         #webkit).
1034
1035         * page/SecurityPolicy.cpp:
1036         (WebCore::SecurityPolicy::addOriginAccessWhitelistEntry):
1037         (WebCore::SecurityPolicy::removeOriginAccessWhitelistEntry):
1038         (WebCore::SecurityPolicy::resetOriginAccessWhitelists):
1039
1040 2011-12-28  Kentaro Hara  <haraken@chromium.org>
1041
1042         Enable the [Supplemental] IDL on Qt
1043         https://bugs.webkit.org/show_bug.cgi?id=75274
1044
1045         Reviewed by Adam Barth.
1046
1047         This patch enables the [Supplemental] IDL on Qt by changing the build
1048         flow of Qt as follows.
1049
1050         - Previous build flow:
1051             foreach $idl (all IDL files) {
1052                 generate-bindings.pl depends on $idl;
1053                 generate-bindings.pl reads $idl;
1054                 generate-bindings.pl generates .h and .cpp files for $idl;
1055             }
1056
1057         - New build flow (See the discussions in bug 72138 for more details):
1058             resolve-supplemental.pl depends on all IDL files;
1059             resolve-supplemental.pl reads all IDL files;
1060             resolve-supplemental.pl resolves the dependency of [Supplemental=XXXX];
1061             resolve-supplemental.pl outputs supplemental_dependency.tmp;
1062             foreach $idl (all IDL files) {
1063                 generate-bindings.pl depends on $idl and supplemental_dependency.tmp;
1064                 generate-bindings.pl reads $idl;
1065                 generate-bindings.pl reads supplemental_dependency.tmp;
1066                 generate-bindings.pl generates .h and .cpp files for $idl,
1067                     including all attributes in the IDL files that are implementing $idl;
1068             }
1069
1070         Tests: Confirm that build succeeds.
1071                http/tests/websocket/tests/*
1072
1073         * DerivedSources.pri: Described the above build flow.
1074
1075 2011-12-28  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1076
1077         Use HashMap<OwnPtr> in OriginAccessMap
1078         https://bugs.webkit.org/show_bug.cgi?id=75327
1079
1080         Reviewed by Andreas Kling.
1081
1082         * page/SecurityPolicy.cpp:
1083         (WebCore::SecurityPolicy::addOriginAccessWhitelistEntry):
1084         (WebCore::SecurityPolicy::removeOriginAccessWhitelistEntry):
1085         (WebCore::SecurityPolicy::resetOriginAccessWhitelists):
1086
1087 2011-12-28  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1088
1089         Use HashMap<OwnPtr> for ProgressTracker's items
1090         https://bugs.webkit.org/show_bug.cgi?id=75326
1091
1092         Reviewed by Andreas Kling.
1093
1094         * loader/ProgressTracker.cpp:
1095         (WebCore::ProgressTracker::~ProgressTracker): although is empty, the destructor was
1096         kept so in the header file we can forward declare ProgressItem and use in an OwnPtr.
1097         (WebCore::ProgressTracker::reset):
1098         (WebCore::ProgressTracker::incrementProgress):
1099         (WebCore::ProgressTracker::completeProgress): removed a useless assignment to item
1100         member just before it is deleted.
1101         * loader/ProgressTracker.h:
1102
1103 2011-12-28  Alexis Menard  <alexis.menard@openbossa.org>
1104
1105         getComputedStyle for border-color is not implemented.
1106         https://bugs.webkit.org/show_bug.cgi?id=75324
1107
1108         Reviewed by Andreas Kling.
1109
1110         Implement getComputedStyle for border-color.
1111
1112         Test: fast/css/getComputedStyle/getComputedStyle-border-color-shorthand.html
1113
1114         * css/CSSComputedStyleDeclaration.cpp:
1115         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1116
1117 2011-12-28  Darin Adler  <darin@apple.com>
1118
1119         Use OwnPtr to handle lifetime and deletion of FontFace objects
1120         https://bugs.webkit.org/show_bug.cgi?id=75221
1121
1122         Reviewed by Daniel Bates.
1123
1124         * css/CSSFontFaceSource.cpp:
1125         (WebCore::CSSFontFaceSource::getFontData): Use add instead of get/set to read and
1126         then later fill a cache. Use new version of registerCustomFont that takes PassOwnPtr.
1127         * css/CSSSegmentedFontFace.cpp:
1128         (WebCore::CSSSegmentedFontFace::getFontData): Ditto.
1129
1130         * dom/Document.cpp:
1131         (WebCore::Document::registerCustomFont): Take a PassOwnPtr instead of raw pointer.
1132         * dom/Document.h: Ditto.
1133
1134 2011-12-28  Adam Barth  <abarth@webkit.org>
1135
1136         "Fake" insertion mode in HTMLTreeBuilder doesn't do anything
1137         https://bugs.webkit.org/show_bug.cgi?id=75322
1138
1139         Reviewed by Darin Adler.
1140
1141         This machinery isn't needed anymore now that we're using the new
1142         foreign content hotness.
1143
1144         * html/parser/HTMLTreeBuilder.cpp:
1145         * html/parser/HTMLTreeBuilder.h:
1146         (WebCore::HTMLTreeBuilder::setInsertionMode):
1147
1148 2011-12-28  Alexis Menard  <alexis.menard@openbossa.org>
1149
1150         getComputedStyle for border-style is not implemented.
1151         https://bugs.webkit.org/show_bug.cgi?id=75312
1152
1153         Reviewed by Andreas Kling.
1154
1155         Implement getComputedStyle for border-style.
1156
1157         Test: fast/css/getComputedStyle/getComputedStyle-border-style-shorthand.html
1158
1159         * css/CSSComputedStyleDeclaration.cpp:
1160         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1161
1162 2011-12-28  Alexis Menard  <alexis.menard@openbossa.org>
1163
1164         getComputedStyle for border-bottom, border-top, border-left, border-right is not implemented.
1165         https://bugs.webkit.org/show_bug.cgi?id=74743
1166
1167         Reviewed by Tony Chang.
1168
1169         Implement getComputedStyle for border-top, border-bottom, border-right, border-left.
1170
1171         Test: fast/css/getComputedStyle/getComputedStyle-border-shorthand.html
1172
1173         * css/CSSComputedStyleDeclaration.cpp:
1174         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1175         (WebCore::CSSComputedStyleDeclaration::getCSSPropertyValuesForShorthandProperties):
1176         * css/CSSComputedStyleDeclaration.h:
1177
1178 2011-12-28  Robert Hogan  <robert@webkit.org>
1179
1180         Inline flow not learning height of all text descendants
1181         https://bugs.webkit.org/show_bug.cgi?id=75305
1182
1183         Reviewed by Dan Bernstein.
1184
1185         Tests: fast/inline/nested-text-descendants-expected.html
1186                fast/inline/nested-text-descendants.html
1187
1188         The root inline box would only learn it had text descendants if its first grandchild
1189         was text. It wasn't informed of subsequent text grandchildren so could not factor them 
1190         into its calculation of the line height.
1191         To fix this, propagate the existence of a text descendant to the root inline box
1192         by walking up through the text child's ancestors.
1193
1194         * rendering/InlineFlowBox.cpp:
1195         (WebCore::setHasTextDescendantsOnAncestors):
1196         (WebCore::InlineFlowBox::addToLine):
1197         * rendering/InlineFlowBox.h:
1198         (WebCore::InlineFlowBox::setHasTextDescendants):
1199
1200 2011-12-28  Sheriff Bot  <webkit.review.bot@gmail.com>
1201
1202         Unreviewed, rolling out r103620.
1203         http://trac.webkit.org/changeset/103620
1204         https://bugs.webkit.org/show_bug.cgi?id=75316
1205
1206         Causes many crashes (Requested by abarth on #webkit).
1207
1208         * loader/FrameLoaderClient.h:
1209         * page/DOMWindow.cpp:
1210         (WebCore::DOMWindow::postMessageTimerFired):
1211
1212 2011-12-28  Alexander Pavlov  <apavlov@chromium.org>
1213
1214         [V8][Chromium] 'randomString' in document.body.style always returns true
1215         https://bugs.webkit.org/show_bug.cgi?id=75313
1216
1217         Reviewed by Adam Barth.
1218
1219         * bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp:
1220         (WebCore::V8CSSStyleDeclaration::namedPropertyQuery):
1221
1222 2011-12-28  Vsevolod Vlasov  <vsevik@chromium.org>
1223
1224         Web Inspector: Add domain.png to WebCore.gypi / WebKit.qrc.
1225         https://bugs.webkit.org/show_bug.cgi?id=75310
1226
1227         Reviewed by Pavel Feldman.
1228
1229         * WebCore.gypi:
1230         * inspector/front-end/WebKit.qrc:
1231
1232 2011-12-28  Vsevolod Vlasov  <vsevik@chromium.org>
1233
1234         Web Inspector: ExperimentsSettings causes warning on chromium when reading localizedStrings.
1235         https://bugs.webkit.org/show_bug.cgi?id=75299
1236
1237         Reviewed by Pavel Feldman.
1238
1239         * inspector/front-end/Settings.js:
1240         (WebInspector.ExperimentsSettings):
1241         * inspector/front-end/SettingsScreen.js:
1242         (WebInspector.SettingsScreen.prototype._createExperimentCheckbox):
1243
1244 2011-12-28  Vsevolod Vlasov  <vsevik@chromium.org>
1245
1246         Web Inspector: Scripts panel: add debug sidebar resizer to TabbedEditorContainer.
1247         https://bugs.webkit.org/show_bug.cgi?id=75300
1248
1249         Reviewed by Pavel Feldman.
1250
1251         * inspector/front-end/ScriptsPanel.js:
1252         * inspector/front-end/scriptsPanel.css:
1253         (#scripts-debug-sidebar-resizer-widget):
1254
1255 2011-12-28  Alexander Pavlov  <apavlov@chromium.org>
1256
1257         Web Inspector: Introduce a Profiler launcher view similar to that in the Audits panel
1258         https://bugs.webkit.org/show_bug.cgi?id=75228
1259
1260         Reviewed by Pavel Feldman.
1261
1262         * English.lproj/localizedStrings.js:
1263         * WebCore.gypi:
1264         * WebCore.vcproj/WebCore.vcproj:
1265         * inspector/front-end/AuditLauncherView.js:
1266         (WebInspector.AuditLauncherView):
1267         * inspector/front-end/AuditsPanel.js:
1268         (WebInspector.AuditsPanel):
1269         * inspector/front-end/DetailedHeapshotView.js:
1270         (WebInspector.DetailedHeapshotProfileType):
1271         (WebInspector.DetailedHeapshotProfileType.prototype.get treeItemTitle):
1272         (WebInspector.DetailedHeapshotProfileType.prototype.get description):
1273         * inspector/front-end/ProfileLauncherView.js: Added.
1274         (WebInspector.ProfileLauncherView):
1275         (WebInspector.ProfileLauncherView.prototype.setUpEventListeners):
1276         (WebInspector.ProfileLauncherView.prototype.addProfileType):
1277         (WebInspector.ProfileLauncherView.prototype._controlButtonClicked):
1278         (WebInspector.ProfileLauncherView.prototype._updateControls):
1279         (WebInspector.ProfileLauncherView.prototype._profileTypeChanged):
1280         (WebInspector.ProfileLauncherView.prototype._onProfileStarted):
1281         (WebInspector.ProfileLauncherView.prototype._onProfileFinished):
1282         * inspector/front-end/ProfileView.js:
1283         (WebInspector.CPUProfileType):
1284         (WebInspector.CPUProfileType.prototype.get treeItemTitle):
1285         (WebInspector.CPUProfileType.prototype.get description):
1286         * inspector/front-end/ProfilesPanel.js:
1287         (WebInspector.ProfileType.prototype.get treeItemTitle):
1288         (WebInspector.ProfileType.prototype.get description):
1289         (WebInspector.ProfilesPanel.prototype.get statusBarItems):
1290         (WebInspector.ProfilesPanel.prototype.toggleRecordButton):
1291         (WebInspector.ProfilesPanel.prototype._onProfileTypeSelected):
1292         (WebInspector.ProfilesPanel.prototype._reset):
1293         (WebInspector.ProfilesPanel.prototype._showLauncherView):
1294         (WebInspector.ProfilesPanel.prototype._registerProfileType):
1295         (WebInspector.ProfilesPanel.prototype._addProfileHeader):
1296         (WebInspector.ProfilesPanel.prototype._updateInterface):
1297         (WebInspector.ProfileTypeTreeElement):
1298         (WebInspector.ProfileTypeTreeElement.prototype.collapse):
1299         (WebInspector.ProfilesSidebarTreeElement):
1300         (WebInspector.ProfilesSidebarTreeElement.prototype.onattach):
1301         (WebInspector.ProfilesSidebarTreeElement.prototype.onselect):
1302         (WebInspector.ProfilesSidebarTreeElement.prototype.get selectable):
1303         (WebInspector.ProfilesSidebarTreeElement.prototype.refresh):
1304         * inspector/front-end/WebKit.qrc:
1305         * inspector/front-end/WelcomeView.js: Removed.
1306         * inspector/front-end/auditsPanel.css:
1307         (.audit-launcher-view .audit-launcher-view-content):
1308         (.audit-launcher-view div.button-container):
1309         (.panel-enabler-view.audit-launcher-view label):
1310         (.panel-enabler-view.audit-launcher-view label.disabled):
1311         * inspector/front-end/inspector.html:
1312         * inspector/front-end/panelEnablerView.css:
1313         (.panel-enabler-view img):
1314         (.panel-enabler-view .flexible-space):
1315         (.panel-enabler-view button:not(.status-bar-item)):
1316         (body.inactive .panel-enabler-view button, .panel-enabler-view button:disabled):
1317         (.panel-enabler-view input[type="radio"]):
1318         (.panel-enabler-view input[type="radio"]:active:not(:disabled)):
1319         (.panel-enabler-view input[type="radio"]:checked):
1320         (.panel-enabler-view input[type="radio"]:checked:active):
1321         * inspector/front-end/profilesPanel.css:
1322         (.profile-launcher-view-tree-item > .icon):
1323         (.profile-launcher-view-content):
1324         (.profile-launcher-view-content h1):
1325         (.panel-enabler-view.profile-launcher-view form):
1326         (.panel-enabler-view.profile-launcher-view label):
1327         (.profile-launcher-view-content p):
1328         (.panel-enabler-view.profile-launcher-view button:not(.status-bar-item)):
1329         (.profile-launcher-view-content button.running:not(.status-bar-item)):
1330         (body.inactive .profile-launcher-view-content button.running:not(.status-bar-item)):
1331
1332 2011-12-28  Sheriff Bot  <webkit.review.bot@gmail.com>
1333
1334         Unreviewed, rolling out r103763.
1335         http://trac.webkit.org/changeset/103763
1336         https://bugs.webkit.org/show_bug.cgi?id=75307
1337
1338         "Compilation fails on Snow Leopard" (Requested by yurys on
1339         #webkit).
1340
1341         * inspector/CodeGeneratorInspector.py:
1342         (Helper):
1343         (create_ad_hoc_type_declaration.Helper):
1344         (CodeGenerator.generate_type_builder):
1345         (get_in_c_type_text):
1346
1347 2011-12-28  Peter Rybin  <peter.rybin@gmail.com>
1348
1349         Web Inspector: CodeGeneratorInspector.py: generate enum types.
1350         https://bugs.webkit.org/show_bug.cgi?id=74954
1351
1352         Reviewed by Yury Semikhatsky.
1353
1354         Internal map of string contants is created. C enums are created for
1355         each JSON enum.
1356
1357         * inspector/CodeGeneratorInspector.py:
1358         (EnumConstants.add_constant):
1359         (EnumConstants):
1360         (EnumConstants.get_enum_constant_code):
1361         (TypeBindings.create_type_declaration_.EnumBinding.get_code_generator.CodeGenerator.generate_type_builder):
1362         (TypeBindings.create_type_declaration_.EnumBinding.get_in_c_type_text):
1363         (TypeBindings.create_type_declaration_.EnumBinding.get_setter_value_expression_pattern):
1364         (TypeBindings.create_type_declaration_.PlainString.reduce_to_raw_type):
1365         (TypeBindings.create_type_declaration_.PlainString.get_setter_value_expression_pattern):
1366         (get_in_c_type_text):
1367         (get_setter_value_expression_pattern):
1368         (PlainObjectBinding.get_in_c_type_text):
1369         (PlainObjectBinding.get_setter_value_expression_pattern):
1370         (RawTypesBinding.get_in_c_type_text):
1371         (RawTypesBinding.get_setter_value_expression_pattern):
1372         (get_annotated_type_text):
1373         (MethodGenerateModes.get_modes):
1374         (MethodGenerateModes.StrictParameterMode.get_c_param_type_text):
1375         (MethodGenerateModes.StrictParameterMode):
1376         (MethodGenerateModes.StrictParameterMode.get_setter_value_expression):
1377         (MethodGenerateModes.RawParameterMode.get_c_param_type_text):
1378         (MethodGenerateModes.RawParameterMode):
1379         (MethodGenerateModes.RawParameterMode.get_setter_value_expression):
1380         (MethodGenerateModes.CombinedMode.get_c_param_type_text):
1381         (MethodGenerateModes):
1382         (MethodGenerateModes.CombinedMode):
1383         (MethodGenerateModes.CombinedMode.get_setter_value_expression):
1384
1385 2011-12-28  Hans Wennborg  <hans@chromium.org>
1386
1387         IndexedDB: IDBKeyRange constructor should throw when lower > upper
1388         https://bugs.webkit.org/show_bug.cgi?id=74705
1389
1390         Reviewed by Tony Chang.
1391
1392         Make IDBKeyRange throw an exception when lower > upper,
1393         or lower == upper and one or both of the bounds is open.
1394
1395         Tested in storage/indexeddb/keyrange.html.
1396
1397         * storage/IDBKeyRange.cpp:
1398         (WebCore::IDBKeyRange::bound):
1399
1400 2011-12-28  Alexander Pavlov  <apavlov@chromium.org>
1401
1402         Web Inspector: [protocol] empty enum constant should be replaced with identifier
1403         https://bugs.webkit.org/show_bug.cgi?id=75273
1404
1405         Reviewed by Yury Semikhatsky.
1406
1407         * inspector/Inspector.json:
1408         * inspector/InspectorCSSAgent.cpp:
1409         (WebCore::InspectorCSSAgent::asInspectorStyleSheet):
1410         (WebCore::InspectorCSSAgent::detectOrigin):
1411         * inspector/InspectorStyleSheet.cpp:
1412         (WebCore::InspectorStyleSheet::buildObjectForRule):
1413         * inspector/front-end/CSSStyleModel.js:
1414         (WebInspector.CSSRule.prototype.get isRegular):
1415
1416 2011-12-27  Pavel Feldman  <pfeldman@google.com>
1417
1418         Web Inspector: complete annotating SDK component.
1419         https://bugs.webkit.org/show_bug.cgi?id=75259
1420
1421         Reviewed by Yury Semikhatsky.
1422
1423         * inspector/front-end/DebuggerPresentationModel.js:
1424         (WebInspector.DebuggerPresentationModel.prototype._addScript):
1425         * inspector/front-end/NetworkManager.js:
1426         (WebInspector.NetworkManager.prototype._cacheDisabledSettingChanged):
1427         (WebInspector.NetworkDispatcher.prototype._isNull):
1428         (WebInspector.NetworkDispatcher.prototype.webSocketCreated):
1429         * inspector/front-end/Resource.js:
1430         (WebInspector.Resource.displayName):
1431         * inspector/front-end/ResourceTreeModel.js:
1432         (WebInspector.ResourceTreeModel.prototype._onResourceUpdated):
1433         (WebInspector.ResourceTreeModel.prototype._consoleMessageAdded):
1434         (WebInspector.ResourceTreeFrame.prototype.get name):
1435         * inspector/front-end/TabbedEditorContainer.js:
1436
1437 2011-12-27  Anantanarayanan G Iyengar  <ananta@chromium.org>
1438
1439         Crash in the WebKit accessibility code while attempting to retrieve the title UI element.
1440         https://bugs.webkit.org/show_bug.cgi?id=75279
1441
1442         Reviewed by Ryosuke Niwa.
1443
1444         Fix a crash in the the WebKit accessibility code which occurs while retrieving
1445         the title UI clement. The fix is to NULL check the RenderObject::node return value.
1446
1447         No test added as there is no reduction.
1448
1449         * accessibility/AccessibilityRenderObject.cpp:
1450         (WebCore::AccessibilityRenderObject::titleUIElement):
1451
1452 2011-12-27  Dominic Cooney  <dominicc@chromium.org>
1453
1454         Remove initWebKitAnimationEvent method
1455         https://bugs.webkit.org/show_bug.cgi?id=71698
1456
1457         Reviewed by Ojan Vafai.
1458
1459         Now that WebKitAnimationEvent has a constructor, we don't need
1460         this
1461         method. <https://www.w3.org/Bugs/Public/show_bug.cgi?id=15338> is
1462         tracking the change to the CSS Animations spec.
1463
1464         * dom/WebKitAnimationEvent.cpp:
1465         * dom/WebKitAnimationEvent.h:
1466         * dom/WebKitAnimationEvent.idl:
1467
1468 2011-12-27  Dominic Cooney   <dominicc@chromium.org>
1469
1470         Remove initWebKitTransitionEvent method
1471         https://bugs.webkit.org/show_bug.cgi?id=71701
1472
1473         Reviewed by Ojan Vafai.
1474
1475         Now that WebKitTransitionEvent has a constructor, we don't need
1476         this
1477         method. <https://www.w3.org/Bugs/Public/show_bug.cgi?id=15339> is
1478         tracking the change to the CSS Transitions spec.
1479
1480         * dom/WebKitTransitionEvent.cpp:
1481         * dom/WebKitTransitionEvent.h:
1482         * dom/WebKitTransitionEvent.idl:
1483
1484 2011-12-27  Tony Chang  <tony@chromium.org>
1485
1486         Move HarfBuzz files into their own directory
1487         https://bugs.webkit.org/show_bug.cgi?id=72780
1488
1489         Reviewed by Daniel Bates.
1490
1491         FontCacheLinux.cpp got moved to platform/graphics/skia/FontCacheSkia.cpp since it wasn't HarfBuzz specific.
1492
1493         I used HarfBuzz in filenames since that seems to be how the name is capitalized on the project home page.
1494
1495         Fixed some style errors caught by the style checker.
1496
1497         * PlatformBlackBerry.cmake:
1498         * WebCore.gyp/WebCore.gyp:
1499         * WebCore.gypi:
1500         * platform/graphics/chromium/FontPlatformData.h:
1501         * platform/graphics/harfbuzz/ComplexTextControllerHarfBuzz.cpp: Renamed from Source/WebCore/platform/graphics/chromium/ComplexTextControllerLinux.cpp.
1502         * platform/graphics/harfbuzz/ComplexTextControllerHarfBuzz.h: Renamed from Source/WebCore/platform/graphics/chromium/ComplexTextControllerLinux.h.
1503         * platform/graphics/harfbuzz/FontHarfBuzz.cpp: Renamed from Source/WebCore/platform/graphics/chromium/FontLinux.cpp.
1504         * platform/graphics/harfbuzz/FontPlatformDataHarfBuzz.cpp: Renamed from Source/WebCore/platform/graphics/chromium/FontPlatformDataLinux.cpp.
1505         * platform/graphics/harfbuzz/FontPlatformDataHarfBuzz.h: Renamed from Source/WebCore/platform/graphics/chromium/FontPlatformDataLinux.h.
1506         * platform/graphics/harfbuzz/HarfBuzzSkia.cpp: Renamed from Source/WebCore/platform/graphics/chromium/HarfbuzzSkia.cpp.
1507         * platform/graphics/harfbuzz/HarfBuzzSkia.h: Renamed from Source/WebCore/platform/graphics/chromium/HarfbuzzSkia.h.
1508         * platform/graphics/harfbuzz/SimpleFontDataSkia.cpp: Renamed from Source/WebCore/platform/graphics/chromium/SimpleFontDataLinux.cpp.
1509         * platform/graphics/skia/FontCacheSkia.cpp: Renamed from Source/WebCore/platform/graphics/chromium/FontCacheLinux.cpp.
1510         * platform/graphics/skia/GlyphPageTreeNodeSkia.cpp:
1511
1512 2011-12-27  Huang Dongsung  <luxtella@company100.net>
1513
1514         [TexMap][QT] The fragment shader in OpenGL ES2 requires the default precision
1515         qualifier.
1516         https://bugs.webkit.org/show_bug.cgi?id=75168
1517
1518         Reviewed by Noam Rosenthal.
1519
1520         No new functionality so no new tests.
1521
1522         * platform/graphics/opengl/TextureMapperGL.cpp:
1523         (WebCore::TextureMapperGL::initializeShaders):
1524
1525 2011-12-27  Ryosuke Niwa  <rniwa@webkit.org>
1526
1527         [Chromium] uninitialized variable in fakeMouseMoveEventTimerFired
1528         https://bugs.webkit.org/show_bug.cgi?id=75263
1529
1530         Reviewed by Tony Chang.
1531
1532         The failure was caused by PlatformKeyboardEvent::getCurrentModifierState in PlatformKeyboardEventChromium.cpp
1533         not initializing arguments on Linux. Fixed the failure by always assigning false to the arguments.
1534
1535         But we should really fix this function for Linux. Not recognizing any modifier isn't great.
1536
1537         * platform/chromium/PlatformKeyboardEventChromium.cpp:
1538         (WebCore::PlatformKeyboardEvent::getCurrentModifierState):
1539
1540 2011-12-27  Kentaro Hara  <haraken@chromium.org>
1541
1542         WIP: Enable the [Supplemental] IDL on Gtk
1543         https://bugs.webkit.org/show_bug.cgi?id=74972
1544
1545         Reviewed by Adam Barth.
1546
1547         This patch enables the [Supplemental] IDL on Gtk by changing the build
1548         flow of Gtk as follows.
1549
1550         - Previous build flow:
1551             foreach $idl (all IDL files) {
1552                 generate-bindings.pl depends on $idl;
1553                 generate-bindings.pl reads $idl;
1554                 generate-bindings.pl generates .h and .cpp files for $idl;
1555             }
1556
1557         - New build flow (See the discussions in bug 72138 for more details):
1558             resolve-supplemental.pl depends on all IDL files;
1559             resolve-supplemental.pl reads all IDL files;
1560             resolve-supplemental.pl resolves the dependency of [Supplemental=XXXX];
1561             resolve-supplemental.pl outputs supplemental_dependency.tmp;
1562             foreach $idl (all IDL files) {
1563                 generate-bindings.pl depends on $idl and supplemental_dependency.tmp;
1564                 generate-bindings.pl reads $idl;
1565                 generate-bindings.pl reads supplemental_dependency.tmp;
1566                 generate-bindings.pl generates .h and .cpp files for $idl,
1567                     including all attributes in the IDL files that are implementing $idl;
1568             }
1569
1570         Tests: Confirm that build succeeds.
1571                http/tests/websocket/tests/*
1572
1573         * GNUmakefile.am: Described the above build flow.
1574         * GNUmakefile.list.am: Added a list of IDL files. Instead, removed a list of JS*.h and JS*.cpp
1575         that are generated by the IDL files.
1576
1577 2011-12-27  Tony Chang  <tony@chromium.org>
1578
1579         [chromium] When building with clang, enable -Wglobal-constructors
1580         https://bugs.webkit.org/show_bug.cgi?id=74365
1581
1582         Reviewed by Adam Barth.
1583
1584         * WebCore.gyp/WebCore.gyp:
1585
1586 2011-12-27  Tony Chang  <tony@chromium.org>
1587
1588         [chromium] really enable wpo for WebCore libs and for WTF
1589         https://bugs.webkit.org/show_bug.cgi?id=75264
1590
1591         Reviewed by Adam Barth.
1592
1593         * WebCore.gyp/WebCore.gyp: The variable was getting clobbered by the
1594         value set in common.gypi.  Use a target_defaults instead to set the
1595         variable.  I tested manually on my Windows machine and
1596         WholeProgramOptimization is getting set when buildtype is Official.
1597
1598 2011-12-27  Tony Chang  <tony@chromium.org>
1599
1600         [chromium] remove references to files no longer in the tree
1601         https://bugs.webkit.org/show_bug.cgi?id=75262
1602
1603         Reviewed by Adam Barth.
1604
1605         * WebCore.gypi: platform/mac/PlatformMouseEventMac.mm and platform/mac/WheelEventMac.mm
1606         were removed in r103652.
1607
1608 2011-12-27  Vsevolod Vlasov  <vsevik@chromium.org>
1609
1610         Unreviewed web inspector localizedStrings.js fix.
1611
1612         * English.lproj/localizedStrings.js:
1613
1614 2011-12-27  Vsevolod Vlasov  <vsevik@chromium.org>
1615
1616         Web Inspector: Introduce support for experimental settings.
1617         https://bugs.webkit.org/show_bug.cgi?id=75250
1618
1619         Reviewed by Pavel Feldman.
1620
1621         * English.lproj/localizedStrings.js:
1622         * inspector/front-end/ScriptsPanel.js:
1623         * inspector/front-end/Settings.js:
1624         (WebInspector.ExperimentsSettings):
1625         (WebInspector.ExperimentsSettings.prototype.get experiments):
1626         (WebInspector.ExperimentsSettings.prototype.get experimentsEnabled):
1627         (WebInspector.ExperimentsSettings.prototype._createExperiment):
1628         (WebInspector.ExperimentsSettings.prototype.set _cleanUpSetting.get var):
1629         (WebInspector.ExperimentsSettings.prototype.set _cleanUpSetting):
1630         (set WebInspector.Experiment):
1631         (WebInspector.Experiment.prototype.get name):
1632         (WebInspector.Experiment.prototype.get title):
1633         (WebInspector.Experiment.prototype.isEnabled):
1634         (WebInspector.Experiment.prototype.setEnabled):
1635         (set WebInspector):
1636         * inspector/front-end/SettingsScreen.js:
1637         (WebInspector.SettingsScreen):
1638         (WebInspector.SettingsScreen.prototype._createExperimentsWarningSubsection):
1639         (WebInspector.SettingsScreen.prototype._createExperimentCheckbox.listener):
1640         (WebInspector.SettingsScreen.prototype._createExperimentCheckbox):
1641         * inspector/front-end/helpScreen.css:
1642         (.settings-experiments-warning-subsection-warning):
1643         (.settings-experiments-warning-subsection-message):
1644
1645 2011-12-27  Alexander Pavlov  <apavlov@chromium.org>
1646
1647         Web Inspector: exception when scrolling in JavaScriptOutline dialog with empty query
1648         https://bugs.webkit.org/show_bug.cgi?id=75255
1649
1650         Reviewed by Pavel Feldman.
1651
1652         * inspector/front-end/JavaScriptOutlineDialog.js:
1653         (WebInspector.JavaScriptOutlineDialog.prototype._onScroll):
1654
1655 2011-12-27  Pavel Feldman  <pfeldman@google.com>
1656
1657         Web Inspector: add more annotations on SDK classes.
1658         https://bugs.webkit.org/show_bug.cgi?id=75247
1659
1660         Reviewed by Yury Semikhatsky.
1661
1662         * inspector/Inspector.json:
1663         * inspector/compile-front-end.sh:
1664         * inspector/front-end/ApplicationCacheModel.js:
1665         (WebInspector.ApplicationCacheDispatcher.prototype.networkStateUpdated):
1666         * inspector/front-end/BreakpointManager.js:
1667         (WebInspector.BreakpointManager.prototype._breakpoint):
1668         * inspector/front-end/Color.js:
1669         (WebInspector.Color.prototype.get shorthex):
1670         (WebInspector.Color.prototype.get hex):
1671         (WebInspector.Color.prototype.get rgb):
1672         (WebInspector.Color.prototype.get hsl):
1673         (WebInspector.Color.prototype.get nickname):
1674         (WebInspector.Color.prototype.hasShortHex):
1675         (WebInspector.Color.prototype._individualRGBValueToFloatValue):
1676         (WebInspector.Color.prototype._rgbStringsToHex):
1677         (WebInspector.Color.prototype._parse.this.nickname.set 2):
1678         (WebInspector.Color.prototype._parse.this.hsla.set 1):
1679         (WebInspector.Color.prototype._parse.this.rgba.set 0):
1680         (WebInspector.Color.prototype._parse.set WebInspector):
1681         (WebInspector.Color.prototype._parse):
1682         * inspector/front-end/CompilerSourceMapping.js:
1683         * inspector/front-end/ConsoleModel.js:
1684         * inspector/front-end/ContentProviders.js:
1685         (WebInspector.ScriptContentProvider):
1686         (WebInspector.ConcatenatedScriptsContentProvider):
1687         (WebInspector.CompilerSourceMappingContentProvider):
1688         (WebInspector.StaticContentProvider):
1689         * inspector/front-end/CookieParser.js:
1690         (WebInspector.CookieParser.KeyValue):
1691         (WebInspector.CookieParser.prototype.parseCookie):
1692         (WebInspector.CookieParser.prototype.parseSetCookie):
1693         (WebInspector.CookieParser.prototype._extractKeyValue):
1694         * inspector/front-end/DOMStorage.js:
1695         * inspector/front-end/Database.js:
1696         (WebInspector.DatabaseDispatcher.prototype.sqlTransactionSucceeded):
1697         (WebInspector.DatabaseDispatcher.prototype.sqlTransactionFailed):
1698         * inspector/front-end/DebuggerModel.js:
1699         (WebInspector.DebuggerModel.Location):
1700         (WebInspector.DebuggerModel.prototype._failedToParseScriptSource):
1701         * inspector/front-end/DebuggerPresentationModel.js:
1702         (WebInspector.DebuggerPresentationModelResourceBinding.prototype._setContentWithInitialContent):
1703         * inspector/front-end/ElementsTreeOutline.js:
1704         * inspector/front-end/HAREntry.js:
1705         * inspector/front-end/NetworkLog.js:
1706         (WebInspector.NetworkLog.prototype._mainFrameNavigated):
1707         * inspector/front-end/Placard.js:
1708         * inspector/front-end/RawSourceCode.js:
1709         (WebInspector.RawSourceCode.FormattedSourceMapping.prototype.uiLocationToRawLocation):
1710         (WebInspector.RawSourceCode.CompilerSourceMapping.prototype.uiLocationToRawLocation):
1711         * inspector/front-end/RemoteObject.js:
1712         (WebInspector.RemoteObject.fromPrimitiveValue):
1713         (WebInspector.RemoteObject.prototype.setPropertyValue.propertySetCallback):
1714         (WebInspector.RemoteObject.prototype.setPropertyValue):
1715         (WebInspector.LocalJSONObject.prototype.get hasChildren):
1716         (WebInspector.LocalJSONObject.prototype._children):
1717         * inspector/front-end/Resource.js:
1718         (WebInspector.Resource.restoreRevisions):
1719         (WebInspector.Resource.prototype.get queryParameters):
1720         (WebInspector.Resource.prototype.get formParameters):
1721         (WebInspector.Resource.prototype.isHttpFamily):
1722         * inspector/front-end/ResourceCategory.js:
1723         * inspector/front-end/ResourceUtils.js:
1724         * inspector/front-end/ScopeChainSidebarPane.js:
1725         (WebInspector.ScopeChainSidebarPane.prototype.update):
1726         * inspector/front-end/Script.js:
1727         (WebInspector.Script.prototype.isInlineScript):
1728         * inspector/front-end/ScriptFormatter.js:
1729         (WebInspector.ScriptFormatter.positionToLocation):
1730         * inspector/front-end/WelcomeView.js:
1731         (WebInspector.WelcomeView.prototype.addMessage):
1732         * inspector/front-end/externs.js:
1733         (Array.prototype.upperBound):
1734
1735 2011-12-27  Vsevolod Vlasov  <vsevik@chromium.org>
1736
1737         Web Inspector: Scripts panel tabbed editor does not reopen closed tabs.
1738         https://bugs.webkit.org/show_bug.cgi?id=75245
1739
1740         Reviewed by Pavel Feldman.
1741
1742         * inspector/front-end/NetworkItemView.js:
1743         (WebInspector.NetworkItemView):
1744         * inspector/front-end/TabbedEditorContainer.js:
1745         (WebInspector.TabbedEditorContainer):
1746         (WebInspector.TabbedEditorContainer.prototype._tabClosed):
1747         * inspector/front-end/TabbedPane.js:
1748         (WebInspector.TabbedPane.prototype.closeTab):
1749         (WebInspector.TabbedPane.prototype.selectTab):
1750
1751 2011-12-27  Yury Semikhatsky  <yurys@chromium.org>
1752
1753         Web Inspector: report per document JS event listener count
1754         https://bugs.webkit.org/show_bug.cgi?id=74298
1755
1756         This patch adds JS event listener count to the memory agent
1757         report.
1758
1759         Reviewed by Pavel Feldman.
1760
1761         Test: inspector/dom-statistics.html
1762
1763         * inspector/Inspector.json:
1764         * inspector/InspectorMemoryAgent.cpp:
1765
1766 2011-12-27  Alexander Pavlov  <apavlov@chromium.org>
1767
1768         Web Inspector: [REGRESSION] Go to Function dialog always has a minimal height
1769         https://bugs.webkit.org/show_bug.cgi?id=75254
1770
1771         Reviewed by Yury Semikhatsky.
1772
1773         * inspector/front-end/scriptsPanel.css:
1774         (.script-view):
1775
1776 2011-12-26  Vsevolod Vlasov  <vsevik@chromium.org>
1777
1778         Web Inspector: Create tabbed editor for scripts panel.
1779         https://bugs.webkit.org/show_bug.cgi?id=75230
1780
1781         Reviewed by Pavel Feldman.
1782
1783         * WebCore.gypi:
1784         * WebCore.vcproj/WebCore.vcproj:
1785         * inspector/compile-front-end.sh:
1786         * inspector/front-end/ScriptsNavigator.js:
1787         (WebInspector.ScriptsNavigator.prototype.replaceUISourceCodes.get if):
1788         (WebInspector.ScriptsNavigator.prototype.replaceUISourceCodes):
1789         (WebInspector.NavigatorScriptTreeElement.prototype.ondblclick):
1790         (WebInspector.NavigatorScriptTreeElement.prototype.onenter):
1791         * inspector/front-end/ScriptsPanel.js:
1792         * inspector/front-end/TabbedEditorContainer.js: Added.
1793         * inspector/front-end/TabbedPane.js:
1794         (WebInspector.TabbedPane.prototype.get visibleView):
1795         (WebInspector.TabbedPane.prototype.get selectedTabId):
1796         (WebInspector.TabbedPane.prototype.closeAllTabs):
1797         (WebInspector.TabbedPane.prototype.changeTabTitle):
1798         (WebInspector.TabbedPane.prototype.changeTabView):
1799         (WebInspector.TabbedPaneTab):
1800         (WebInspector.TabbedPaneTab.prototype.get title):
1801         (WebInspector.TabbedPaneTab.prototype.set title):
1802         (WebInspector.TabbedPaneTab.prototype.get view):
1803         (WebInspector.TabbedPaneTab.prototype.set view):
1804         (WebInspector.TabbedPaneTab.prototype._createTabElement):
1805         * inspector/front-end/WebKit.qrc:
1806         * inspector/front-end/inspector.html:
1807         * inspector/front-end/scriptsPanel.css:
1808         (.scripts-views-container):
1809         (.script-view):
1810         (#scripts-editor-container-tabbed-pane .tabbed-pane-header):
1811         (#scripts-editor-container-tabbed-pane .tabbed-pane-header-contents):
1812         (#scripts-editor-container-tabbed-pane .tabbed-pane-content):
1813
1814 2011-12-27  Pavel Feldman  <pfeldman@google.com>
1815
1816         Not reviewed: Rolling out r103703 for breaking Canvas2DLayerChromiumTest.testFullLifecycle.
1817
1818         * platform/graphics/chromium/Canvas2DLayerChromium.cpp:
1819         (WebCore::Canvas2DLayerChromium::Canvas2DLayerChromium):
1820         (WebCore::Canvas2DLayerChromium::~Canvas2DLayerChromium):
1821         (WebCore::Canvas2DLayerChromium::paintContentsIfDirty):
1822         (WebCore::Canvas2DLayerChromium::setTextureManager):
1823         (WebCore::Canvas2DLayerChromium::updateCompositorResources):
1824         (WebCore::Canvas2DLayerChromium::pushPropertiesTo):
1825         (WebCore::Canvas2DLayerChromium::unreserveContentsTexture):
1826         (WebCore::Canvas2DLayerChromium::cleanupResources):
1827         * platform/graphics/chromium/Canvas2DLayerChromium.h:
1828
1829 2011-12-22  Vangelis Kokkevis  <vangelis@chromium.org>
1830
1831         [chromium] Bypass the shadow texture copy for accelerated
1832         canvas when running the compositor in single threaded mode.
1833         https://bugs.webkit.org/show_bug.cgi?id=75146
1834
1835         The texture copy fails on Windows as glCopyTexImage2D() doesn't
1836         support BGRA source textures. 
1837         This change also modified Canvas2DLayerChromium::updateCompositorResources
1838         to call glCopyTexSubImage2D() instead of glCopyTexImage2D() so that
1839         the copy can work with texture allocated via the glTexStorage2D
1840         extension.
1841
1842         Reviewed by James Robinson.
1843
1844
1845         * platform/graphics/chromium/Canvas2DLayerChromium.cpp:
1846         (WebCore::Canvas2DLayerChromium::Canvas2DLayerChromium):
1847         (WebCore::Canvas2DLayerChromium::~Canvas2DLayerChromium):
1848         (WebCore::Canvas2DLayerChromium::paintContentsIfDirty):
1849         (WebCore::Canvas2DLayerChromium::setTextureManager):
1850         (WebCore::Canvas2DLayerChromium::updateCompositorResources):
1851         (WebCore::Canvas2DLayerChromium::pushPropertiesTo):
1852         (WebCore::Canvas2DLayerChromium::unreserveContentsTexture):
1853         (WebCore::Canvas2DLayerChromium::cleanupResources):
1854         * platform/graphics/chromium/Canvas2DLayerChromium.h:
1855
1856 2011-12-26  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1857
1858         [EFL][WK2] Implement context menu for EFL port.
1859         https://bugs.webkit.org/show_bug.cgi?id=74995
1860
1861         Reviewed by Anders Carlsson.
1862
1863         Implement missing ContextMenuEfl class in order to support WK2's context menu.
1864         Because WK2's context menu still needs WebCore's context menu implementation.
1865         And of course, this patch also can be used for WK1 without CROSS_PLATFORM_CONTEXT_MENU
1866         option.
1867
1868         * platform/ContextMenu.h:
1869         * platform/ContextMenuItem.h:
1870         * platform/PlatformMenuDescription.h:
1871         * platform/efl/ContextMenuEfl.cpp:
1872         (WebCore::ContextMenu::~ContextMenu):
1873         (WebCore::ContextMenu::appendItem):
1874         (WebCore::ContextMenu::insertItem):
1875         (WebCore::ContextMenu::itemCount):
1876         (WebCore::ContextMenu::setPlatformDescription):
1877         (WebCore::ContextMenu::platformDescription):
1878         (WebCore::ContextMenu::releasePlatformDescription):
1879         (WebCore::platformMenuDescription):
1880         (WebCore::contextMenuItemVector):
1881         * platform/efl/ContextMenuItemEfl.cpp:
1882         (WebCore::ContextMenuItem::ContextMenuItem):
1883         (WebCore::ContextMenuItem::~ContextMenuItem):
1884         (WebCore::ContextMenuItem::setType):
1885         (WebCore::ContextMenuItem::type):
1886         (WebCore::ContextMenuItem::setAction):
1887         (WebCore::ContextMenuItem::action):
1888         (WebCore::ContextMenuItem::setTitle):
1889         (WebCore::ContextMenuItem::title):
1890         (WebCore::ContextMenuItem::setChecked):
1891         (WebCore::ContextMenuItem::checked):
1892         (WebCore::ContextMenuItem::setEnabled):
1893         (WebCore::ContextMenuItem::enabled):
1894
1895 2011-12-26  Hajime Morrita  <morrita@chromium.org>
1896
1897         [Refactoring] Node::setTreeScopeRecursively() doesn't need includeRoot parameter
1898         https://bugs.webkit.org/show_bug.cgi?id=75240
1899
1900         Reviewed by Anders Carlsson.
1901
1902         No new tests. No behavior change.
1903
1904         * dom/Node.cpp:
1905         (WebCore::Node::setTreeScopeRecursively):
1906         * dom/Node.h:
1907
1908 2011-12-26  Darin Adler  <darin@apple.com>
1909
1910         Use OwnPtr and OwnArrayPtr in a couple more places
1911         https://bugs.webkit.org/show_bug.cgi?id=75211
1912
1913         Reviewed by Andreas Kling.
1914
1915         I had a patch with some changes from a while back from going through all sorts of
1916         classes and changing code to use adoptPtr. Most were landed long ago, these are the
1917         ones that still apply.
1918
1919         There are six pieces here that could each be landed separately.
1920         The big one is CSSParser.
1921
1922         * css/CSSGrammar.y: Update for members and functions that now
1923         return PassOwnPtr instead of raw pointers.
1924         * css/CSSParser.cpp:
1925         (WebCore::CSSParser::CSSParser): Remove explicit construction
1926         for m_valueList and m_data since OwnPtr and OwnArrayPtr initialize
1927         to zero without it.
1928         (WebCore::CSSParser::~CSSParser): Removed delete m_valueList and
1929         fastFree(m_data) since OwnPtr and OwnArrayPtr handle that.
1930         (WebCore::CSSParser::setupParser): Use adoptArrayPtr and new for
1931         the character array instead of fastFree/fastMalloc. Added get
1932         function calls as needed.
1933         (WebCore::CSSParser::parseValue): Added get function calls as needed.
1934         (WebCore::CSSParser::parseContent): Ditto.
1935         (WebCore::CSSParser::parseFillProperty): Ditto.
1936         (WebCore::CSSParser::parseTransformOriginShorthand): Ditto.
1937         (WebCore::CSSParser::parseBorderImage): Ditto.
1938         (WebCore::CSSParser::parseTransformOrigin): Ditto.
1939         (WebCore::CSSParser::parsePerspectiveOrigin): Ditto.
1940         (WebCore::CSSParser::sinkFloatingValueList): Changed to return PassOwnPtr.
1941         The adoptPtr call is here.
1942         (WebCore::CSSParser::sinkFloatingFunction): Ditto.
1943         (WebCore::CSSParser::markSelectorListStart): Added get function calls as needed.
1944         (WebCore::CSSParser::markSelectorListEnd): Ditto.
1945         (WebCore::CSSParser::markRuleBodyStart): Ditto.
1946         (WebCore::CSSParser::markRuleBodyEnd): Ditto.
1947         (WebCore::CSSParser::markPropertyStart): Ditto.
1948         (WebCore::CSSParser::markPropertyEnd): Ditto.
1949         * css/CSSParser.h: Moved conditional includes to their own paragraph.
1950         Made sinkFloatingValueList and sinkFloatingFunction return PassOwnPtr.
1951         Made m_valueList an OwnPtr and m_data an OwnArrayPtr.
1952         * css/SVGCSSParser.cpp:
1953         (WebCore::CSSParser::parseSVGValue): Added a call to the get function.
1954
1955         * html/PluginDocument.h: Made isPluginDocument private. Also marked all the
1956         functions that are overriding here as OVERRIDE since I was touching the header.
1957
1958         * html/parser/HTMLToken.h:
1959         (WebCore::HTMLTokenTypes::DoctypeData::DoctypeData): Removed an unneeded line
1960         explicitly initializing the base class.
1961
1962         * page/animation/AnimationBase.cpp:
1963         (WebCore::RefCountedPropertyWrapper::RefCountedPropertyWrapper): Fixed indent.
1964
1965         * rendering/style/RenderStyle.h: Moved conditional includes to their own paragraph.
1966
1967         * xml/parser/MarkupTokenBase.h:
1968         (WebCore::MarkupTokenBase::beginDOCTYPE): Removed unneeded parentheses.
1969
1970 2011-12-26  Vsevolod Vlasov  <vsevik@chromium.org>
1971
1972         Web Inspector: Extract FileEditor from ScriptsPanel.
1973         https://bugs.webkit.org/show_bug.cgi?id=75229
1974
1975         Reviewed by Pavel Feldman.
1976
1977         * inspector/front-end/JavaScriptSourceFrame.js:
1978         (WebInspector.JavaScriptSourceFrame.prototype.suggestedFileName):
1979         * inspector/front-end/ScriptsNavigator.js:
1980         * inspector/front-end/ScriptsPanel.js:
1981         (WebInspector.ScriptsPanel.prototype._reset):
1982         (WebInspector.ScriptsPanel.prototype.get visibleView):
1983         (WebInspector.ScriptsPanel.prototype._updateScriptViewStatusBarItems):
1984         (WebInspector.ScriptsPanel.prototype._uiSourceCodeReplaced.get if):
1985         (WebInspector.ScriptsPanel.EditorContainer):
1986         (WebInspector.ScriptsPanel.EditorContainer.prototype.get currentSourceFrame):
1987         (WebInspector.ScriptsPanel.EditorContainer.prototype.show):
1988         (WebInspector.ScriptsPanel.EditorContainer.prototype.showSourceFrame):
1989         (WebInspector.ScriptsPanel.EditorContainer.prototype.isSourceFrameOpen):
1990         (WebInspector.ScriptsPanel.EditorContainer.prototype.replaceSourceFrames):
1991         (WebInspector.ScriptsPanel.EditorContainer.prototype.setSourceFrameIsDirty):
1992         (WebInspector.ScriptsPanel.EditorContainer.prototype.reset):
1993         (WebInspector.ScriptsPanel.SingleFileEditorContainer):
1994         (WebInspector.ScriptsPanel.SingleFileEditorContainer.prototype.get currentSourceFrame):
1995         (WebInspector.ScriptsPanel.SingleFileEditorContainer.prototype.show):
1996         (WebInspector.ScriptsPanel.SingleFileEditorContainer.prototype.showSourceFrame):
1997         (WebInspector.ScriptsPanel.SingleFileEditorContainer.prototype.isSourceFrameOpen):
1998         (WebInspector.ScriptsPanel.SingleFileEditorContainer.prototype.replaceSourceFrames):
1999         (WebInspector.ScriptsPanel.SingleFileEditorContainer.prototype.setSourceFrameIsDirty):
2000         (WebInspector.ScriptsPanel.SingleFileEditorContainer.prototype.reset):
2001         * inspector/front-end/UISourceCode.js:
2002         (WebInspector.UISourceCode.prototype.get domain):
2003         (WebInspector.UISourceCode.prototype.get folderName):
2004         (WebInspector.UISourceCode.prototype.get fileName):
2005         (WebInspector.UISourceCode.prototype.get displayName):
2006         (WebInspector.UISourceCode.prototype._parseURL):
2007
2008 2011-12-26  Darin Adler  <darin@apple.com>
2009
2010         Fix mutation observer build after didMoveToNewDocument change
2011         https://bugs.webkit.org/show_bug.cgi?id=75224
2012
2013         Reviewed by Hajime Morita.
2014
2015         * dom/Node.cpp:
2016         (WebCore::willCallDidMoveToNewDocument): Added.
2017         (WebCore::didMoveToNewDocumentWasCalled): Added.
2018         (WebCore::Node::setDocument): Call new debugging function.
2019         (WebCore::Node::didMoveToNewDocument): Ditto. Also use ASSERT_UNUSED
2020         unconditionally rather than UNUSED_PARAM inside and #if. Also added
2021         a new assertion that checks that hte old document was passed through
2022         properly.
2023
2024 2011-12-26  Alexander Pavlov  <apavlov@chromium.org>
2025
2026         Web Inspector: [Scripts] Implement iterative match highlighting in the "Go to Function" dialog item list
2027         https://bugs.webkit.org/show_bug.cgi?id=75226
2028
2029         Reviewed by Pavel Feldman.
2030
2031         * inspector/front-end/JavaScriptOutlineDialog.js:
2032         (WebInspector.JavaScriptOutlineDialog):
2033         (WebInspector.JavaScriptOutlineDialog.prototype._createSearchRegExp):
2034         (WebInspector.JavaScriptOutlineDialog.prototype._filterFunctions):
2035         (WebInspector.JavaScriptOutlineDialog.prototype._onKeyDown.previousItem):
2036         (WebInspector.JavaScriptOutlineDialog.prototype._onKeyDown.nextItem):
2037         (WebInspector.JavaScriptOutlineDialog.prototype._onKeyDown):
2038         (WebInspector.JavaScriptOutlineDialog.prototype._updateSelection):
2039         (WebInspector.JavaScriptOutlineDialog.prototype._onScroll):
2040         (WebInspector.JavaScriptOutlineDialog.MatchHighlighter):
2041         (WebInspector.JavaScriptOutlineDialog.MatchHighlighter.prototype.highlightViewportItems):
2042         (WebInspector.JavaScriptOutlineDialog.MatchHighlighter.prototype.clearHighlight):
2043         (WebInspector.JavaScriptOutlineDialog.MatchHighlighter.prototype._highlightItem):
2044         (WebInspector.JavaScriptOutlineDialog.MatchHighlighter.prototype._viewportRowRange):
2045         * inspector/front-end/javaScriptOutlineDialog.css:
2046         (.js-outline-dialog > .container > div.item > span.highlight):
2047
2048 2011-12-26  Vsevolod Vlasov  <vsevik@chromium.org>
2049
2050         Web Inspector: Extract FileSelector from ScriptsPanel.
2051         https://bugs.webkit.org/show_bug.cgi?id=75173
2052
2053         Reviewed by Pavel Feldman.
2054
2055         * inspector/front-end/ScriptsNavigator.js:
2056         (WebInspector.ScriptsNavigator):
2057         (WebInspector.ScriptsNavigator.prototype.get defaultFocusedElement):
2058         (WebInspector.ScriptsNavigator.prototype.show):
2059         (WebInspector.ScriptsNavigator.prototype.setScriptSourceIsDirty):
2060         (WebInspector.ScriptsNavigator.prototype.replaceUISourceCodes):
2061         (WebInspector.ScriptsNavigator.prototype.scriptSelected):
2062         * inspector/front-end/ScriptsPanel.js:
2063         (WebInspector.ScriptsPanel.prototype.get defaultFocusedElement):
2064         (WebInspector.ScriptsPanel.prototype._uiSourceCodeAdded.get if):
2065         (WebInspector.ScriptsPanel.prototype.setScriptSourceIsBeingEdited):
2066         (WebInspector.ScriptsPanel.prototype._reset):
2067         (WebInspector.ScriptsPanel.prototype._showSourceLine):
2068         (WebInspector.ScriptsPanel.prototype._showAndRevealInFileSelector):
2069         (WebInspector.ScriptsPanel.prototype._createSourceFrame):
2070         (WebInspector.ScriptsPanel.prototype._updateExecutionLine):
2071         (WebInspector.ScriptsPanel.prototype._scriptSelected):
2072         (WebInspector.ScriptsPanel.FileSelector):
2073         (WebInspector.ScriptsPanel.FileSelector.prototype.get defaultFocusedElement):
2074         (WebInspector.ScriptsPanel.FileSelector.prototype.show):
2075         (WebInspector.ScriptsPanel.FileSelector.prototype.addUISourceCode):
2076         (WebInspector.ScriptsPanel.FileSelector.prototype.isScriptSourceAdded):
2077         (WebInspector.ScriptsPanel.FileSelector.prototype.revealUISourceCode):
2078         (WebInspector.ScriptsPanel.FileSelector.prototype.setScriptSourceIsDirty):
2079         (WebInspector.ScriptsPanel.FileSelector.prototype.replaceUISourceCodes):
2080         (WebInspector.ScriptsPanel.ComboBoxFileSelector):
2081         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype.get defaultFocusedElement):
2082         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype.show):
2083         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype.showDebugSidebarResizeWidget):
2084         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype.addUISourceCode):
2085         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype.isScriptSourceAdded):
2086         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype.revealUISourceCode):
2087         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype._innerRevealUISourceCode):
2088         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype._addToHistory):
2089         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype.replaceUISourceCodes):
2090         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype._showScriptFoldersSettingChanged):
2091         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype._reset):
2092         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype.setScriptSourceIsDirty):
2093         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype._createEditorToolbar):
2094         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype._addOptionToFilesSelect.get var):
2095         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype._addOptionToFilesSelect.insertOrdered.optionCompare):
2096         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype._addOptionToFilesSelect.insertOrdered):
2097         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype._addOptionToFilesSelect):
2098         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype._resetFilesSelect):
2099         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype._updateBackAndForwardButtons):
2100         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype._goBack):
2101         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype._goForward):
2102         (WebInspector.ScriptsPanel.ComboBoxFileSelector.prototype._filesSelectChanged):
2103         * inspector/front-end/inspector.html:
2104         * inspector/front-end/utilities.js:
2105         ():
2106
2107 2011-12-26  Alexander Pavlov  <apavlov@chromium.org>
2108
2109         Web Inspector: Implement "Go to Function" dialog for JavaScript
2110         https://bugs.webkit.org/show_bug.cgi?id=75092
2111
2112         Reviewed by Pavel Feldman.
2113
2114         * English.lproj/localizedStrings.js:
2115         * WebCore.gypi:
2116         * WebCore.vcproj/WebCore.vcproj:
2117         * inspector/compile-front-end.sh:
2118         * inspector/front-end/JavaScriptOutlineDialog.js: Added.
2119         (WebInspector.JavaScriptOutlineDialog.onMouseDown):
2120         (WebInspector.JavaScriptOutlineDialog):
2121         (WebInspector.JavaScriptOutlineDialog.didAddChunk):
2122         (WebInspector.JavaScriptOutlineDialog.install):
2123         (WebInspector.JavaScriptOutlineDialog._show):
2124         (WebInspector.JavaScriptOutlineDialog.createShortcut):
2125         (WebInspector.JavaScriptOutlineDialog.prototype._resizeWindow):
2126         (WebInspector.JavaScriptOutlineDialog.prototype._appendItemElements):
2127         (WebInspector.JavaScriptOutlineDialog.prototype._createSearchRegExp):
2128         (WebInspector.JavaScriptOutlineDialog.prototype._filterFunctions):
2129         (WebInspector.JavaScriptOutlineDialog.prototype._selectFirstItem):
2130         (WebInspector.JavaScriptOutlineDialog.prototype._hide):
2131         (WebInspector.JavaScriptOutlineDialog.prototype._onBlur):
2132         (WebInspector.JavaScriptOutlineDialog.prototype._onKeyDown.previousItem):
2133         (WebInspector.JavaScriptOutlineDialog.prototype._onKeyDown.nextItem):
2134         (WebInspector.JavaScriptOutlineDialog.prototype._onKeyDown):
2135         (WebInspector.JavaScriptOutlineDialog.prototype._scheduleFilter):
2136         (WebInspector.JavaScriptOutlineDialog.prototype._updateSelection):
2137         (WebInspector.JavaScriptOutlineDialog.prototype._onClick):
2138         (WebInspector.JavaScriptOutlineDialog.prototype._onMouseMove):
2139         (WebInspector.JavaScriptOutlineDialog.prototype._highlightFunctionLine):
2140         * inspector/front-end/JavaScriptSourceFrame.js:
2141         (WebInspector.JavaScriptSourceFrame.prototype.get uiSourceCode):
2142         * inspector/front-end/ScriptsPanel.js:
2143         (WebInspector.ScriptsPanel.prototype._didBuildOutlineChunk):
2144         (WebInspector.ScriptsPanel.prototype._reset):
2145         (WebInspector.ScriptsPanel.prototype.requestVisibleScriptOutline):
2146         (WebInspector.ScriptsPanel.prototype._createEditorToolbar):
2147         * inspector/front-end/WebKit.qrc:
2148         * inspector/front-end/inspector.html:
2149         * inspector/front-end/javaScriptOutlineDialog.css: Added.
2150         (.js-outline-dialog):
2151         (.js-outline-dialog > input):
2152         (.js-outline-dialog > div.progress):
2153         (.js-outline-dialog > div.container):
2154         (.js-outline-dialog > .container > div.item):
2155         (.js-outline-dialog > .container > div.item.selected):
2156
2157 2011-12-26  Pavel Feldman  <pfeldman@google.com>
2158
2159         Web Inspector: make SDK compilation component self-contained.
2160         https://bugs.webkit.org/show_bug.cgi?id=75172
2161
2162         Reviewed by Yury Semikhatsky.
2163
2164         * inspector/compile-front-end.sh:
2165         * inspector/front-end/ConsoleMessage.js:
2166         (WebInspector.ConsoleMessageImpl):
2167         (WebInspector.ConsoleMessageImpl.prototype.get stackTrace):
2168         (WebInspector.ConsoleMessageImpl.prototype.clone):
2169         * inspector/front-end/ConsoleModel.js:
2170         (WebInspector.ConsoleModel.prototype._messageRepeatCountUpdated):
2171         (WebInspector.ConsoleMessage):
2172         (WebInspector.ConsoleMessage.prototype.isErrorOrWarning):
2173         (WebInspector.ConsoleMessage.prototype.updateRepeatCount):
2174         (WebInspector.ConsoleMessage.prototype.clone):
2175         * inspector/front-end/DebuggerPresentationModel.js:
2176         (WebInspector.DebuggerPresentationModel.prototype._consoleMessageAdded):
2177         * inspector/front-end/ResourceUtils.js:
2178         * inspector/front-end/UIUtils.js:
2179         (WebInspector.resetToolbarColors):
2180         (WebInspector.populateHrefContextMenu):
2181
2182 2011-12-26  Hajime Morrita  <morrita@google.com>
2183
2184         Unreviewed bad merge fix.
2185
2186         * svg/SVGSVGElement.cpp:
2187         (WebCore::SVGSVGElement::didMoveToNewDocument):
2188
2189 2011-12-25  Hajime Morrita  <morrita@chromium.org>
2190
2191         https://bugs.webkit.org/show_bug.cgi?id=74067
2192         Refactoring: Unitfy willMoveToNewDocument() and didMoveToNewDocument()
2193
2194         Reviewed by Darin Adler.
2195
2196         No new tests. No behavior change.
2197
2198         This change combines two method Node::willMoveToNewOwnerDocument() and Node::didMoveToNewOwnerDocument()
2199         into Node::didMoveToNewDocument(Document* oldDocument).
2200
2201         The intention of this change is:
2202         - Making upcoming refactoring (Bug 59816) possible. The refactoring will turn Node::m_document into
2203           Node::m_treeScope, and we will no longer have Node::setDocument() where we can invoke both
2204           willMoveToNewDocument() and didMoveToNewDocument() at once.
2205         - Killing one extra virtual method call.
2206         - Making the concept of "move" clearer by keeping such an operation into the single method.
2207
2208         * dom/Node.cpp:
2209         (WebCore::setWillMoveToNewDocumentWasCalled):
2210         (WebCore::setDidMoveToNewDocumentWasCalled):
2211         (WebCore::Node::setDocument):
2212         (WebCore::Node::didMoveToNewDocument):
2213         * dom/Node.h:
2214         * dom/StyledElement.cpp:
2215         (WebCore::StyledElement::attributeChanged):
2216         * html/FormAssociatedElement.cpp:
2217         (WebCore::FormAssociatedElement::didMoveToNewDocument):
2218         * html/FormAssociatedElement.h:
2219         * html/HTMLFormControlElement.cpp:
2220         (WebCore::HTMLFormControlElement::didMoveToNewDocument):
2221         (WebCore::HTMLFormControlElementWithState::didMoveToNewDocument):
2222         * html/HTMLFormControlElement.h:
2223         * html/HTMLFormElement.cpp:
2224         (WebCore::HTMLFormElement::didMoveToNewDocument):
2225         * html/HTMLFormElement.h:
2226         * html/HTMLImageElement.cpp:
2227         (WebCore::HTMLImageElement::didMoveToNewDocument):
2228         * html/HTMLImageElement.h:
2229         * html/HTMLInputElement.cpp:
2230         (WebCore::HTMLInputElement::didMoveToNewDocument):
2231         * html/HTMLInputElement.h:
2232         * html/HTMLMediaElement.cpp:
2233         (WebCore::HTMLMediaElement::didMoveToNewDocument):
2234         * html/HTMLMediaElement.h:
2235         * html/HTMLObjectElement.cpp:
2236         (WebCore::HTMLObjectElement::didMoveToNewDocument):
2237         * html/HTMLObjectElement.h:
2238         * html/HTMLPlugInImageElement.cpp:
2239         (WebCore::HTMLPlugInImageElement::didMoveToNewDocument):
2240         * html/HTMLPlugInImageElement.h:
2241         * html/HTMLVideoElement.cpp:
2242         (WebCore::HTMLVideoElement::didMoveToNewDocument):
2243         * html/HTMLVideoElement.h:
2244         * html/ImageDocument.cpp:
2245         (WebCore::ImageDocumentElement::didMoveToNewDocument):
2246         * html/ImageInputType.cpp:
2247         (WebCore::ImageInputType::willMoveToNewDocument):
2248         * loader/ImageLoader.cpp:
2249         (WebCore::ImageLoader::elementDidMoveToNewDocument):
2250         * loader/ImageLoader.h:
2251         * svg/SVGImageElement.cpp:
2252         (WebCore::SVGImageElement::didMoveToNewDocument):
2253         * svg/SVGImageElement.h:
2254         * svg/SVGSVGElement.cpp:
2255         (WebCore::SVGSVGElement::didMoveToNewDocument):
2256         * svg/SVGSVGElement.h:
2257
2258 2011-12-25  Kentaro Hara  <haraken@chromium.org>
2259
2260         REGRESSION(r102987): Fix the filename prefix of the generated empty .h
2261         and .cpp files for [Supplemental] IDLs
2262         https://bugs.webkit.org/show_bug.cgi?id=75082
2263
2264         Reviewed by Darin Adler.
2265
2266         In bug 74481, we changed generate-bindings.pl so that it generates empty .h
2267         and .cpp files for the [Supplemental] IDLs. However, the filename prefixes of
2268         those .h and .cpp files are wrong. This patch fixes the prefixes as follows:
2269
2270             generator=JS  => JS*.h, JS*.cpp
2271             generator=V8  => V8*.h, V8*.cpp
2272             generator=ObjC  => DOM*.h, DOM*.cpp
2273             generator=GObject  => WebKitDOM*.h, WebKitDOM*.cpp
2274             generator=CPP  => WebDOM*.h, WebDOM*.cpp
2275
2276         No new tests. No change in behavior.
2277         I confirmed that the names of generated .h and .cpp files are correct.
2278
2279         * bindings/scripts/CodeGenerator.pm:
2280         (FileNamePrefix): Returns the prefix of file names.
2281         * bindings/scripts/CodeGeneratorCPP.pm:
2282         (GenerateInterface): Uses CodeGenerator::FileNamePrefix.
2283         * bindings/scripts/CodeGeneratorGObject.pm:
2284         (GenerateInterface): Ditto.
2285         * bindings/scripts/CodeGeneratorJS.pm:
2286         (GenerateInterface): Ditto.
2287         * bindings/scripts/CodeGeneratorObjC.pm:
2288         (GenerateInterface): Ditto.
2289         * bindings/scripts/CodeGeneratorV8.pm:
2290         (GenerateInterface): Ditto.
2291         * bindings/scripts/generate-bindings.pl:
2292         (generateEmptyHeaderAndCpp): Ditto.
2293
2294 2011-12-25  Dan Bernstein  <mitz@apple.com>
2295
2296         WebCore changes for: Find indicators overlap when a match spans multiple text boxes
2297         https://bugs.webkit.org/show_bug.cgi?id=75220
2298
2299         Reviewed by Darin Adler.
2300
2301         * WebCore.exp.in: Exported new unionRect(const Vector<FloatRect>&) and existing
2302         FloatRect::intersects().
2303         * platform/graphics/FloatRect.cpp:
2304         (WebCore::unionRect): Added.
2305         * platform/graphics/FloatRect.h:
2306
2307 2011-12-25  Darin Adler  <darin@apple.com>
2308
2309         Use OwnPtr for CSSFontFace::m_sources
2310         https://bugs.webkit.org/show_bug.cgi?id=75219
2311
2312         Reviewed by Dan Bernstein.
2313
2314         * css/CSSFontFace.cpp:
2315         (WebCore::CSSFontFace::isLoaded): Use the same size_t idiom here as in the rest
2316         of the functions.
2317         (WebCore::CSSFontFace::isValid): Ditto. Also removed unneeded empty special casing.
2318         (WebCore::CSSFontFace::addSource): Changed to take a PassOwnPtr. Reordered so the
2319         PassOwnPtr zeroing does not cause trouble.
2320         (WebCore::CSSFontFace::getFontData): Added call to get.
2321         (WebCore::CSSFontFace::hasSVGFontFaceSource): Use the same size_t idiom here as in
2322         the rest of the functions.
2323
2324         * css/CSSFontFace.h: Use PassOwnPtr for addSource argument, and Vector<OwnPtr> for
2325         the m_sources vector.
2326
2327         * css/CSSFontSelector.cpp:
2328         (WebCore::CSSFontSelector::addFontFaceRule): Use OwnPtr and PassOwnPtr for font face
2329         sources that are passed to addSource.
2330
2331         * css/CSSSegmentedFontFace.cpp: Added a now-needed include.
2332
2333 2011-12-24  Jarred Nicholls  <jarred@sencha.com>
2334
2335         Allow XMLHttpRequest responseType to be set at any state up to and including HEADERS_RECEIVED
2336         https://bugs.webkit.org/show_bug.cgi?id=75190
2337
2338         XMLHttpRequest.responseType should be modifiable at any state up to and including the
2339         HEADERS_RECEIVED state. Therefore, subsequent calls to open() should not reset responseType
2340         to its default value, and calls to open() must follow the same spec mandate set forth in
2341         setResponseType() for synchronous HTTP(S) requests made from the window context.
2342
2343         Reviewed by Alexey Proskuryakov.
2344
2345         Tests: fast/xmlhttprequest/xmlhttprequest-responsetype-before-open-sync-request.html
2346                fast/xmlhttprequest/xmlhttprequest-responsetype-before-open.html
2347                fast/xmlhttprequest/xmlhttprequest-responsetype-set-at-headers-received.html
2348
2349         * xml/XMLHttpRequest.cpp:
2350         (WebCore::XMLHttpRequest::setResponseType):
2351         Prevent setting the value only when in LOADING and DONE states. No longer check if
2352         m_loader is present, which is instantiated on a call to send(), because responseType
2353         can be safely changed after a request is sent.
2354         (WebCore::XMLHttpRequest::open):
2355         Do not reset m_responseTypeCode to the default value, and prevent calls to open()
2356         for synchronous HTTP(S) requests made from the window context when m_responseTypeCode
2357         is not the default value.
2358
2359 2011-12-25  Sam Weinig  <sam@webkit.org>
2360
2361         Fix tests failing as a result of r103643
2362         https://bugs.webkit.org/show_bug.cgi?id=75209
2363
2364         Reviewed by Dan Bernstein.
2365
2366         Switch accidental switch of default scroll granularity from 
2367         ScrollByPageWheelEvent back to ScrollByPixelWheelEvent.
2368
2369         * platform/mac/PlatformEventFactory.mm:
2370         (WebCore::PlatformWheelEventBuilder::PlatformWheelEventBuilder):
2371
2372 2011-12-25  Darin Adler  <darin@apple.com>
2373
2374         Change CSS canvas code that does HashMap get/set to use the more efficient add idiom
2375         https://bugs.webkit.org/show_bug.cgi?id=75204
2376
2377         Reviewed by Dan Bernstein.
2378
2379         * dom/Document.cpp:
2380         (WebCore::Document::getCSSCanvasContext): Change local variable name of element to
2381         element; it's not the function result, so not good to name it result.
2382         (WebCore::Document::getCSSCanvasElement): Use add instead of get/set so we only do
2383         one hash table lookup.
2384
2385 2011-12-24  Andreas Kling  <awesomekling@apple.com>
2386
2387         CSSElementStyleDeclarations should never move between elements.
2388         <http://webkit.org/b/75198>
2389
2390         Reviewed by Anders Carlsson.
2391
2392         Have the CSSElementStyleDeclaration subclasses take a StyledElement* in
2393         the constructor and replace setElement(StyledElement*) by clearElement().
2394
2395         No behavior change, just enforcing the current behavior at compile-time.
2396
2397         * css/CSSElementStyleDeclaration.h:
2398         (WebCore::CSSElementStyleDeclaration::clearElement):
2399         (WebCore::CSSElementStyleDeclaration::CSSElementStyleDeclaration):
2400         * css/CSSInlineStyleDeclaration.h:
2401         (WebCore::CSSInlineStyleDeclaration::create):
2402         (WebCore::CSSInlineStyleDeclaration::CSSInlineStyleDeclaration):
2403         * dom/StyledElement.cpp:
2404         (WebCore::StyledElement::createInlineStyleDecl):
2405         (WebCore::StyledElement::destroyInlineStyleDecl):
2406         * svg/SVGFontFaceElement.cpp:
2407         (WebCore::FontFaceStyleDeclaration::FontFaceStyleDeclaration):
2408
2409 2011-12-23  Andreas Kling  <awesomekling@apple.com>
2410
2411         Decouple CSSMappedAttributeDeclaration from element completely.
2412         <http://webkit.org/b/75187>
2413
2414         Reviewed by Darin Adler.
2415
2416         Let CSSMappedAttributeDeclaration inherit from CSSMutableDeclaration instead
2417         of CSSElementStyleDeclaration. Add methods to CSSMappedAttributeDeclaration
2418         for setting properties that also take a StyledElement* and use that mechanism
2419         instead of temporarily associating an element with the declaration.
2420
2421         This reduces the size of mapped attributes by 4/8 bytes, but more importantly
2422         opens a number of ways to simplify style declarations in future patches.
2423
2424         * css/CSSMutableStyleDeclaration.h:
2425         * dom/CSSMappedAttributeDeclaration.cpp:
2426         (WebCore::CSSMappedAttributeDeclaration::setNeedsStyleRecalc):
2427         (WebCore::CSSMappedAttributeDeclaration::setMappedImageProperty):
2428         (WebCore::CSSMappedAttributeDeclaration::setMappedLengthProperty):
2429         (WebCore::CSSMappedAttributeDeclaration::setMappedProperty):
2430         (WebCore::CSSMappedAttributeDeclaration::removeMappedProperty):
2431         * dom/CSSMappedAttributeDeclaration.h:
2432         (WebCore::CSSMappedAttributeDeclaration::CSSMappedAttributeDeclaration):
2433
2434             Add/move methods to CSSMappedAttributeDeclaration for setting/removing
2435             properties that also take a StyledElement*. That element is used for
2436             scheduling style recalc and passing the right document to CSSParser.
2437
2438         * css/CSSParser.h:
2439         * css/CSSParser.cpp:
2440         (WebCore::parseColorValue):
2441         (WebCore::parseSimpleLengthValue):
2442         (WebCore::CSSParser::parseValue):
2443         (WebCore::CSSParser::parseMappedAttributeValue):
2444
2445             Added a parsedMappedAttributeValue() alternative to parseValue() that
2446             takes a StyledElement*.
2447
2448         * dom/StyledElement.h:
2449         * html/HTMLElement.cpp:
2450         (WebCore::HTMLElement::setContentEditable):
2451
2452             Add (and use) a StyledElement::removeCSSProperty() complement to the
2453             addCSS*() functions.
2454
2455         * dom/StyledElement.cpp:
2456         (WebCore::StyledElement::attributeChanged):
2457         (WebCore::StyledElement::removeCSSProperty):
2458         (WebCore::StyledElement::addCSSProperty):
2459         (WebCore::StyledElement::addCSSImageProperty):
2460         (WebCore::StyledElement::addCSSLength):
2461         (WebCore::StyledElement::addCSSColor):
2462         (WebCore::StyledElement::createMappedDecl):
2463         * html/HTMLTableElement.cpp:
2464         (WebCore::HTMLTableElement::additionalAttributeStyleDecls):
2465         (WebCore::HTMLTableElement::addSharedCellBordersDecl):
2466         (WebCore::HTMLTableElement::addSharedCellPaddingDecl):
2467         (WebCore::HTMLTableElement::addSharedGroupDecls):
2468
2469             Use the setMapped*Property() functions to plumb the element through.
2470
2471         * css/CSSElementStyleDeclaration.h:
2472
2473             Update comment about CSSElementStyleDeclaration's subclasses.
2474
2475 2011-12-24  Jarred Nicholls  <jarred@sencha.com>
2476
2477         Allow XMLHttpRequest withCredentials to be set prior to a call to open()
2478         https://bugs.webkit.org/show_bug.cgi?id=75194
2479
2480         XMLHttpRequest.withCredentials attribute should be modifiable prior to the OPENED state per
2481         the W3C spec. See http://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#the-withcredentials-attribute
2482
2483         Reviewed by Alexey Proskuryakov.
2484
2485         Test: fast/xmlhttprequest/xmlhttprequest-withcredentials-before-open.html
2486
2487         * xml/XMLHttpRequest.cpp:
2488         (WebCore::XMLHttpRequest::setWithCredentials):
2489         Prevent setting the value only after the OPENED state.
2490
2491 2011-12-24  Andreas Kling  <awesomekling@apple.com>
2492
2493         Remove empty inline RenderStyle destructor.
2494         <http://webkit.org/b/75188>
2495
2496         Rubber-stamped by Anders "Ordvits" Carlsson.
2497
2498         * rendering/style/RenderStyle.h:
2499
2500 2011-12-24  Andreas Kling  <awesomekling@apple.com>
2501
2502         RenderStyle: Inline the destructor.
2503         <http://webkit.org/b/75188>
2504
2505         Reviewed by Kenneth Rohde Christiansen.
2506
2507         The (empty) RenderStyle destructor gets a little hot sometimes, reaching up
2508         to 0.4% when loading the full HTML5 spec. Inline it to remove the pointless
2509         function call.
2510
2511         * rendering/style/RenderStyle.cpp:
2512         * rendering/style/RenderStyle.h:
2513         (WebCore::RenderStyleBitfields::~RenderStyle):
2514
2515 2011-12-23  Noel Gordon  <noel.gordon@gmail.com>
2516
2517         JPEG decoders should only save color profile markers if color management is enabled
2518         https://bugs.webkit.org/show_bug.cgi?id=75182
2519
2520         Reviewed by Adam Barth.
2521
2522         No new tests. Covered by existing tests.
2523             fast/images/ycbcr-with-cmyk-color-profile.html
2524             fast/images/gray-scale-jpeg-with-color-profile.html
2525             fast/images/cmyk-jpeg-with-color-profile.html
2526             fast/images/color-jpeg-with-color-profile.html
2527
2528         * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
2529         (WebCore::JPEGImageReader::JPEGImageReader):  Store color profile (JPEG_APP0 + 2) markers
2530         using the iccjpeg helper setup_read_icc_profile() if color management is enabled.
2531
2532 2011-12-23  Alice Boxhall  <aboxhall@chromium.org>
2533
2534         Fix crash when adding paragraph in contenteditable with role=textbox.
2535         https://bugs.webkit.org/show_bug.cgi?id=75159
2536
2537         Reviewed by Ryosuke Niwa.
2538
2539         Test: accessibility/textbox-role-on-contenteditable-crash.html
2540
2541         * accessibility/AccessibilityRenderObject.cpp:
2542         (WebCore::AccessibilityRenderObject::childrenChanged): Use rendererIsEditable() rather than isContentEditable()
2543         as this method is called during render layouts, and isContentEditable() triggers a layout update, which crashes.
2544
2545 2011-12-23  Noel Gordon  <noel.gordon@gmail.com>
2546
2547         [chromium] JPEG image with CMYK ICC color profile renders color-inverted and squashed
2548         https://bugs.webkit.org/show_bug.cgi?id=74400
2549
2550         Reviewed by Adam Barth.
2551
2552         Use color profiles for GRAYSCALE, RGB, YCbCr, CMYK and YCCK jpeg images only if their
2553         embedded color profile is from an RGB color space input device.
2554
2555         Test:
2556            fast/images/ycbcr-with-cmyk-color-profile.html
2557                - YCbCr image, with CMYK output device color profile.
2558         Existing Tests:
2559            fast/images/gray-scale-jpeg-with-color-profile.html
2560                - YCbCr image, with GRAY input device color profile.
2561            fast/images/cmyk-jpeg-with-color-profile.html
2562                - YCCK image, with CMYK output device color profile.
2563            fast/images/color-jpeg-with-color-profile.html
2564                - YCbCr image, with RGB input device color profile.
2565
2566         * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
2567         (WebCore::rgbColorProfile): Return true if the profile has an RGB color space.
2568         (WebCore::inputDeviceColorProfile): Return true if the profile is from an input device.
2569         (WebCore::readColorProfile): Ignore the embedded color profile unless if it is from
2570         an RGB color space input device.
2571         (WebCore::JPEGImageReader::decode):
2572
2573 2011-12-23  Dan Bernstein  <mitz@apple.com>
2574
2575         Print dlerror() when dyld functions fail unexpectedly
2576         https://bugs.webkit.org/show_bug.cgi?id=75185
2577
2578         Reviewed by Sam Weinig.
2579
2580         * platform/mac/SoftLinking.h:
2581
2582 2011-12-23  Sam Weinig  <sam@webkit.org>
2583
2584         Start extracting platform specific bits out of PlatformEvents
2585         https://bugs.webkit.org/show_bug.cgi?id=75063
2586
2587         Reviewed by Anders Carlsson.
2588
2589         * WebCore.exp.in:
2590         Update exports.
2591
2592         * WebCore.xcodeproj/project.pbxproj:
2593         Add factory, remove implementation files for mac PlatformWheelEvent
2594         and PlatformMouseEvent.
2595
2596         * page/mac/EventHandlerMac.mm:
2597         (WebCore::EventHandler::wheelEvent):
2598         (WebCore::EventHandler::keyEvent):
2599         (WebCore::EventHandler::currentPlatformMouseEvent):
2600         Switch to use the factory.
2601
2602         * platform/PlatformEvent.h:
2603         (WebCore::PlatformEvent::shiftKey):
2604         (WebCore::PlatformEvent::ctrlKey):
2605         (WebCore::PlatformEvent::altKey):
2606         (WebCore::PlatformEvent::metaKey):
2607         (WebCore::PlatformEvent::modifiers):
2608         (WebCore::PlatformEvent::PlatformEvent):
2609         Switch to storing the modifiers as bits on an unsigned
2610         instead of as individual bools.
2611
2612         * platform/PlatformGestureEvent.h:
2613         Remove unused timestamp member.
2614
2615         * platform/PlatformKeyboardEvent.h:
2616         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
2617         (WebCore::PlatformKeyboardEvent::keyIdentifier):
2618         (WebCore::PlatformKeyboardEvent::macCharCode):
2619         (WebCore::PlatformKeyboardEvent::isSystemKey):
2620         Give this class a more consistent interface across platforms,
2621         and remove constructor that took an NSEvent.
2622
2623         * platform/PlatformMouseEvent.h:
2624         Remove constructor that took an NSEvent (and an unused constructor that took
2625         many arguments) as well as some free functions for point conversion.
2626
2627         * platform/PlatformWheelEvent.h:
2628         Remove constructor that took an NSEvent and an unnecessary override of the timestamp()
2629         function.
2630
2631         * platform/mac/KeyEventMac.mm:
2632         Removed constructor and moved helpers to PlatformEventFactory.
2633
2634         * platform/mac/PlatformEventFactory.h: Added.
2635         * platform/mac/PlatformEventFactory.mm: Added.
2636         (WebCore::globalPoint):
2637         (WebCore::globalPointForEvent):
2638         (WebCore::pointForEvent):
2639         (WebCore::mouseButtonForEvent):
2640         (WebCore::mouseEventTypeForEvent):
2641         (WebCore::clickCountForEvent):
2642         (WebCore::momentumPhaseForEvent):
2643         (WebCore::phaseForEvent):
2644         (WebCore::gestureEventTypeForEvent):
2645         (WebCore::textFromEvent):
2646         (WebCore::unmodifiedTextFromEvent):
2647         (WebCore::keyIdentifierForKeyEvent):
2648         (WebCore::isKeypadEvent):
2649         (WebCore::windowsKeyCodeForKeyEvent):
2650         (WebCore::isKeyUpEvent):
2651         (WebCore::modifiersForEvent):
2652         (WebCore::PlatformMouseEventBuilder::PlatformMouseEventBuilder):
2653         (WebCore::PlatformEventFactory::createPlatformMouseEvent):
2654         (WebCore::PlatformWheelEventBuilder::PlatformWheelEventBuilder):
2655         (WebCore::PlatformEventFactory::createPlatformWheelEvent):
2656         (WebCore::PlatformKeyboardEventBuilder::PlatformKeyboardEventBuilder):
2657         (WebCore::PlatformEventFactory::createPlatformKeyboardEvent):
2658         (WebCore::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
2659         (WebCore::PlatformEventFactory::createPlatformGestureEvent):
2660         Consolidate platform event creation logic and add factory functions.
2661
2662         * platform/mac/PlatformMouseEventMac.mm: Removed.
2663         * platform/mac/WheelEventMac.mm: Removed.
2664
2665         * platform/mac/WebCoreSystemInterface.h:
2666         * platform/mac/WebCoreSystemInterface.mm:
2667         Expose wkGetNSEventKeyChar in WebCore.
2668
2669         * platform/gtk/PlatformKeyboardEventGtk.cpp:
2670         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
2671         * platform/gtk/PlatformMouseEventGtk.cpp:
2672         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
2673         * platform/gtk/PlatformWheelEventGtk.cpp:
2674         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
2675         * platform/qt/PlatformKeyboardEventQt.cpp:
2676         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
2677         * platform/qt/PlatformMouseEventQt.cpp:
2678         (WebCore::mouseEventModifiersFromQtKeyboardModifiers):
2679         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
2680         * platform/qt/PlatformTouchEventQt.cpp:
2681         (WebCore::PlatformTouchEvent::PlatformTouchEvent):
2682         * platform/win/KeyEventWin.cpp:
2683         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
2684         * platform/win/WheelEventWin.cpp:
2685         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
2686         Update for new variables/names.
2687
2688 2011-12-22  Andreas Kling  <kling@webkit.org>
2689
2690         CSSParser: Avoid creating dummy declaration in parseColor() slow path.
2691         <http://webkit.org/b/75104>
2692
2693         Reviewed by Darin Adler.
2694
2695         We only needed the dummy declaration to trigger the instantiation of
2696         a CSSValuePool. Added an ensureCSSValuePool() method and have parseColor()
2697         call that instead.
2698
2699         Also renamed the fast-path parseColor() to fastParseColor() and reordered
2700         the arguments for consistency with the slow-path parseColor().
2701
2702         * css/CSSParser.cpp:
2703         (WebCore::parseColorValue):
2704         (WebCore::CSSParser::parseColor):
2705         (WebCore::CSSParser::ensureCSSValuePool):
2706         (WebCore::CSSParser::fastParseColor):
2707         (WebCore::CSSParser::parseColorFromValue):
2708         * css/CSSParser.h:
2709
2710 2011-12-21  Andreas Kling  <kling@webkit.org>
2711
2712         Automate elements' registration as document namedItem/extraNamedItem.
2713         <http://webkit.org/b/74991>
2714
2715         Reviewed by Antti Koivisto.
2716
2717         Remove caching of the "id" and "name" attributes on applet, embed, form,
2718         image and object elements. We were caching them to keep the document's
2719         map of named and "extra named" (named by id) item counts in sync.
2720
2721         Instead, add a hook to Element::willModifyAttribute() that detects when
2722         the attributes are being changed and handle the registration/unregistration
2723         automatically if the element returns true for shouldRegisterAsNamedItem()
2724         or shouldRegisterAsExtraNamedItem() respectively.
2725
2726         This shrinks the elements by two AtomicStrings (8 or 16 bytes) each.
2727
2728         IFrame elements retain the old mechanism for now, as there are some subtle
2729         differences to how that's handled.
2730
2731         * dom/Node.h:
2732         (WebCore::Node::hasName):
2733         (WebCore::Node::setHasName):
2734
2735             Cache whether we have a "name" attribute or not (1 bit on Node.)
2736             This is done in order to minimize the overhead added to Element's
2737             insertedIntoDocument() and removeFromDocument().
2738
2739         * dom/StyledElement.cpp:
2740         (WebCore::StyledElement::attributeChanged):
2741
2742             Update the Node's has-name flag as appropriate.
2743
2744         * dom/Element.cpp:
2745         (WebCore::Element::updateNamedItemRegistration):
2746         (WebCore::Element::updateExtraNamedItemRegistration):
2747
2748             Added. Called when the "name" and "id" attributes are changed.
2749             Updates the document's named item maps accordingly.
2750
2751         (WebCore::Element::insertedIntoDocument):
2752         (WebCore::Element::removedFromDocument):
2753
2754             Make sure updateName() is called in addition to updateId() when applicable.
2755
2756         * dom/Element.h:
2757         (WebCore::Element::shouldRegisterAsNamedItem):
2758         (WebCore::Element::shouldRegisterAsExtraNamedItem):
2759
2760             Added. If an element returns true for these, it will be automatically
2761             registered with the document when the name/id attribute changes.
2762
2763         (WebCore::Element::updateId):
2764         (WebCore::Element::updateName):
2765
2766             Register/unregister from the document's named item maps as appropriate.
2767
2768         (WebCore::Element::willModifyAttribute):
2769
2770             Add updateName() hook in addition to the existing updateId() hook.
2771
2772         * dom/NamedNodeMap.cpp:
2773         (WebCore::NamedNodeMap::setAttributes):
2774
2775             Make sure updateName() is called when we're cloning the attributes
2776             from another element.
2777
2778         * html/HTMLAppletElement.cpp:
2779         (WebCore::HTMLAppletElement::parseMappedAttribute):
2780         * html/HTMLAppletElement.h:
2781         * html/HTMLEmbedElement.cpp:
2782         (WebCore::HTMLEmbedElement::parseMappedAttribute):
2783         (WebCore::HTMLEmbedElement::insertedIntoDocument):
2784         * html/HTMLEmbedElement.h:
2785         * html/HTMLFormElement.cpp:
2786         (WebCore::HTMLFormElement::insertedIntoDocument):
2787         (WebCore::HTMLFormElement::removedFromDocument):
2788         (WebCore::HTMLFormElement::parseMappedAttribute):
2789         * html/HTMLFormElement.h:
2790         * html/HTMLImageElement.cpp:
2791         (WebCore::HTMLImageElement::parseMappedAttribute):
2792         (WebCore::HTMLImageElement::insertedIntoDocument):
2793         * html/HTMLImageElement.h:
2794         * html/HTMLObjectElement.cpp:
2795         (WebCore::HTMLObjectElement::parseMappedAttribute):
2796         (WebCore::HTMLObjectElement::insertedIntoDocument):
2797         (WebCore::HTMLObjectElement::removedFromDocument):
2798         * html/HTMLObjectElement.h:
2799         * html/HTMLPlugInElement.h:
2800
2801             Remove duplicated code that is now handled by Element.
2802
2803         * html/HTMLObjectElement.cpp:
2804         (WebCore::HTMLObjectElement::updateDocNamedItem):
2805         (WebCore::HTMLObjectElement::formControlName):
2806
2807             Use fastGetAttribute() since we no longer cache the name.
2808
2809 2011-12-23  Anders Carlsson  <andersca@apple.com>
2810
2811         Add two (currently unused) new member functions to ScrollElasticityControllerClient
2812         https://bugs.webkit.org/show_bug.cgi?id=75179
2813
2814         Reviewed by Dan Bernstein.
2815
2816         This is so we'll be able to move more code to ScrollElasticityController.
2817
2818         * platform/mac/ScrollAnimatorMac.h:
2819         * platform/mac/ScrollAnimatorMac.mm:
2820         (WebCore::ScrollAnimatorMac::pinnedInDirection):
2821         (WebCore::ScrollAnimatorMac::immediateScrollByWithoutContentEdgeConstraints):
2822         * platform/mac/ScrollElasticityController.h:
2823
2824 2011-12-23  Simon Fraser  <simon.fraser@apple.com>
2825
2826         Blur filter doesn't invalidate enough
2827         https://bugs.webkit.org/show_bug.cgi?id=74891
2828
2829         Reviewed by Darin Adler.
2830         
2831         Take the effects of filters into account for repainting; we need
2832         to inflate the repaint rect by the outsets provided by the filter.
2833         
2834         Test: css3/filters/filter-repaint.html
2835
2836         * rendering/RenderBox.cpp:
2837         (WebCore::RenderBox::computeRectForRepaint):
2838         * rendering/RenderInline.cpp:
2839         (WebCore::RenderInline::computeRectForRepaint):
2840
2841 2011-12-23  Simon Fraser  <simon.fraser@apple.com>
2842
2843         Filters should apply to inline elements
2844         https://bugs.webkit.org/show_bug.cgi?id=75152
2845
2846         Reviewed by Darin Adler.
2847         
2848         Filters need to cause creation of RenderLayers for inlines, just like
2849         opacity and masks do.
2850
2851         Test: css3/filters/filtered-inline.html
2852
2853         * rendering/RenderInline.h:
2854         (WebCore::RenderInline::requiresLayer):
2855         * rendering/RenderTableRow.h: Remove an obviously incorrect comment.
2856
2857 2011-12-23  Jarred Nicholls  <jarred@sencha.com>
2858
2859         Synchronous XHR in window context should not support new XHR responseTypes for HTTP(S) requests
2860         https://bugs.webkit.org/show_bug.cgi?id=72154
2861
2862         Per the latest W3C editor draft: http://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html
2863         This is a spec-mandated attempt to thwart and otherwise discourage the use of synchronous XHR
2864         in the window context by deliberately not exposing newer functionality. Here we are disabling
2865         the use of responseType in synchronous HTTP(S) XHR requests from the window context.
2866
2867         When a user attempts this action, an InvalidAccessError exception is thrown and a message is
2868         printed to the console to further explain.
2869
2870         Renamed reportUnsafeUsage to a more generic name, and hoisted it up so it would be defined
2871         earlier and thus referenceable by setResponseType.
2872
2873         Reviewed by Alexey Proskuryakov.
2874
2875         Test: fast/xmlhttprequest/xmlhttprequest-responsetype-sync-request.html
2876
2877         * xml/XMLHttpRequest.cpp:
2878         (WebCore::logConsoleError):
2879         reportUnsafeUsage -> logConsoleError
2880         (WebCore::XMLHttpRequest::setResponseType):
2881         (WebCore::XMLHttpRequest::setRequestHeader):
2882         reportUnsafeUsage -> logConsoleError
2883         (WebCore::XMLHttpRequest::getResponseHeader):
2884         reportUnsafeUsage -> logConsoleError
2885         (WebCore::XMLHttpRequest::didFail):
2886         reportUnsafeUsage -> logConsoleError
2887
2888 2011-12-23  Alexander Pavlov  <apavlov@chromium.org>
2889
2890         Web Inspector: Implement a worker for parsing out JavaScript function data
2891         https://bugs.webkit.org/show_bug.cgi?id=75166
2892
2893         Reviewed by Pavel Feldman.
2894
2895         Test: inspector/debugger/script-extract-outline.html
2896
2897         * inspector/front-end/ScriptFormatter.js:
2898         (WebInspector.ScriptFormatter.prototype.formatContent):
2899         * inspector/front-end/ScriptFormatterWorker.js:
2900         (onmessage):
2901         (format):
2902         (getChunkCount):
2903         ():
2904         (Array.prototype.keySet):
2905
2906 2011-12-23  Ilya Tikhonovsky  <loislo@chromium.org>
2907
2908         Unreviewed, rolling out r103624.
2909         http://trac.webkit.org/changeset/103624
2910         https://bugs.webkit.org/show_bug.cgi?id=68916
2911
2912         Broke Snow Leopard builders
2913
2914         * CMakeLists.txt:
2915         * DerivedSources.cpp:
2916         * DerivedSources.pri:
2917         * GNUmakefile.list.am:
2918         * WebCore.gypi:
2919         * WebCore.xcodeproj/project.pbxproj:
2920         * bindings/js/JSDirectoryEntryCustom.cpp:
2921         (WebCore::JSDirectoryEntry::getFile):
2922         (WebCore::JSDirectoryEntry::getDirectory):
2923         * bindings/js/JSDirectoryEntrySyncCustom.cpp:
2924         (WebCore::getFlags):
2925         * bindings/v8/custom/V8DirectoryEntryCustom.cpp:
2926         (WebCore::V8DirectoryEntry::getDirectoryCallback):
2927         (WebCore::V8DirectoryEntry::getFileCallback):
2928         * bindings/v8/custom/V8DirectoryEntrySyncCustom.cpp:
2929         (WebCore::getFlags):
2930         * fileapi/WebKitFlags.idl: Added.
2931         * page/DOMWindow.idl:
2932         * workers/WorkerContext.idl:
2933
2934 2011-12-23  Eric Uhrhane  <ericu@chromium.org>
2935
2936        [fileapi] WebKitFlags should not be constructable per Directories & System spec
2937        https://bugs.webkit.org/show_bug.cgi?id=68916
2938
2939        Reviewed by Eric Seidel.
2940
2941        Remove IDL for the object and all DOM references to it.
2942        * fileapi/WebKitFlags.idl: Removed.
2943        * page/DOMWindow.idl:
2944        * workers/WorkerContext.idl:
2945        Remove references to the JSC/V8 objects compiled from the IDL.
2946        * bindings/js/JSDirectoryEntryCustom.cpp:
2947        (WebCore::JSDirectoryEntry::getFile):
2948        (WebCore::JSDirectoryEntry::getDirectory):
2949        * bindings/js/JSDirectoryEntrySyncCustom.cpp:
2950        (WebCore::getFlags):
2951        * bindings/v8/custom/V8DirectoryEntryCustom.cpp:
2952        (WebCore::V8DirectoryEntry::getDirectoryCallback):
2953        (WebCore::V8DirectoryEntry::getFileCallback):
2954        * bindings/v8/custom/V8DirectoryEntrySyncCustom.cpp:
2955        (WebCore::getFlags):
2956        Fix up build files.
2957        * WebCore.gypi:
2958        * WebCore.vcproj/WebCore.vcproj:
2959        * WebCore.xcodeproj/project.pbxproj:
2960        * WebCore/CMakeLists.txt:
2961        * WebCore/CodeGenerators.pri:
2962        * WebCore/DerivedSources.cpp:
2963        * WebCore/GNUmakefile.list.am:
2964
2965 2011-12-23  Pavel Feldman  <pfeldman@google.com>
2966
2967         Web Inspector: Migrate to native Function.prototype.bind; fix front-end compilation with the
2968         version of compiler that respects Function.prototype.bind.
2969         https://bugs.webkit.org/show_bug.cgi?id=75170
2970
2971         Reviewed by Yury Semikhatsky.
2972
2973         * inspector/front-end/ApplicationCacheModel.js:
2974         * inspector/front-end/CSSKeywordCompletions.js:
2975         (WebInspector.CSSKeywordCompletions.colors):
2976         * inspector/front-end/CSSStyleModel.js:
2977         * inspector/front-end/CompilerSourceMapping.js:
2978         * inspector/front-end/DOMAgent.js:
2979         (WebInspector.DOMAgent.prototype.pushNodeToFrontend):
2980         (WebInspector.DOMAgent.prototype.pushNodeByPathToFrontend):
2981         (WebInspector.DOMAgent.prototype._dispatchWhenDocumentAvailable.onDocumentAvailable):
2982         (WebInspector.DOMAgent.prototype._dispatchWhenDocumentAvailable):
2983         (WebInspector.DOMAgent.prototype._loadNodeAttributes):
2984         (WebInspector.DOMAgent.prototype.querySelector):
2985         (WebInspector.DOMAgent.prototype.querySelectorAll):
2986         * inspector/front-end/DebuggerModel.js:
2987         * inspector/front-end/DebuggerPresentationModel.js:
2988         * inspector/front-end/ExtensionAPI.js:
2989         (injectedExtensionAPI.InspectorExtensionAPI):
2990         (injectedExtensionAPI):
2991         * inspector/front-end/ExtensionPanel.js:
2992         * inspector/front-end/NetworkManager.js:
2993         (WebInspector.NetworkManager.prototype.enableResourceTracking):
2994         (WebInspector.NetworkManager.prototype.disableResourceTracking):
2995         * inspector/front-end/Script.js:
2996         * inspector/front-end/Settings.js:
2997         * inspector/front-end/TextPrompt.js:
2998         (WebInspector.TextPrompt.prototype.complete):
2999         * inspector/front-end/utilities.js:
3000
3001 2011-12-23  Leo Yang  <leo.yang@torchmobile.com.cn>
3002
3003         [BlackBerry] Add the BlackBerry specific pauseLoad(bool) to ResourceHandle
3004         https://bugs.webkit.org/show_bug.cgi?id=75162
3005
3006         Reviewed by George Staikos.
3007
3008         The porting can be built now, no new tests so far.
3009
3010         * platform/network/ResourceHandle.h:
3011
3012 2011-12-23  Karl Koscher  <supersat@chromium.org>
3013
3014         Give embedders a chance to handle postMessage calls
3015         https://bugs.webkit.org/show_bug.cgi?id=73883
3016
3017         To support cross-process postMessage calls in Chromium (bug 73337), we need to intercept 
3018         postMessage calls to proxy windows. Originally we were just going to add a native event
3019         listener on the Chromium side, but that required more changes to WebKit and was a bit of
3020         a hack. See bug 73359 for a discuss about moving to this approach.
3021
3022         Reviewed by Adam Barth.
3023
3024         Test: platform/chromium/fast/events/intercept-postmessage.html
3025
3026         * loader/FrameLoaderClient.h:
3027         (WebCore::FrameLoaderClient::willCheckAndDispatchPostMessage): new method to allow the
3028             embedder to intercept postMessage calls
3029         * page/DOMWindow.cpp:
3030         (WebCore::DOMWindow::postMessageTimerFired): add a call to
3031             FrameLoaderClient::willCheckAndDispatchPostMessage
3032
3033 2011-12-23  Tom Sepez  <tsepez@chromium.org>
3034
3035         XSLT-created HTML documents do not inherit content-security-policy from originally loaded XML.
3036         https://bugs.webkit.org/show_bug.cgi?id=75043
3037
3038         Reviewed by Adam Barth.
3039
3040         Test: http/tests/security/contentSecurityPolicy/xsl-img-blocked.php
3041
3042         * page/ContentSecurityPolicy.cpp:
3043         (WebCore::ContentSecurityPolicy::copyStateFrom):
3044         (WebCore::ContentSecurityPolicy::didReceiveHeader):
3045         * page/ContentSecurityPolicy.h:
3046         * xml/XSLTProcessor.cpp:
3047         (WebCore::XSLTProcessor::createDocumentFromSource):
3048
3049 2011-12-23  Darin Adler  <darin@apple.com>
3050
3051         REGRESSION (r97533): Optgroup label is not disabled
3052         https://bugs.webkit.org/show_bug.cgi?id=74869
3053
3054         Reviewed by Alexey Proskuryakov.
3055
3056         * rendering/RenderMenuList.cpp:
3057         (WebCore::RenderMenuList::itemIsEnabled): Added back a line of code that was
3058         accidentally deleted as part of the refactoring in r97533. This line of code
3059         ensures that any items that are not option elements are disabled.
3060
3061 2011-12-19  Alexander Pavlov  <apavlov@chromium.org>
3062
3063         Web Inspector: Add CSSStyleSelector instrumentation calls towards implementing a CSS selector profiler
3064         https://bugs.webkit.org/show_bug.cgi?id=74863
3065
3066         Performance checks run on PerformanceTest/Parser/html5-full-render.html did not result in any noticeable
3067         perf regression, as the instrumentation calls are inline and bail out early if there are no
3068         Web Inspector frontends open.
3069
3070         Reviewed by Antti Koivisto.
3071
3072         No new tests, as the functionality is not bound to any user-visible outputs.
3073
3074         * css/CSSStyleSelector.cpp:
3075         (WebCore::CSSStyleSelector::matchRulesForList):
3076         (WebCore::CSSStyleSelector::applyDeclaration):
3077         * inspector/InspectorInstrumentation.cpp:
3078         (WebCore::InspectorInstrumentation::willMatchRuleImpl):
3079         (WebCore::InspectorInstrumentation::didMatchRuleImpl):
3080         (WebCore::InspectorInstrumentation::willProcessRuleImpl):
3081         (WebCore::InspectorInstrumentation::didProcessRuleImpl):
3082         * inspector/InspectorInstrumentation.h:
3083         (WebCore::InspectorInstrumentation::willMatchRule):
3084         (WebCore::InspectorInstrumentation::didMatchRule):
3085         (WebCore::InspectorInstrumentation::willProcessRule):
3086         (WebCore::InspectorInstrumentation::didProcessRule):
3087
3088 2011-12-23  Ivan Briano  <ivan@profusion.mobi>
3089
3090         [EFL] Fix building with Glib support disabled
3091         https://bugs.webkit.org/show_bug.cgi?id=70990
3092
3093         Reviewed by Martin Robinson.
3094
3095         Add forward declaration for cairo_surface_t, missing when building
3096         the EFL port with Glib disabled.
3097
3098         * platform/cairo/WidgetBackingStore.h:
3099
3100 2011-12-23  Adam Klein  <adamk@chromium.org>
3101
3102         Minimize callsites and duplication of before/after advice for attribute mutations
3103         https://bugs.webkit.org/show_bug.cgi?id=75054
3104
3105         Reviewed by Ryosuke Niwa.
3106
3107         r103452 helpfully made before and after advice regarding attribute
3108         changes symmetrical. This change finishes that work, by pulling
3109         together all the before/after work, not just the crumbs previously
3110         covered. This includes incrementing Document::domTreeVersion()
3111         when an attribute is about to be changed, Inspector instrumentation,
3112         and MutationEvent dispatch. This is in addition to the previous code,
3113         which handled enqueueing MutationRecords for MutationObservers and
3114         updating the Document's list of IDs.
3115
3116         The only change in behavior should be in InspectorInstrumentation,
3117         which causes DOM breakpoints to occur for more cases of Attribute
3118         mutation. This seems like more correct behavior, and a test has
3119         been included to exercise it.
3120
3121         Hopefully the last Attribute-related refactor for awhile.
3122
3123         * dom/Attr.cpp:
3124         (WebCore::Attr::setValue): Update to call didModifyAttribute instead
3125         of attributeChanged.
3126         * dom/Element.cpp:
3127         (WebCore::Element::removeAttribute): Got rid of
3128         removeAttributeInternal as most of that logic moved back into
3129         NamedNodeMap::removeAttribute.
3130         (WebCore::Element::setAttributeInternal): Reorganized to read better
3131         now that only some cases result in calls to will/didModifyAttribute.
3132         (WebCore::Element::willModifyAttribute): Un-inlined and added
3133         incDOMTreeVersion and InspectorInstrumentation calls.
3134         (WebCore::Element::didModifyAttribute): New method which encapsulates
3135         calling attributeChanged, InspectorInstrumentation, and MutationEvents.
3136         (WebCore::Element::didRemoveAttribute): New method which encapsulates
3137         calling attributeChanged, InspectorInstrumentation, and MutationEvents.
3138         Separate from didModifyAttribute because it has special handling of
3139         the removed Attribute's value.
3140         * dom/Element.h:
3141         (WebCore::Element::willRemoveAttribute): New method which delegates to
3142         willModifyAttribute as appropriate.
3143         * dom/NamedNodeMap.cpp:
3144         (WebCore::NamedNodeMap::setNamedItem): Simplified.
3145         (WebCore::NamedNodeMap::removeNamedItem): Simplified.
3146         (WebCore::NamedNodeMap::addAttribute): Added calls to will/didModifyAttribute.
3147         (WebCore::NamedNodeMap::removeAttribute): ditto.
3148         (WebCore::NamedNodeMap::replaceAttribute): ditto.
3149         * svg/properties/SVGAnimatedPropertySynchronizer.h: Reverted changes
3150         made in r103452 now that addAttribute/removeAttribute once again
3151         call attributeChanged appropriately.
3152
3153 2011-12-22  Matt Falkenhagen  <falken@chromium.org>
3154
3155         Map 'lang' and xml:lang attributes to '-webkit-locale' CSS property for use with font fallback and text-transform
3156         https://bugs.webkit.org/show_bug.cgi?id=67586
3157
3158         Original patch by Jungshik Shin <jshin@chromium.org>
3159
3160         Reviewed by Darin Adler.
3161
3162         Tests: fast/text/lang-mapped-to-webkit-locale.xhtml
3163                fast/text/xml-lang-ignored-in-html.html
3164
3165         * html/HTMLElement.cpp:
3166         (WebCore::HTMLElement::mapLanguageAttributeToLocale):
3167         (WebCore::HTMLElement::parseMappedAttribute): Map 'lang' and 'xml:lang' to -webkit-locale.
3168         * html/HTMLElement.h:
3169
3170 2011-12-22  Ryosuke Niwa  <rniwa@webkit.org>
3171
3172         WinCE build fix after r103539.
3173
3174         * rendering/svg/RenderSVGResource.cpp:
3175         (WebCore::RenderSVGResource::removeFromFilterCache):
3176
3177 2011-12-22  Chris Marrin  <cmarrin@apple.com>
3178
3179         Crash and incorrect behavior when switching between hardware and software CSS filters
3180         https://bugs.webkit.org/show_bug.cgi?id=75130
3181
3182         Reviewed by Simon Fraser.
3183
3184         Test: css3/filters/crash-hw-sw-switch.html
3185
3186         Backing store on layer gets fixed up (added or removed) after style change is evaluated
3187         so the state of the m_filter variable might not match the current filter state. Added
3188         updateOrRemoveFilterEffect() call to ensureBacking() and clearBacking() to get the
3189         m_filter property in the right state. Also added an ASSERT() where the crash was
3190         occuring.
3191
3192         * rendering/RenderLayer.cpp:
3193         (WebCore::RenderLayer::paintLayer):
3194         (WebCore::RenderLayer::ensureBacking):
3195         (WebCore::RenderLayer::clearBacking):
3196
3197 2011-12-22  Jon Lee  <jonlee@apple.com>
3198
3199         Radio buttons cut in download movie sheet
3200         https://bugs.webkit.org/show_bug.cgi?id=75128
3201         <rdar://problem/9399450>
3202
3203         Reviewed by Dan Bernstein.
3204
3205         Test: compositing/overflow/theme-affects-visual-overflow.html
3206
3207         The clipping comes from the fact the visual overflow rect of the radio button's
3208         RenderBlock is not expanded to accommodate for the size of the button on the Mac
3209         platform. We use the existing RenderTheme::adjustRepaintRect() to make the
3210         appropriate adjustment. This, consequently, makes it unnecessary to have to
3211         recalculate it for repaint.
3212
3213         * rendering/RenderBlock.cpp:
3214         (WebCore::RenderBlock::computeOverflow): As part of the overflow computation, we
3215         make a call to addVisualOverflowFromTheme().
3216         (WebCore::RenderBlock::addVisualOverflowFromTheme): Ask the theme to inflate the
3217         RenderBlock's rect if necessary, and add that to the visual overflow rect.
3218         * rendering/RenderBlock.h: Added addVisualOverflowFromTheme().
3219         * rendering/RenderBox.cpp:
3220         (WebCore::RenderBox::clippedOverflowRectForRepaint): Remove the call to
3221         adjustRepaintRect() since the rectangle r already uses the new visual overflow
3222         rect.
3223         * rendering/RenderReplaced.cpp:
3224         (WebCore::RenderReplaced::clippedOverflowRectForRepaint): Remove the call to
3225         adjustRepaintRect() since the rectangle r already uses the new visual overflow
3226         rect.
3227
3228 2011-12-22  Chris Rogers  <crogers@google.com>
3229
3230         Fix mac build breakage - add SincResampler files to WebCore.xcodeproj
3231         https://bugs.webkit.org/show_bug.cgi?id=75139
3232
3233         Unreviewed build fix.
3234
3235         * WebCore.xcodeproj/project.pbxproj:
3236
3237 2011-12-22  Simon Fraser  <simon.fraser@apple.com>
3238
3239         Animating some CSS filter values is wrong
3240         https://bugs.webkit.org/show_bug.cgi?id=75122
3241
3242         Reviewed by Chris Marrin.
3243         
3244         Fix some reversed filter animation behavior for brightness,
3245         contrast and drop-shadow filters.
3246
3247         Test: css3/filters/filter-animation-from-none.html
3248
3249         * platform/graphics/filters/FilterOperation.cpp:
3250         (WebCore::BasicComponentTransferFilterOperation::blend): Just use the global blend() function.
3251         (WebCore::BasicComponentTransferFilterOperation::passthroughAmount): Add CONTRAST and BRIGHTNESS to the sswitch.
3252         (WebCore::GammaFilterOperation::blend): Fix the ordering.
3253         (WebCore::DropShadowFilterOperation::blend): Fix the ordering.
3254
3255 2011-12-22  Chris Rogers  <crogers@google.com>
3256
3257         Fix mac build caused by improper include of "Locker.h"
3258         https://bugs.webkit.org/show_bug.cgi?id=75134
3259
3260         Unreviewed build fix.
3261
3262         * webaudio/MediaElementAudioSourceNode.cpp:
3263
3264 2011-12-22  Anders Carlsson  <andersca@apple.com>
3265
3266         More ScrollAnimatorMac cleanup
3267         https://bugs.webkit.org/show_bug.cgi?id=75127
3268
3269         Reviewed by Andreas Kling.
3270
3271         Introduce a immediateScrollByWithoutContentEdgeConstraints and use it whenever we want to scroll by an
3272         offset instead of doing the setConstrainsScrollingToContentEdge dance.
3273
3274         * platform/mac/ScrollAnimatorMac.h:
3275         * platform/mac/ScrollAnimatorMac.mm:
3276         (WebCore::ScrollAnimatorMac::immediateScrollByWithoutContentEdgeConstraints):
3277         (WebCore::ScrollAnimatorMac::smoothScrollWithEvent):
3278         (WebCore::ScrollAnimatorMac::snapRubberBandTimerFired):
3279
3280 2011-12-22  Chris Rogers  <crogers@google.com>
3281
3282         Implement MediaElementAudioSourceNode::setFormat() so numberOfChannels and sampleRate are accounted for
3283         https://bugs.webkit.org/show_bug.cgi?id=75057
3284
3285         Reviewed by Eric Carlson.
3286
3287         * GNUmakefile.list.am:
3288         * WebCore.gypi:
3289         * WebCore.xcodeproj/project.pbxproj:
3290         Add MultiChannelResampler source files to makefiles.
3291         * platform/audio/MultiChannelResampler.cpp: Added.
3292         (WebCore::MultiChannelResampler::MultiChannelResampler):
3293         (WebCore::MultiChannelResampler::process):
3294         * platform/audio/MultiChannelResampler.h: Added.
3295         Add MultiChannelResampler implementation which uses one SincResampler per channel.
3296         * webaudio/MediaElementAudioSourceNode.cpp:
3297         (WebCore::MediaElementAudioSourceNode::create):
3298         (WebCore::MediaElementAudioSourceNode::MediaElementAudioSourceNode):
3299         (WebCore::MediaElementAudioSourceNode::setFormat):
3300         (WebCore::MediaElementAudioSourceNode::process):
3301         Implement MediaElementAudioSourceNode::setFormat() so that we can
3302         properly setup a sample-rate converter and set the number of channels
3303         of the MediaElementAudioSourceNode output.
3304         * webaudio/MediaElementAudioSourceNode.h:
3305
3306 2011-12-22  Chris Fleizach  <cfleizach@apple.com>
3307
3308         AX: WebKit should ignore ARIA role=presentation on focusable elements
3309         https://bugs.webkit.org/show_bug.cgi?id=75101
3310
3311         Reviewed by Darin Adler.
3312
3313         If an element is focusable, the presentational role must be ignored, lest the user not be able
3314         to interact with something important.
3315
3316         Test: accessibility/presentational-elements-with-focus.html
3317
3318         * accessibility/AccessibilityRenderObject.cpp:
3319         (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
3320         (WebCore::AccessibilityRenderObject::determineAriaRoleAttribute):
3321         (WebCore::AccessibilityRenderObject::inheritsPresentationalRole):
3322
3323 2011-12-22  Anders Carlsson  <andersca@apple.com>
3324
3325         Use immediateScrollBy instead of immediateScrollTo where possible
3326         https://bugs.webkit.org/show_bug.cgi?id=75124
3327
3328         Reviewed by Sam Weinig.
3329
3330         Instead of computing the position to scroll to, just compute the delta and use scrollBy instead.
3331
3332         * platform/mac/ScrollAnimatorMac.mm:
3333         (WebCore::ScrollAnimatorMac::smoothScrollWithEvent):
3334         (WebCore::ScrollAnimatorMac::snapRubberBandTimerFired):
3335
3336 2011-12-22  Anders Carlsson  <andersca@apple.com>
3337
3338         Remove a private ScrollAnimatorMac getter/setter and just update the member variable directly
3339         https://bugs.webkit.org/show_bug.cgi?id=75121
3340
3341         Reviewed by Sam Weinig.
3342
3343         * platform/mac/ScrollAnimatorMac.h:
3344         * platform/mac/ScrollAnimatorMac.mm:
3345         (WebCore::ScrollAnimatorMac::setIsActive):
3346         (WebCore::ScrollAnimatorMac::updateScrollerStyle):
3347
3348 2011-12-22  Anders Carlsson  <andersca@apple.com>
3349
3350         Simplify ScrollAnimatorMac scrollByDelta functions
3351         https://bugs.webkit.org/show_bug.cgi?id=75120
3352
3353         Reviewed by Sam Weinig.
3354
3355         Merge immediateScrollByDeltaX and immediateScrollByDeltaY to a single function and rename it
3356         to immediateScrollBy. Also, rename immediateScrollToPoint to immediateScrollTo.
3357         
3358         * platform/mac/ScrollAnimatorMac.h:
3359         * platform/mac/ScrollAnimatorMac.mm:
3360         (WebCore::ScrollAnimatorMac::scrollToOffsetWithoutAnimation):
3361         (WebCore::ScrollAnimatorMac::immediateScrollTo):
3362         (WebCore::ScrollAnimatorMac::immediateScrollBy):
3363         (WebCore::ScrollAnimatorMac::immediateScrollToPointForScrollAnimation):
3364         (WebCore::ScrollAnimatorMac::smoothScrollWithEvent):
3365         (WebCore::ScrollAnimatorMac::snapRubberBandTimerFired):
3366
3367 2011-12-22  Anders Carlsson  <andersca@apple.com>
3368
3369         Make some ScrollAnimatorMac member functions private
3370         https://bugs.webkit.org/show_bug.cgi?id=75117
3371
3372         Reviewed by Sam Weinig.
3373
3374         Make virtual member functions and functions that are only called from ScrollAnimatorMac private.
3375
3376         * platform/mac/ScrollAnimatorMac.h:
3377
3378 2011-12-22  Anders Carlsson  <andersca@apple.com>
3379
3380         Move some member variables out of ScrollElasticityController
3381         https://bugs.webkit.org/show_bug.cgi?id=75115
3382
3383         Reviewed by Adam Roben.
3384
3385         Move a couple of member variables that aren't related to rubberbanding out from
3386         ScrollElasticityController and back into ScrollAnimatorMac and remove now unneeded
3387         ScrollElasticityControllerClient member functions as well.
3388
3389         * platform/mac/ScrollAnimatorMac.h:
3390         * platform/mac/ScrollAnimatorMac.mm:
3391         (WebCore::ScrollAnimatorMac::ScrollAnimatorMac):
3392         (WebCore::ScrollAnimatorMac::handleWheelEvent):
3393         (WebCore::ScrollAnimatorMac::beginScrollGesture):
3394         * platform/mac/ScrollElasticityController.h:
3395         * platform/mac/ScrollElasticityController.mm:
3396         (WebCore::ScrollElasticityController::ScrollElasticityController):
3397         (WebCore::ScrollElasticityController::beginScrollGesture):
3398
3399 2011-12-22  Balazs Kelemen  <kbalazs@webkit.org>
3400
3401         Fix debug build with assertions disabled
3402         https://bugs.webkit.org/show_bug.cgi?id=75075
3403
3404         Reviewed by Darin Adler.
3405
3406         Check whether assertions are disabled instead of NDEBUG
3407         where appropriate to avoid "defined but not used" warnings.
3408
3409         No change in behaviour so no new tests.
3410
3411         * loader/cache/MemoryCache.cpp:
3412         (WebCore::MemoryCache::insertInLRUList):
3413         (WebCore::MemoryCache::removeFromLiveDecodedResourcesList):
3414         (WebCore::MemoryCache::insertInLiveDecodedResourcesList):
3415         * rendering/RenderBlock.cpp:
3416         (WebCore::RenderBlock::layoutBlockChild):
3417         * rendering/RenderLayer.cpp:
3418         (WebCore::RenderLayer::updateLayerPositions):
3419
3420 2011-12-22  Anders Carlsson  <andersca@apple.com>
3421
3422         Get rid of didStartAnimatedScroll and didCompleteAnimatedScroll
3423         https://bugs.webkit.org/show_bug.cgi?id=75107
3424
3425         Reviewed by Adam Roben.
3426
3427         This is another step towards removing the display throttling in WebKit2.
3428
3429         * page/ChromeClient.h:
3430         * page/FrameView.cpp:
3431         * page/FrameView.h:
3432         * platform/ScrollableArea.h:
3433         * platform/mac/ScrollAnimatorMac.mm:
3434         (WebCore::ScrollAnimatorMac::scroll):
3435         (WebCore::ScrollAnimatorMac::immediateScrollToPointForScrollAnimation):
3436
3437 2011-12-22  Anders Carlsson  <andersca@apple.com>
3438
3439         Remove didStartRubberBand and didCompleteRubberBand callbacks
3440         https://bugs.webkit.org/show_bug.cgi?id=75102
3441
3442         Reviewed by Adam Roben.
3443
3444         The code to do display throttling in WebKit2 is complex and doesn't really help us except
3445         on an old benchmark that's no longer representative of real-world behavior; let's rip it out instead.
3446
3447         * page/ChromeClient.h:
3448         * page/FrameView.cpp:
3449         * page/FrameView.h:
3450         * platform/ScrollView.cpp:
3451         * platform/ScrollView.h:
3452         * platform/ScrollableArea.h:
3453         * platform/mac/ScrollAnimatorMac.mm:
3454         (WebCore::ScrollAnimatorMac::snapRubberBandTimerFired):
3455         * rendering/RenderLayer.cpp:
3456         * rendering/RenderLayer.h:
3457
3458 2011-12-22  Vsevolod Vlasov  <vsevik@chromium.org>
3459
3460         Web Inspector: [Regression] Network item view is not displayed.
3461         https://bugs.webkit.org/show_bug.cgi?id=75100
3462
3463         Not reviewed, one line css fix.
3464
3465         * inspector/front-end/networkPanel.css:
3466         (.network-item-view.visible):
3467
3468 2011-12-22  Andreas Kling  <kling@webkit.org>
3469
3470         NamedNodeMap: Get rid of declCount().
3471         <http://webkit.org/b/74948>
3472
3473         Reviewed by Darin Adler.
3474
3475         We already have the number of mapped attribute declarations in the map
3476         stored in m_mappedAttributeCount (updated by declAdded()/declRemoved())
3477         so compare that in mappedMapsEquivalent() to skip one loop over the map.
3478
3479         * dom/NamedNodeMap.cpp:
3480         (WebCore::NamedNodeMap::mappedMapsEquivalent):
3481         * dom/NamedNodeMap.h:
3482
3483 2011-12-22  Andreas Kling  <kling@webkit.org>
3484
3485         SnowLeopard crashes due to thread-unsafe EventListenerIterator ASSERTs
3486         <http://webkit.org/b/74260>
3487
3488         Reviewed by Darin Adler.
3489
3490         Guard EventListenerMap::m_activeIteratorCount with a mutex.