Show
Ignore:
Timestamp:
08/06/08 13:29:36 (5 months ago)
Author:
mbensi
Message:

merge with webkit revision 35588

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/WebCore/ChangeLog

    r429 r431  
     12008-08-06  Steve Falkenburg  <sfalken@apple.com> 
     2 
     3        Fix last timer fix. 
     4        Add null check, clear timer using InterlockedExchange. 
     5         
     6        Reviewed by Alice Liu. 
     7 
     8        * platform/win/SharedTimerWin.cpp: 
     9        (WebCore::clearTimer): 
     10        (WebCore::queueTimerProc): 
     11        (WebCore::stopSharedTimer): 
     12 
     132008-08-05  Steve Falkenburg  <sfalken@apple.com> 
     14 
     15        Fix timer leak, flag. 
     16         
     17        Timers need to be deleted explicitly, even if they fire. 
     18        Also added WT_EXECUTEONLYONCE flag, since this is not a repeating timer. 
     19         
     20        Reviewed by Ada Chan. 
     21 
     22        * platform/win/SharedTimerWin.cpp: 
     23        (WebCore::queueTimerProc): 
     24 
     252008-08-05  Anders Carlsson  <andersca@apple.com> 
     26 
     27        Reviewed by Darin. 
     28 
     29        <rdar://problem/6037398> 
     30        ER: Deallocate WebKit objects on the main thread, even if released on secondary thread 
     31         
     32        Add calls to WebCoreObjCScheduleDeallocateOnMainThread in dealloc methods of objects we expose. 
     33         
     34        * bindings/objc/DOMRGBColor.mm: 
     35        (-[DOMRGBColor dealloc]): 
     36        * bindings/objc/WebScriptObject.mm: 
     37        (-[WebScriptObject dealloc]): 
     38        * platform/mac/SharedBufferMac.mm: 
     39        (-[WebCoreSharedBufferData dealloc]): 
     40 
     412008-08-05  Anders Carlsson  <andersca@apple.com> 
     42 
     43        Reviewed by Darin. 
     44 
     45        Move the main thread deallocator here from WebKit. 
     46         
     47        * WebCore.base.exp: 
     48        * WebCore.xcodeproj/project.pbxproj: 
     49        * platform/mac/WebCoreObjCExtras.c: 
     50        (method_getImplementation): 
     51        (deallocCallback): 
     52        (WebCoreObjCScheduleDeallocateOnMainThread): 
     53        * platform/mac/WebCoreObjCExtras.h: 
     54 
     552008-08-05  Dean Jackson  <dino@apple.com> 
     56 
     57        Parse CSS Animations, including the new 
     58        -webkit-animation properties and the @-webkit-keyframes rule. 
     59        Adds some new interfaces for the style rules. 
     60         
     61        https://bugs.webkit.org/show_bug.cgi?id=20088 
     62 
     63        Reviewed by David Hyatt. 
     64 
     65        * GNUmakefile.am: 
     66        * WebCore.pro: 
     67        * WebCore.vcproj/WebCore.vcproj: 
     68        * WebCore.xcodeproj/project.pbxproj: 
     69        * WebCoreSources.bkl: 
     70            build config for new files 
     71        * css/tokenizer.flex: 
     72        * css/CSSGrammar.y: 
     73        * css/CSSParser.cpp: 
     74        * css/CSSParser.h: 
     75            new @-webkit-keyframes parsing 
     76        * css/CSSPropertyNames.in: 
     77            -webkit-animation properties 
     78        * css/CSSRule.h: 
     79        * css/CSSStyleSelector.cpp: 
     80        * css/CSSStyleSelector.h: 
     81        * css/CSSValueKeywords.in: 
     82        * css/StyleBase.h: 
     83        * css/WebKitCSSKeyframeRule.cpp: Added. 
     84        * css/WebKitCSSKeyframeRule.h: Added. 
     85        * css/WebKitCSSKeyframesRule.cpp: Added. 
     86        * css/WebKitCSSKeyframesRule.h: Added. 
     87 
     882008-08-05  Kevin McCullough  <kmccullough@apple.com> 
     89 
     90        Reviewed by Tim. 
     91 
     92        - LayoutTests fix.  Log only to the Inspector because other listeners may not want 
     93        XHR notifications, including DRT and the numerous tests that don't expect them. 
     94 
     95        * xml/XMLHttpRequest.cpp: 
     96        (WebCore::XMLHttpRequest::didFinishLoading): 
     97 
     982008-08-05  Timothy Hatcher  <timothy@apple.com> 
     99 
     100        Makes DOM attribute editing start on double-click to match the styles 
     101        pane. Links in attributes are now triggered with a single click again. 
     102 
     103        https://bugs.webkit.org/show_bug.cgi?id=20281 
     104 
     105        Reviewed by Adam Roben. 
     106 
     107        * English.lproj/localizedStrings.js: Removed some strings. 
     108        * page/inspector/ElementsPanel.js: 
     109        (WebInspector.DOMNodeTreeElement.prototype.onattach): Call 
     110        _preventFollowingLinksOnDoubleClick. 
     111        (WebInspector.DOMNodeTreeElement.prototype._preventFollowingLinksOnDoubleClick): 
     112        Renamed from _makeURLsActivateOnModifiedClick. Simply sets the 
     113        preventFollowOnDoubleClick property on all links. 
     114        (WebInspector.DOMNodeTreeElement.prototype.onselect): Removed 
     115        _selectedByCurrentMouseDown. 
     116        (WebInspector.DOMNodeTreeElement.prototype.onmousedown): Moved 
     117        editing code to ondblclick. 
     118        (WebInspector.DOMNodeTreeElement.prototype.ondblclick): Calls 
     119        _startEditing. Removed URL check. 
     120        (WebInspector.DOMNodeTreeElement.prototype._updateTitle): Calls 
     121        _preventFollowingLinksOnDoubleClick. 
     122        * page/inspector/inspector.css: 
     123        (.editing): Removed the text-decoration property. 
     124        (.editing, .editing *): Added the text-decoration property here 
     125        so it removes underlines on child elements. 
     126        * page/inspector/inspector.js: 
     127        (WebInspector.documentClick): Removed the followOnAltClick code. 
     128        Added support for preventFollowOnDoubleClick, which sets a timeout 
     129        on the first click where future clicks will cancel it (double click). 
     130        If the timeout isn't canceled, the link is followed. 
     131 
     1322008-08-05  Antti Koivisto  <antti@apple.com> 
     133 
     134        Reviewed by Sam Weinig. 
     135 
     136        <rdar://problem/6112219> Video in standalone media document flashes when navigating away 
     137 
     138        When navigating out from a page, MediaPlayer was set invisible and then immediately  
     139        made visible again causing flicker in some cases. 
     140         
     141        The document is not yet marked being in page cache when willSaveToCache() is called. 
     142 
     143        * html/HTMLMediaElement.cpp: 
     144        (WebCore::HTMLMediaElement::willSaveToCache): 
     145        * rendering/RenderVideo.cpp: 
     146        (WebCore::RenderVideo::updatePlayer): 
     147 
     1482008-08-05  Dan Bernstein  <mitz@apple.com> 
     149 
     150        - fix typo 
     151 
     152        * page/mac/FrameMac.mm: 
     153 
     1542008-08-05  Dan Bernstein  <mitz@apple.com> 
     155 
     156        - try to fix the 64-bit build 
     157 
     158        * page/mac/FrameMac.mm: 
     159 
     1602008-08-05  Alp Toker  <alp@nuanti.com> 
     161 
     162        Remove leftover mark pragma from r35568 to fix compiler warning spew. 
     163 
     164        * rendering/style/RenderStyle.h: 
     165 
     1662008-08-05  Kevin McCullough  <kmccullough@apple.com> 
     167 
     168        - Added a test that checks for several edge cases (see description in 
     169        test. 
     170 
     171        * manual-tests/inspector/profiler-test-start-but-dont-stop-profiling.html: Added. 
     172 
     1732008-08-05  Dean Jackson  <dino@apple.com> 
     174 
     175        Reviewed by Dave Hyatt 
     176 
     177        Add support for CSS Animation properties to RenderStyle 
     178        https://bugs.webkit.org/show_bug.cgi?id=20068 
     179 
     180        (also fix some minor whitespace issues and remove debugging code) 
     181 
     182        * css/CSSComputedStyleDeclaration.cpp: 
     183        * css/CSSStyleSelector.cpp: 
     184        * page/AnimationController.cpp: 
     185        * rendering/style/RenderStyle.cpp: 
     186        * rendering/style/RenderStyle.h: 
     187 
     1882008-08-05  Kevin McCullough  <kmccullough@apple.com> 
     189 
     190        - Updated a manual test to be an accurate description of what it is 
     191        actually testing. 
     192 
     193        * manual-tests/inspector/profiler-test-stop-profiling-after-setTimeout.html: 
     194 
     1952008-08-05  Kevin McCullough  <kmccullough@apple.com> 
     196 
     197        Reviewed by Tim. 
     198 
     199        <rdar://problem/5732836> XMLHttpRequest: Inspector should show network 
     200        activity/XHR in Console (17233) 
     201 
     202        * xml/XMLHttpRequest.cpp: 
     203        (WebCore::XMLHttpRequest::didFinishLoading): 
     204 
     2052008-08-05  Dean Jackson  <dino@apple.com> 
     206 
     207        Fix the ChangeLog that was corrupted by r34545. 
     208 
     2092008-08-04  Timothy Hatcher  <timothy@apple.com> 
     210 
     211        Makes the selection surround just the name or value that was 
     212        double clicked when editing CSS properties. This regressed when 
     213        the Inspector started using focus/blur events, since a focus on 
     214        a content editable region changes the selection. 
     215 
     216        https://bugs.webkit.org/show_bug.cgi?id=20280 
     217 
     218        Reviewed by Adam Roben. 
     219 
     220        * page/inspector/StylesSidebarPane.js: 
     221        (WebInspector.StylePropertyTreeElement.prototype.startEditing): 
     222        Change the selection after calling WebInspector.startEditing, 
     223        since WebInspector.startEditing will set an initial selection 
     224        due to a focus event. 
     225 
     2262008-08-04  Timothy Hatcher  <timothy@apple.com> 
     227 
     228        Changes the editing behavior in the Inspector to commit changes 
     229        when focus is lost, instead of reverting the changes. 
     230 
     231        https://bugs.webkit.org/show_bug.cgi?id=20279 
     232 
     233        Reviewed by Adam Roben. 
     234 
     235        * page/inspector/inspector.js: 
     236        (WebInspector.startEditing): Call editingCommitted in blurEventListener 
     237        instead of editingCancelled. 
     238 
     2392008-08-04  Timothy Hatcher  <timothy@apple.com> 
     240 
     241        Adds the ability to increment/decrement numbers in editable style 
     242        properties with the arrow and page keys. 
     243 
     244        Reviewed by Adam Roben. 
     245 
     246        https://bugs.webkit.org/show_bug.cgi?id=20273 
     247 
     248        * page/inspector/StylesSidebarPane.js: 
     249        (WebInspector.StylePropertyTreeElement.prototype.updateAll): 
     250        Updates all properties in the current section, or all sections 
     251        depending in the argument passed. 
     252        (WebInspector.StylePropertyTreeElement.prototype.toggleEnabled): 
     253        Call updateAll instead of having duplicate code. 
     254        (WebInspector.StylePropertyTreeElement.prototype.startEditing): 
     255        Assign the list element's handleKeyEvent to editingKeyDown. 
     256        (WebInspector.StylePropertyTreeElement.prototype.editingKeyDown): 
     257        Handles the Up and Down arrows keys. Finds the word based on the 
     258        selection and extracts the number, prefix and suffix. Increments 
     259        or decrements the number based on the key and modifiers. Replaces 
     260        the original word with the new value and selects it. Also applies 
     261        the style so the page reflects the changes live. 
     262        (WebInspector.StylePropertyTreeElement.prototype.editingEnded): 
     263        Delete the handleKeyEvent and originalCSSText properties. 
     264        (WebInspector.StylePropertyTreeElement.prototype.editingCancelled): 
     265        If originalCSSText exists, set the cssText to that value and call 
     266        updateAll. Otherwise just call updateTitle like before. 
     267        (WebInspector.StylePropertyTreeElement.prototype.editingCommitted): 
     268        Factored out the style applying code to applyStyleText. 
     269        (WebInspector.StylePropertyTreeElement.prototype.applyStyleText): 
     270        Factored out from editingCommitted. Takes an argument that specifies 
     271        if the interface should be updated when the style is applied. 
     272        * page/inspector/inspector.js: 
     273        (WebInspector.startEditing): Call the original key handler, if one 
     274        existed before interrupting key events. 
     275        * page/inspector/utilities.js: 
     276        (getStyleTextWithShorthands): Helper to return CSS text that preserves 
     277        shorthand values, since the cssText property only outputs longhands. 
     278 
     2792008-08-04  Timothy Hatcher  <timothy@apple.com> 
     280 
     281        Factors out the TextPrompt.scanBackwards function into a generic 
     282        helper function on the Node prototype, named rangeOfWord. 
     283 
     284        Reviewed by Adam Roben. 
     285 
     286        * page/inspector/Console.js: 
     287        (WebInspector.Console.prototype.completions): Use rangeOfWord. 
     288        * page/inspector/TextPrompt.js: 
     289        (WebInspector.TextPrompt.prototype.complete): Ditto. 
     290        (WebInspector.TextPrompt.prototype.scanBackwards): Removed. 
     291        * page/inspector/utilities.js: 
     292        (Node.prototype.rangeOfWord): Added. Copied from TextPrompt.scanBackwards, 
     293        and added a direction argument allowing scanning forward, backward or 
     294        both directions from the offset. 
     295 
     2962008-08-04  Timothy Hatcher  <timothy@apple.com> 
     297 
     298        Fixes a bug where the property toggle button would not be hidden 
     299        during editing. 
     300 
     301        Reviewed by Adam Roben. 
     302 
     303        * page/inspector/inspector.css: 
     304        (li.editing .swatch, li.editing .enabled-button): 
     305        Make the display !important, since a more specific rule for  
     306        .enabledbutton overrides display. 
     307 
     3082008-08-05  Dan Bernstein  <mitz@apple.com> 
     309 
     310        Reviewed by Geoffrey Garen. 
     311 
     312        - remove redundant #imports from FrameMac.mm 
     313 
     314        * page/mac/FrameMac.mm: 
     315 
     3162008-08-04  Bernhard Krüpl  <kruepl@dbai.tuwien.ac.at> 
     317 
     318        Reviewed by Dave Hyatt. 
     319 
     320        Fix for https://bugs.webkit.org/show_bug.cgi?id=19094 
     321        Corrected offsetTop for table cells by subtracting borderTopExtra 
     322 
     323        * rendering/RenderObject.cpp: 
     324        (WebCore::RenderObject::offsetTop): 
     325 
     3262008-08-04  Dean Jackson  <dino@apple.com> 
     327 
     328        Reviewed by Dave Hyatt. 
     329 
     330        Improve AnimationController 
     331        https://bugs.webkit.org/show_bug.cgi?id=19938 
     332 
     333        - Transition class is now called Animation 
     334        - new state-based AnimationController that can support CSS Animations 
     335        - add support for -webkit-transition-delay 
     336        - remove -webkit-transition-repeat-count (since it never existed officially) 
     337        - updates the -webkit-transition shorthand to reflect removing repeat count 
     338        - updates the Transition class so that properties can be shared with animations 
     339        - adds a "now" keyword for -webkit-transition-delay 
     340        - adds a new change type for style (changed by animation) 
     341        - adds new event names (although they are not dispatched yet) 
     342        - makes text stroke and text fill colors returned by RenderStyle const 
     343 
     344        Tests: 
     345        - manual-tests/transition-left.html 
     346        - manual-tests/transition-delay.html 
     347        - manual-tests/transition-timing-functions.html 
     348 
     349        * css/CSSComputedStyleDeclaration.cpp: 
     350        * css/CSSParser.cpp: 
     351        * css/CSSParser.h: 
     352        * css/CSSPropertyNames.in: 
     353        * css/CSSStyleSelector.cpp: 
     354        * css/CSSStyleSelector.h: 
     355        * css/CSSTimingFunctionValue.h: 
     356        * css/CSSValue.h: 
     357        * css/CSSValueKeywords.in: 
     358        * css/WebKitCSSTransformValue.cpp: 
     359        * dom/Document.cpp: 
     360        * dom/Document.h: 
     361        * dom/Element.cpp: 
     362        * dom/EventNames.h: 
     363        * dom/Node.cpp: 
     364        * dom/Node.h: 
     365        * history/CachedPage.cpp: 
     366        * page/AnimationController.cpp: 
     367        * page/AnimationController.h: 
     368        * page/Frame.cpp: 
     369        * rendering/RenderObject.cpp: 
     370        * rendering/RenderWidget.cpp: 
     371        * rendering/style/RenderStyle.cpp: 
     372        * rendering/style/RenderStyle.h: 
     373 
     3742008-08-04  Mike Belshe  <mike@belshe.com> 
     375 
     376        Reviewed by Antti. 
     377         
     378        Currently we create two copies of script in the HTMLTokenizer. 
     379        One copy gets passed into the javascript engine, the other gets 
     380        stored in the DOM.  Modify the HTMLParser so that it does not 
     381        chunk the string into it's normal 64K chunks for script code, 
     382        and modify the HTMLTokenizer to pass that same string into the 
     383        JS engine.  On some sites (e.g. GMail), which have hundreds of 
     384        KB of inline JS, this saves more than a MB of RAM to run the page. 
     385        (Strings use 16bit strings, so 600KB of JS code == 1.2MB of memory) 
     386 
     387        * html\HTMLParser.cpp 
     388        * html\HTMLTokenizer.cpp 
     389 
     3902008-08-04  Sam Weinig  <sam@webkit.org> 
     391 
     392        Reviewed by Mark Rowe. 
     393 
     394        Remove extra braces left in from JSLock removal. 
     395 
     396        * xml/XMLHttpRequest.cpp: 
     397        (WebCore::XMLHttpRequest::dropProtection): 
     398 
     3992008-08-02  Sam Weinig  <sam@webkit.org> 
     400 
     401        Reviewed by Dan Bernstein. 
     402 
     403        Implement the Access-control for Cross Site requests 
     404        preflight cache. 
     405 
     406        Tests: http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-invalidation-by-header.html 
     407               http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-invalidation-by-method.html 
     408               http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-timeout.html 
     409               http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache.html 
     410 
     411        * WebCore.vcproj/WebCore.vcproj: 
     412        * WebCore.xcodeproj/project.pbxproj: 
     413        * platform/KURL.h: 
     414        (WTF::): 
     415        * platform/KURLHash.h: Added. 
     416        (WebCore::KURLHash::hash): 
     417        (WebCore::KURLHash::equal): 
     418        (WTF::): 
     419        * xml/XMLHttpRequest.cpp: 
     420        (WebCore::PreflightResultCacheItem::PreflightResultCacheItem): 
     421        (WebCore::preflightResultCache): 
     422        (WebCore::appendPreflightResultCacheEntry): 
     423        (WebCore::canSkipPrelight): 
     424        (WebCore::XMLHttpRequest::makeCrossSiteAccessRequestWithPreflight): 
     425        (WebCore::parseAccessControlAllowList): 
     426        (WebCore::parseAccessControlMaxAge): 
     427        (WebCore::XMLHttpRequest::didReceiveResponsePreflight): 
     428 
     4292008-08-04  Eric Seidel  <eric@webkit.org> 
     430 
     431        Reviewed by Adam Roben. 
     432 
     433        Fix warning seen in MSVC converting ints to floats. 
     434 
     435        * rendering/Length.h: 
     436        (WebCore::Length::calcFloatValue): 
     437 
     4382008-08-04  Eric Seidel  <eric@webkit.org> 
     439 
     440        Reviewed by hyatt. 
     441 
     442        Clean up Gradient constructors, make sure all members are initialized. 
     443 
     444        * platform/graphics/Gradient.cpp: 
     445        (WebCore::Gradient::Gradient): 
     446 
    14472008-08-04  Maxime Britto  <britto@apple.com> 
    2448