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