ChangeLog-2010-05-24 2.3 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180
  1. 2010-05-18 Jaime Yap <jaimeyap@google.com>
  2. Reviewed by Pavel Feldman.
  3. Removes public callLocation API and utility context from ScriptCallStack.
  4. Adds ability to grab the top 5 JavaScript stack frames for each timeline
  5. record using new fast V8 stack trace API.
  6. https://bugs.webkit.org/show_bug.cgi?id=37502
  7. * bindings/js/ScriptCallStack.cpp:
  8. (WebCore::ScriptCallStack::stackTrace):
  9. * bindings/js/ScriptCallStack.h:
  10. * bindings/v8/ScriptArray.h:
  11. (WebCore::ScriptArray::ScriptArray):
  12. * bindings/v8/ScriptCallStack.cpp:
  13. (WebCore::ScriptCallStack::callLocation):
  14. (WebCore::ScriptCallStack::stackTrace):
  15. * bindings/v8/ScriptCallStack.h:
  16. * inspector/TimelineRecordFactory.cpp:
  17. (WebCore::TimelineRecordFactory::createGenericRecord):
  18. * inspector/front-end/TimelinePanel.js:
  19. (WebInspector.TimelinePanel.FormattedRecord):
  20. (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
  21. (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
  22. 2010-05-24 Anders Carlsson <andersca@apple.com>
  23. Try to fix build.
  24. * plugins/npapi.cpp:
  25. (NPN_ReloadPlugins):
  26. 2010-05-24 Anders Carlsson <andersca@apple.com>
  27. Reviewed by Sam Weinig.
  28. Get rid of PlugInInfoStore.
  29. https://bugs.webkit.org/show_bug.cgi?id=39608
  30. * WebCore.gyp/WebCore.gyp:
  31. * WebCore.gypi:
  32. * WebCore.pro:
  33. * WebCore.vcproj/WebCore.vcproj:
  34. * WebCore.xcodeproj/project.pbxproj:
  35. * platform/android/TemporaryLinkStubs.cpp:
  36. * plugins/PluginInfoStore.cpp: Removed.
  37. * plugins/PluginInfoStore.h: Removed.
  38. * plugins/npapi.cpp:
  39. 2010-05-24 Sheriff Bot <webkit.review.bot@gmail.com>
  40. Unreviewed, rolling out r60068.
  41. http://trac.webkit.org/changeset/60068
  42. https://bugs.webkit.org/show_bug.cgi?id=39600
  43. "Causes fast/repaint/search-field-cancel to fail." (Requested
  44. by jparent on #webkit).
  45. * rendering/RenderObject.h:
  46. (WebCore::objectIsRelayoutBoundary):
  47. 2010-05-24 Jeremy Orlow <jorlow@chromium.org>
  48. Unreviewed. Checked in merge error. :-(
  49. * CMakeLists.txt:
  50. 2010-05-24 Steve Block <steveblock@google.com>
  51. Reviewed by Darin Adler.
  52. Geolocation causes DOMWindow to leak if position requests are in progress when the page is navigated away
  53. https://bugs.webkit.org/show_bug.cgi?id=39288
  54. Test: fast/dom/Geolocation/ongoing-request-leak.html
  55. * loader/FrameLoader.cpp:
  56. (WebCore::FrameLoader::stopLoading): Stop all Geolocation instances. This call is made after the unload event has fired, so no new Geolocation activity is possible.
  57. * page/Geolocation.cpp:
  58. (WebCore::Geolocation::stop): Removes all ongoing requests and stops the service.
  59. (WebCore::Geolocation::disconnectFrame): Removed calls to stopUpdating() and stopTimers(), as this will already have been done in stop();
  60. * page/Geolocation.h: Added stop() method.
  61. 2010-05-24 MORITA Hajime <morrita@google.com>
  62. Reviewed by Kent Tamura.
  63. Textarea shouldn't grow when you type.
  64. https://bugs.webkit.org/show_bug.cgi?id=32077
  65. <textarea> with percent-specified, height-related properties did
  66. cause partial-layout rooted from the renderer, that resulted
  67. different box height between full-layout and partial-layout. This
  68. is because calcHeight() assumes that the layout calculation of the
  69. RenderBlock's parent is ongoing. But this assumption is violated
  70. when the RenderBlock is root of the layout calculation.
  71. So we prevent such <textarea>'s RenderObjects from being layout
  72. root.
  73. Test: fast/forms/textarea-percentage-dimensions.html
  74. * rendering/RenderObject.h:
  75. (WebCore::objectIsRelayoutBoundary):
  76. 2010-05-20 Jeremy Orlow <jorlow@chromium.org>
  77. Reviewed by Alexey Proskuryakov.
  78. Add DOMStringList idl, needed for IndexedDB and for HTML5 drag & drop
  79. https://bugs.webkit.org/show_bug.cgi?id=39429
  80. IndexedDB depends on DOMStringList.
  81. http://dev.w3.org/2006/webapi/WebSimpleDB/#idl-def-IDBDatabase
  82. It's currently specced here:
  83. http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMStringList
  84. Existing tests cover the constructor. IndexedDB will also use this
  85. soon (and thus add test coverage).
  86. * Android.mk:
  87. * Android.derived.jscbindings.mk:
  88. * Android.derived.v8bindings.mk:
  89. * CMakeLists.txt:
  90. * DerivedSources.cpp:
  91. * DerivedSources.make:
  92. * GNUmakefile.am:
  93. * WebCore.gypi:
  94. * WebCore.pri:
  95. * WebCore.pro:
  96. * WebCore.vcproj/WebCore.vcproj:
  97. * WebCore.xcodeproj/project.pbxproj:
  98. * bindings/scripts/CodeGeneratorJS.pm:
  99. * dom/DOMStringList.h: Added.
  100. (WebCore::DOMStringList::create):
  101. (WebCore::DOMStringList::length):
  102. (WebCore::DOMStringList::item):
  103. (WebCore::DOMStringList::isEmpty):
  104. (WebCore::DOMStringList::clear):
  105. (WebCore::DOMStringList::append):
  106. (WebCore::DOMStringList::DOMStringList):
  107. * dom/DOMStringList.idl: Added.
  108. * page/DOMWIndow.idl: Re-enabled constructor
  109. 2010-05-23 Shinichiro Hamaji <hamaji@chromium.org>
  110. Reviewed by Alexey Proskuryakov.
  111. 0x5C of EUC-JP is not Yen Sign but U+005C
  112. https://bugs.webkit.org/show_bug.cgi?id=24906
  113. Tests: editing/selection/find-yensign-and-backslash-with-japanese-fonts.html
  114. fast/text/backslash-to-yen-sign-dynamic.html
  115. fast/text/backslash-to-yen-sign.html
  116. * GNUmakefile.am:
  117. * WebCore.gyp/WebCore.gyp:
  118. * WebCore.gypi:
  119. * WebCore.pro:
  120. * WebCore.vcproj/WebCore.vcproj:
  121. * WebCore.vcproj/WebCoreCommon.vsprops:
  122. * WebCore.xcodeproj/project.pbxproj:
  123. * platform/graphics/Font.cpp:
  124. (WebCore::Font::Font):
  125. (WebCore::Font::operator=):
  126. * platform/graphics/Font.h:
  127. (WebCore::Font::needsTranscoding):
  128. * platform/text/CharacterNames.h:
  129. * platform/text/transcoder/FontTranscoder.cpp: Added.
  130. (WebCore::FontTranscoder::FontTranscoder):
  131. (WebCore::FontTranscoder::converterType):
  132. (WebCore::FontTranscoder::convert):
  133. (WebCore::FontTranscoder::needsTranscoding):
  134. (WebCore::fontTranscoder):
  135. * platform/text/transcoder/FontTranscoder.h: Added.
  136. (WebCore::FontTranscoder::):
  137. * rendering/RenderText.cpp:
  138. (WebCore::RenderText::updateNeedsTranscoding):
  139. (WebCore::RenderText::styleDidChange):
  140. (WebCore::RenderText::setTextInternal):
  141. 2010-05-23 MORITA Hajime <morrita@google.com>
  142. Unreviewed, rolling out r60060.
  143. http://trac.webkit.org/changeset/60060
  144. https://bugs.webkit.org/show_bug.cgi?id=32077
  145. breaks chromium test
  146. * rendering/RenderObject.h:
  147. (WebCore::objectIsRelayoutBoundary):
  148. 2010-05-23 Justin Schuh <jschuh@chromium.org>
  149. Reviewed by Shinichiro Hamaji.
  150. Style cleanup for r56288
  151. https://bugs.webkit.org/show_bug.cgi?id=39554
  152. Cleaning up style from a previous patch. No tests needed because no
  153. logic is changed.
  154. * svg/SVGFEMorphologyElement.cpp:
  155. (WebCore::SVGFEMorphologyElement::build):
  156. 2010-05-23 MORITA Hajime <morrita@google.com>
  157. Reviewed by Kent Tamura.
  158. Textarea shouldn't grow when you type.
  159. https://bugs.webkit.org/show_bug.cgi?id=32077
  160. <textarea> with percent-specified, height-related properties did
  161. cause partial-layout rooted from the renderer, that resulted
  162. different box height between full-layout and partial-layout. This
  163. is because calcHeight() assumes that the layout calculation of the
  164. RenderBlock's parent is ongoing. But this assumption is violated
  165. when the RenderBlock is root of the layout calculation.
  166. So we prevent such <textarea>'s RenderObjects from being layout
  167. root.
  168. Test: fast/forms/textarea-percentage-dimensions.html
  169. * rendering/RenderObject.h:
  170. (WebCore::objectIsRelayoutBoundary):
  171. 2010-05-23 Sam Weinig <sam@webkit.org>
  172. Reviewed by Oliver Hunt.
  173. Fix for https://bugs.webkit.org/show_bug.cgi?id=39575
  174. Make JS DOMObject inherit from JSObjectWithGlobalObject instead of JSObject
  175. - Changes JSDOMWindowShell to inherit from JSObject instead of
  176. DOMObject since it doesn't ever go into any DOMObject tables.
  177. In a separate change, we may want to make this inherit from
  178. JSObjectWithGlobalObject since JSDOMWindowShell does store a
  179. global object pointer.
  180. - Change DOMObject to inherit from JSObjectWithGlobalObject
  181. instead of JSObject. In this change I am keeping around
  182. DOMObjectWithGlobalPointer, which now just uses the capabilities
  183. of JSObjectWithGlobalObject instead of implementing them
  184. itself. DOMObjectWithGlobalPointer will go away in a subsequent
  185. patch.
  186. * bindings/js/JSDOMBinding.h:
  187. (WebCore::DOMObjectWithGlobalPointer::globalObject):
  188. (WebCore::DOMObjectWithGlobalPointer::DOMObjectWithGlobalPointer):
  189. * bindings/js/JSDOMWindowShell.h:
  190. * bindings/js/JSDOMWrapper.h:
  191. (WebCore::DOMObject::DOMObject):
  192. 2010-05-23 Eric Seidel <eric@webkit.org>
  193. Unreviewed, just being a copy/paste monkey. Oook, eeek.
  194. Add new HTML5TreeBuilder class to hold the tree builder section of the HTML5 parsing spec
  195. https://bugs.webkit.org/show_bug.cgi?id=39572
  196. Add HTML5TreeBuilder.* to each of WebKit's 85,324 build systems.
  197. * Android.mk:
  198. * CMakeLists.txt:
  199. * GNUmakefile.am:
  200. * WebCore.gypi:
  201. * WebCore.pro:
  202. * WebCore.vcproj/WebCore.vcproj:
  203. 2010-05-23 Eric Seidel <eric@webkit.org>
  204. Reviewed by Adam Barth.
  205. Add new HTML5TreeBuilder class to hold the tree builder section of the HTML5 parsing spec
  206. https://bugs.webkit.org/show_bug.cgi?id=39572
  207. We've been working on the tokenization (lexing) section of the HTML5
  208. spec until now and leaning on the old HTMLParser for tree building.
  209. We need to start writing more of the tree building sections of the spec,
  210. but to do that we need a place to put the new code.
  211. This patch moves our old-to-new conversion hacks out of HTML5Tokenizer
  212. (our Tokenizer.h implementation) and into HTML5TreeBuilder.
  213. Follow-up patches will add new HTML5 tree building code to this file
  214. and will allow us to switch between old and new parser/treebuilder
  215. implementations.
  216. No change in behavior, thus no new tests.
  217. * WebCore.xcodeproj/project.pbxproj:
  218. * html/HTML5Tokenizer.cpp:
  219. (WebCore::HTML5Tokenizer::HTML5Tokenizer):
  220. (WebCore::HTML5Tokenizer::write):
  221. - Call the new HTML5TreeBuilder code.
  222. * html/HTML5Tokenizer.h:
  223. * html/HTML5TreeBuilder.cpp: Added.
  224. * html/HTML5TreeBuilder.h: Added.
  225. 2010-05-23 Sam Weinig <sam@webkit.org>
  226. Reviewed by Oliver Hunt.
  227. Fix for https://bugs.webkit.org/show_bug.cgi?id=39574
  228. Complete the merge of NamedMappedAttrMap into NamedNodeMap.
  229. * Android.mk:
  230. * CMakeLists.txt:
  231. * GNUmakefile.am:
  232. * WebCore.gypi:
  233. * WebCore.pro:
  234. * WebCore.vcproj/WebCore.vcproj:
  235. * WebCore.xcodeproj/project.pbxproj:
  236. * css/CSSStyleSelector.cpp:
  237. (WebCore::CSSStyleSelector::canShareStyleWithElement):
  238. (WebCore::CSSStyleSelector::styleForElement):
  239. * dom/Element.cpp:
  240. (WebCore::Element::createAttributeMap):
  241. * dom/NamedMappedAttrMap.cpp: Removed.
  242. * dom/NamedMappedAttrMap.h: Removed.
  243. * dom/NamedNodeMap.cpp:
  244. (WebCore::NamedNodeMap::setClass):
  245. (WebCore::NamedNodeMap::declCount):
  246. (WebCore::NamedNodeMap::mapsEquivalent):
  247. (WebCore::NamedNodeMap::mappedMapsEquivalent):
  248. * dom/NamedNodeMap.h:
  249. (WebCore::NamedNodeMap::create):
  250. (WebCore::NamedNodeMap::clearClass):
  251. (WebCore::NamedNodeMap::classNames):
  252. (WebCore::NamedNodeMap::hasMappedAttributes):
  253. (WebCore::NamedNodeMap::declRemoved):
  254. (WebCore::NamedNodeMap::declAdded):
  255. (WebCore::NamedNodeMap::NamedNodeMap):
  256. * dom/StyledElement.h:
  257. (WebCore::StyledElement::mappedAttributes):
  258. * html/HTML5Token.h:
  259. * html/HTML5Tokenizer.cpp:
  260. (WebCore::convertToOldStyle):
  261. * html/HTMLInputElement.cpp:
  262. (WebCore::HTMLInputElement::setInputType):
  263. * html/HTMLParser.cpp:
  264. (WebCore::HTMLParser::handleIsindex):
  265. * html/HTMLTokenizer.cpp:
  266. (WebCore::Token::addAttribute):
  267. (WebCore::HTMLTokenizer::processToken):
  268. * html/HTMLTokenizer.h:
  269. * html/HTMLViewSourceDocument.cpp:
  270. (WebCore::HTMLViewSourceDocument::createContainingTable):
  271. (WebCore::HTMLViewSourceDocument::addSpanWithClassName):
  272. (WebCore::HTMLViewSourceDocument::addLine):
  273. (WebCore::HTMLViewSourceDocument::addLink):
  274. 2010-05-23 Adam Barth <abarth@webkit.org>
  275. Reviewed by Eric Seidel.
  276. Teach HTML5 parser how to lex comments correctly
  277. https://bugs.webkit.org/show_bug.cgi?id=39537
  278. Implement the non-bogus comment states for the lexer. There's more
  279. work to do in some of these states (e.g., to handle doctype tokens and
  280. bogus comments), but I'm trying to keep the patches small.
  281. Tests: comments01.dat
  282. * html/HTML5Lexer.cpp:
  283. (WebCore::HTML5Lexer::nextToken):
  284. * html/HTML5Lexer.h:
  285. * html/HTML5Token.h:
  286. (WebCore::HTML5Token::beginComment):
  287. (WebCore::HTML5Token::appendToComment):
  288. (WebCore::HTML5Token::data):
  289. * html/HTML5Tokenizer.cpp:
  290. (WebCore::convertToOldStyle):
  291. * platform/text/SegmentedString.h:
  292. (WebCore::SegmentedString::):
  293. (WebCore::SegmentedString::peek):
  294. - Occationally, the HTML5 parsing algorithm looks ahead in the
  295. input stream. The implementation here is incomplete, but its
  296. enough to run the current HTML5 parsing tests. I'll eventually
  297. need to implement the slow case here.
  298. 2010-05-23 Adam Barth <abarth@webkit.org>
  299. Reviewed by Eric Seidel.
  300. Make the html5lib parser tests run using the HTML5 parser
  301. https://bugs.webkit.org/show_bug.cgi?id=39533
  302. Turns out we're just one small tweak away from running the html5lib
  303. tests. After this patch lands, we should be able to introduce tests
  304. for every change to the HTML5 parser.
  305. Test: html5lib/webkit-runner.html
  306. * html/HTML5Lexer.cpp:
  307. (WebCore::HTML5Lexer::nextToken):
  308. 2010-05-23 Adam Barth <abarth@webkit.org>
  309. Reviewed by Eric Seidel.
  310. Make HTML5 parser parse <script>alert("<hi>");</script>
  311. https://bugs.webkit.org/show_bug.cgi?id=39525
  312. More progress towards getting the html5lib test harness running. We
  313. need to parse script data in the ScriptDataState. The spec says the
  314. parser should set the lexer's state to ScriptDataState, but we want to
  315. keep using the existing parser for a while so I've added some temporary
  316. logic to HTML5Tokenizer to set the state in the lexer.
  317. To get this case running, I needed to flesh out a bunch of the
  318. ScriptDataState logic. There's a bunch more to do, but this is a
  319. start.
  320. I'm not 100% happy with this patch, but it lets us execute a simplified
  321. version of the test harness up to the point where it starts running the
  322. first test.
  323. * html/HTML5Lexer.cpp:
  324. (WebCore::HTML5Lexer::nextToken):
  325. (WebCore::HTML5Lexer::isAppropriateEndTag):
  326. (WebCore::HTML5Lexer::emitCurrentTagToken):
  327. * html/HTML5Lexer.h:
  328. (WebCore::HTML5Lexer::setState):
  329. * html/HTML5Token.h:
  330. (WebCore::HTML5Token::beginEndTag):
  331. (WebCore::HTML5Token::appendToCharacter):
  332. (WebCore::HTML5Token::name):
  333. * html/HTML5Tokenizer.cpp:
  334. (WebCore::HTML5Tokenizer::write):
  335. 2010-05-23 Chris Marrin <cmarrin@apple.com>
  336. Reviewed by Simon Fraser.
  337. Limit the number of tiles created for large tiled layers
  338. https://bugs.webkit.org/show_bug.cgi?id=39522
  339. I added an algorithm to limit the number of tiles created to 512.
  340. It tried to limit them in only one dimension and if that's not
  341. possible it limits them in both dimensions according to the
  342. ratio of width to height. This has the effect of rendering
  343. tiles starting from the upper-left, which is often the part
  344. that is visible. So it both prevents crashing and tried to do
  345. the best job it can of displaying what the author intended.
  346. The test LayoutTests/compositing/geometry/huge-layers.html was
  347. crashing before this fix. Now it works correctly.
  348. * platform/graphics/win/WebTiledLayer.cpp:
  349. (WebCore::WebTiledLayer::WebTiledLayer):
  350. (WebCore::WebTiledLayer::setBounds):
  351. (WebCore::WebTiledLayer::constrainedSize):
  352. (WebCore::WebTiledLayer::updateTiles):
  353. * platform/graphics/win/WebTiledLayer.h:
  354. 2010-05-23 Noam Rosenthal <noam.rosenthal@nokia.com>
  355. Reviewed by Kenneth Rohde Christiansen.
  356. [Qt] Using Accelerated Composing the rocket back animation on http://www.the-art-of-web.com/css/css-animation/ works differently as when not using AC.
  357. https://bugs.webkit.org/show_bug.cgi?id=39513
  358. The value of GraphicsLayer->transform() needs to be changed during the animation, regardless of m_fillsForward.
  359. m_fillsForward should only apply at the end of the animation. Based on previous patch by Kenneth Christiansen.
  360. * platform/graphics/qt/GraphicsLayerQt.cpp:
  361. (WebCore::TransformAnimationQt::applyFrame):
  362. (WebCore::OpacityAnimationQt::applyFrame):
  363. 2010-05-23 Kenneth Rohde Christiansen <kenneth@webkit.org>
  364. Reviewed by Eric Seidel.
  365. [Qt] GraphicsLayerQt: Coding style and comment fixes.
  366. * platform/graphics/qt/GraphicsLayerQt.cpp:
  367. (WebCore::MaskEffectQt::MaskEffectQt):
  368. (WebCore::MaskEffectQt::draw):
  369. (WebCore::GraphicsLayerQtImpl::ContentData::ContentData):
  370. (WebCore::GraphicsLayerQtImpl::State::State):
  371. (WebCore::GraphicsLayerQtImpl::GraphicsLayerQtImpl):
  372. (WebCore::GraphicsLayerQtImpl::~GraphicsLayerQtImpl):
  373. (WebCore::GraphicsLayerQtImpl::rootLayer):
  374. (WebCore::GraphicsLayerQtImpl::recache):
  375. (WebCore::GraphicsLayerQtImpl::updateTransform):
  376. (WebCore::GraphicsLayerQtImpl::opaqueArea):
  377. (WebCore::GraphicsLayerQtImpl::flushChanges):
  378. (WebCore::GraphicsLayerQtImpl::notifyAnimationStarted):
  379. (WebCore::GraphicsLayerQt::setNeedsDisplayInRect):
  380. (WebCore::GraphicsLayerQt::setContentsToImage):
  381. (WebCore::applyTimingFunction):
  382. (WebCore::AnimationQtBase::updateState):
  383. (WebCore::AnimationQt::AnimationQt):
  384. (WebCore::AnimationQt::updateCurrentTime):
  385. (WebCore::TransformAnimationQt::applyFrame):
  386. (WebCore::TransformAnimationQt::updateState):
  387. (WebCore::OpacityAnimationQt::OpacityAnimationQt):
  388. (WebCore::OpacityAnimationQt::applyFrame):
  389. (WebCore::GraphicsLayerQt::addAnimation):
  390. (WebCore::GraphicsLayerQt::removeAnimationsForProperty):
  391. (WebCore::GraphicsLayerQt::removeAnimationsForKeyframes):
  392. (WebCore::GraphicsLayerQt::pauseAnimation):
  393. (WebCore::GraphicsLayerQt::suspendAnimations):
  394. (WebCore::GraphicsLayerQt::resumeAnimations):
  395. * platform/graphics/qt/GraphicsLayerQt.h:
  396. 2010-05-23 Justin Schuh <jschuh@chromium.org>
  397. Reviewed by Darin Adler.
  398. Remove custom binding for Attr.value
  399. https://bugs.webkit.org/show_bug.cgi?id=39499
  400. Custom bindings are no longer needed because origin checks were moved
  401. out of the bindings by: http://trac.webkit.org/changeset/59866
  402. * Android.v8bindings.mk:
  403. * WebCore.gypi:
  404. * bindings/js/JSAttrCustom.cpp:
  405. * bindings/v8/custom/V8AttrCustom.cpp: Removed.
  406. * dom/Attr.idl:
  407. 2010-05-23 Grace Kloba <klobag@gmail.com>
  408. Reviewed by Nate Chapin.
  409. Match the call of scheduleLocationChange() to its correct signature.
  410. Fixes <http://webkit.org/b/39452>
  411. The call of scheduleLocationChange() in generic and v8 bindings assuming the
  412. fourth parameter is "usergesture". But it is actually the fifth parameter.
  413. No new features. No new tests.
  414. * bindings/generic/BindingDOMWindow.h:
  415. (WebCore::::createWindow):
  416. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  417. (WebCore::V8DOMWindow::openCallback):
  418. 2010-05-23 Eric Seidel <eric@webkit.org>
  419. Reviewed by Adam Barth.
  420. Reduce copy/paste code in HTMLParser using some template functions
  421. https://bugs.webkit.org/show_bug.cgi?id=39471
  422. No functional changes, thus no tests.
  423. * html/HTMLParser.cpp:
  424. (WebCore::addTags):
  425. - New function which takes a set an an array of QualifiedNames
  426. and adds the localName().impl() to the set for each QualifiedName.
  427. (WebCore::isTablePart):
  428. (WebCore::isScopingTag):
  429. (WebCore::mapTagToFunc):
  430. (WebCore::mapTagsToFunc):
  431. - New functions which take QualifiedNames and a function and map from the
  432. localName().impl() to the function.
  433. (WebCore::HTMLParser::getNode):
  434. (WebCore::HTMLParser::isHeadingTag):
  435. (WebCore::HTMLParser::isResidualStyleTag):
  436. (WebCore::HTMLParser::isAffectedByResidualStyle):
  437. 2010-05-22 Julie Parent <jparent@chromium.org>
  438. Reviewed by Adam Barth.
  439. REGRESSION: xssAuditor tests failing in Chromium.
  440. https://bugs.webkit.org/show_bug.cgi?id=39560
  441. Follow up to r0014. Make if statement in V8 bindings match the one from jsc version.
  442. * bindings/v8/ScriptController.cpp:
  443. (WebCore::ScriptController::evaluate):
  444. 2010-05-22 Maciej Stachowiak <mjs@apple.com>
  445. Reviewed by Mark Rowe.
  446. REGRESSION(r59977): platform/mac/fast/AppleScript/001.html failure
  447. https://bugs.webkit.org/show_bug.cgi?id=39531
  448. Revert r59977 and r59943. These changes caused some exceptions to no longer be
  449. reported in the inspector; I can't tell what they were originally trying to fix
  450. so I am not sure how to fix them other than by reverting.
  451. Covered by existing test platform/mac/fast/AppleScript/001.html, and
  452. also added fast/dom/nested-script-exceptions.html to demonstrate the wider
  453. consequences of the original change.
  454. * bindings/js/ScriptController.cpp:
  455. (WebCore::ScriptController::ScriptController):
  456. (WebCore::ScriptController::evaluateInWorld):
  457. * bindings/js/ScriptController.h:
  458. 2010-05-22 Kwang Yul Seo <skyul@company100.net>
  459. Reviewed by Eric Seidel.
  460. [BREWMP] Add DragData
  461. https://bugs.webkit.org/show_bug.cgi?id=39469
  462. As BREW MP does not support dragging, add dummy implementation of DragData.
  463. * platform/DragData.h:
  464. * platform/brew/DragDataBrew.cpp: Added.
  465. (WebCore::DragData::canSmartReplace):
  466. (WebCore::DragData::containsColor):
  467. (WebCore::DragData::containsPlainText):
  468. (WebCore::DragData::asPlainText):
  469. (WebCore::DragData::asColor):
  470. (WebCore::DragData::createClipboard):
  471. (WebCore::DragData::containsCompatibleContent):
  472. (WebCore::DragData::containsURL):
  473. (WebCore::DragData::asURL):
  474. (WebCore::DragData::asFragment):
  475. (WebCore::DragData::asFilenames):
  476. (WebCore::DragData::containsFiles):
  477. 2010-05-22 Kwang Yul Seo <skyul@company100.net>
  478. Reviewed by Eric Seidel.
  479. [BREWMP] Add dummy Icon
  480. https://bugs.webkit.org/show_bug.cgi?id=39468
  481. Add dummy implementation of Icon.
  482. * platform/graphics/brew/IconBrew.cpp: Added.
  483. (WebCore::Icon::~Icon):
  484. (WebCore::Icon::createIconForFiles):
  485. (WebCore::Icon::paint):
  486. 2010-05-22 Justin Schuh <jschuh@chromium.org>
  487. Reviewed by Nate Chapin.
  488. Remove and simplify custom bindings for Node
  489. https://bugs.webkit.org/show_bug.cgi?id=39467
  490. Custom bindings for nodeValue and textContent are no longer needed,
  491. and child manipulators are simplified because origin checks were moved
  492. out of the bindings by: http://trac.webkit.org/changeset/59866
  493. * bindings/js/JSNodeCustom.cpp:
  494. (WebCore::JSNode::insertBefore):
  495. (WebCore::JSNode::replaceChild):
  496. (WebCore::JSNode::removeChild):
  497. (WebCore::JSNode::appendChild):
  498. * bindings/v8/custom/V8NodeCustom.cpp:
  499. (WebCore::V8Node::insertBeforeCallback):
  500. (WebCore::V8Node::replaceChildCallback):
  501. (WebCore::V8Node::removeChildCallback):
  502. (WebCore::V8Node::appendChildCallback):
  503. * dom/Node.idl:
  504. 2010-05-22 Justin Schuh <jschuh@chromium.org>
  505. Reviewed by Nate Chapin.
  506. Remove custom bindings for NamedNodeMap.setNamedItem and .setNamedItemNS
  507. https://bugs.webkit.org/show_bug.cgi?id=39462
  508. Custom bindings are no longer needed because origin checks were moved
  509. out of the bindings by: http://trac.webkit.org/changeset/59866
  510. Behavior isn't changed and is covered by existing tests.
  511. * bindings/js/JSNamedNodeMapCustom.cpp:
  512. * bindings/v8/custom/V8NamedNodeMapCustom.cpp:
  513. * dom/NamedNodeMap.idl:
  514. 2010-05-22 Daniel Bates <dbates@rim.com>
  515. No review, rolling out 60017.
  516. http://trac.webkit.org/changeset/60017
  517. https://bugs.webkit.org/show_bug.cgi?id=39339
  518. Rolling out since this broke the build on the Windows and Qt bots.
  519. Need to look into this some more.
  520. * GNUmakefile.am:
  521. * WebCore.gypi:
  522. * WebCore.pro:
  523. * WebCore.vcproj/WebCore.vcproj:
  524. * WebCore.xcodeproj/project.pbxproj:
  525. * bindings/ScriptControllerBase.h: Removed.
  526. * bindings/js/ScriptController.h:
  527. (WebCore::):
  528. * bindings/v8/ScriptController.h:
  529. (WebCore::):
  530. 2010-05-22 Daniel Bates <dbates@rim.com>
  531. Reviewed by Darin Adler.
  532. Move enum ReasonForCallingCanExecuteScripts to header ScriptControllerBase.h
  533. https://bugs.webkit.org/show_bug.cgi?id=39339
  534. Moved the enum ReasonForCallingCanExecuteScripts and ShouldAllowXSS, which
  535. was defined in both the JSC and V8 ScriptController.h file, into a shared
  536. file called ScriptControllerBase.h.
  537. No functionality was changed, so no new tests.
  538. * GNUmakefile.am: Added file bindings/ScriptControllerBase.h.
  539. * WebCore.gypi: Ditto.
  540. * WebCore.pro: Ditto.
  541. * WebCore.vcproj/WebCore.vcproj: Ditto.
  542. * WebCore.xcodeproj/project.pbxproj: Ditto.
  543. * bindings/ScriptControllerBase.h: Added.
  544. (WebCore::):
  545. * bindings/js/ScriptController.h: #include ScriptControllerBase.h
  546. * bindings/v8/ScriptController.h: Ditto.
  547. 2010-05-22 Yong Li <yoli@rim.com>
  548. Reviewed by Darin Adler.
  549. Fix a crash when XHTMLMP is enabled. The frame pointer in Document
  550. ctor can be null.
  551. https://bugs.webkit.org/show_bug.cgi?id=39448
  552. No new tests because it is obvious and it must be reproduced with
  553. XHTMLMP enabled.
  554. * dom/Document.cpp:
  555. (WebCore::Document::Document):
  556. 2010-05-22 Daniel Bates <dbates@rim.com>
  557. Reviewed by Adam Barth.
  558. REGRESSION (r56295): Can't create a new wave on Google Wave
  559. https://bugs.webkit.org/show_bug.cgi?id=39249
  560. Instead of just using the source code portion of a JavaScript URL to
  561. detect an XSS attack, we now include the JavaScript URL schema. This
  562. reduces the chance of a false positive by providing additional context.
  563. Test: http/tests/security/xssAuditor/javascript-link-safe.html
  564. * WebCore.base.exp: Updated exported symbols as necessary.
  565. * bindings/ScriptControllerBase.cpp:
  566. (WebCore::ScriptController::executeScript): Added parameter shouldAllowXSS.
  567. (WebCore::ScriptController::executeIfJavaScriptURL): Ditto.
  568. * bindings/js/ScriptController.cpp:
  569. (WebCore::ScriptController::evaluateInWorld): Ditto.
  570. (WebCore::ScriptController::evaluate): Ditto.
  571. (WebCore::ScriptController::executeScriptInWorld): Ditto.
  572. * bindings/js/ScriptController.h: Added enum ShouldAllowXSS.
  573. (WebCore::):
  574. * bindings/v8/ScriptController.cpp:
  575. (WebCore::ScriptController::evaluate): Added parameter shouldAllowXSS.
  576. * bindings/v8/ScriptController.h: Added enum ShouldAllowXSS.
  577. (WebCore::):
  578. 2010-05-22 Jeremy Moskovich <jeremy@chromium.org>
  579. Reviewed by Eric Seidel.
  580. Document RenderObject::m_hasOverflowClip.
  581. https://bugs.webkit.org/show_bug.cgi?id=39425
  582. No new functionality, so no new tests.
  583. * rendering/RenderObject.h:
  584. 2010-05-22 Kwang Yul Seo <skyul@company100.net>
  585. Reviewed by Eric Seidel.
  586. [BREWMP] Add DragController
  587. https://bugs.webkit.org/show_bug.cgi?id=39400
  588. Add DragController for BREW MP.
  589. * page/brew/DragControllerBrew.cpp: Added.
  590. (WebCore::DragController::isCopyKeyDown):
  591. (WebCore::DragController::dragOperation):
  592. (WebCore::DragController::maxDragImageSize):
  593. (WebCore::DragController::cleanupAfterSystemDrag):
  594. 2010-05-22 Leandro Pereira <leandro@profusion.mobi>
  595. Reviewed by Eric Seidel.
  596. [EFL] Build fix (update source code lists).
  597. http://webkit.org/b/39235
  598. * CMakeLists.txt:
  599. 2010-05-22 Martin Robinson <mrobinson@igalia.com>
  600. Reviewed by Xan Lopez.
  601. [GTK] webkit_web_view_drag_end should call EventHandler::dragSourceEndedAt
  602. https://bugs.webkit.org/show_bug.cgi?id=39465
  603. Added a helper function for converting a GDK action bitmask into a DragOperation bitmask.
  604. No new tests as behavior has not changed.
  605. * platform/gtk/ClipboardUtilitiesGtk.cpp:
  606. (WebCore::gdkDragActionToDragOperation): Added.
  607. * platform/gtk/ClipboardUtilitiesGtk.h:
  608. 2010-05-22 Patrick Gansterer <paroga@paroga.com>
  609. Reviewed by Eric Seidel.
  610. [Qt] Cleanup SharedBuffer::createWithContentsOfFile
  611. https://bugs.webkit.org/show_bug.cgi?id=38917
  612. * platform/qt/SharedBufferQt.cpp:
  613. (WebCore::SharedBuffer::createWithContentsOfFile):
  614. 2010-05-22 Martin Robinson <mrobinson@igalia.com>
  615. Reviewed by Xan Lopez.
  616. [GTK] WebKit/gtk/WebCoreSupport/DragClientGtk::startDrag should use the Clipboard::sourceOperation
  617. https://bugs.webkit.org/show_bug.cgi?id=39459
  618. Add ClipboardUtilitiesGtk, a container for GTK+/WebCore clipboard utility functions.
  619. Initially add a function which converts a WebCore::DragOperation to a bitmask of
  620. GdkDragActions.
  621. No new tests, because behavior has not changed.
  622. * GNUmakefile.am:
  623. * platform/gtk/ClipboardUtilitiesGtk.cpp: Added.
  624. (WebCore::dragOperationToGdkDragActions): Added.
  625. * platform/gtk/ClipboardUtilitiesGtk.h: Added.
  626. 2010-05-21 Adam Barth <abarth@webkit.org>
  627. Reviewed by Eric Seidel.
  628. Parse attributes with HTML5 lexer
  629. https://bugs.webkit.org/show_bug.cgi?id=39520
  630. This patch lets the HTML5 lexer parse attributes, as in
  631. <div attr="foo"></div>. This patch is on the critical path to running
  632. the html5lib tests.
  633. * html/HTML5Lexer.cpp:
  634. (WebCore::HTML5Lexer::nextToken):
  635. * html/HTML5Lexer.h:
  636. * html/HTML5Token.h:
  637. (WebCore::HTML5Token::beginStartTag):
  638. (WebCore::HTML5Token::beginEndTag):
  639. (WebCore::HTML5Token::addNewAttribute):
  640. (WebCore::HTML5Token::appendToAttributeName):
  641. (WebCore::HTML5Token::appendToAttributeValue):
  642. (WebCore::HTML5Token::attributes):
  643. * html/HTML5Tokenizer.cpp:
  644. (WebCore::convertToOldStyle):
  645. 2010-05-21 Mark Rowe <mrowe@apple.com>
  646. 60,000!
  647. * ChangeLog: Point out revision 60,000.
  648. 2010-05-21 David Hyatt <hyatt@apple.com>
  649. Reviewed by Dan Bernstein.
  650. Preparation for support of column-span, which will be implemented using continuations. When a block splits an inline, a
  651. continuation chain is created of the form inline -> anonymous block -> inline. The middle block is always anonymous. When a column-span
  652. splits the blocks in a multi-column block, it will create a similar chain: block -> anonymous block -> block. Enclosing split elements
  653. directly connect to their continuations, so their chains will look like inline -> inline or block -> block.
  654. This patch changes the member variable in RenderBlock, m_inlineContinuation, to simply be m_continuation and loosens up the type on it
  655. to RenderBoxModelObject. This reflects the fact that the continuation of the block can now be another block and isn't always simply an inline.
  656. Some renames have been done for cleanup:
  657. isInlineContinuation -> isInlineElementContinuation to emphasize that this is a split non-anonymous element.
  658. inlineContinuation -> inlineElementContinuation, again to emphasize that the inline is not anonymous.
  659. Some new methods have been added:
  660. isBlockElementContinuation - just like isInlineElementContinuation but for split block elements.
  661. blockElementContinuation - just like inlineElementContinuation but for split block elements.
  662. virtualContinuation - A way to just walk an entire continuation chain of mixed types (blocks and inlines) using their common base class.
  663. isAnonymousBlockContinuation - A method for asking if a RenderBlock is an anonymous block in the continuation chain (the guy in the middle).
  664. Code that was specific to the anonymous blocks in a continuation chain has been patched to ask isAnonymousBlockContinuation, so that it won't
  665. incorrectly apply to non-anonymous blocks in the future. Where possible, code that really didn't care about being an inline vs. a block has
  666. been broadened so that it will work with block continuations as well.
  667. * accessibility/AccessibilityRenderObject.cpp:
  668. (WebCore::lastChildConsideringContinuation):
  669. (WebCore::startOfContinuations):
  670. (WebCore::endOfContinuations):
  671. (WebCore::childBeforeConsideringContinuations):
  672. (WebCore::firstChildIsInlineContinuation):
  673. (WebCore::AccessibilityRenderObject::nextSibling):
  674. (WebCore::AccessibilityRenderObject::anchorElement):
  675. * rendering/InlineFlowBox.cpp:
  676. (WebCore::InlineFlowBox::determineSpacingForFlowBoxes):
  677. (WebCore::InlineFlowBox::paint):
  678. * rendering/RenderBlock.cpp:
  679. (WebCore::RenderBlock::RenderBlock):
  680. (WebCore::RenderBlock::destroy):
  681. (WebCore::RenderBlock::removeLeftoverAnonymousBlock):
  682. (WebCore::RenderBlock::removeChild):
  683. (WebCore::RenderBlock::paintObject):
  684. (WebCore::RenderBlock::inlineElementContinuation):
  685. (WebCore::RenderBlock::blockElementContinuation):
  686. (WebCore::RenderBlock::addContinuationWithOutline):
  687. (WebCore::RenderBlock::absoluteRects):
  688. (WebCore::RenderBlock::absoluteQuads):
  689. (WebCore::RenderBlock::rectWithOutlineForRepaint):
  690. (WebCore::RenderBlock::hoverAncestor):
  691. (WebCore::RenderBlock::updateDragState):
  692. (WebCore::RenderBlock::outlineStyleForRepaint):
  693. (WebCore::RenderBlock::updateHitTestResult):
  694. (WebCore::RenderBlock::addFocusRingRects):
  695. * rendering/RenderBlock.h:
  696. (WebCore::RenderBlock::continuation):
  697. (WebCore::RenderBlock::setContinuation):
  698. (WebCore::RenderBlock::virtualContinuation):
  699. (WebCore::RenderBlock::isAnonymousBlockContinuation):
  700. * rendering/RenderInline.cpp:
  701. (WebCore::RenderInline::inlineElementContinuation):
  702. (WebCore::RenderInline::styleDidChange):
  703. (WebCore::nextContinuation):
  704. (WebCore::RenderInline::splitInlines):
  705. (WebCore::RenderInline::positionForPoint):
  706. (WebCore::RenderInline::updateHitTestResult):
  707. * rendering/RenderInline.h:
  708. (WebCore::RenderInline::setContinuation):
  709. (WebCore::RenderInline::virtualContinuation):
  710. * rendering/RenderObject.cpp:
  711. (WebCore::RenderObject::getTextDecorationColors):
  712. * rendering/RenderObject.h:
  713. (WebCore::RenderObject::isElementContinuation):
  714. (WebCore::RenderObject::isInlineElementContinuation):
  715. (WebCore::RenderObject::isBlockElementContinuation):
  716. (WebCore::RenderObject::virtualContinuation):
  717. * rendering/RenderObjectChildList.cpp:
  718. (WebCore::RenderObjectChildList::updateBeforeAfterContent):
  719. * rendering/RenderRubyBase.cpp:
  720. (WebCore::RenderRubyBase::moveBlockChildren):
  721. 2010-05-21 Mark Rowe <mrowe@apple.com>
  722. Reviewed by Oliver Hunt.
  723. Teach WebKit2 to build in the Production configuration.
  724. * Configurations/WebCore.xcconfig: Pass -allowable_client to the linker in all configurations.
  725. 2010-05-21 Chris Marrin <cmarrin@apple.com>
  726. Reviewed by Simon Fraser.
  727. Implement tiled compositing layers on Windows
  728. https://bugs.webkit.org/show_bug.cgi?id=39461
  729. This adds a tiling implementation similar (from a GraphicsLayer standpoint)
  730. to the one for Mac. But where Mac uses the existing CATiledLayer, I've had
  731. to implement one. If a layer is greater then 2k x 2k, I split it into an
  732. array of 512 x 512 tiles. These tiles are positioned in the correct place
  733. for the TiledLayer's content. When setNeedsDisplay is called on the TiledLayer
  734. the tiles' setNeedDisplay methods are called. Each tile clips and positions the
  735. CGContext appropriately and then renders the layer.
  736. I also got rid of all frame()/setFrame() API to reduce the number of calls to
  737. override for tiling.
  738. Much optimization is possible. Most significantly right now all tiles are
  739. rendered whether visible or not. We need to only render tiles that are
  740. currently visible.
  741. Tests: compositing/huge-layer-add-remove-child.html
  742. compositing/huge-layer-resize.html
  743. compositing/huge-layer-with-layer-children-resize.html
  744. compositing/huge-layer-with-layer-children.html
  745. compositing/huge-layer.html
  746. * WebCore.vcproj/WebCore.vcproj:
  747. * platform/graphics/win/GraphicsLayerCACF.cpp: Added tiling code similar to GraphicsLayerCA
  748. (WebCore::GraphicsLayerCACF::requiresTiledLayer):
  749. (WebCore::GraphicsLayerCACF::swapFromOrToTiledLayer):
  750. (WebCore::GraphicsLayerCACF::updateLayerSize):
  751. (WebCore::GraphicsLayerCACF::updateLayerDrawsContent):
  752. * platform/graphics/win/GraphicsLayerCACF.h:
  753. * platform/graphics/win/WKCACFLayer.cpp: Made some methods virtual so WebTiledLayer can override.
  754. Also added sublayer setting and manipulation methods needed for tiling
  755. (WebCore::WKCACFLayer::addSublayer):
  756. (WebCore::WKCACFLayer::internalInsertSublayer):
  757. (WebCore::WKCACFLayer::insertSublayerAboveLayer):
  758. (WebCore::WKCACFLayer::insertSublayerBelowLayer):
  759. (WebCore::WKCACFLayer::replaceSublayer):
  760. (WebCore::WKCACFLayer::internalSublayerCount):
  761. (WebCore::WKCACFLayer::adoptSublayers):
  762. (WebCore::WKCACFLayer::internalSublayerAtIndex):
  763. (WebCore::WKCACFLayer::internalIndexOfSublayer):
  764. (WebCore::WKCACFLayer::internalRemoveAllSublayers):
  765. (WebCore::WKCACFLayer::internalSetSublayers):
  766. (WebCore::WKCACFLayer::internalSetNeedsDisplay):
  767. (WebCore::WKCACFLayer::printLayer):
  768. * platform/graphics/win/WKCACFLayer.h:
  769. (WebCore::WKCACFLayer::setNeedsDisplay):
  770. (WebCore::WKCACFLayer::removeAllSublayers):
  771. (WebCore::WKCACFLayer::setSublayers):
  772. (WebCore::WKCACFLayer::insertSublayer):
  773. (WebCore::WKCACFLayer::sublayerCount):
  774. * platform/graphics/win/WKCACFLayerRenderer.cpp: Fix a crash exposed when tiling code is active
  775. (WebCore::WKCACFLayerRenderer::createRenderer):
  776. (WebCore::WKCACFLayerRenderer::destroyRenderer):
  777. (WebCore::WKCACFLayerRenderer::resize):
  778. * platform/graphics/win/WebLayer.cpp: Added. Split this out from GraphicsLayerCACF so it could be subclassed by WebTiledLayer
  779. (WebCore::WebLayer::internalSetNeedsDisplay):
  780. (WebCore::WebLayer::drawInContext):
  781. * platform/graphics/win/WebLayer.h: Added.
  782. (WebCore::WebLayer::create):
  783. (WebCore::WebLayer::WebLayer):
  784. * platform/graphics/win/WebTiledLayer.cpp: Added. Where all the tile construction and rendering is done
  785. (WebCore::WebTiledLayer::tileDisplayCallback):
  786. (WebCore::WebTiledLayer::create):
  787. (WebCore::WebTiledLayer::WebTiledLayer):
  788. (WebCore::WebTiledLayer::~WebTiledLayer):
  789. (WebCore::WebTiledLayer::setBounds):
  790. (WebCore::WebTiledLayer::internalSetNeedsDisplay):
  791. (WebCore::WebTiledLayer::internalSublayerCount):
  792. (WebCore::WebTiledLayer::internalRemoveAllSublayers):
  793. (WebCore::WebTiledLayer::internalSetSublayers):
  794. (WebCore::WebTiledLayer::internalInsertSublayer):
  795. (WebCore::WebTiledLayer::internalSublayerAtIndex):
  796. (WebCore::WebTiledLayer::internalIndexOfSublayer):
  797. (WebCore::WebTiledLayer::addTile):
  798. (WebCore::WebTiledLayer::removeTile):
  799. (WebCore::WebTiledLayer::tileAtIndex):
  800. (WebCore::WebTiledLayer::tileCount):
  801. (WebCore::WebTiledLayer::updateTiles):
  802. (WebCore::WebTiledLayer::drawTile):
  803. * platform/graphics/win/WebTiledLayer.h: Added.
  804. 2010-05-21 Geoffrey Garen <ggaren@apple.com>
  805. Reviewed by Darin Adler.
  806. Fixed a typo in my last commit: Reset m_inEvaluateInWorld to
  807. wasInEvaluateInWorld, rather than false, to avoid stomping the old value
  808. when it's true.
  809. https://bugs.webkit.org/show_bug.cgi?id=39518
  810. * bindings/js/ScriptController.cpp:
  811. (WebCore::ScriptController::evaluateInWorld):
  812. 2010-05-21 David Hyatt <hyatt@apple.com>
  813. Reviewed by Dan Bernstein.
  814. https://bugs.webkit.org/show_bug.cgi?id=39516, back end support for column-span property.
  815. * css/CSSComputedStyleDeclaration.cpp:
  816. (WebCore::):
  817. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  818. * css/CSSParser.cpp:
  819. (WebCore::CSSParser::parseValue):
  820. * css/CSSPropertyNames.in:
  821. * css/CSSStyleSelector.cpp:
  822. (WebCore::CSSStyleSelector::applyProperty):
  823. * rendering/style/RenderStyle.h:
  824. (WebCore::InheritedFlags::columnSpan):
  825. (WebCore::InheritedFlags::setColumnSpan):
  826. (WebCore::InheritedFlags::initialColumnSpan):
  827. * rendering/style/StyleMultiColData.cpp:
  828. (WebCore::StyleMultiColData::StyleMultiColData):
  829. (WebCore::StyleMultiColData::operator==):
  830. * rendering/style/StyleMultiColData.h:
  831. 2010-05-21 Jer Noble <jer.noble@apple.com>
  832. Reviewed by Anders Carlsson.
  833. Disable full-screen video on Windows
  834. https://bugs.webkit.org/show_bug.cgi?id=39506
  835. rdar://problem/8012516
  836. Disable full-screen video through MediaPlayerPrivateVisualContext since
  837. we no longer use GWorlds and QuickTime's built in full-screen support.
  838. Media layout tests updated with new expected results.
  839. * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
  840. (WebCore::MediaPlayerPrivateQuickTimeVisualContext::supportsFullscreen):
  841. 2010-05-21 Simon Fraser <simon.fraser@apple.com>
  842. Reviewed by Dan Bernstein.
  843. Avoid creating huge tiled layers with accelerated compositing
  844. https://bugs.webkit.org/show_bug.cgi?id=39515
  845. Constrain the size of huge composited layers, to avoid bad behavior. We only
  846. need to do this if we detect that we need a tiled layer, since we'll make tiled
  847. layers for elements over a certain size that need to draw already.
  848. Constrain the size by attempting to shrink the longer dimension first.
  849. Test: compositing/geometry/huge-layer.html
  850. * platform/graphics/mac/GraphicsLayerCA.h:
  851. * platform/graphics/mac/GraphicsLayerCA.mm:
  852. (WebCore::GraphicsLayerCA::updateLayerPosition):
  853. (WebCore::GraphicsLayerCA::updateLayerSize):
  854. (WebCore::GraphicsLayerCA::constrainedSize):
  855. 2010-05-21 David Hyatt <hyatt@apple.com>
  856. Reviewed by Dan Bernstein.
  857. https://bugs.webkit.org/show_bug.cgi?id=39420, :visited not working with background-color.
  858. Make the RenderStyle color accessors private. This forces callers to use visitedDependentColor
  859. instead (or to make the decision to become friends of the RenderStyle class in order to get access
  860. to the real style information).
  861. Modified history/self-is-visited.html to also test background colors.
  862. * WebCore.base.exp:
  863. * accessibility/AccessibilityTable.cpp:
  864. (WebCore::AccessibilityTable::isTableExposableThroughAccessibility):
  865. * accessibility/mac/AccessibilityObjectWrapper.mm:
  866. (AXAttributeStringSetStyle):
  867. * css/CSSComputedStyleDeclaration.cpp:
  868. (WebCore::CSSComputedStyleDeclaration::currentColorOrValidColor):
  869. * css/CSSComputedStyleDeclaration.h:
  870. * css/SVGCSSStyleSelector.cpp:
  871. (WebCore::colorFromSVGColorCSSValue):
  872. * editing/ApplyStyleCommand.cpp:
  873. (WebCore::ApplyStyleCommand::editingStyleAtPosition):
  874. (WebCore::prepareEditingStyleToApplyAt):
  875. (WebCore::removeStylesAddedByNode):
  876. (WebCore::fontColorChangesComputedStyle):
  877. (WebCore::ApplyStyleCommand::addInlineStyleIfNeeded):
  878. * editing/ApplyStyleCommand.h:
  879. (WebCore::):
  880. * editing/CompositeEditCommand.cpp:
  881. (WebCore::CompositeEditCommand::moveParagraphs):
  882. (WebCore::CompositeEditCommand::breakOutOfEmptyListItem):
  883. * editing/DeleteButtonController.cpp:
  884. (WebCore::isDeletableElement):
  885. * editing/DeleteSelectionCommand.cpp:
  886. (WebCore::DeleteSelectionCommand::saveTypingStyleState):
  887. * editing/InsertParagraphSeparatorCommand.cpp:
  888. (WebCore::InsertParagraphSeparatorCommand::calculateStyleBeforeInsertion):
  889. * editing/RemoveFormatCommand.cpp:
  890. (WebCore::RemoveFormatCommand::doApply):
  891. * editing/ReplaceSelectionCommand.cpp:
  892. (WebCore::handleStyleSpansBeforeInsertion):
  893. (WebCore::ReplaceSelectionCommand::handleStyleSpans):
  894. (WebCore::ReplaceSelectionCommand::doApply):
  895. * editing/SelectionController.cpp:
  896. (WebCore::SelectionController::paintCaret):
  897. * editing/markup.cpp:
  898. (WebCore::createMarkup):
  899. * page/animation/AnimationBase.cpp:
  900. (WebCore::AnimationBase::ensurePropertyMap):
  901. * page/animation/AnimationBase.h:
  902. * page/mac/FrameMac.mm:
  903. (WebCore::Frame::fontAttributesForSelectionStart):
  904. * rendering/EllipsisBox.cpp:
  905. (WebCore::EllipsisBox::paint):
  906. (WebCore::EllipsisBox::paintSelection):
  907. * rendering/InlineTextBox.cpp:
  908. (WebCore::InlineTextBox::paint):
  909. * rendering/RenderBox.cpp:
  910. (WebCore::RenderBox::styleDidChange):
  911. (WebCore::RenderBox::paintRootBoxDecorations):
  912. (WebCore::RenderBox::paintBoxDecorationsWithSize):
  913. * rendering/RenderBoxModelObject.cpp:
  914. (WebCore::RenderBoxModelObject::paintBoxShadow):
  915. * rendering/RenderFieldset.cpp:
  916. (WebCore::RenderFieldset::paintBoxDecorations):
  917. * rendering/RenderFileUploadControl.cpp:
  918. (WebCore::RenderFileUploadControl::paintObject):
  919. * rendering/RenderFrameSet.cpp:
  920. (WebCore::RenderFrameSet::paintColumnBorder):
  921. (WebCore::RenderFrameSet::paintRowBorder):
  922. * rendering/RenderImage.cpp:
  923. (WebCore::RenderImage::paintReplaced):
  924. * rendering/RenderLayerBacking.cpp:
  925. (WebCore::RenderLayerBacking::rendererBackgroundColor):
  926. * rendering/RenderLayerBacking.h:
  927. * rendering/RenderListBox.cpp:
  928. (WebCore::RenderListBox::paintItemForeground):
  929. (WebCore::RenderListBox::paintItemBackground):
  930. * rendering/RenderListMarker.cpp:
  931. (WebCore::RenderListMarker::paint):
  932. * rendering/RenderMenuList.cpp:
  933. (WebCore::RenderMenuList::itemStyle):
  934. (WebCore::RenderMenuList::itemBackgroundColor):
  935. (WebCore::RenderMenuList::menuStyle):
  936. * rendering/RenderObject.cpp:
  937. (WebCore::RenderObject::selectionBackgroundColor):
  938. (WebCore::RenderObject::selectionForegroundColor):
  939. * rendering/RenderSVGResource.cpp:
  940. (WebCore::RenderSVGResource::adjustColorForPseudoRules):
  941. (WebCore::RenderSVGResource::fillPaintingResource):
  942. (WebCore::RenderSVGResource::strokePaintingResource):
  943. * rendering/RenderSVGResource.h:
  944. * rendering/RenderTable.cpp:
  945. (WebCore::RenderTable::paintBoxDecorations):
  946. * rendering/RenderTable.h:
  947. (WebCore::RenderTable::bgColor):
  948. * rendering/RenderTableCell.cpp:
  949. (WebCore::RenderTableCell::paintBackgroundsBehindCell):
  950. * rendering/RenderTextControl.cpp:
  951. (WebCore::RenderTextControl::adjustInnerTextStyle):
  952. * rendering/RenderTextControlSingleLine.cpp:
  953. (WebCore::RenderTextControlSingleLine::menuStyle):
  954. * rendering/RenderTheme.cpp:
  955. (WebCore::RenderTheme::isControlStyled):
  956. * rendering/RenderThemeMac.mm:
  957. (WebCore::RenderThemeMac::paintMenuListButton):
  958. * rendering/RenderTreeAsText.cpp:
  959. (WebCore::RenderTreeAsText::writeRenderObject):
  960. (WebCore::write):
  961. * rendering/RenderTreeAsText.h:
  962. * rendering/SVGInlineTextBox.cpp:
  963. (WebCore::SVGInlineTextBox::paintSelection):
  964. * rendering/SVGRenderTreeAsText.cpp:
  965. (WebCore::writeRenderSVGTextBox):
  966. * rendering/style/RenderStyle.cpp:
  967. (WebCore::RenderStyle::colorIncludingFallback):
  968. (WebCore::RenderStyle::visitedDependentColor):
  969. * rendering/style/RenderStyle.h:
  970. (WebCore::):
  971. (WebCore::InheritedFlags::hasBackground):
  972. (WebCore::InheritedFlags::borderLeftStyle):
  973. (WebCore::InheritedFlags::borderRightStyle):
  974. (WebCore::InheritedFlags::borderTopStyle):
  975. (WebCore::InheritedFlags::borderBottomStyle):
  976. (WebCore::InheritedFlags::textShadow):
  977. (WebCore::InheritedFlags::textStrokeWidth):
  978. (WebCore::InheritedFlags::hasNormalColumnGap):
  979. (WebCore::InheritedFlags::borderLeftColor):
  980. (WebCore::InheritedFlags::borderRightColor):
  981. (WebCore::InheritedFlags::borderTopColor):
  982. (WebCore::InheritedFlags::borderBottomColor):
  983. (WebCore::InheritedFlags::backgroundColor):
  984. (WebCore::InheritedFlags::color):
  985. (WebCore::InheritedFlags::columnRuleColor):
  986. (WebCore::InheritedFlags::outlineColor):
  987. (WebCore::InheritedFlags::textFillColor):
  988. (WebCore::InheritedFlags::textStrokeColor):
  989. * svg/SVGAnimationElement.cpp:
  990. (WebCore::adjustForCurrentColor):
  991. 2010-05-21 Beth Dakin <bdakin@apple.com>
  992. Reviewed by Darin Adler.
  993. Fix for <rdar://problem/8009118> Crash in WebCore::toAlphabetic()
  994. while running MangleMe
  995. -and corresponding-
  996. https://bugs.webkit.org/show_bug.cgi?id=39508
  997. The math was slightly off here, and we wound up trying to access an
  998. array at index -1 in some cases. We need to decrement numberShadow
  999. rather than subtracting one from the result of the modulo
  1000. operation.
  1001. * rendering/RenderListMarker.cpp:
  1002. (WebCore::toAlphabeticOrNumeric):
  1003. 2010-05-21 Oliver Hunt <oliver@apple.com>
  1004. Qt buildfix #2
  1005. * bridge/qt/qt_runtime.cpp:
  1006. (JSC::Bindings::convertQVariantToValue):
  1007. (JSC::Bindings::QtRuntimeMethod::QtRuntimeMethod):
  1008. 2010-05-21 Oliver Hunt <oliver@apple.com>
  1009. Qt buildfix #1
  1010. * bridge/qt/qt_instance.cpp:
  1011. (JSC::Bindings::QtRuntimeObject::QtRuntimeObject):
  1012. (JSC::Bindings::QtInstance::newRuntimeObject):
  1013. (JSC::Bindings::QtInstance::getMethod):
  1014. * bridge/qt/qt_pixmapruntime.cpp:
  1015. (JSC::Bindings::QtPixmapRuntimeObject::QtPixmapRuntimeObject):
  1016. (JSC::Bindings::QtPixmapInstance::getMethod):
  1017. (JSC::Bindings::QtPixmapInstance::createRuntimeObject):
  1018. 2010-05-21 Geoffrey Garen <ggaren@apple.com>
  1019. Reviewed by Oliver Hunt.
  1020. Fixed failure seen on buildbot (due to flaky test).
  1021. Don't report an exception in a nested script evaluation -- just pass the
  1022. exception on to our caller. Our caller can decide to report the exception,
  1023. if it fully propagates -- but we don't want to report an exception that's
  1024. going to get caught.
  1025. * bindings/js/ScriptController.cpp:
  1026. (WebCore::ScriptController::ScriptController):
  1027. (WebCore::ScriptController::evaluateInWorld):
  1028. * bindings/js/ScriptController.h:
  1029. 2010-05-21 Oliver Hunt <oliver@apple.com>
  1030. Reviewed by Geoffrey Garen.
  1031. All callable objects should have a global object reference
  1032. https://bugs.webkit.org/show_bug.cgi?id=39495
  1033. Update the bindings generator to give prototype objects a
  1034. global object. Update all the manually written JSObject
  1035. subclasses to pass a global object.
  1036. * ForwardingHeaders/runtime/JSObjectWithGlobalObject.h: Added.
  1037. * WebCore.PluginHostProcess.exp:
  1038. * bindings/js/JSDOMBinding.cpp:
  1039. (WebCore::objectToStringFunctionGetter):
  1040. * bindings/js/JSDOMWindowCustom.cpp:
  1041. (WebCore::nonCachingStaticFunctionGetter):
  1042. * bindings/js/JSDOMWindowShell.cpp:
  1043. (WebCore::JSDOMWindowShell::setWindow):
  1044. * bindings/js/JSHistoryCustom.cpp:
  1045. (WebCore::nonCachingStaticBackFunctionGetter):
  1046. (WebCore::nonCachingStaticForwardFunctionGetter):
  1047. (WebCore::nonCachingStaticGoFunctionGetter):
  1048. * bindings/js/JSLocationCustom.cpp:
  1049. (WebCore::nonCachingStaticReplaceFunctionGetter):
  1050. (WebCore::nonCachingStaticReloadFunctionGetter):
  1051. (WebCore::nonCachingStaticAssignFunctionGetter):
  1052. * bindings/js/WorkerScriptController.cpp:
  1053. (WebCore::WorkerScriptController::initScript):
  1054. * bindings/scripts/CodeGeneratorJS.pm:
  1055. * bridge/c/CRuntimeObject.cpp:
  1056. (JSC::Bindings::CRuntimeObject::CRuntimeObject):
  1057. * bridge/c/CRuntimeObject.h:
  1058. * bridge/c/c_instance.cpp:
  1059. (JSC::Bindings::CInstance::newRuntimeObject):
  1060. (JSC::Bindings::CRuntimeMethod::CRuntimeMethod):
  1061. (JSC::Bindings::CInstance::getMethod):
  1062. * bridge/jni/jsc/JavaInstanceJSC.cpp:
  1063. (JavaInstance::newRuntimeObject):
  1064. (JavaRuntimeMethod::JavaRuntimeMethod):
  1065. (JavaInstance::getMethod):
  1066. * bridge/jni/jsc/JavaRuntimeObject.cpp:
  1067. (JSC::Bindings::JavaRuntimeObject::JavaRuntimeObject):
  1068. * bridge/jni/jsc/JavaRuntimeObject.h:
  1069. * bridge/jsc/BridgeJSC.cpp:
  1070. (JSC::Bindings::Instance::newRuntimeObject):
  1071. * bridge/objc/ObjCRuntimeObject.h:
  1072. * bridge/objc/ObjCRuntimeObject.mm:
  1073. (JSC::Bindings::ObjCRuntimeObject::ObjCRuntimeObject):
  1074. * bridge/objc/objc_class.mm:
  1075. (JSC::Bindings::ObjcClass::fallbackObject):
  1076. * bridge/objc/objc_instance.mm:
  1077. (ObjcInstance::newRuntimeObject):
  1078. (ObjCRuntimeMethod::ObjCRuntimeMethod):
  1079. (ObjcInstance::getMethod):
  1080. * bridge/objc/objc_runtime.h:
  1081. * bridge/objc/objc_runtime.mm:
  1082. (JSC::Bindings::ObjcFallbackObjectImp::ObjcFallbackObjectImp):
  1083. * bridge/runtime_method.cpp:
  1084. (JSC::RuntimeMethod::RuntimeMethod):
  1085. * bridge/runtime_method.h:
  1086. * bridge/runtime_object.cpp:
  1087. (JSC::Bindings::RuntimeObject::RuntimeObject):
  1088. * bridge/runtime_object.h:
  1089. 2010-05-21 Steve Block <steveblock@google.com>
  1090. Reviewed by Jeremy Orlow.
  1091. Add DeviceOrientation and DeviceOrientationClient
  1092. https://bugs.webkit.org/show_bug.cgi?id=39479
  1093. The page owns a DeviceOrientation object, which has a pointer to a
  1094. DeviceOrientationClient object provided by the embedder. The
  1095. DeviceOrientation object forwards requests to start listening to
  1096. orientation to the client, and when updates are available, fires a
  1097. DeviceOrientationEvent on the window object.
  1098. No new tests are possible at this time as the implementation is
  1099. incomplete. Future patches will add LayoutTestController methods
  1100. to provide mock orientation events to test this.
  1101. * Android.mk:
  1102. * CMakeLists.txt:
  1103. * GNUmakefile.am:
  1104. * WebCore.base.exp:
  1105. * WebCore.gypi:
  1106. * WebCore.pro:
  1107. * WebCore.vcproj/WebCore.vcproj
  1108. * WebCore.xcodeproj/project.pbxproj:
  1109. * dom/DeviceOrientation.cpp: Added.
  1110. (WebCore::DeviceOrientation::DeviceOrientation):
  1111. (WebCore::DeviceOrientation::onDeviceOrientationChange):
  1112. * dom/DeviceOrientation.h: Added.
  1113. * dom/DeviceOrientationClient.h: Added.
  1114. (WebCore::DeviceOrientationClient::~DeviceOrientationClient):
  1115. * page/Page.cpp:
  1116. (WebCore::Page::Page):
  1117. * page/Page.h:
  1118. (WebCore::Page::deviceOrientation):
  1119. * svg/graphics/SVGImage.cpp:
  1120. (WebCore::SVGImage::dataChanged):
  1121. 2010-05-21 Tasuku Suzuki <tasuku.suzuki@nokia.com>
  1122. Reviewed by Simon Hausmann.
  1123. [Qt] Fix compilation with QT_NO_GRAPHICSEFFECT
  1124. https://bugs.webkit.org/show_bug.cgi?id=38324
  1125. * platform/graphics/qt/GraphicsLayerQt.cpp:
  1126. (WebCore::GraphicsLayerQtImpl::flushChanges):
  1127. 2010-05-21 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
  1128. Reviewed by Darin Fisher.
  1129. Fix the HistoryController::pushState.
  1130. It should be possible to call the pushState method from
  1131. the first page in a window.
  1132. history.pushState doesn't work for the first page in a window.
  1133. https://bugs.webkit.org/show_bug.cgi?id=39418
  1134. * loader/HistoryController.cpp:
  1135. (WebCore::HistoryController::pushState):
  1136. 2010-05-21 Victoria Kirst <vrk@google.com>
  1137. Reviewed by David Levin.
  1138. [chromium] Fix slider status when buffering
  1139. https://bugs.webkit.org/show_bug.cgi?id=39370
  1140. Adjusts the buffering bar to be aligned with the slider thumb.
  1141. No new tests. (Covered by existing layout tests.)
  1142. * rendering/RenderMediaControlsChromium.cpp:
  1143. (WebCore::paintMediaSlider):
  1144. Added logic to align the buffering bar with the thumb. Half of the
  1145. thumb image is transparent, so the buffer bar is adjusted to fill in
  1146. this gap.
  1147. 2010-05-21 Jesus Sanchez-Palencia <jesus@webkit.org>
  1148. Reviewed by Eric Seidel.
  1149. Extra processesArguments() calls in Document::processViewport
  1150. https://bugs.webkit.org/show_bug.cgi?id=39358
  1151. The viewport arguments are only needed when there is a frame->page(),
  1152. therefore we don't need to always call processArguments().
  1153. * dom/Document.cpp:
  1154. (WebCore::Document::processViewport):
  1155. 2010-05-17 Philippe Normand <pnormand@igalia.com>
  1156. Reviewed by Eric Carlson.
  1157. [GStreamer] video painting support on mac port
  1158. https://bugs.webkit.org/show_bug.cgi?id=39206
  1159. ImageGStreamer support for mac port. A CG Image is created using
  1160. the GstBuffer data. It can then be painted by the gstreamer player.
  1161. * platform/graphics/gstreamer/ImageGStreamer.h:
  1162. * platform/graphics/gstreamer/ImageGStreamerCG.mm: Added.
  1163. (ImageGStreamer::createImage):
  1164. (ImageGStreamer::ImageGStreamer):
  1165. (ImageGStreamer::~ImageGStreamer):
  1166. 2010-05-21 Robin Cao <robin.cao@torchmobile.com.cn>
  1167. Reviewed by Eric Seidel.
  1168. animateTransform does not work on gradientTransform
  1169. https://bugs.webkit.org/show_bug.cgi?id=38115
  1170. Tests: svg/animations/animate-gradient-transform.html
  1171. * svg/SVGAnimateTransformElement.cpp:
  1172. (WebCore::SVGAnimateTransformElement::hasValidTarget): Check if the target element is gradient.
  1173. (WebCore::transformListFor): Ditto.
  1174. (WebCore::SVGAnimateTransformElement::resetToBaseValue): Ditto.
  1175. (WebCore::SVGAnimateTransformElement::applyResultsToTarget): Ditto.
  1176. 2010-05-21 Young Han Lee <joybro@company100.net>
  1177. Reviewed by Eric Seidel.
  1178. Fix guard around DatabaseSync
  1179. https://bugs.webkit.org/show_bug.cgi?id=38897
  1180. * storage/DatabaseSync.cpp:
  1181. 2010-05-21 Simon Hausmann <simon.hausmann@nokia.com>
  1182. [Qt] Prospective Qt/Mac build fix
  1183. My cpp is paranoid and doesn't like #if Q_WS_MAC:
  1184. error: #if with no expression
  1185. * page/qt/EventHandlerQt.cpp:
  1186. 2010-05-21 Lucas De Marchi <lucas.demarchi@profusion.mobi>
  1187. Reviewed by Eric Seidel.
  1188. [EFL] Update Localized Strings. Remove markers from strings
  1189. since we are not using them and they are only polluting output.
  1190. https://bugs.webkit.org/show_bug.cgi?id=39371
  1191. No new tests required.
  1192. * platform/efl/LocalizedStringsEfl.cpp:
  1193. (WebCore::contextMenuItemTagOpenLinkInNewWindow):
  1194. (WebCore::contextMenuItemTagDownloadLinkToDisk):
  1195. (WebCore::contextMenuItemTagCopyLinkToClipboard):
  1196. (WebCore::contextMenuItemTagOpenImageInNewWindow):
  1197. (WebCore::contextMenuItemTagDownloadImageToDisk):
  1198. (WebCore::contextMenuItemTagCopyImageToClipboard):
  1199. (WebCore::contextMenuItemTagOpenFrameInNewWindow):
  1200. (WebCore::contextMenuItemTagSelectAll):
  1201. (WebCore::contextMenuItemTagUnicode):
  1202. (WebCore::contextMenuItemTagInputMethods):
  1203. (WebCore::contextMenuItemTagGoBack):
  1204. (WebCore::contextMenuItemTagGoForward):
  1205. (WebCore::contextMenuItemTagReload):
  1206. (WebCore::contextMenuItemTagIgnoreSpelling):
  1207. (WebCore::contextMenuItemTagLearnSpelling):
  1208. (WebCore::contextMenuItemTagSearchWeb):
  1209. (WebCore::contextMenuItemTagLookUpInDictionary):
  1210. (WebCore::contextMenuItemTagOpenLink):
  1211. (WebCore::contextMenuItemTagIgnoreGrammar):
  1212. (WebCore::contextMenuItemTagSpellingMenu):
  1213. (WebCore::contextMenuItemTagCheckSpelling):
  1214. (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
  1215. (WebCore::contextMenuItemTagFontMenu):
  1216. (WebCore::contextMenuItemTagOutline):
  1217. (WebCore::contextMenuItemTagInspectElement):
  1218. (WebCore::searchMenuClearRecentSearchesText):
  1219. (WebCore::missingPluginText): Add missing message.
  1220. (WebCore::multipleFileUploadText):
  1221. (WebCore::crashedPluginText):
  1222. 2010-05-21 Lucas De Marchi <lucas.demarchi@profusion.mobi>
  1223. Reviewed by Eric Seidel.
  1224. [EF] Fix support for focus ring.
  1225. https://bugs.webkit.org/show_bug.cgi?id=39387
  1226. No new tests required.
  1227. * html/HTMLAnchorElement.cpp: Add EFL to #ifdef
  1228. (WebCore::HTMLAnchorElement::isMouseFocusable):
  1229. 2010-05-21 Kwang Yul Seo <skyul@company100.net>
  1230. Reviewed by Eric Seidel.
  1231. [BREWMP] Add missing localized string symbols.
  1232. https://bugs.webkit.org/show_bug.cgi?id=39394
  1233. Add missingPluginText and crashedPluginText.
  1234. * platform/brew/LocalizedStringsBrew.cpp:
  1235. (WebCore::missingPluginText):
  1236. (WebCore::crashedPluginText):
  1237. 2010-05-21 Steve Block <steveblock@google.com>
  1238. Reviewed by Alexey Proskuryakov.
  1239. Calls to CallJNIMethodIDA() in JavaInstance::invokeMethod() are required on Android
  1240. https://bugs.webkit.org/show_bug.cgi?id=39426
  1241. This code path has always been used by Android, but was guarded with
  1242. BUILDING_ON_TIGER in http://trac.webkit.org/changeset/55054, thus
  1243. breaking the Android build.
  1244. No new tests, build fix only.
  1245. * bridge/jni/jsc/JavaInstanceJSC.cpp:
  1246. (JavaInstance::invokeMethod):
  1247. 2010-05-20 Tony Chang <tony@chromium.org>
  1248. Reviewed by Kent Tamura.
  1249. escape link text when copying or dragging links on win or chromium
  1250. https://bugs.webkit.org/show_bug.cgi?id=39413
  1251. * editing/markup.cpp:
  1252. (WebCore::urlToMarkup):
  1253. * editing/markup.h:
  1254. * platform/chromium/ClipboardUtilitiesChromium.cpp:
  1255. * platform/chromium/ClipboardUtilitiesChromium.h:
  1256. * platform/win/ClipboardUtilitiesWin.cpp:
  1257. * platform/win/ClipboardUtilitiesWin.h:
  1258. 2010-05-18 Philippe Normand <pnormand@igalia.com>
  1259. Reviewed by Eric Carlson.
  1260. [GStreamer] PlatformMedia support
  1261. https://bugs.webkit.org/show_bug.cgi?id=39300
  1262. Basic support for PlatformMedia in the gst player. The
  1263. PlatformMedia object contains a GStreamerGWorld object. That
  1264. object is empty for now. XOverlay features will be added later
  1265. on for easy review sake.
  1266. * GNUmakefile.am:
  1267. * platform/graphics/MediaPlayer.h:
  1268. (WebCore::PlatformMedia::):
  1269. * platform/graphics/gstreamer/GStreamerGWorld.cpp: Added.
  1270. (WebCore::GStreamerGWorld::createGWorld):
  1271. (WebCore::GStreamerGWorld::GStreamerGWorld):
  1272. (WebCore::GStreamerGWorld::~GStreamerGWorld):
  1273. * platform/graphics/gstreamer/GStreamerGWorld.h: Added.
  1274. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  1275. (WebCore::MediaPlayerPrivateGStreamer::platformMedia):
  1276. (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin):
  1277. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
  1278. 2010-05-20 Kwang Yul Seo <skyul@company100.net>
  1279. Reviewed by Eric Seidel.
  1280. [BREWMP] Add dummy SSLKeyGenerator
  1281. https://bugs.webkit.org/show_bug.cgi?id=39403
  1282. Add dummy implementation of SSLKeyGenerator.
  1283. * platform/brew/SSLKeyGeneratorBrew.cpp: Added.
  1284. (WebCore::WebCore::getSupportedKeySizes):
  1285. (WebCore::WebCore::signedPublicKeyAndChallengeString):
  1286. 2010-05-20 Mark Rowe <mrowe@apple.com>
  1287. Rubber-stamped by Dan Bernstein.
  1288. <rdar://problem/7848154> Remove the dependency on Foundation's private __COCOA_FORMAL_PROTOCOLS_2__ define.
  1289. * platform/mac/EmptyProtocolDefinitions.h:
  1290. 2010-05-20 Kwang Yul Seo <skyul@company100.net>
  1291. Reviewed by Eric Seidel.
  1292. [BREWMP] Add Editor
  1293. https://bugs.webkit.org/show_bug.cgi?id=39404
  1294. Implement Editor::newGeneralClipboard.
  1295. * editing/brew/EditorBrew.cpp: Added.
  1296. (WebCore::Editor::newGeneralClipboard):
  1297. 2010-05-20 Simon Fraser <simon.fraser@apple.com>
  1298. Reviewed by Adam Roben.
  1299. Avoid flushing CA layers when a layout is pending
  1300. https://bugs.webkit.org/show_bug.cgi?id=39463
  1301. <rdar://problem/7999463>
  1302. Avoid rendering the compositing layers to the screen if there's a layout pending,
  1303. since the layer tree not in a state that should be presented to the user.
  1304. This fixes flashes in some types of content that dynamically add and remove layers.
  1305. Do this by adding a WKCACFLayerRendererClient for WKCACFLayerRenderer, which it can
  1306. call through to ask whether now is a good time to render. If not, it schedules
  1307. another render soon.
  1308. * platform/graphics/win/WKCACFLayerRenderer.h:
  1309. (WebCore::WKCACFLayerRendererClient::~WKCACFLayerRendererClient):
  1310. * platform/graphics/win/WKCACFLayerRenderer.cpp:
  1311. (WebCore::WKCACFLayerRenderer::acceleratedCompositingAvailable):
  1312. (WebCore::WKCACFLayerRenderer::create):
  1313. (WebCore::WKCACFLayerRenderer::WKCACFLayerRenderer):
  1314. (WebCore::WKCACFLayerRenderer::render):
  1315. 2010-05-20 Kwang Yul Seo <skyul@company100.net>
  1316. Reviewed by Eric Seidel.
  1317. [BREWMP] Don't include CoreFoundation.h when building for BREW MP
  1318. https://bugs.webkit.org/show_bug.cgi?id=39405
  1319. Add !defined(BUILDING_BREWMP__) guard for CoreFoundation.h.
  1320. * WebCorePrefix.h:
  1321. 2010-05-20 Kwang Yul Seo <skyul@company100.net>
  1322. Reviewed by Eric Seidel.
  1323. [BREWMP] Add ScrollTheme
  1324. https://bugs.webkit.org/show_bug.cgi?id=39406
  1325. As BREW MP always uses frame flattening, there is no need to render scorllbars.
  1326. Use the default scrollbar theme with thickness 0.
  1327. * platform/brew/ScrollbarThemeBrew.cpp: Added.
  1328. (WebCore::ScrollbarTheme::nativeTheme):
  1329. (WebCore::ScrollbarThemeBrew::~ScrollbarThemeBrew):
  1330. * platform/brew/ScrollbarThemeBrew.h: Added.
  1331. 2010-05-20 Jon Honeycutt <jhoneycutt@apple.com>
  1332. REGRESSION(r53637): DivX plug-in fails to start until window is resized
  1333. https://bugs.webkit.org/show_bug.cgi?id=39457
  1334. <rdar://problem/8006102>
  1335. Before r53637, we called Widget::move() (which caused us to call
  1336. NPP_SetWindow) before painting a plug-in. r53637 removed the call to
  1337. Widget::move(), and we end up never calling NPP_SetWindow for plug-ins
  1338. with the "DeferFirstSetWindowCall" quirk, including the DivX plug-in.
  1339. Reviewed by Simon Fraser.
  1340. * manual-tests/divx-plugin-fails-to-draw.html: Added.
  1341. * plugins/PluginView.cpp:
  1342. (WebCore::PluginView::PluginView):
  1343. Initialize new member to false.
  1344. * plugins/PluginView.h:
  1345. Added new member.
  1346. * plugins/win/PluginViewWin.cpp:
  1347. (WebCore::PluginView::paint):
  1348. Call setNPWindowRect() before painting to ensure that NPP_SetWindow gets
  1349. called.
  1350. (WebCore::PluginView::setNPWindowRect):
  1351. Set m_haveCalledSetWindow.
  1352. 2010-05-20 Fumitoshi Ukai <ukai@chromium.org>
  1353. Reviewed by Alexey Proskuryakov.
  1354. WebSocket handshake incompatible change in draft-hixie-thewebsocketprotocol-76
  1355. https://bugs.webkit.org/show_bug.cgi?id=35572
  1356. WebSocket opening handshake is changed. New protocol draft could be found at http://www.whatwg.org/specs/web-socket-protocol/
  1357. It requires https://bugs.webkit.org/show_bug.cgi?id=38034 to pass websocket tests.
  1358. * websockets/WebSocketHandshake.cpp:
  1359. (WebCore::extractResponseCode):
  1360. add lineLength parameter to return length of status line.
  1361. (WebCore::hostName): Added.
  1362. (WebCore::generateSecWebSocketKey): Added.
  1363. (WebCore::generateKey3): Added.
  1364. (WebCore::setChallengeNumber): Added.
  1365. (WebCore::generateChallengeResponseExpected): Added.
  1366. (WebCore::WebSocketHandshake::WebSocketHandshake):
  1367. generate challenge response key and expected data.
  1368. (WebCore::WebSocketHandshake::clientLocation):
  1369. use hostName.
  1370. (WebCore::WebSocketHandshake::clientHandshakeMessage):
  1371. changed for draft 76 spec.
  1372. (WebCore::WebSocketHandshake::clientHandshakeRequest):
  1373. (WebCore::WebSocketHandshake::readServerHandshake):
  1374. changed for draft 76 spec.
  1375. m_mode is managed in this method.
  1376. (WebCore::WebSocketHandshake::readHTTPHeaders):
  1377. change error log messages.
  1378. (WebCore::WebSocketHandshake::processHeaders):
  1379. chagned for draft 76 spec.
  1380. (WebCore::WebSocketHandshake::checkResponseHeaders):
  1381. return boolean whether response header is ok or not and not change m_mode in it.
  1382. * websockets/WebSocketHandshake.h:
  1383. 2010-05-20 Adam Roben <aroben@apple.com>
  1384. Stop leaking all CACFContexts
  1385. Fixes <http://webkit.org/b/39466> <rdar://problem/8007141>.
  1386. Reviewed by Simon Fraser.
  1387. * platform/graphics/win/WKCACFContextFlusher.cpp:
  1388. (WebCore::WKCACFContextFlusher::addContext): Only retain the context
  1389. when we first add it to the m_contexts set. Otherwise we'll retain the
  1390. same context multiple times, causing it to leak.
  1391. 2010-05-20 Young Han Lee <joybro@company100.net>
  1392. Reviewed by Darin Adler.
  1393. Create filenameFromString for all ports except GTK and EFL.
  1394. https://bugs.webkit.org/show_bug.cgi?id=39348
  1395. * platform/FileSystem.cpp: Added.
  1396. (WebCore::filenameFromString):
  1397. * platform/FileSystem.h:
  1398. 2010-05-20 Young Han Lee <joybro@company100.net>
  1399. Reviewed by Darin Adler.
  1400. Port SharedBuffer to POSIX.
  1401. https://bugs.webkit.org/show_bug.cgi?id=39283
  1402. * platform/posix/SharedBufferPOSIX.cpp: Added.
  1403. (WebCore::SharedBuffer::createWithContentsOfFile):
  1404. 2010-05-20 Zhenyao Mo <zmo@google.com>
  1405. Reviewed by Dimitri Glazkov.
  1406. Map RGBA4/RGB5_A1 to RGBA and RGB565 to RGB in RenderbufferStorage
  1407. https://bugs.webkit.org/show_bug.cgi?id=39077
  1408. * platform/graphics/mac/GraphicsContext3DMac.cpp:
  1409. (WebCore::GraphicsContext3D::renderbufferStorage): Mapping the enums.
  1410. 2010-05-20 Dan Bernstein <mitz@apple.com>
  1411. Reviewed by Dave Hyatt.
  1412. <rdar://problem/8007953> Textarea using custom font appears blank
  1413. Test: fast/css/font-face-in-shadow-DOM.html
  1414. When a remote font is loaded, CSSFontSelector forces a style recalc, which replaces all
  1415. RenderSyles that have FontFallbackLists referencing the placeholder font with fresh
  1416. RenderStyles. However, it does not descend into shadow DOM trees, so those may end up with
  1417. styles that still reference the placeholder font.
  1418. The fix is to add RenderObject::requiresForcedStyleRecalcPropagation() and have it return
  1419. true from renderers that maintain shadow DOM trees or otherwise keep their own RenderStyles.
  1420. * dom/Element.cpp:
  1421. (WebCore::Element::recalcStyle): Check if forced style recalc needs to propagated.
  1422. * rendering/RenderButton.h:
  1423. (WebCore::RenderButton::requiresForcedStyleRecalcPropagation):
  1424. * rendering/RenderDataGrid.h:
  1425. (WebCore::RenderDataGrid::requiresForcedStyleRecalcPropagation):
  1426. * rendering/RenderFileUploadControl.h:
  1427. (WebCore::RenderFileUploadControl::requiresForcedStyleRecalcPropagation):
  1428. * rendering/RenderListItem.h:
  1429. (WebCore::RenderListItem::requiresForcedStyleRecalcPropagation):
  1430. * rendering/RenderMedia.h:
  1431. (WebCore::RenderMedia::requiresForcedStyleRecalcPropagation):
  1432. * rendering/RenderMenuList.h:
  1433. (WebCore::RenderMenuList::RenderMenuList::requiresForcedStyleRecalcPropagation):
  1434. * rendering/RenderObject.h:
  1435. (WebCore::RenderObject::requiresForcedStyleRecalcPropagation):
  1436. * rendering/RenderProgress.h:
  1437. (WebCore::RenderProgress::requiresForcedStyleRecalcPropagation):
  1438. * rendering/RenderSlider.h:
  1439. (WebCore::RenderSlider::requiresForcedStyleRecalcPropagation):
  1440. * rendering/RenderTextControl.h:
  1441. (WebCore::RenderTextControl::requiresForcedStyleRecalcPropagation):
  1442. 2010-05-20 Jer Noble <jer.noble@apple.com>
  1443. No review; build fix only.
  1444. When WTF_USE_ACCELERATED_COMPOSITING is turned off, MediaPlayerPrivateQuickTimeVisualContext.cpp
  1445. must include CoreGraphics/CGContext.h.
  1446. * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
  1447. 2010-05-20 Jer Noble <jer.noble@apple.com>
  1448. Reviewed by Sam Weinig.
  1449. Video elements show no video on Windows machines that do not support accelerated compositing
  1450. https://bugs.webkit.org/show_bug.cgi?id=39446
  1451. rdar://problem/7999794
  1452. Implement the paint() method in MediaPlayerPrivateQuickTimeVisualContext. The visual context should
  1453. be set up in load() and torn down in the destructor (as opposed to setUpVideoRendering and
  1454. tearDownVideoRendering, which won't get called in a non-accelerated compositing case).
  1455. * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
  1456. (WebCore::MediaPlayerPrivateQuickTimeVisualContext::~MediaPlayerPrivateQuickTimeVisualContext):
  1457. (WebCore::MediaPlayerPrivateQuickTimeVisualContext::load):
  1458. (WebCore::MediaPlayerPrivateQuickTimeVisualContext::paint):
  1459. (WebCore::MediaPlayerPrivateQuickTimeVisualContext::visualContextTimerFired):
  1460. (WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveCurrentImage):
  1461. (WebCore::MediaPlayerPrivateQuickTimeVisualContext::setUpVideoRendering):
  1462. (WebCore::MediaPlayerPrivateQuickTimeVisualContext::tearDownVideoRendering):
  1463. 2010-05-20 Abhishek Arya <inferno@chromium.org>
  1464. Reviewed by Adam Barth.
  1465. Added a method to check if the security origin can access
  1466. password manager.
  1467. https://bugs.webkit.org/show_bug.cgi?id=38916
  1468. * page/SecurityOrigin.h:
  1469. (WebCore::SecurityOrigin::canAccessPasswordManager):
  1470. 2010-05-20 Darin Adler <darin@apple.com>
  1471. Reviewed by Eric Seidel.
  1472. Fix warnings seen on the buildbots today
  1473. https://bugs.webkit.org/show_bug.cgi?id=39368
  1474. * loader/icon/IconDatabase.cpp:
  1475. (WebCore::IconDatabase::pruneUnretainedIcons): Use the type "long long" for
  1476. things being printed with "%lli". There is no guaranteed that int64_t is the
  1477. same thing as long long.
  1478. * page/EventHandler.cpp:
  1479. (WebCore::EventHandler::handleMousePressEvent): Added parentheses as suggested
  1480. by warnings in newer versions of GCC.
  1481. * platform/ContextMenu.cpp: Fix #if around the functions to match the #if
  1482. around the call sites to avoid unused function warning.
  1483. * platform/graphics/gtk/ImageGtk.cpp:
  1484. (WebCore::Image::loadPlatformResource): Use NULL to end a variable argument list
  1485. rather than 0. This is a case where the WebKit "use 0 instead of NULL" guideline
  1486. is incorrect and won't work properly.
  1487. * platform/win/SystemTimeWin.cpp:
  1488. (WebCore::userIdleTime): Removed unnecessary initialization of LASTINPUTINFO.
  1489. * platform/win/WebCoreInstanceHandle.h: Added property svn:eol-style.
  1490. Made functions inline instead of static. It's not correct to have functions with
  1491. internal linkage in a header file. Marking them inline makes more sense.
  1492. * plugins/win/PluginMessageThrottlerWin.cpp:
  1493. (WebCore::PluginMessageThrottlerWin::PluginMessageThrottlerWin): Reordered the
  1494. initializers to match the order of the data members from the class definition.
  1495. * plugins/win/PluginViewWin.cpp:
  1496. (WebCore::PluginView::paintIntoTransformedContext): Initialized all the fields
  1497. of WINDOWPOS. I know this goes against the traditions of Windows programming,
  1498. but it's correct and silences the warning. Also removed the unneeded separate
  1499. code path for non-WinCE platforms that translates only the corner of the window
  1500. rectangle; the WinCE version is correct for normal Windows as well. Not sure
  1501. why this wasn't caught when the code was originally checked in.
  1502. 2010-05-20 Justin Schuh <jschuh@chromium.org>
  1503. Reviewed by Adam Barth.
  1504. Moving frame.src checks out of the bindings
  1505. https://bugs.webkit.org/show_bug.cgi?id=37815
  1506. Moved JavaScript frame.src checks out of bindings and into
  1507. HTMLFrameElementBase. Added main thread state stack to JavaScriptCore
  1508. so ExecState is available inside core DOM. Updated affected bindings
  1509. (except for GObject, which will need to be updated to avoid origin
  1510. failures inside native code).
  1511. * Android.jscbindings.mk:
  1512. * CMakeLists.txt:
  1513. * GNUmakefile.am:
  1514. * WebCore.gypi:
  1515. * WebCore.pro:
  1516. * WebCore.vcproj/WebCore.vcproj:
  1517. * WebCore.xcodeproj/project.pbxproj:
  1518. * bindings/js/JSBindingsAllInOne.cpp:
  1519. * bindings/js/JSCallbackData.cpp:
  1520. (WebCore::JSCallbackData::invokeCallback):
  1521. * bindings/js/JSEventListener.cpp:
  1522. (WebCore::JSEventListener::handleEvent):
  1523. * bindings/js/JSInjectedScriptHostCustom.cpp:
  1524. (WebCore::InjectedScriptHost::createInjectedScript):
  1525. * bindings/js/JSMainThreadExecState.cpp: Added.
  1526. * bindings/js/JSMainThreadExecState.h: Added.
  1527. (WebCore::JSMainThreadExecState::currentState):
  1528. (WebCore::JSMainThreadExecState::call):
  1529. (WebCore::JSMainThreadExecState::evaluate):
  1530. (WebCore::JSMainThreadExecState::JSMainThreadExecState):
  1531. (WebCore::JSMainThreadExecState::~JSMainThreadExecState):
  1532. (WebCore::JSMainThreadNullState::JSMainThreadNullState):
  1533. * bindings/js/ScheduledAction.cpp:
  1534. (WebCore::ScheduledAction::executeFunctionInContext):
  1535. (WebCore::ScheduledAction::execute):
  1536. * bindings/js/ScheduledAction.h:
  1537. * bindings/js/ScriptController.cpp:
  1538. (WebCore::ScriptController::evaluateInWorld):
  1539. (WebCore::ScriptController::canAccessFromCurrentOrigin):
  1540. * bindings/js/ScriptController.h:
  1541. * bindings/js/ScriptFunctionCall.cpp:
  1542. (WebCore::ScriptFunctionCall::call):
  1543. * bindings/objc/ObjCEventListener.mm:
  1544. * bindings/objc/WebScriptObject.mm:
  1545. (-[WebScriptObject callWebScriptMethod:withArguments:]):
  1546. (-[WebScriptObject evaluateWebScript:]):
  1547. * bindings/scripts/CodeGeneratorObjC.pm:
  1548. * bindings/scripts/test/ObjC/DOMTestCallback.mm:
  1549. (-[DOMTestCallback callbackWithClass1Param:]):
  1550. (-[DOMTestCallback callbackWithClass2Param:strArg:]):
  1551. (-[DOMTestCallback callbackWithNonBoolReturnType:]):
  1552. (-[DOMTestCallback customCallback:class6Param:]):
  1553. * bindings/scripts/test/ObjC/DOMTestInterface.mm:
  1554. * bindings/scripts/test/ObjC/DOMTestObj.mm:
  1555. (-[DOMTestObj readOnlyIntAttr]):
  1556. (-[DOMTestObj readOnlyStringAttr]):
  1557. (-[DOMTestObj readOnlyTestObjAttr]):
  1558. (-[DOMTestObj intAttr]):
  1559. (-[DOMTestObj setIntAttr:]):
  1560. (-[DOMTestObj longLongAttr]):
  1561. (-[DOMTestObj setLongLongAttr:]):
  1562. (-[DOMTestObj unsignedLongLongAttr]):
  1563. (-[DOMTestObj setUnsignedLongLongAttr:]):
  1564. (-[DOMTestObj stringAttr]):
  1565. (-[DOMTestObj setStringAttr:]):
  1566. (-[DOMTestObj testObjAttr]):
  1567. (-[DOMTestObj setTestObjAttr:]):
  1568. (-[DOMTestObj attrWithException]):
  1569. (-[DOMTestObj setAttrWithException:]):
  1570. (-[DOMTestObj attrWithSetterException]):
  1571. (-[DOMTestObj setAttrWithSetterException:]):
  1572. (-[DOMTestObj attrWithGetterException]):
  1573. (-[DOMTestObj setAttrWithGetterException:]):
  1574. (-[DOMTestObj customAttr]):
  1575. (-[DOMTestObj setCustomAttr:]):
  1576. (-[DOMTestObj scriptStringAttr]):
  1577. (-[DOMTestObj voidMethod]):
  1578. (-[DOMTestObj voidMethodWithArgs:strArg:objArg:]):
  1579. (-[DOMTestObj intMethod]):
  1580. (-[DOMTestObj intMethodWithArgs:strArg:objArg:]):
  1581. (-[DOMTestObj objMethod]):
  1582. (-[DOMTestObj objMethodWithArgs:strArg:objArg:]):
  1583. (-[DOMTestObj methodThatRequiresAllArgs:objArg:]):
  1584. (-[DOMTestObj methodThatRequiresAllArgsAndThrows:objArg:]):
  1585. (-[DOMTestObj serializedValue:]):
  1586. (-[DOMTestObj methodWithException]):
  1587. (-[DOMTestObj customMethod]):
  1588. (-[DOMTestObj customMethodWithArgs:strArg:objArg:]):
  1589. (-[DOMTestObj customArgsAndException:]):
  1590. (-[DOMTestObj addEventListener:listener:useCapture:]):
  1591. (-[DOMTestObj removeEventListener:listener:useCapture:]):
  1592. (-[DOMTestObj withDynamicFrame]):
  1593. (-[DOMTestObj withDynamicFrameAndArg:]):
  1594. (-[DOMTestObj withDynamicFrameAndOptionalArg:optionalArg:]):
  1595. (-[DOMTestObj withDynamicFrameAndUserGesture:]):
  1596. (-[DOMTestObj withDynamicFrameAndUserGestureASAD:optionalArg:]):
  1597. (-[DOMTestObj withScriptStateVoid]):
  1598. (-[DOMTestObj withScriptStateObj]):
  1599. (-[DOMTestObj withScriptStateVoidException]):
  1600. (-[DOMTestObj withScriptStateObjException]):
  1601. (-[DOMTestObj methodWithOptionalArg:]):
  1602. (-[DOMTestObj methodWithNonOptionalArgAndOptionalArg:opt:]):
  1603. (-[DOMTestObj methodWithNonOptionalArgAndTwoOptionalArgs:opt1:opt2:]):
  1604. * bindings/v8/ScriptController.cpp:
  1605. (WebCore::ScriptController::canAccessFromCurrentOrigin):
  1606. * bindings/v8/ScriptController.h:
  1607. * html/HTMLFrameElementBase.cpp:
  1608. (WebCore::HTMLFrameElementBase::isURLAllowed):
  1609. 2010-05-20 Adam Roben <aroben@apple.com>
  1610. Fix an HRGN leak in WKCACFLayerRenderer
  1611. Fixes <http://webkit.org/b/39312> <rdar://problem/7998728> REGRESSION
  1612. (r53686-r55990): Graphics corruption when watching video (affects
  1613. youtube.com)
  1614. Reviewed by Darin Adler.
  1615. * platform/graphics/win/WKCACFLayerRenderer.cpp:
  1616. (WebCore::getDirtyRects): Use an OwnPtr to hold the HRGN we allocate.
  1617. That way we don't have to remember to destroy it (as we were
  1618. forgetting to do) when we bail out of this function early.
  1619. 2010-05-20 Darin Fisher <darin@chromium.org>
  1620. Reviewed by Nate Chapin.
  1621. [chromium] Provide a way to catch exceptions thrown while interacting
  1622. with a NPObject via WebBindings methods.
  1623. https://bugs.webkit.org/show_bug.cgi?id=39378
  1624. This change also includes a small bit of cleanup in V8NPObject and
  1625. friends. I moved code into the WebCore namespace where appropriate.
  1626. In _NPN_Invoke, I also moved the call to _NPN_Evaluate outside of the
  1627. context scope. I did this to avoid having nested ExceptionCatcher
  1628. objects, which is not strictly necessary, but it seemed cleaner.
  1629. _NPN_Evaluate already takes care of creating a context scope.
  1630. * bindings/v8/NPV8Object.cpp:
  1631. (WebCore::v8ObjectToNPObject):
  1632. (WebCore::npCreateV8ScriptObject):
  1633. (_NPN_Invoke):
  1634. (_NPN_InvokeDefault):
  1635. (_NPN_Evaluate):
  1636. (_NPN_EvaluateHelper):
  1637. (_NPN_GetProperty):
  1638. (_NPN_SetProperty):
  1639. (_NPN_RemoveProperty):
  1640. (_NPN_HasProperty):
  1641. (_NPN_HasMethod):
  1642. (_NPN_SetException):
  1643. (_NPN_Enumerate):
  1644. (_NPN_Construct):
  1645. * bindings/v8/NPV8Object.h:
  1646. * bindings/v8/V8NPObject.cpp:
  1647. * bindings/v8/V8NPObject.h:
  1648. * bindings/v8/V8NPUtils.cpp:
  1649. (WebCore::convertV8ObjectToNPVariant):
  1650. (WebCore::pushExceptionHandler):
  1651. (WebCore::popExceptionHandler):
  1652. (WebCore::ExceptionCatcher::ExceptionCatcher):
  1653. (WebCore::ExceptionCatcher::~ExceptionCatcher):
  1654. * bindings/v8/V8NPUtils.h:
  1655. * bindings/v8/npruntime.cpp:
  1656. 2010-05-20 Marcus Bulach <bulach@chromium.org>
  1657. Reviewed by Steve Block.
  1658. Ensure timers are stopped on Geolocation::disconnectFrame()
  1659. https://bugs.webkit.org/show_bug.cgi?id=39388
  1660. fast/dom/Geolocation/notimer-after-unload.html, plus it should be possible to re-enable Gtk LayoutTests.
  1661. * page/Geolocation.cpp:
  1662. (WebCore::Geolocation::disconnectFrame):
  1663. 2010-05-20 James Robinson <jamesr@chromium.org>
  1664. Reviewed by Eric Seidel.
  1665. Ensures styles are up-to-date before determining selection
  1666. https://bugs.webkit.org/show_bug.cgi?id=39389
  1667. This adds a call to document::updateStyleIfNeeded() to
  1668. Frame::notifyRendererOfSelectionChange(). Without this call, if there
  1669. is a pending style update that will detach part of the DOM and the
  1670. the selection is within that part of the DOM when
  1671. notifyRendererOfSeletionChange is called, the rootEditableElement
  1672. algorithm ends up walking through detached parts of the render tree.
  1673. Test: editing/selection/focus-and-display-none.html
  1674. * page/Frame.cpp:
  1675. (WebCore::Frame::notifyRendererOfSelectionChange):
  1676. 2010-05-20 Adam Roben <aroben@apple.com>
  1677. Remove code that fetched, but did nothing useful with, a CFDictionary
  1678. in MediaPlayerPrivateQuickTimeVisualContext
  1679. I also removed the code in QTPixelBuffer that vended the dictionary.
  1680. Fixes <http://webkit.org/b/39435> <rdar://problem/8009278>
  1681. QTPixelBuffer passes CFDictionaries across the DLL boundary, which can
  1682. lead to crashes
  1683. Reviewed by Darin Adler.
  1684. * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
  1685. (WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveCurrentImage):
  1686. Deleted code that fetched the attachments dictionary, which was never
  1687. used other than to pass it to CFRetain/CFRelease, which could be
  1688. enough to cause a crash due to incompatible copies of
  1689. CoreFoundation.dll.
  1690. * platform/graphics/win/QTMovieVisualContext.h: Added a now-needed
  1691. forward declaration.
  1692. * platform/graphics/win/QTPixelBuffer.cpp:
  1693. * platform/graphics/win/QTPixelBuffer.h:
  1694. Removed the now-unused attachments function.
  1695. 2010-05-20 Adam Roben <aroben@apple.com>
  1696. Fix a CFData leak in MediaPlayerPrivateQuickTimeVisualContext
  1697. Fixes <http://webkit.org/b/39432> <rdar://problem/8008992>
  1698. Reviewed by Ada Chan
  1699. * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
  1700. (WebCore::QTCFDictionaryCreateWithDataCallback): Use a RetainPtr to
  1701. hold the CFData we allocate so it will get released when this function
  1702. is exited. Also pass kCFAllocatorNull as the bytes deallocator to
  1703. CFDataCreateWithBytesNoCopy so that CF doesn't try to deallocate the
  1704. bytes we pass to it.
  1705. 2010-05-20 Jian Li <jianli@chromium.org>
  1706. Reviewed by David Levin.
  1707. Rename GenericTask* to CrossThreadTask* in CrossThreadTask.h.
  1708. https://bugs.webkit.org/show_bug.cgi?id=39437
  1709. * dom/CrossThreadTask.h:
  1710. (WebCore::):
  1711. (WebCore::CrossThreadTask1::create):
  1712. (WebCore::CrossThreadTask1::CrossThreadTask1):
  1713. (WebCore::CrossThreadTask2::create):
  1714. (WebCore::CrossThreadTask2::CrossThreadTask2):
  1715. (WebCore::CrossThreadTask3::create):
  1716. (WebCore::CrossThreadTask3::CrossThreadTask3):
  1717. (WebCore::CrossThreadTask4::create):
  1718. (WebCore::CrossThreadTask4::CrossThreadTask4):
  1719. (WebCore::CrossThreadTask5::create):
  1720. (WebCore::CrossThreadTask5::CrossThreadTask5):
  1721. (WebCore::CrossThreadTask6::create):
  1722. (WebCore::CrossThreadTask6::CrossThreadTask6):
  1723. (WebCore::CrossThreadTask7::create):
  1724. (WebCore::CrossThreadTask7::CrossThreadTask7):
  1725. (WebCore::CrossThreadTask8::create):
  1726. (WebCore::CrossThreadTask8::CrossThreadTask8):
  1727. (WebCore::createCallbackTask):
  1728. 2010-05-20 Jian Li <jianli@chromium.org>
  1729. Reviewed by David Levin.
  1730. Rename GenericWorkerTask.h to CrossThreadTask.h and move it to dom directory.
  1731. https://bugs.webkit.org/show_bug.cgi?id=39135
  1732. * GNUmakefile.am:
  1733. * WebCore.gypi:
  1734. * WebCore.vcproj/WebCore.vcproj:
  1735. * WebCore.xcodeproj/project.pbxproj:
  1736. * dom/CrossThreadTask.h: Renamed from WebCore/workers/GenericWorkerTask.h.
  1737. * html/FileStreamProxy.cpp:
  1738. * loader/WorkerThreadableLoader.cpp:
  1739. * websockets/WorkerThreadableWebSocketChannel.cpp:
  1740. * workers/DefaultSharedWorkerRepository.cpp:
  1741. * workers/WorkerMessagingProxy.cpp:
  1742. * workers/WorkerScriptLoader.cpp:
  1743. 2010-05-20 Adele Peterson <adele@apple.com>
  1744. Reviewed by Mark Rowe.
  1745. Remove the Safari welcome page site-specific quirk, since its no longer needed.
  1746. * css/CSSStyleSheet.cpp: (WebCore::CSSStyleSheet::cssRules):
  1747. 2010-05-20 Steve Block <steveblock@google.com>
  1748. Reviewed by Jeremy Orlow.
  1749. Provide bindings for DeviceOrientation
  1750. https://bugs.webkit.org/show_bug.cgi?id=39210
  1751. Tests: fast/dom/DeviceOrientation/window-property.html
  1752. fast/dom/Window/window-properties-on-device-orientation.html
  1753. Adds bindings for DeviceOrientation as defined in
  1754. http://dev.w3.org/geo/api/spec-source-orientation.html
  1755. This is guarded by ENABLE(DEVICE_ORIENTATION) which is currently disabled on
  1756. all platforms but Android.
  1757. * Android.derived.jscbindings.mk:
  1758. * Android.derived.v8bindings.mk:
  1759. * Android.mk:
  1760. * Configurations/FeatureDefines.xcconfig:
  1761. * DerivedSources.cpp:
  1762. * DerivedSources.make:
  1763. * GNUmakefile.am:
  1764. * WebCore.gypi:
  1765. * WebCore.pri:
  1766. * WebCore.pro:
  1767. * WebCore.xcodeproj/project.pbxproj:
  1768. * bindings/js/JSEventCustom.cpp:
  1769. (WebCore::toJS):
  1770. * bindings/v8/custom/V8EventCustom.cpp:
  1771. (WebCore::toV8):
  1772. * dom/DeviceOrientationEvent.cpp: Added.
  1773. (WebCore::DeviceOrientationEvent::DeviceOrientationEvent):
  1774. (WebCore::DeviceOrientationEvent::initDeviceOrientationEvent):
  1775. * dom/DeviceOrientationEvent.h: Added.
  1776. (WebCore::DeviceOrientationEvent::create):
  1777. (WebCore::DeviceOrientationEvent::alpha):
  1778. (WebCore::DeviceOrientationEvent::beta):
  1779. (WebCore::DeviceOrientationEvent::gamma):
  1780. (WebCore::DeviceOrientationEvent::isDeviceOrientationEvent):
  1781. * dom/DeviceOrientationEvent.idl: Added.
  1782. * dom/Event.cpp:
  1783. (WebCore::Event::isDeviceOrientationEvent):
  1784. * dom/Event.h:
  1785. * dom/EventNames.h:
  1786. * page/DOMWindow.h:
  1787. * page/DOMWindow.idl:
  1788. 2010-05-20 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
  1789. Rubberstamped by Antti Koivisto.
  1790. Use 0.15 as text drag delay when Q_WS_MAC is defined, which is
  1791. consistent with the Mac OS X platform.
  1792. * page/qt/EventHandlerQt.cpp:
  1793. 2010-05-19 Kenneth Rohde Christiansen <kenneth@webkit.org>
  1794. Reviewed by Simon Hausmann.
  1795. Fix painting when using clipToImageBuffer()
  1796. When we apply the transform of the parent painter to the painter of
  1797. the transparency layer, we adopt its coordinate system, thus offset
  1798. should not be in page coordinates, but in the coordinate system of
  1799. the parent painter.
  1800. * platform/graphics/qt/GraphicsContextQt.cpp:
  1801. (WebCore::TransparencyLayer::TransparencyLayer):
  1802. 2010-05-20 Adam Langley <agl@chromium.org>
  1803. Reviewed by David Levin.
  1804. [chromium] Avoid crash when msttcorefonts aren't provided
  1805. https://bugs.webkit.org/show_bug.cgi?id=39015
  1806. http://code.google.com/p/chromium/issues/detail?id=43831
  1807. * platform/graphics/chromium/FontCacheLinux.cpp:
  1808. (WebCore::FontCache::createFontPlatformData):
  1809. 2010-05-20 Zoltan Herczeg <zherczeg@webkit.org>
  1810. Reviewed by Dirk Schulze.
  1811. Fix a crash caused by feLigthing::apply()
  1812. https://bugs.webkit.org/show_bug.cgi?id=39004
  1813. Make FELighting::apply() similar to other filters' applies
  1814. to avoid an assertion fail in putUnmultipliedImageData(),
  1815. when effectDrawingRect has negative location (x or y is less than 0).
  1816. Test: svg/filters/feLighting-crash.svg
  1817. * svg/graphics/filters/SVGFELighting.cpp:
  1818. (WebCore::FELighting::apply):
  1819. 2010-05-20 Chris Jerdonek <cjerdonek@webkit.org>
  1820. Reviewed by Eric Seidel.
  1821. Modified FrameLoader::urlSelected() to accept a KURL instead of a
  1822. ResourceRequest.
  1823. https://bugs.webkit.org/show_bug.cgi?id=39320
  1824. Since ResourceRequest has non-explicit single-parameter constructors for
  1825. String and KURL, urlSelected() previously accepted any of String, KURL,
  1826. and ResourceRequest. This revision changes urlSelected() to accept only
  1827. a KURL to make the API tighter and easier to refactor.
  1828. No new functionality, so no new tests.
  1829. * loader/FrameLoader.cpp:
  1830. (WebCore::FrameLoader::urlSelected):
  1831. - Changed the public overload to accept a KURL instead of a ResourceRequest.
  1832. * loader/FrameLoader.h:
  1833. - Changed the public overload to accept a KURL instead of a ResourceRequest.
  1834. * wml/WMLAElement.cpp:
  1835. (WebCore::WMLAElement::defaultEventHandler):
  1836. - Updated the call to urlSelected().
  1837. 2010-05-20 MORITA Hajime <morrita@google.com>
  1838. Reviewed by Kent Tamura.
  1839. 2x execCommand ReadAV@NULL
  1840. https://bugs.webkit.org/show_bug.cgi?id=35791
  1841. In applyBlockStyle(), a node which is referred from
  1842. nextParagraphStart sometimes removed from the document and goes
  1843. orphan, and that causes an assertion failed. This is because
  1844. moveParagraphs() replaces the node with a new one with some new
  1845. styles applied. So we re-compute nextParagraphStart in that case.
  1846. Test: editing/execCommand/35791.html
  1847. * dom/Position.h:
  1848. (WebCore::Position::isOrphan):
  1849. * editing/ApplyStyleCommand.cpp:
  1850. (WebCore::ApplyStyleCommand::applyBlockStyle):
  1851. * editing/VisiblePosition.h:
  1852. (WebCore::VisiblePosition::isOrphan):
  1853. 2010-05-20 Steve Block <steveblock@google.com>
  1854. Reviewed by Eric Seidel.
  1855. PluginView contains JSC-specific code
  1856. https://bugs.webkit.org/show_bug.cgi?id=38907
  1857. Build fix only, no new tests.
  1858. * plugins/PluginView.cpp:
  1859. (WebCore::PluginView::start):
  1860. (WebCore::PluginView::stop):
  1861. (WebCore::PluginView::performRequest):
  1862. * plugins/PluginView.h:
  1863. 2010-05-17 Philippe Normand <pnormand@igalia.com>
  1864. Reviewed by Eric Seidel.
  1865. [GStreamer] enable gst support if USE_GSTREAMER macro is defined
  1866. https://bugs.webkit.org/show_bug.cgi?id=39205
  1867. Include gstreamer private player in the build when the
  1868. USE_GSTREAMER macro is enabled.
  1869. * platform/graphics/MediaPlayer.cpp:
  1870. (WebCore::installedMediaEngines):
  1871. 2010-05-19 Vangelis Kokkevis <vangelis@chromium.org>
  1872. Reviewed by Darin Fisher.
  1873. Implementing hardware accelerated compositing of layers for Chromium.
  1874. Completely removed the existing software compositing path to replace
  1875. it with code implemented using OpenGL.
  1876. https://bugs.webkit.org/show_bug.cgi?id=38783
  1877. Tests: Covered by existing compositing tests.
  1878. * WebCore.gyp/WebCore.gyp:
  1879. * platform/graphics/chromium/GraphicsLayerChromium.cpp:
  1880. (WebCore::GraphicsLayerChromium::~GraphicsLayerChromium):
  1881. (WebCore::GraphicsLayerChromium::updateLayerDrawsContent):
  1882. (WebCore::GraphicsLayerChromium::updateContentsRect):
  1883. * platform/graphics/chromium/LayerChromium.cpp:
  1884. (WebCore::LayerChromium::LayerChromium):
  1885. (WebCore::LayerChromium::~LayerChromium):
  1886. (WebCore::LayerChromium::updateGraphicsContext):
  1887. (WebCore::LayerChromium::drawsContentUpdated):
  1888. (WebCore::LayerChromium::updateContents):
  1889. (WebCore::LayerChromium::setContents):
  1890. (WebCore::LayerChromium::setBackingStoreSize):
  1891. (WebCore::LayerChromium::setBounds):
  1892. (WebCore::LayerChromium::setNeedsDisplay):
  1893. * platform/graphics/chromium/LayerChromium.h:
  1894. (WebCore::LayerChromium::contentsDirty):
  1895. (WebCore::LayerChromium::drawsContent):
  1896. * platform/graphics/chromium/LayerRendererChromium.cpp:
  1897. (WebCore::):
  1898. (WebCore::checkGLError):
  1899. (WebCore::loadShader):
  1900. (WebCore::loadShaderProgram):
  1901. (WebCore::toGLMatrix):
  1902. (WebCore::orthoMatrix):
  1903. (WebCore::createLayerTexture):
  1904. (WebCore::LayerRendererChromium::create):
  1905. (WebCore::LayerRendererChromium::LayerRendererChromium):
  1906. (WebCore::LayerRendererChromium::~LayerRendererChromium):
  1907. (WebCore::LayerRendererChromium::drawTexturedQuad):
  1908. (WebCore::LayerRendererChromium::drawLayers):
  1909. (WebCore::LayerRendererChromium::getTextureId):
  1910. (WebCore::LayerRendererChromium::assignTextureForLayer):
  1911. (WebCore::LayerRendererChromium::freeLayerTexture):
  1912. (WebCore::LayerRendererChromium::drawDebugBorder):
  1913. (WebCore::LayerRendererChromium::isLayerVisible):
  1914. (WebCore::LayerRendererChromium::compositeLayersRecursive):
  1915. (WebCore::LayerRendererChromium::makeContextCurrent):
  1916. (WebCore::LayerRendererChromium::initGL):
  1917. (WebCore::LayerRendererChromium::bindCommonAttribLocation):
  1918. (WebCore::LayerRendererChromium::initializeSharedGLObjects):
  1919. * platform/graphics/chromium/LayerRendererChromium.h:
  1920. (WebCore::LayerRendererChromium::):
  1921. 2010-05-19 Andrey Kosyakov <caseq@chromium.org>
  1922. Reviewed by Timothy Hatcher.
  1923. Maintain focus on help screen while it's active.
  1924. https://bugs.webkit.org/show_bug.cgi?id=39237
  1925. * inspector/front-end/HelpScreen.js:
  1926. (WebInspector.HelpScreen):
  1927. (WebInspector.HelpScreen.prototype.show):
  1928. (WebInspector.HelpScreen.prototype._hide):
  1929. (WebInspector.HelpScreen.prototype._onBlur):
  1930. 2010-05-19 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
  1931. Reviewed by Kenneth Rohde Christiansen.
  1932. Crash fix in the HistoryController.
  1933. The problem was casued by a documented feature of the QWebFrame::setHtml().
  1934. The method doesn't affect a browsing history (doesn't create a HistoryItem instance), so
  1935. m_currentItem and m_previousItem are not set.
  1936. A null check was added.
  1937. [Qt] The QWebPage crashes on history.pushState().
  1938. https://bugs.webkit.org/show_bug.cgi?id=38840
  1939. * loader/HistoryController.cpp:
  1940. (WebCore::HistoryController::pushState):
  1941. (WebCore::HistoryController::replaceState):
  1942. 2010-05-19 Darin Fisher <darin@chromium.org>
  1943. Revert r59790 due to failing Chromium npruntime tests.
  1944. * bindings/v8/NPV8Object.cpp:
  1945. (v8ObjectToNPObject):
  1946. (npCreateV8ScriptObject):
  1947. (_NPN_Invoke):
  1948. (_NPN_InvokeDefault):
  1949. (_NPN_Evaluate):
  1950. (_NPN_EvaluateHelper):
  1951. (_NPN_GetProperty):
  1952. (_NPN_SetProperty):
  1953. (_NPN_RemoveProperty):
  1954. (_NPN_HasProperty):
  1955. (_NPN_HasMethod):
  1956. (_NPN_SetException):
  1957. (_NPN_Enumerate):
  1958. (_NPN_Construct):
  1959. * bindings/v8/NPV8Object.h:
  1960. * bindings/v8/V8NPObject.cpp:
  1961. (forgetV8ObjectForNPObject):
  1962. * bindings/v8/V8NPObject.h:
  1963. * bindings/v8/V8NPUtils.cpp:
  1964. (convertV8ObjectToNPVariant):
  1965. (getStringIdentifier):
  1966. * bindings/v8/V8NPUtils.h:
  1967. * bindings/v8/npruntime.cpp:
  1968. 2010-05-19 Gavin Barraclough <barraclough@apple.com>
  1969. Rubber Stamped by Sam Weinig.
  1970. JSFunctions are no longer a subclass of InternalFunction.
  1971. * bindings/js/ScriptCallStack.cpp:
  1972. (WebCore::ScriptCallStack::ScriptCallStack):
  1973. (WebCore::ScriptCallStack::initialize):
  1974. * bindings/js/ScriptCallStack.h:
  1975. 2010-05-19 Jian Li <jianli@chromium.org>
  1976. Reviewed by Alexey Proskuryakov.
  1977. Refactor text encoding detection logic in FileReader.
  1978. https://bugs.webkit.org/show_bug.cgi?id=39131
  1979. Changed FileReader::convertToText to call TextResourceDecoder::decode to
  1980. detect the encoding from BOM and decode the text. Though the File API
  1981. spec says that the supplied encoding should be used if it is valid, we
  1982. choose to ignore this requirement in order to be consistent with how
  1983. WebKit decodes the web content: always has the BOM override the provided
  1984. encoding.
  1985. * html/FileReader.cpp:
  1986. (WebCore::FileReader::convertToText):
  1987. * html/FileReader.h:
  1988. 2010-05-19 Abhishek Arya <inferno@chromium.org>
  1989. Reviewed by David Hyatt.
  1990. Check that the node is a text node before doing a static cast
  1991. to a Text class pointer.
  1992. https://bugs.webkit.org/show_bug.cgi?id=38626
  1993. Test: fast/text/text-transform-nontext-node-crash.xhtml
  1994. * rendering/RenderText.cpp:
  1995. (WebCore::RenderText::originalText):
  1996. * rendering/RenderTextFragment.cpp:
  1997. (WebCore::RenderTextFragment::originalText):
  1998. (WebCore::RenderTextFragment::previousCharacter):
  1999. 2010-05-19 Yaar Schnitman <yaar@chromium.org>
  2000. Reviewed by Eric Seidel.
  2001. Fixed warnings by JSC overloads changes. Also updated the binding reference files for JSC.
  2002. https://bugs.webkit.org/show_bug.cgi?id=39390
  2003. * bindings/scripts/CodeGeneratorJS.pm:
  2004. * bindings/scripts/test/JS/JSTestInterface.cpp:
  2005. (WebCore::):
  2006. * bindings/scripts/test/JS/JSTestObj.cpp:
  2007. (WebCore::):
  2008. 2010-05-19 Darin Fisher <darin@chromium.org>
  2009. Reviewed by Nate Chapin.
  2010. [chromium] Provide a way to catch exceptions thrown while interacting
  2011. with a NPObject via WebBindings methods.
  2012. https://bugs.webkit.org/show_bug.cgi?id=39378
  2013. This change also includes a small bit of cleanup in V8NPObject and
  2014. friends. I moved code into the WebCore namespace where appropriate.
  2015. In _NPN_Invoke, I also moved the call to _NPN_Evaluate outside of the
  2016. context scope. I did this to avoid having nested ExceptionCatcher
  2017. objects, which is not strictly necessary, but it seemed cleaner.
  2018. _NPN_Evaluate already takes care of creating a context scope.
  2019. * bindings/v8/NPV8Object.cpp:
  2020. (WebCore::v8ObjectToNPObject):
  2021. (WebCore::npCreateV8ScriptObject):
  2022. (_NPN_Invoke):
  2023. (_NPN_InvokeDefault):
  2024. (_NPN_Evaluate):
  2025. (_NPN_EvaluateHelper):
  2026. (_NPN_GetProperty):
  2027. (_NPN_SetProperty):
  2028. (_NPN_RemoveProperty):
  2029. (_NPN_HasProperty):
  2030. (_NPN_HasMethod):
  2031. (_NPN_SetException):
  2032. (_NPN_Enumerate):
  2033. (_NPN_Construct):
  2034. * bindings/v8/NPV8Object.h:
  2035. * bindings/v8/V8NPObject.cpp:
  2036. * bindings/v8/V8NPObject.h:
  2037. * bindings/v8/V8NPUtils.cpp:
  2038. (WebCore::convertV8ObjectToNPVariant):
  2039. (WebCore::pushExceptionHandler):
  2040. (WebCore::popExceptionHandler):
  2041. (WebCore::ExceptionCatcher::~ExceptionCatcher):
  2042. * bindings/v8/V8NPUtils.h:
  2043. * bindings/v8/npruntime.cpp:
  2044. 2010-05-19 Yaar Schnitman <yaar@chromium.org>
  2045. Unreviewed, rolling out r59769.
  2046. http://trac.webkit.org/changeset/59769
  2047. https://bugs.webkit.org/show_bug.cgi?id=37815
  2048. Broke GTK again
  2049. * Android.jscbindings.mk:
  2050. * CMakeLists.txt:
  2051. * GNUmakefile.am:
  2052. * WebCore.gypi:
  2053. * WebCore.pro:
  2054. * WebCore.vcproj/WebCore.vcproj:
  2055. * WebCore.xcodeproj/project.pbxproj:
  2056. * bindings/js/JSBindingsAllInOne.cpp:
  2057. * bindings/js/JSCallbackData.cpp:
  2058. (WebCore::JSCallbackData::invokeCallback):
  2059. * bindings/js/JSEventListener.cpp:
  2060. (WebCore::JSEventListener::handleEvent):
  2061. * bindings/js/JSInjectedScriptHostCustom.cpp:
  2062. (WebCore::InjectedScriptHost::createInjectedScript):
  2063. * bindings/js/JSMainThreadExecState.cpp: Removed.
  2064. * bindings/js/JSMainThreadExecState.h: Removed.
  2065. * bindings/js/ScheduledAction.cpp:
  2066. (WebCore::ScheduledAction::executeFunctionInContext):
  2067. (WebCore::ScheduledAction::execute):
  2068. * bindings/js/ScheduledAction.h:
  2069. * bindings/js/ScriptController.cpp:
  2070. (WebCore::ScriptController::evaluateInWorld):
  2071. * bindings/js/ScriptController.h:
  2072. * bindings/js/ScriptFunctionCall.cpp:
  2073. (WebCore::ScriptFunctionCall::call):
  2074. * bindings/objc/ObjCEventListener.mm:
  2075. * bindings/objc/WebScriptObject.mm:
  2076. (-[WebScriptObject callWebScriptMethod:withArguments:]):
  2077. (-[WebScriptObject evaluateWebScript:]):
  2078. * bindings/scripts/CodeGeneratorObjC.pm:
  2079. * bindings/scripts/test/ObjC/DOMTestCallback.mm:
  2080. (-[DOMTestCallback callbackWithClass1Param:]):
  2081. (-[DOMTestCallback callbackWithClass2Param:strArg:]):
  2082. (-[DOMTestCallback callbackWithNonBoolReturnType:]):
  2083. (-[DOMTestCallback customCallback:class6Param:]):
  2084. * bindings/scripts/test/ObjC/DOMTestInterface.mm:
  2085. * bindings/scripts/test/ObjC/DOMTestObj.mm:
  2086. (-[DOMTestObj readOnlyIntAttr]):
  2087. (-[DOMTestObj readOnlyStringAttr]):
  2088. (-[DOMTestObj readOnlyTestObjAttr]):
  2089. (-[DOMTestObj intAttr]):
  2090. (-[DOMTestObj setIntAttr:]):
  2091. (-[DOMTestObj longLongAttr]):
  2092. (-[DOMTestObj setLongLongAttr:]):
  2093. (-[DOMTestObj unsignedLongLongAttr]):
  2094. (-[DOMTestObj setUnsignedLongLongAttr:]):
  2095. (-[DOMTestObj stringAttr]):
  2096. (-[DOMTestObj setStringAttr:]):
  2097. (-[DOMTestObj testObjAttr]):
  2098. (-[DOMTestObj setTestObjAttr:]):
  2099. (-[DOMTestObj attrWithException]):
  2100. (-[DOMTestObj setAttrWithException:]):
  2101. (-[DOMTestObj attrWithSetterException]):
  2102. (-[DOMTestObj setAttrWithSetterException:]):
  2103. (-[DOMTestObj attrWithGetterException]):
  2104. (-[DOMTestObj setAttrWithGetterException:]):
  2105. (-[DOMTestObj customAttr]):
  2106. (-[DOMTestObj setCustomAttr:]):
  2107. (-[DOMTestObj scriptStringAttr]):
  2108. (-[DOMTestObj voidMethod]):
  2109. (-[DOMTestObj voidMethodWithArgs:strArg:objArg:]):
  2110. (-[DOMTestObj intMethod]):
  2111. (-[DOMTestObj intMethodWithArgs:strArg:objArg:]):
  2112. (-[DOMTestObj objMethod]):
  2113. (-[DOMTestObj objMethodWithArgs:strArg:objArg:]):
  2114. (-[DOMTestObj methodThatRequiresAllArgs:objArg:]):
  2115. (-[DOMTestObj methodThatRequiresAllArgsAndThrows:objArg:]):
  2116. (-[DOMTestObj serializedValue:]):
  2117. (-[DOMTestObj methodWithException]):
  2118. (-[DOMTestObj customMethod]):
  2119. (-[DOMTestObj customMethodWithArgs:strArg:objArg:]):
  2120. (-[DOMTestObj customArgsAndException:]):
  2121. (-[DOMTestObj addEventListener:listener:useCapture:]):
  2122. (-[DOMTestObj removeEventListener:listener:useCapture:]):
  2123. (-[DOMTestObj withDynamicFrame]):
  2124. (-[DOMTestObj withDynamicFrameAndArg:]):
  2125. (-[DOMTestObj withDynamicFrameAndOptionalArg:optionalArg:]):
  2126. (-[DOMTestObj withDynamicFrameAndUserGesture:]):
  2127. (-[DOMTestObj withDynamicFrameAndUserGestureASAD:optionalArg:]):
  2128. (-[DOMTestObj withScriptStateVoid]):
  2129. (-[DOMTestObj withScriptStateObj]):
  2130. (-[DOMTestObj withScriptStateVoidException]):
  2131. (-[DOMTestObj withScriptStateObjException]):
  2132. (-[DOMTestObj methodWithOptionalArg:]):
  2133. (-[DOMTestObj methodWithNonOptionalArgAndOptionalArg:opt:]):
  2134. (-[DOMTestObj methodWithNonOptionalArgAndTwoOptionalArgs:opt1:opt2:]):
  2135. * bindings/v8/ScriptController.cpp:
  2136. * bindings/v8/ScriptController.h:
  2137. * html/HTMLFrameElementBase.cpp:
  2138. (WebCore::HTMLFrameElementBase::isURLAllowed):
  2139. 2010-05-19 Dirk Pranke <dpranke@chromium.org>
  2140. Try again to roll out r58675.
  2141. * notifications/Notification.h:
  2142. * notifications/Notification.idl:
  2143. 2010-05-19 Enrica Casucci <enrica@apple.com>
  2144. Reviewed by Dave Hyatt.
  2145. REGRESSION (r59385) crash destroying inline renderers
  2146. https://bugs.webkit.org/show_bug.cgi?id=39143
  2147. <rdar://problem/8003662>
  2148. The goal of r59385 was to make sure that the layout of block after all its children had been removed produced the identical result
  2149. as the one of a newly created empty block. In order to do so, we had to make sure that the m_inlineChildren flag was reset to true when
  2150. the block had no children (as it is upon creation).
  2151. I discovered that, by doing that for anonymous blocks it leads removeChild to conclude that the anonymous children can be removed,
  2152. without considering that the anonymous block could be part of a continuation chain. For this reason, when RenderInline::destroy()
  2153. tries to remove the continuations we are effectively deleting a renderer that had been deleted already.
  2154. Test: fast/inline-block/anonymous-block-crash.html
  2155. * rendering/RenderBlock.cpp:
  2156. (WebCore::RenderBlock::layoutBlock): resetting the flag m_inlineChildren only for non anonymous blocks otherwise we incurr in
  2157. a double deletion of the renderer that causes the crash.
  2158. 2010-05-19 Sheriff Bot <webkit.review.bot@gmail.com>
  2159. Unreviewed, rolling out r59782.
  2160. http://trac.webkit.org/changeset/59782
  2161. https://bugs.webkit.org/show_bug.cgi?id=39379
  2162. broke DRT build (Requested by dpranke on #webkit).
  2163. * notifications/Notification.h:
  2164. (WebCore::Notification::dir):
  2165. (WebCore::Notification::setDir):
  2166. (WebCore::Notification::replaceId):
  2167. (WebCore::Notification::setReplaceId):
  2168. * notifications/Notification.idl:
  2169. 2010-05-18 David Hyatt <hyatt@apple.com>
  2170. Reviewed by Oliver Hunt.
  2171. https://bugs.webkit.org/show_bug.cgi?id=21049, opacity and position:relative fail in multi-column layouts.
  2172. Make layers split painting across columns just as normal flow content does. This is actually very
  2173. challenging, since intermediate multicol layers can exist between a child that has to be split and
  2174. its enclosing stacking context.
  2175. In order to properly paginate layers, a bit is set on all pagination roots, i.e., layers that will get
  2176. split and thus split any descendant layers that they are also responsible for painting. For a paginated
  2177. root, we walk up the layer hierarchy and collect all intermediate multicol blocks between the child
  2178. and the enclosing stacking context.
  2179. We then recur from the outside in, applying clipping and translation as we break up the layer into strips.
  2180. Composited layers remain unsplittable and have a hacked offset still in order to be placed in the right
  2181. column.
  2182. Painting and hit testing of columns has been simplified in all of the functions to use the x position of
  2183. the column rect instead of trying to increment an x offset by adding in widths and column gaps. This
  2184. makes those functions directionality-independent (and the LTR/RTL code paths are now the same).
  2185. Fix repainting of columns as well to make sure rects are split across columns only after relative position
  2186. and transforms have been applied.
  2187. Added fast/multicol/layers-split-across-columns.html
  2188. * rendering/RenderBlock.cpp:
  2189. (WebCore::RenderBlock::paintColumnContents):
  2190. (WebCore::RenderBlock::adjustRectForColumns):
  2191. (WebCore::RenderBlock::adjustForColumns):
  2192. * rendering/RenderBlock.h:
  2193. * rendering/RenderBox.cpp:
  2194. (WebCore::RenderBox::computeRectForRepaint):
  2195. * rendering/RenderLayer.cpp:
  2196. (WebCore::RenderLayer::RenderLayer):
  2197. (WebCore::RenderLayer::updateLayerPositions):
  2198. (WebCore::RenderLayer::updatePagination):
  2199. (WebCore::RenderLayer::updateLayerPosition):
  2200. (WebCore::RenderLayer::paintLayer):
  2201. (WebCore::RenderLayer::paintList):
  2202. (WebCore::RenderLayer::paintPaginatedChildLayer):
  2203. (WebCore::RenderLayer::paintChildLayerIntoColumns):
  2204. (WebCore::RenderLayer::hitTestLayer):
  2205. (WebCore::RenderLayer::hitTestList):
  2206. (WebCore::RenderLayer::hitTestPaginatedChildLayer):
  2207. (WebCore::RenderLayer::hitTestChildLayerColumns):
  2208. * rendering/RenderLayer.h:
  2209. (WebCore::RenderLayer::):
  2210. (WebCore::RenderLayer::isPaginated):
  2211. 2010-05-18 Dirk Pranke <dpranke@chromium.org>
  2212. Reviewed by Dimitri Glazkov.
  2213. Attempt to revert r58765 to see if it was causing a performance
  2214. regression.
  2215. https://bugs.webkit.org/show_bug.cgi?id=39328
  2216. * notifications/Notification.h:
  2217. * notifications/Notification.idl:
  2218. 2010-05-19 Kevin Watters <kevinwatters@gmail.com>
  2219. Reviewed by Kevin Ollivier.
  2220. [wx] Ensure m_nsFont is initialized properly, and tweak fallback font handling
  2221. to handle more cases.
  2222. https://bugs.webkit.org/show_bug.cgi?id=39365
  2223. * platform/graphics/wx/FontCacheWx.cpp:
  2224. (WebCore::FontCache::getFontDataForCharacters):
  2225. (WebCore::FontCache::getSimilarFontPlatformData):
  2226. (WebCore::FontCache::getLastResortFallbackFont):
  2227. * platform/graphics/wx/FontPlatformDataWx.cpp:
  2228. (WebCore::FontPlatformData::FontPlatformData):
  2229. 2010-05-19 Marcus Bulach <bulach@chromium.org>
  2230. Reviewed by Eric Seidel.
  2231. Fixes Windows Qt Release post r59772.
  2232. https://bugs.webkit.org/show_bug.cgi?id=39369
  2233. * platform/GeolocationService.cpp:
  2234. 2010-05-19 Eric Seidel <eric@webkit.org>
  2235. Reviewed by Adam Barth.
  2236. Add support for handling basic <script> tags in the HTML5 Parser
  2237. https://bugs.webkit.org/show_bug.cgi?id=39350
  2238. WebKit currently executes scripts from HTMLTokenizer in one giagantic
  2239. hack. HTML 5 requires that we execute scripts from the tree-builders/parser.
  2240. It will take me a while to re-factor enough of HTMLTokenizer to be able to
  2241. move the script execution logic without breaking things. In the interest
  2242. of allowing Adam to continue improving the HTML 5 lexer I've added this
  2243. very basic (and very incomplete) <script> support to the HTML 5 parser code
  2244. path so the he can run the HTML5 parser test suite.
  2245. <script> support is tested by most of the layout tests.
  2246. * dom/ScriptElement.cpp:
  2247. (WebCore::useHTML5Parser):
  2248. (WebCore::ScriptElement::finishParsingChildren):
  2249. 2010-05-19 Anders Carlsson <andersca@apple.com>
  2250. Reviewed by Sam Weinig.
  2251. Move member variables from NamedMappedAttrMap to its base class NamedNodeMap
  2252. https://bugs.webkit.org/show_bug.cgi?id=39367
  2253. <rdar://problem/8003304>
  2254. This lets us get rid of the vtable pointer in NamedNodeMap which saves 8 bytes, and also allows us to
  2255. fit the m_mappedAttributeCount unsigned int in the RefCounted padding (in 64-bit).
  2256. The net result is that we shrink the NamedMappedAttrMap size by 16 bytes, while keeping the size of NamedNodeMap the same.
  2257. * dom/Element.cpp:
  2258. (WebCore::Element::createAttributeMap):
  2259. * dom/Element.h:
  2260. * dom/NamedMappedAttrMap.cpp:
  2261. * dom/NamedMappedAttrMap.h:
  2262. (WebCore::NamedMappedAttrMap::NamedMappedAttrMap):
  2263. * dom/NamedNodeMap.cpp:
  2264. (WebCore::NamedNodeMap::clearAttributes):
  2265. * dom/NamedNodeMap.h:
  2266. (WebCore::NamedNodeMap::NamedNodeMap):
  2267. * dom/Node.cpp:
  2268. (WebCore::Node::dumpStatistics):
  2269. * dom/StyledElement.cpp:
  2270. * dom/StyledElement.h:
  2271. 2010-05-19 Sam Weinig <sam@webkit.org>
  2272. Reviewed by Anders Carlsson.
  2273. Use ASSERT_UNUSED instead of UNUSED_PARAM.
  2274. * dom/Attribute.cpp:
  2275. (WebCore::Attribute::unbindAttr):
  2276. 2010-05-19 Sam Weinig <sam@webkit.org>
  2277. Rubber-stamped by Anders Carlsson.
  2278. Complete the merge of MappedAttribute and Attribute.
  2279. Files elided for brevity.
  2280. 2010-05-19 Marcus Bulach <bulach@chromium.org>
  2281. Reviewed by Steve Block.
  2282. [chromium] Adds supports for layout tests using GeolocationServiceMock.
  2283. https://bugs.webkit.org/show_bug.cgi?id=39081
  2284. Allows injection of GeolocationServiceMock factory.
  2285. Tests: existing fast/dom/Geolocation/*
  2286. * platform/GeolocationService.cpp:
  2287. (WebCore::GeolocationService::useMock):
  2288. (WebCore::GeolocationService::useMockFactory):
  2289. * platform/GeolocationService.h:
  2290. * platform/chromium/GeolocationServiceChromium.cpp:
  2291. (WebCore::GeolocationServiceChromium::GeolocationServiceChromium):
  2292. 2010-05-19 Justin Schuh <jschuh@chromium.org>
  2293. Reviewed by Adam Barth.
  2294. Moving frame.src checks out of the bindings
  2295. https://bugs.webkit.org/show_bug.cgi?id=37815
  2296. Moved JavaScript frame.src checks out of bindings and into
  2297. HTMLFrameElementBase. Added main thread state stack to JavaScriptCore
  2298. so ExecState is available inside core DOM. Updated affected bindings
  2299. (except for GObject, which will need to be updated to avoid origin
  2300. failures inside native code).
  2301. * Android.jscbindings.mk:
  2302. * CMakeLists.txt:
  2303. * GNUmakefile.am:
  2304. * WebCore.gypi:
  2305. * WebCore.pro:
  2306. * WebCore.vcproj/WebCore.vcproj:
  2307. * WebCore.xcodeproj/project.pbxproj:
  2308. * bindings/js/JSBindingsAllInOne.cpp:
  2309. * bindings/js/JSCallbackData.cpp:
  2310. (WebCore::JSCallbackData::invokeCallback):
  2311. * bindings/js/JSEventListener.cpp:
  2312. (WebCore::JSEventListener::handleEvent):
  2313. * bindings/js/JSInjectedScriptHostCustom.cpp:
  2314. (WebCore::InjectedScriptHost::createInjectedScript):
  2315. * bindings/js/JSMainThreadExecState.cpp: Added.
  2316. * bindings/js/JSMainThreadExecState.h: Added.
  2317. (WebCore::JSMainThreadExecState::currentState):
  2318. (WebCore::JSMainThreadExecState::call):
  2319. (WebCore::JSMainThreadExecState::evaluate):
  2320. (WebCore::JSMainThreadExecState::JSMainThreadExecState):
  2321. (WebCore::JSMainThreadExecState::~JSMainThreadExecState):
  2322. (WebCore::JSMainThreadNullState::JSMainThreadNullState):
  2323. * bindings/js/ScheduledAction.cpp:
  2324. (WebCore::ScheduledAction::executeFunctionInContext):
  2325. (WebCore::ScheduledAction::execute):
  2326. * bindings/js/ScheduledAction.h:
  2327. * bindings/js/ScriptController.cpp:
  2328. (WebCore::ScriptController::evaluateInWorld):
  2329. (WebCore::ScriptController::canAccessFromCurrentOrigin):
  2330. * bindings/js/ScriptController.h:
  2331. * bindings/js/ScriptFunctionCall.cpp:
  2332. (WebCore::ScriptFunctionCall::call):
  2333. * bindings/objc/ObjCEventListener.mm:
  2334. * bindings/objc/WebScriptObject.mm:
  2335. (-[WebScriptObject callWebScriptMethod:withArguments:]):
  2336. (-[WebScriptObject evaluateWebScript:]):
  2337. * bindings/scripts/CodeGeneratorObjC.pm:
  2338. * bindings/scripts/test/ObjC/DOMTestCallback.mm:
  2339. (-[DOMTestCallback callbackWithClass1Param:]):
  2340. (-[DOMTestCallback callbackWithClass2Param:strArg:]):
  2341. (-[DOMTestCallback callbackWithNonBoolReturnType:]):
  2342. (-[DOMTestCallback customCallback:class6Param:]):
  2343. * bindings/scripts/test/ObjC/DOMTestInterface.mm:
  2344. * bindings/scripts/test/ObjC/DOMTestObj.mm:
  2345. (-[DOMTestObj readOnlyIntAttr]):
  2346. (-[DOMTestObj readOnlyStringAttr]):
  2347. (-[DOMTestObj readOnlyTestObjAttr]):
  2348. (-[DOMTestObj intAttr]):
  2349. (-[DOMTestObj setIntAttr:]):
  2350. (-[DOMTestObj longLongAttr]):
  2351. (-[DOMTestObj setLongLongAttr:]):
  2352. (-[DOMTestObj unsignedLongLongAttr]):
  2353. (-[DOMTestObj setUnsignedLongLongAttr:]):
  2354. (-[DOMTestObj stringAttr]):
  2355. (-[DOMTestObj setStringAttr:]):
  2356. (-[DOMTestObj testObjAttr]):
  2357. (-[DOMTestObj setTestObjAttr:]):
  2358. (-[DOMTestObj attrWithException]):
  2359. (-[DOMTestObj setAttrWithException:]):
  2360. (-[DOMTestObj attrWithSetterException]):
  2361. (-[DOMTestObj setAttrWithSetterException:]):
  2362. (-[DOMTestObj attrWithGetterException]):
  2363. (-[DOMTestObj setAttrWithGetterException:]):
  2364. (-[DOMTestObj customAttr]):
  2365. (-[DOMTestObj setCustomAttr:]):
  2366. (-[DOMTestObj scriptStringAttr]):
  2367. (-[DOMTestObj voidMethod]):
  2368. (-[DOMTestObj voidMethodWithArgs:strArg:objArg:]):
  2369. (-[DOMTestObj intMethod]):
  2370. (-[DOMTestObj intMethodWithArgs:strArg:objArg:]):
  2371. (-[DOMTestObj objMethod]):
  2372. (-[DOMTestObj objMethodWithArgs:strArg:objArg:]):
  2373. (-[DOMTestObj methodThatRequiresAllArgs:objArg:]):
  2374. (-[DOMTestObj methodThatRequiresAllArgsAndThrows:objArg:]):
  2375. (-[DOMTestObj serializedValue:]):
  2376. (-[DOMTestObj methodWithException]):
  2377. (-[DOMTestObj customMethod]):
  2378. (-[DOMTestObj customMethodWithArgs:strArg:objArg:]):
  2379. (-[DOMTestObj customArgsAndException:]):
  2380. (-[DOMTestObj addEventListener:listener:useCapture:]):
  2381. (-[DOMTestObj removeEventListener:listener:useCapture:]):
  2382. (-[DOMTestObj withDynamicFrame]):
  2383. (-[DOMTestObj withDynamicFrameAndArg:]):
  2384. (-[DOMTestObj withDynamicFrameAndOptionalArg:optionalArg:]):
  2385. (-[DOMTestObj withDynamicFrameAndUserGesture:]):
  2386. (-[DOMTestObj withDynamicFrameAndUserGestureASAD:optionalArg:]):
  2387. (-[DOMTestObj withScriptStateVoid]):
  2388. (-[DOMTestObj withScriptStateObj]):
  2389. (-[DOMTestObj withScriptStateVoidException]):
  2390. (-[DOMTestObj withScriptStateObjException]):
  2391. (-[DOMTestObj methodWithOptionalArg:]):
  2392. (-[DOMTestObj methodWithNonOptionalArgAndOptionalArg:opt:]):
  2393. (-[DOMTestObj methodWithNonOptionalArgAndTwoOptionalArgs:opt1:opt2:]):
  2394. * bindings/v8/ScriptController.cpp:
  2395. (WebCore::ScriptController::canAccessFromCurrentOrigin):
  2396. * bindings/v8/ScriptController.h:
  2397. * html/HTMLFrameElementBase.cpp:
  2398. (WebCore::HTMLFrameElementBase::isURLAllowed):
  2399. 2010-05-19 Andreas Kling <andreas.kling@nokia.com>
  2400. Reviewed by Darin Adler.
  2401. CanvasRenderingContext2D's property getters that return colors should
  2402. serialize them in accordance with the HTML5 spec (4.8.11.1.4)
  2403. Setters should ignore invalid colors.
  2404. Also, shadowColor should initially be transparent black (4.8.11.1.6)
  2405. https://bugs.webkit.org/show_bug.cgi?id=38845
  2406. Refactored CanvasStyle to store an RGBA32 instead of RGBA components and/or the color string.
  2407. Spec links:
  2408. http://www.whatwg.org/specs/web-apps/current-work/#serialization-of-a-color
  2409. http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-shadowcolor
  2410. * html/canvas/CanvasRenderingContext2D.cpp:
  2411. (WebCore::CanvasRenderingContext2D::State::State):
  2412. (WebCore::CanvasRenderingContext2D::shadowColor):
  2413. (WebCore::CanvasRenderingContext2D::setShadowColor):
  2414. (WebCore::CanvasRenderingContext2D::setShadow):
  2415. (WebCore::CanvasRenderingContext2D::clearShadow):
  2416. (WebCore::CanvasRenderingContext2D::applyShadow):
  2417. * html/canvas/CanvasRenderingContext2D.h:
  2418. * html/canvas/CanvasStyle.cpp:
  2419. (WebCore::CanvasStyle::CanvasStyle):
  2420. (WebCore::CanvasStyle::create):
  2421. (WebCore::CanvasStyle::applyStrokeColor):
  2422. (WebCore::CanvasStyle::applyFillColor):
  2423. * html/canvas/CanvasStyle.h:
  2424. (WebCore::CanvasStyle::create):
  2425. (WebCore::CanvasStyle::color):
  2426. (WebCore::CanvasStyle::):
  2427. (WebCore::CanvasStyle::CMYKAValues::CMYKAValues):
  2428. * platform/graphics/Color.cpp:
  2429. (WebCore::Color::serialized):
  2430. * platform/graphics/Color.h:
  2431. 2010-05-19 Andreas Kling <andreas.kling@nokia.com>
  2432. Reviewed by Simon Hausmann.
  2433. [Qt] REGRESSION: CoolClock isn't rendered properly
  2434. https://bugs.webkit.org/show_bug.cgi?id=38526
  2435. CanvasRenderingContext2D's arc() should connect to the previous point
  2436. with a straight line (HTML5 spec 4.8.11.1.8), but if the path is empty
  2437. to begin with, we don't want a line back to (0,0)
  2438. This also fixes the rendering artifact discussed in bug 36226.
  2439. Spec link:
  2440. http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-arc
  2441. Test: fast/canvas/canvas-arc-connecting-line.html
  2442. * platform/graphics/qt/PathQt.cpp:
  2443. (WebCore::Path::addArc):
  2444. 2010-05-19 Alexander Pavlov <apavlov@chromium.org>
  2445. Reviewed by Jeremy Orlow.
  2446. Fix whitespace for the bug 38906
  2447. https://bugs.webkit.org/show_bug.cgi?id=39351
  2448. No new tests required (no code change).
  2449. * css/CSSParser.cpp:
  2450. (WebCore::CSSParser::~CSSParser):
  2451. (WebCore::CSSParser::setupParser):
  2452. (WebCore::CSSParser::parseSheet):
  2453. (WebCore::CSSParser::parseValue):
  2454. (WebCore::CSSParser::parseSelector):
  2455. (WebCore::unitFromString):
  2456. (WebCore::CSSParser::checkForOrphanedUnits):
  2457. (WebCore::CSSParser::parseWCSSInputProperty):
  2458. (WebCore::CSSParser::parseFillShorthand):
  2459. (WebCore::CSSParser::parseAnimationShorthand):
  2460. (WebCore::CSSParser::parseTransitionShorthand):
  2461. (WebCore::CSSParser::parseShorthand):
  2462. (WebCore::CSSParser::parse4Values):
  2463. (WebCore::CSSParser::parseAttr):
  2464. (WebCore::CSSParser::parseFillPositionXY):
  2465. (WebCore::CSSParser::parseFillPosition):
  2466. (WebCore::CSSParser::parseFillRepeat):
  2467. (WebCore::CSSParser::parseFillProperty):
  2468. (WebCore::CSSParser::parseAnimationTimingFunction):
  2469. (WebCore::CSSParser::parseAnimationProperty):
  2470. (WebCore::CSSParser::parseDashboardRegions):
  2471. (WebCore::CSSParser::parseCounterContent):
  2472. (WebCore::CSSParser::parseShape):
  2473. (WebCore::CSSParser::parseFont):
  2474. (WebCore::CSSParser::parseFontFamily):
  2475. (WebCore::CSSParser::parseFontFaceSrc):
  2476. (WebCore::parseInt):
  2477. (WebCore::CSSParser::parseColor):
  2478. (WebCore::CSSParser::parseShadow):
  2479. (WebCore::CSSParser::parseReflect):
  2480. (WebCore::BorderImageParseContext::commitNumber):
  2481. (WebCore::BorderImageParseContext::commitBorderImage):
  2482. (WebCore::CSSParser::parseBorderImage):
  2483. (WebCore::CSSParser::parseCounter):
  2484. (WebCore::parseGradientPoint):
  2485. (WebCore::parseGradientColorStop):
  2486. (WebCore::CSSParser::parseGradient):
  2487. (WebCore::CSSParser::parseCanvas):
  2488. (WebCore::CSSParser::parseTransform):
  2489. (WebCore::CSSParser::parseTransformOrigin):
  2490. (WebCore::CSSParser::parsePerspectiveOrigin):
  2491. (WebCore::CSSParser::text):
  2492. (WebCore::CSSParser::createRuleList):
  2493. (WebCore::CSSParser::createVariablesRule):
  2494. (WebCore::CSSParser::parseVariable):
  2495. (WebCore::CSSParser::parsePropertyWithResolvedVariables):
  2496. (WebCore::CSSParser::checkForVariables):
  2497. (WebCore::CSSParser::createKeyframeRule):
  2498. * css/CSSParser.h:
  2499. * inspector/InspectorController.cpp:
  2500. (WebCore::InspectorController::setFrontend):
  2501. (WebCore::InspectorController::show):
  2502. (WebCore::InspectorController::unbindAllResources):
  2503. (WebCore::InspectorController::didCommitLoad):
  2504. (WebCore::InspectorController::scriptImported):
  2505. (WebCore::InspectorController::getCurrentUserInitiatedProfileName):
  2506. (WebCore::InspectorController::removeBreakpoint):
  2507. (WebCore::drawOutlinedQuad):
  2508. (WebCore::InspectorController::stopTiming):
  2509. * inspector/InspectorDOMAgent.cpp:
  2510. (WebCore::InspectorDOMAgent::didRemoveDOMNode):
  2511. (WebCore::InspectorDOMAgent::getStyles):
  2512. (WebCore::InspectorDOMAgent::applyStyleText):
  2513. 2010-05-19 Steve Block <steveblock@google.com>
  2514. Reviewed by Nate Chapin.
  2515. V8 code generator does not add ENABLE guards around attribute getters and setters
  2516. https://bugs.webkit.org/show_bug.cgi?id=39222
  2517. No new tests, build fix only.
  2518. * bindings/scripts/CodeGeneratorV8.pm:
  2519. 2010-05-19 Jeremy Orlow <jorlow@chromium.org>
  2520. Unreviewed build fix for Chromium.
  2521. * storage/IndexedDatabaseImpl.cpp:
  2522. 2010-05-17 Jeremy Orlow <jorlow@chromium.org>
  2523. Reviewed by Darin Fisher.
  2524. Hook Chromium's WebIndexedDatabaseImpl up to IndexedDatabaseImpl
  2525. https://bugs.webkit.org/show_bug.cgi?id=39216
  2526. All of these functions are supposed to be passing around the origin since
  2527. the caller of IndexedDatabaseImpl might not be able to pass in a Frame*
  2528. object. I tried to fix this in an ealier patch, but obviously messed up.
  2529. Also change passing security origin strings to passing SecurityOrigin
  2530. objects.
  2531. No behavior change because Chromium was emulating the old behavior before
  2532. even though the code wasn't properly hooked up.
  2533. * storage/IndexedDatabase.h:
  2534. * storage/IndexedDatabaseImpl.cpp:
  2535. (WebCore::IndexedDatabaseImpl::open):
  2536. * storage/IndexedDatabaseImpl.h:
  2537. * storage/IndexedDatabaseRequest.cpp:
  2538. (WebCore::IndexedDatabaseRequest::open):
  2539. 2010-05-19 Ben Murdoch <benm@google.com>
  2540. Reviewed by Darin Adler.
  2541. Touch events are marked DontEnum in DOMWindow.idl
  2542. https://bugs.webkit.org/show_bug.cgi?id=39118
  2543. Touch events are the only attribute event listeners on the
  2544. window object that are marked DontEnum. For consistency allow
  2545. them to be enumerated.
  2546. * page/DOMWindow.idl: Remove DontEnum from touchcancel, touchend,
  2547. touchstart and touchmove attributes.
  2548. 2010-05-19 Simon Hausmann <simon.hausmann@nokia.com>
  2549. [Qt] Fix build warning
  2550. NamedAttrMap.h has been renamed to NamedNodeMap.h
  2551. * WebCore.pro:
  2552. 2010-05-19 Eric Seidel <eric@webkit.org>
  2553. Reviewed by Adam Barth.
  2554. Add an HTML parsing benchmark
  2555. https://bugs.webkit.org/show_bug.cgi?id=39338
  2556. This benchmark parses the HTML5 specification 10 times and
  2557. reports how long it takes. It does this 21 times, discarding
  2558. the first warm-up run, and then prints the average time and
  2559. standard deviation.
  2560. Sharking the benchmark correctly shows over 60% of the time spent under HTMLTokenizer::write().
  2561. The numbers from the benchmark are rather consistent. On my
  2562. Mac Book Pro, I consistently see standard deviations < 2% of total time.
  2563. * benchmarks/parser/html-parser.html: Added.
  2564. * benchmarks/parser/resources/html5.html: Added.
  2565. 2010-05-18 Yuzo Fujishima <yuzo@google.com>
  2566. Reviewed by Shinichiro Hamaji.
  2567. Make CSS Parser properly handle only-for-pages pseudo-classes.
  2568. A new Match category, PagePseudoClass, is introduced to distinguish
  2569. only-for-pages pseudo-classes from others. A new symbol, pseudo_page,
  2570. is introduced to handle them separately.
  2571. https://bugs.webkit.org/show_bug.cgi?id=38731
  2572. * css/CSSGrammar.y:
  2573. * css/CSSParser.cpp:
  2574. (WebCore::CSSParser::createMarginAtRule):
  2575. * css/CSSParser.h:
  2576. * css/CSSSelector.cpp:
  2577. (WebCore::CSSSelector::extractPseudoType):
  2578. (WebCore::CSSSelector::selectorText):
  2579. * css/CSSSelector.h:
  2580. (WebCore::CSSSelector::):
  2581. * css/CSSStyleSelector.cpp:
  2582. (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
  2583. 2010-05-19 Adam Barth <abarth@webkit.org>
  2584. Reviewed by David Hyatt.
  2585. Change the API of nextToken to distinguish between emitting a token and just running out of input
  2586. https://bugs.webkit.org/show_bug.cgi?id=39349
  2587. I'm not sure there's a functional difference with this patch yet, but
  2588. as discussed with Eric, we need this to handle attributes.
  2589. * html/HTML5Lexer.cpp:
  2590. (WebCore::HTML5Lexer::reset):
  2591. (WebCore::HTML5Lexer::nextToken):
  2592. * html/HTML5Lexer.h:
  2593. * html/HTML5Token.h:
  2594. (WebCore::HTML5Token::HTML5Token):
  2595. (WebCore::HTML5Token::clear):
  2596. (WebCore::HTML5Token::beginStartTag):
  2597. (WebCore::HTML5Token::beginEndTag):
  2598. (WebCore::HTML5Token::beginCharacter):
  2599. * html/HTML5Tokenizer.cpp:
  2600. (WebCore::HTML5Tokenizer::write):
  2601. 2010-05-18 Eric Seidel <eric@webkit.org>
  2602. Reviewed by Maciej Stachowiak.
  2603. Refactor HTMLTokenizer::write to make it more readable and split out the lexer bits from flow control bits
  2604. https://bugs.webkit.org/show_bug.cgi?id=39318
  2605. No functional changes, only moving code into smaller functions.
  2606. This code is already covered by numerous layout tests.
  2607. HTML parsing benchmark shows this to be a wash.
  2608. * dom/Tokenizer.h:
  2609. * html/HTMLTokenizer.cpp:
  2610. (WebCore::HTMLTokenizer::advance):
  2611. - New funtion to encapulate code which will move into HTMLLexer eventually.
  2612. - Use ALWAYS_INLINE to make sure compilers inline this large
  2613. function (otherwise this patch is a regression).
  2614. (WebCore::HTMLTokenizer::willWriteHTML):
  2615. - New function to handle calling any pre-write delegates.
  2616. (WebCore::HTMLTokenizer::didWriteHTML):
  2617. - New function to handle calling any post-write delegates.
  2618. (WebCore::HTMLTokenizer::write):
  2619. - Call the new functions.
  2620. * html/HTMLTokenizer.h:
  2621. 2010-05-18 Adam Barth <abarth@webkit.org>
  2622. Reviewed by Eric Seidel.
  2623. Make the HTML5 parser correctly parse <div>Hello</div>
  2624. https://bugs.webkit.org/show_bug.cgi?id=39345
  2625. Again, this patch is covered by a large number of LayoutTests.
  2626. * html/HTML5Lexer.cpp:
  2627. (WebCore::HTML5Lexer::HTML5Lexer):
  2628. (WebCore::HTML5Lexer::reset):
  2629. (WebCore::HTML5Lexer::nextToken):
  2630. (WebCore::HTML5Lexer::emitCommentToken):
  2631. (WebCore::HTML5Lexer::emitCharacter):
  2632. (WebCore::HTML5Lexer::emitCurrentTagToken):
  2633. * html/HTML5Lexer.h:
  2634. * html/HTML5Token.h:
  2635. (WebCore::HTML5Token::beginCharacter):
  2636. (WebCore::HTML5Token::appendToCharacter):
  2637. (WebCore::HTML5Token::characters):
  2638. * html/HTML5Tokenizer.cpp:
  2639. (WebCore::convertToOldStyle):
  2640. 2010-05-18 Adam Barth <abarth@webkit.org>
  2641. Reviewed by Eric Seidel.
  2642. Make the HTML5 parser actually parse <div></div>
  2643. https://bugs.webkit.org/show_bug.cgi?id=39342
  2644. This patch is covered by every LayoutTest. Yes. All of them. :)
  2645. * html/HTML5Lexer.cpp:
  2646. (WebCore::toLowerCase):
  2647. (WebCore::HTML5Lexer::HTML5Lexer):
  2648. (WebCore::HTML5Lexer::nextToken):
  2649. (WebCore::HTML5Lexer::emitCharacter):
  2650. * html/HTML5Lexer.h:
  2651. * html/HTML5Token.h:
  2652. (WebCore::HTML5Token::HTML5Token):
  2653. (WebCore::HTML5Token::beginStartTag):
  2654. (WebCore::HTML5Token::beginEndTag):
  2655. (WebCore::HTML5Token::appendToName):
  2656. (WebCore::HTML5Token::type):
  2657. (WebCore::HTML5Token::name):
  2658. (WebCore::HTML5Token::selfClosing):
  2659. (WebCore::HTML5Token::attrs):
  2660. * html/HTML5Tokenizer.cpp:
  2661. (WebCore::convertToOldStyle):
  2662. (WebCore::HTML5Tokenizer::write):
  2663. 2010-05-18 Tony Chang <tony@chromium.org>
  2664. Reviewed by Ojan Vafai.
  2665. REGRESSION: crash in WebCore::CompositeEditCommand::splitTreeToNode when indenting in an empty li
  2666. https://bugs.webkit.org/show_bug.cgi?id=38232
  2667. Test: editing/execCommand/crash-indenting-list-item.html
  2668. * editing/IndentOutdentCommand.cpp:
  2669. (WebCore::IndentOutdentCommand::tryIndentingAsListItem):
  2670. (WebCore::IndentOutdentCommand::indentIntoBlockquote):
  2671. 2010-05-18 Kent Tamura <tkent@chromium.org>
  2672. Reviewed by Darin Adler.
  2673. ':optional' pseudo selector should not be applied to <keygen> and <progress>
  2674. https://bugs.webkit.org/show_bug.cgi?id=39292
  2675. Test: fast/css/pseudo-required-optional-unapplied.html
  2676. * html/HTMLKeygenElement.h:
  2677. (WebCore::HTMLKeygenElement::isOptionalFormControl):
  2678. Add isOptionalFormControl() returning false.
  2679. HTMLKeygenElement inherits HTMLSelectElement, which should return true
  2680. for isOptionalFormControl(). However, <keygen> is not :optional
  2681. according to the standard.
  2682. * html/HTMLProgressElement.h:
  2683. Remove isOptionalFormControl().
  2684. 2010-05-18 Adam Barth <abarth@webkit.org>
  2685. Reviewed by Eric Seidel.
  2686. Implement the DOCTYPE states for the HTML5 lexer
  2687. https://bugs.webkit.org/show_bug.cgi?id=39335
  2688. * html/HTML5Lexer.cpp:
  2689. (WebCore::HTML5Lexer::nextToken):
  2690. (WebCore::emitCurrentDoctypeToken):
  2691. * html/HTML5Lexer.h:
  2692. 2010-05-18 Tony Chang <tony@chromium.org>
  2693. Reviewed by Ojan Vafai.
  2694. [chromium] ignore IME events if the keydown event was prevented
  2695. https://bugs.webkit.org/show_bug.cgi?id=37692
  2696. A manual test to verify the IME behavior since the existing methods of
  2697. textInputController test at a lower level than the fix.
  2698. * manual-tests/ime-keydown-preventdefault.html: Added.
  2699. 2010-05-18 Sam Weinig <sam@webkit.org>
  2700. Fix the build for platforms that don't always include UnusedParam.h
  2701. * dom/Attribute.cpp:
  2702. 2010-05-18 MORITA Hajime <morrita@google.com>
  2703. Reviewed by Kent Tamura.
  2704. [Chromium] Windows: Determinate progress bar should have glossy overlay
  2705. https://bugs.webkit.org/show_bug.cgi?id=39269
  2706. - Moved animation code from RenderThemeChromiumWin to chromium tree
  2707. because it should be behind the theme implementation, which lives
  2708. in chromium tree.
  2709. - Passed current time to the bridge, which will be used to compute
  2710. the state of the theme animation.
  2711. No new tests, animation effect can be confirmed only manually.
  2712. * platform/chromium/ChromiumBridge.h:
  2713. * rendering/RenderProgress.h:
  2714. (WebCore::RenderProgress::animationStartTime): Added.
  2715. * rendering/RenderThemeChromiumWin.cpp:
  2716. (WebCore::RenderThemeChromiumWin::animationDurationForProgressBar):
  2717. (WebCore::RenderThemeChromiumWin::paintProgressBar):
  2718. 2010-05-18 Sam Weinig <sam@webkit.org>
  2719. Fix release build.
  2720. * dom/Attribute.cpp:
  2721. (WebCore::Attribute::unbindAttr):
  2722. 2010-05-18 Sam Weinig <sam@webkit.org>
  2723. Reviewed by Maciej Stachowiak.
  2724. Move Attr pointer from Attribute to a global HashMap.
  2725. https://bugs.webkit.org/show_bug.cgi?id=39337
  2726. <rdar://problem/8001168>
  2727. Shaves another word off of Attribute.
  2728. * dom/Attr.cpp:
  2729. (WebCore::Attr::Attr):
  2730. (WebCore::Attr::~Attr):
  2731. * dom/Attribute.cpp:
  2732. (WebCore::attributeAttrMap):
  2733. (WebCore::Attribute::attr):
  2734. (WebCore::Attribute::createAttrIfNeeded):
  2735. (WebCore::Attribute::bindAttr):
  2736. (WebCore::Attribute::unbindAttr):
  2737. * dom/Attribute.h:
  2738. (WebCore::Attribute::Attribute):
  2739. 2010-05-18 Jakob Petsovits <jpetsovits@rim.com>
  2740. Unreviewed, forgot to svn add source file in r59619.
  2741. http://trac.webkit.org/changeset/59619
  2742. * platform/image-decoders/openvg: Added.
  2743. * platform/image-decoders/openvg/ImageDecoderOpenVG.cpp: Added.
  2744. (WebCore::RGBA32Buffer::asNewNativeImage):
  2745. 2010-05-18 Yaar Schnitman <yaar@chromium.org>
  2746. Unreviewed, rolling out r59693.
  2747. http://trac.webkit.org/changeset/59693
  2748. https://bugs.webkit.org/show_bug.cgi?id=37815
  2749. Broke GTK Release
  2750. * Android.jscbindings.mk:
  2751. * CMakeLists.txt:
  2752. * GNUmakefile.am:
  2753. * WebCore.gypi:
  2754. * WebCore.pro:
  2755. * WebCore.vcproj/WebCore.vcproj:
  2756. * WebCore.xcodeproj/project.pbxproj:
  2757. * bindings/js/JSBindingsAllInOne.cpp:
  2758. * bindings/js/JSCallbackData.cpp:
  2759. (WebCore::JSCallbackData::invokeCallback):
  2760. * bindings/js/JSEventListener.cpp:
  2761. (WebCore::JSEventListener::handleEvent):
  2762. * bindings/js/JSInjectedScriptHostCustom.cpp:
  2763. (WebCore::InjectedScriptHost::createInjectedScript):
  2764. * bindings/js/JSMainThreadExecState.cpp: Removed.
  2765. * bindings/js/JSMainThreadExecState.h: Removed.
  2766. * bindings/js/ScheduledAction.cpp:
  2767. (WebCore::ScheduledAction::executeFunctionInContext):
  2768. (WebCore::ScheduledAction::execute):
  2769. * bindings/js/ScheduledAction.h:
  2770. * bindings/js/ScriptController.cpp:
  2771. (WebCore::ScriptController::evaluateInWorld):
  2772. * bindings/js/ScriptController.h:
  2773. * bindings/js/ScriptFunctionCall.cpp:
  2774. (WebCore::ScriptFunctionCall::call):
  2775. * bindings/objc/ObjCEventListener.mm:
  2776. * bindings/objc/WebScriptObject.mm:
  2777. (-[WebScriptObject callWebScriptMethod:withArguments:]):
  2778. (-[WebScriptObject evaluateWebScript:]):
  2779. * bindings/scripts/CodeGeneratorObjC.pm:
  2780. * bindings/scripts/test/ObjC/DOMTestCallback.mm:
  2781. (-[DOMTestCallback callbackWithClass1Param:]):
  2782. (-[DOMTestCallback callbackWithClass2Param:strArg:]):
  2783. (-[DOMTestCallback callbackWithNonBoolReturnType:]):
  2784. (-[DOMTestCallback customCallback:class6Param:]):
  2785. * bindings/scripts/test/ObjC/DOMTestInterface.mm:
  2786. * bindings/scripts/test/ObjC/DOMTestObj.mm:
  2787. (-[DOMTestObj readOnlyIntAttr]):
  2788. (-[DOMTestObj readOnlyStringAttr]):
  2789. (-[DOMTestObj readOnlyTestObjAttr]):
  2790. (-[DOMTestObj intAttr]):
  2791. (-[DOMTestObj setIntAttr:]):
  2792. (-[DOMTestObj longLongAttr]):
  2793. (-[DOMTestObj setLongLongAttr:]):
  2794. (-[DOMTestObj unsignedLongLongAttr]):
  2795. (-[DOMTestObj setUnsignedLongLongAttr:]):
  2796. (-[DOMTestObj stringAttr]):
  2797. (-[DOMTestObj setStringAttr:]):
  2798. (-[DOMTestObj testObjAttr]):
  2799. (-[DOMTestObj setTestObjAttr:]):
  2800. (-[DOMTestObj attrWithException]):
  2801. (-[DOMTestObj setAttrWithException:]):
  2802. (-[DOMTestObj attrWithSetterException]):
  2803. (-[DOMTestObj setAttrWithSetterException:]):
  2804. (-[DOMTestObj attrWithGetterException]):
  2805. (-[DOMTestObj setAttrWithGetterException:]):
  2806. (-[DOMTestObj customAttr]):
  2807. (-[DOMTestObj setCustomAttr:]):
  2808. (-[DOMTestObj scriptStringAttr]):
  2809. (-[DOMTestObj voidMethod]):
  2810. (-[DOMTestObj voidMethodWithArgs:strArg:objArg:]):
  2811. (-[DOMTestObj intMethod]):
  2812. (-[DOMTestObj intMethodWithArgs:strArg:objArg:]):
  2813. (-[DOMTestObj objMethod]):
  2814. (-[DOMTestObj objMethodWithArgs:strArg:objArg:]):
  2815. (-[DOMTestObj methodThatRequiresAllArgs:objArg:]):
  2816. (-[DOMTestObj methodThatRequiresAllArgsAndThrows:objArg:]):
  2817. (-[DOMTestObj serializedValue:]):
  2818. (-[DOMTestObj methodWithException]):
  2819. (-[DOMTestObj customMethod]):
  2820. (-[DOMTestObj customMethodWithArgs:strArg:objArg:]):
  2821. (-[DOMTestObj customArgsAndException:]):
  2822. (-[DOMTestObj addEventListener:listener:useCapture:]):
  2823. (-[DOMTestObj removeEventListener:listener:useCapture:]):
  2824. (-[DOMTestObj withDynamicFrame]):
  2825. (-[DOMTestObj withDynamicFrameAndArg:]):
  2826. (-[DOMTestObj withDynamicFrameAndOptionalArg:optionalArg:]):
  2827. (-[DOMTestObj withDynamicFrameAndUserGesture:]):
  2828. (-[DOMTestObj withDynamicFrameAndUserGestureASAD:optionalArg:]):
  2829. (-[DOMTestObj withScriptStateVoid]):
  2830. (-[DOMTestObj withScriptStateObj]):
  2831. (-[DOMTestObj withScriptStateVoidException]):
  2832. (-[DOMTestObj withScriptStateObjException]):
  2833. (-[DOMTestObj methodWithOptionalArg:]):
  2834. (-[DOMTestObj methodWithNonOptionalArgAndOptionalArg:opt:]):
  2835. (-[DOMTestObj methodWithNonOptionalArgAndTwoOptionalArgs:opt1:opt2:]):
  2836. * bindings/v8/ScriptController.cpp:
  2837. * bindings/v8/ScriptController.h:
  2838. * html/HTMLFrameElementBase.cpp:
  2839. (WebCore::HTMLFrameElementBase::isURLAllowed):
  2840. 2010-05-18 Adam Barth <abarth@webkit.org>
  2841. Reviewed by Eric Seidel.
  2842. Implement comment states for HTML5 lexer
  2843. https://bugs.webkit.org/show_bug.cgi?id=39334
  2844. * html/HTML5Lexer.cpp:
  2845. (WebCore::HTML5Lexer::nextToken):
  2846. 2010-05-18 Anders Carlsson <andersca@apple.com>
  2847. Reviewed by Sam Weinig.
  2848. Move all member variables from MappedAttribute to Attribute.
  2849. https://bugs.webkit.org/show_bug.cgi?id=39336
  2850. <rdar://problem/8000853>
  2851. This saves one word because we no longer have any virtual member functions in Attribute, and
  2852. thus no vtable pointer.
  2853. I plan to remove MappedAttribute altogether in a subsequent commit.
  2854. * Android.mk:
  2855. * GNUmakefile.am:
  2856. * WebCore.gypi:
  2857. * WebCore.pro:
  2858. * WebCore.vcproj/WebCore.vcproj:
  2859. * WebCore.xcodeproj/project.pbxproj:
  2860. * css/CSSStyleSelector.cpp:
  2861. (WebCore::CSSStyleSelector::styleForElement):
  2862. * dom/Attribute.cpp:
  2863. (WebCore::Attribute::clone):
  2864. * dom/Attribute.h:
  2865. (WebCore::Attribute::create):
  2866. (WebCore::Attribute::style):
  2867. (WebCore::Attribute::decl):
  2868. (WebCore::Attribute::setDecl):
  2869. (WebCore::Attribute::isMappedAttribute):
  2870. (WebCore::Attribute::Attribute):
  2871. * dom/MappedAttribute.cpp: Removed.
  2872. * dom/MappedAttribute.h:
  2873. (WebCore::MappedAttribute::create):
  2874. (WebCore::MappedAttribute::MappedAttribute):
  2875. (WebCore::toMappedAttribute):
  2876. * dom/NamedMappedAttrMap.cpp:
  2877. (WebCore::NamedMappedAttrMap::declCount):
  2878. (WebCore::NamedMappedAttrMap::mapsEquivalent):
  2879. * dom/StyledElement.cpp:
  2880. (WebCore::StyledElement::attributeChanged):
  2881. * svg/SVGSVGElement.cpp:
  2882. (WebCore::updateCSSForAttribute):
  2883. * svg/SVGStyledElement.cpp:
  2884. (WebCore::SVGStyledElement::getPresentationAttribute):
  2885. 2010-05-18 Tony Chang <tony@chromium.org>
  2886. Reviewed by Darin Adler.
  2887. https://bugs.webkit.org/show_bug.cgi?id=24943
  2888. Command-B and Command-I do not generate keydown events in contentEditable regions.
  2889. * manual-tests/style-keypress-events.html: Added.
  2890. 2010-05-18 Adam Barth <abarth@webkit.org>
  2891. Reviewed by Eric Seidel.
  2892. Add more state to the HTML5 lexer
  2893. https://bugs.webkit.org/show_bug.cgi?id=39333
  2894. This code is just transliteration from the spec.
  2895. * html/HTML5Lexer.cpp:
  2896. (WebCore::HTML5Lexer::HTML5Lexer):
  2897. (WebCore::HTML5Lexer::nextToken):
  2898. * html/HTML5Lexer.h:
  2899. 2010-05-18 Adam Barth <abarth@webkit.org>
  2900. Reviewed by Eric Seidel.
  2901. Implement two more lexer states
  2902. https://bugs.webkit.org/show_bug.cgi?id=39298
  2903. No tests because Eric is still working on wiring up the lexer to the
  2904. test harness.
  2905. * html/HTML5Lexer.cpp:
  2906. (WebCore::HTML5Lexer::nextToken):
  2907. (WebCore::HTML5Lexer::emitParseError):
  2908. (WebCore::HTML5Lexer::emitCurrentTagToken):
  2909. * html/HTML5Lexer.h:
  2910. 2010-05-18 Brady Eidson <beidson@apple.com>
  2911. Reviewed by Maciej Stachowiak.
  2912. Repro crash with many Google image search results
  2913. <rdar://problem/7685669> and https://bugs.webkit.org/show_bug.cgi?id=39323
  2914. When an iframe has a plugin resource as its src, that case bypassed the plugin sandboxing checks and continued to load
  2915. the data for the plugin resource. It handed that data off to a nonexistent Widget, causing a null deref and the crash.
  2916. By replacing PluginDocuments in sandboxes iframes with a new "SinkDocument" that just acts as a data sink, we prevent the
  2917. crash and also prevent actually loading the plugin binaries.
  2918. I filed https://bugs.webkit.org/show_bug.cgi?id=39330 to follow up and let us cancel the load as soon as we know we should.
  2919. Test: fast/loader/sandboxed-plugin-crash.html
  2920. * CMakeLists.txt:
  2921. * GNUmakefile.am:
  2922. * WebCore.gypi:
  2923. * WebCore.pro:
  2924. * WebCore.vcproj/WebCore.vcproj:
  2925. * WebCore.xcodeproj/project.pbxproj:
  2926. * loader/DocumentWriter.cpp:
  2927. (WebCore::DocumentWriter::begin): If the created document is a PluginDocument and the plugin sandbox flag is set,
  2928. replace it with a SinkDocument.
  2929. * loader/PluginDocument.h:
  2930. (WebCore::PluginDocument::isPluginDocument): Make public (it was already public at the Document.h level).
  2931. Add a simple document/tokenizer pair that simply presents a blank HTML document and acts as a data sink for whatever
  2932. data is handed to it:
  2933. * loader/SinkDocument.cpp: Added.
  2934. (WebCore::SinkTokenizer::SinkTokenizer):
  2935. (WebCore::SinkTokenizer::write):
  2936. (WebCore::SinkTokenizer::isWaitingForScripts):
  2937. (WebCore::SinkTokenizer::wantsRawData):
  2938. (WebCore::SinkTokenizer::writeRawData):
  2939. (WebCore::SinkTokenizer::stopParsing):
  2940. (WebCore::SinkTokenizer::finish):
  2941. (WebCore::SinkDocument::SinkDocument):
  2942. (WebCore::SinkDocument::createTokenizer):
  2943. * loader/SinkDocument.h: Added.
  2944. (WebCore::SinkDocument::create):
  2945. 2010-05-18 Sam Weinig <sam@webkit.org>
  2946. Reviewed by Anders Carlsson.
  2947. https://bugs.webkit.org/show_bug.cgi?id=39321
  2948. Reduce the size of ListHashSets used by Document
  2949. <rdar://problem/7999388>
  2950. Reduce Membuster peak memory usage by ~450K by reducing the pool sizes
  2951. of the ListHashSets used by Document.
  2952. * dom/Document.cpp:
  2953. (WebCore::Document::addStyleSheetCandidateNode):
  2954. (WebCore::Document::recalcStyleSelector):
  2955. * dom/Document.h:
  2956. 2010-05-18 Kenneth Rohde Christiansen <kenneth@webkit.org>
  2957. Rubberstamped by Simon Hausmann.
  2958. Return null when creating an ImageBuffer failed, due to for
  2959. instance a nulled pixmap.
  2960. * platform/graphics/qt/ImageBufferQt.cpp:
  2961. (WebCore::ImageBufferData::ImageBufferData):
  2962. (WebCore::ImageBuffer::ImageBuffer):
  2963. 2010-05-18 Jian Li <jianli@chromium.org>
  2964. Reviewed by Dmitry Titov.
  2965. Fix bug 39285: fast/files/file-reader.html is timing out on all mac bots.
  2966. https://bugs.webkit.org/show_bug.cgi?id=39285
  2967. The timeout is caused by 59659 that changed the GC timer to 0 and thus
  2968. triggered a bug in FileReader code. The fix is to add more states so
  2969. that hasPendingActivity() can do the check correctly.
  2970. * html/FileReader.cpp:
  2971. (WebCore::FileReader::FileReader):
  2972. (WebCore::FileReader::hasPendingActivity):
  2973. (WebCore::FileReader::readInternal):
  2974. (WebCore::FileReader::terminate):
  2975. (WebCore::FileReader::didStart):
  2976. (WebCore::FileReader::didGetSize):
  2977. (WebCore::FileReader::didRead):
  2978. (WebCore::FileReader::didFinish):
  2979. (WebCore::FileReader::didFail):
  2980. (WebCore::FileReader::readyState):
  2981. (WebCore::FileReader::result):
  2982. * html/FileReader.h:
  2983. (WebCore::FileReader::):
  2984. 2010-05-18 Simon Fraser <simon.fraser@apple.com>
  2985. Reviewed by Darin Adler.
  2986. Clean up GraphicsLayer naming code
  2987. https://bugs.webkit.org/show_bug.cgi?id=39316
  2988. Move code that generates a name for the GraphicsLayer (used in debug builds only) into
  2989. a new nameForLayer() method. Use it when naming the foreground layer.
  2990. * rendering/RenderLayerBacking.cpp:
  2991. (WebCore::RenderLayerBacking::createGraphicsLayer):
  2992. (WebCore::RenderLayerBacking::updateForegroundLayer):
  2993. (WebCore::RenderLayerBacking::nameForLayer):
  2994. * rendering/RenderLayerBacking.h:
  2995. 2010-05-18 Justin Schuh <jschuh@chromium.org>
  2996. Reviewed by Adam Barth.
  2997. Moving frame.src checks out of the bindings
  2998. https://bugs.webkit.org/show_bug.cgi?id=37815
  2999. Moved JavaScript frame.src checks out of bindings and into
  3000. HTMLFrameElementBase. Added main thread state stack to JavaScriptCore
  3001. so ExecState is available inside core DOM. Updated affected bindings
  3002. (except for GObject, which will need to be updated to avoid origin
  3003. failures inside native code).
  3004. * Android.jscbindings.mk:
  3005. * CMakeLists.txt:
  3006. * GNUmakefile.am:
  3007. * WebCore.gypi:
  3008. * WebCore.pro:
  3009. * WebCore.vcproj/WebCore.vcproj:
  3010. * WebCore.xcodeproj/project.pbxproj:
  3011. * bindings/js/JSBindingsAllInOne.cpp:
  3012. * bindings/js/JSCallbackData.cpp:
  3013. (WebCore::JSCallbackData::invokeCallback):
  3014. * bindings/js/JSEventListener.cpp:
  3015. (WebCore::JSEventListener::handleEvent):
  3016. * bindings/js/JSInjectedScriptHostCustom.cpp:
  3017. (WebCore::InjectedScriptHost::createInjectedScript):
  3018. * bindings/js/JSMainThreadExecState.cpp: Added.
  3019. * bindings/js/JSMainThreadExecState.h: Added.
  3020. (WebCore::JSMainThreadExecState::currentState):
  3021. (WebCore::JSMainThreadExecState::call):
  3022. (WebCore::JSMainThreadExecState::evaluate):
  3023. (WebCore::JSMainThreadExecState::JSMainThreadExecState):
  3024. (WebCore::JSMainThreadExecState::~JSMainThreadExecState):
  3025. (WebCore::JSMainThreadNullState::JSMainThreadNullState):
  3026. * bindings/js/ScheduledAction.cpp:
  3027. (WebCore::ScheduledAction::executeFunctionInContext):
  3028. (WebCore::ScheduledAction::execute):
  3029. * bindings/js/ScheduledAction.h:
  3030. * bindings/js/ScriptController.cpp:
  3031. (WebCore::ScriptController::evaluateInWorld):
  3032. (WebCore::ScriptController::canAccessFromCurrentOrigin):
  3033. * bindings/js/ScriptController.h:
  3034. * bindings/js/ScriptFunctionCall.cpp:
  3035. (WebCore::ScriptFunctionCall::call):
  3036. * bindings/objc/ObjCEventListener.mm:
  3037. * bindings/objc/WebScriptObject.mm:
  3038. (-[WebScriptObject callWebScriptMethod:withArguments:]):
  3039. (-[WebScriptObject evaluateWebScript:]):
  3040. * bindings/scripts/CodeGeneratorObjC.pm:
  3041. * bindings/scripts/test/ObjC/DOMTestCallback.mm:
  3042. (-[DOMTestCallback callbackWithClass1Param:]):
  3043. (-[DOMTestCallback callbackWithClass2Param:strArg:]):
  3044. (-[DOMTestCallback callbackWithNonBoolReturnType:]):
  3045. (-[DOMTestCallback customCallback:class6Param:]):
  3046. * bindings/scripts/test/ObjC/DOMTestInterface.mm:
  3047. * bindings/scripts/test/ObjC/DOMTestObj.mm:
  3048. (-[DOMTestObj readOnlyIntAttr]):
  3049. (-[DOMTestObj readOnlyStringAttr]):
  3050. (-[DOMTestObj readOnlyTestObjAttr]):
  3051. (-[DOMTestObj intAttr]):
  3052. (-[DOMTestObj setIntAttr:]):
  3053. (-[DOMTestObj longLongAttr]):
  3054. (-[DOMTestObj setLongLongAttr:]):
  3055. (-[DOMTestObj unsignedLongLongAttr]):
  3056. (-[DOMTestObj setUnsignedLongLongAttr:]):
  3057. (-[DOMTestObj stringAttr]):
  3058. (-[DOMTestObj setStringAttr:]):
  3059. (-[DOMTestObj testObjAttr]):
  3060. (-[DOMTestObj setTestObjAttr:]):
  3061. (-[DOMTestObj attrWithException]):
  3062. (-[DOMTestObj setAttrWithException:]):
  3063. (-[DOMTestObj attrWithSetterException]):
  3064. (-[DOMTestObj setAttrWithSetterException:]):
  3065. (-[DOMTestObj attrWithGetterException]):
  3066. (-[DOMTestObj setAttrWithGetterException:]):
  3067. (-[DOMTestObj customAttr]):
  3068. (-[DOMTestObj setCustomAttr:]):
  3069. (-[DOMTestObj scriptStringAttr]):
  3070. (-[DOMTestObj voidMethod]):
  3071. (-[DOMTestObj voidMethodWithArgs:strArg:objArg:]):
  3072. (-[DOMTestObj intMethod]):
  3073. (-[DOMTestObj intMethodWithArgs:strArg:objArg:]):
  3074. (-[DOMTestObj objMethod]):
  3075. (-[DOMTestObj objMethodWithArgs:strArg:objArg:]):
  3076. (-[DOMTestObj methodThatRequiresAllArgs:objArg:]):
  3077. (-[DOMTestObj methodThatRequiresAllArgsAndThrows:objArg:]):
  3078. (-[DOMTestObj serializedValue:]):
  3079. (-[DOMTestObj methodWithException]):
  3080. (-[DOMTestObj customMethod]):
  3081. (-[DOMTestObj customMethodWithArgs:strArg:objArg:]):
  3082. (-[DOMTestObj customArgsAndException:]):
  3083. (-[DOMTestObj addEventListener:listener:useCapture:]):
  3084. (-[DOMTestObj removeEventListener:listener:useCapture:]):
  3085. (-[DOMTestObj withDynamicFrame]):
  3086. (-[DOMTestObj withDynamicFrameAndArg:]):
  3087. (-[DOMTestObj withDynamicFrameAndOptionalArg:optionalArg:]):
  3088. (-[DOMTestObj withDynamicFrameAndUserGesture:]):
  3089. (-[DOMTestObj withDynamicFrameAndUserGestureASAD:optionalArg:]):
  3090. (-[DOMTestObj withScriptStateVoid]):
  3091. (-[DOMTestObj withScriptStateObj]):
  3092. (-[DOMTestObj withScriptStateVoidException]):
  3093. (-[DOMTestObj withScriptStateObjException]):
  3094. (-[DOMTestObj methodWithOptionalArg:]):
  3095. (-[DOMTestObj methodWithNonOptionalArgAndOptionalArg:opt:]):
  3096. (-[DOMTestObj methodWithNonOptionalArgAndTwoOptionalArgs:opt1:opt2:]):
  3097. * bindings/v8/ScriptController.cpp:
  3098. (WebCore::ScriptController::canAccessFromCurrentOrigin):
  3099. * bindings/v8/ScriptController.h:
  3100. * html/HTMLFrameElementBase.cpp:
  3101. (WebCore::HTMLFrameElementBase::isURLAllowed):
  3102. 2010-05-18 Drew Wilson <atwilson@chromium.org>
  3103. Unreviewed: Speculative build fix for Chromium win.
  3104. * platform/graphics/skia/SkiaFontWin.cpp: Properly set inlineCapacity.
  3105. 2010-05-18 Drew Wilson <atwilson@chromium.org>
  3106. Unreviewed fix for Chromium build break.
  3107. * platform/graphics/skia/SkiaFontWin.cpp: Now set inlineCapacity param.
  3108. 2010-05-18 Daniel Cheng <dcheng@chromium.org>
  3109. Reviewed by Darin Adler, Jian Li.
  3110. DragData::asURL() shouldn't do file validity checks
  3111. https://bugs.webkit.org/show_bug.cgi?id=38711
  3112. There's no point to trying to make sure the file is valid in
  3113. DragData::asURL(). It's better to ask for forgiveness than to ask for
  3114. permission, since asking for permission is prone to race conditions
  3115. and results in unnecessary I/O. Consumers of this function either:
  3116. - need to verify the file exists themselves (e.g. the loader)
  3117. - don't care about file validity (rich text drag-and-drop)
  3118. * platform/chromium/DragDataChromium.cpp:
  3119. (WebCore::DragData::asURL):
  3120. 2010-05-18 Timothy Hatcher <timothy@apple.com>
  3121. Fix a handful of various localization issues in the Web Inspector.
  3122. * Localize strings that where not localized.
  3123. * Make WebInspector.UIString work without bind.
  3124. * Always pass WebInspector.UIString to Number.secondsToString and Number.bytesToString.
  3125. * Never pass a variable to WebInspector.UIString, since that prevents auto-generation.
  3126. * Use an ellipsis instead of three periods.
  3127. https://webkit.org/b/39303
  3128. rdar://problem/7997101
  3129. Reviewed by Adam Roben.
  3130. * English.lproj/localizedStrings.js:
  3131. * inspector/front-end/AuditRules.js:
  3132. (WebInspector.AuditRules.GzipRule.prototype.doRun):
  3133. (WebInspector.AuditRules.CookieSizeRule.prototype.processCookies):
  3134. (WebInspector.AuditRules.StaticCookielessRule.prototype.processCookies):
  3135. * inspector/front-end/ConsoleView.js:
  3136. (WebInspector.ConsoleView):
  3137. * inspector/front-end/ImageView.js:
  3138. (WebInspector.ImageView.prototype.contentTabSelected):
  3139. * inspector/front-end/ProfileDataGridTree.js:
  3140. (WebInspector.ProfileDataGridNode.prototype.get data.formatMilliseconds):
  3141. (WebInspector.ProfileDataGridNode.prototype.get data):
  3142. * inspector/front-end/ResourcesPanel.js:
  3143. (WebInspector.ResourceTimeCalculator.prototype.formatValue):
  3144. (WebInspector.ResourceTransferTimeCalculator.prototype.formatValue):
  3145. (WebInspector.ResourceTransferDurationCalculator.prototype.formatValue):
  3146. (WebInspector.ResourceTransferSizeCalculator.prototype.formatValue):
  3147. * inspector/front-end/ScriptsPanel.js:
  3148. (WebInspector.ScriptsPanel.prototype._registerShortcuts):
  3149. * inspector/front-end/SourceFrame.js:
  3150. (WebInspector.SourceFrame.prototype._contextMenu):
  3151. * inspector/front-end/TimelineOverviewPane.js:
  3152. (WebInspector.TimelineOverviewCalculator):
  3153. (WebInspector.TimelineOverviewCalculator.prototype.formatValue):
  3154. * inspector/front-end/TimelinePanel.js:
  3155. (WebInspector.TimelinePanel):
  3156. (WebInspector.TimelineCalculator):
  3157. (WebInspector.TimelineCalculator.prototype.formatValue):
  3158. (WebInspector.TimelinePanel.FormattedRecord.prototype._generateAggregatedInfo):
  3159. (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
  3160. (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
  3161. (WebInspector.TimelinePanel.PopupContentHelper.prototype._appendTextRow):
  3162. (WebInspector.TimelinePanel.PopupContentHelper.prototype._appendElementRow):
  3163. * inspector/front-end/inspector.js:
  3164. (WebInspector.loaded):
  3165. (WebInspector.setRecordingProfile):
  3166. (WebInspector.UIString):
  3167. 2010-05-18 Sam Weinig <sam@webkit.org>
  3168. Another attempt to fix the build.
  3169. * css/CSSCursorImageValue.cpp:
  3170. 2010-05-18 Adam Roben <aroben@apple.com>
  3171. Make accelerated compositing work on machines that don't support
  3172. hardware vertex processing
  3173. Fixes <http://webkit.org/b/39299> <rdar://problem/7997692> Accelerated
  3174. compositing on Windows doesn't work on machines that don't support
  3175. hardware vertex processing, but should
  3176. Reviewed by Eric Carlson.
  3177. * platform/graphics/win/WKCACFLayerRenderer.cpp:
  3178. (WebCore::WKCACFLayerRenderer::createRenderer): Query the device
  3179. capabilities to decide whether to request hardware or software vertex
  3180. processing.
  3181. 2010-05-18 Adam Roben <aroben@apple.com>
  3182. Make WKCACFLayerRenderer robust against temporary failure of
  3183. Direct3DCreate9 and IDirect3D9::CreateDevice
  3184. For a short time after waking from sleep, Direct3DCreate9() will
  3185. return an IDirect3D9 for which IDirect3D9::CreateDevice will always
  3186. fail. Also during this time period, IDirect3D9::CreateDevice
  3187. will fail even for non-bad IDirect3D9s. (It will later start
  3188. succeeding.) WKCACFLayerRenderer now works around this behavior by
  3189. detecting when it might be in this situation and calling these
  3190. functions again later.
  3191. Fixes <http://webkit.org/b/39297> <rdar://problem/7997431> WebView
  3192. doesn't repaint until page reloads when page using hardware
  3193. acceleration loads just after waking from sleep
  3194. Reviewed by John Sullivan.
  3195. * manual-tests/crash-and-no-repaint-after-wake-from-sleep.html:
  3196. Renamed from WebCore/manual-tests/crash-after-wake-from-sleep.html.
  3197. Modified to also include instructions for reproducing this bug.
  3198. * platform/graphics/win/WKCACFLayerRenderer.cpp:
  3199. (WebCore::WKCACFLayerRenderer::WKCACFLayerRenderer): Replaced
  3200. m_triedToCreateD3DRenderer with m_mightBeAbleToCreateDeviceLater. The
  3201. new member is initialized to true, since we haven't even tried to
  3202. create a device once yet.
  3203. (WebCore::WKCACFLayerRenderer::createRenderer): If we already have a
  3204. D3D device, or we don't have one and are sure that we won't be able to
  3205. create one later, just return the previously-created device, if any.
  3206. We assume that we won't be able to create a device later if this
  3207. function fails, unless the function fails due to CreateDevice failing.
  3208. As noted above, CreateDevice will sometimes temporarily fail and then
  3209. later start working again. When CreateDevice fails, we also assume
  3210. that we might have a bad IDirect3D9, so we get rid of the one we have
  3211. so a new (and hopefully non-bad) one will be allocated later.
  3212. (WebCore::WKCACFLayerRenderer::destroyRenderer): Reset
  3213. m_mightBeAbleToCreateDeviceLater to true, since we no longer have a
  3214. device.
  3215. (WebCore::WKCACFLayerRenderer::paint): Before trying to paint, try to
  3216. create our D3D device and renderer. If this fails, we bail out, but if
  3217. we think we might be able to create a device later we schedule another
  3218. paint (via renderSoon()) so that we'll try again soon.
  3219. * platform/graphics/win/WKCACFLayerRenderer.h: Replaced
  3220. m_triedToCreateD3DRenderer with m_mightBeAbleToCreateDeviceLater.
  3221. 2010-05-18 Adam Roben <aroben@apple.com>
  3222. Fix a crash when a page that uses accelerated compositing loads soon
  3223. after the computer wakes from sleep
  3224. The set-up:
  3225. For a short time after waking from sleep, IDirect3D9::CreateDevice
  3226. will fail. This caused WKCACFLayerRenderer::createRenderer to fail,
  3227. and meant that WKCACFLayerRenderer never allocated a root layer.
  3228. WebView wouldn't notice that createRenderer failed, and would go ahead
  3229. and try to use the root layer anyway, resulting in a crash.
  3230. The fix:
  3231. We now allocate the root layer (and all the other members of
  3232. WKCACFLayerRenderer that aren't dependent on having an
  3233. IDirect3DDevice9) in WKCACFLayerRenderer's constructor. This way the
  3234. layers will always be present, even when creating the D3D device
  3235. fails.
  3236. There are two remaining problems:
  3237. 1) This results in slightly more memory usage in the case where
  3238. CreateDevice fails.
  3239. 2) Once we get into this bad state, the WebView doesn't repaint
  3240. until we navigate somewhere else.
  3241. (2) is covered by
  3242. <http://webkit.org/b/39297>/<rdar://problem/7997431>. We'll fix it by
  3243. retrying CreateDevice later in hopes that it will succeed after more
  3244. time has passed. This will in turn fix (1). (We should never end up in
  3245. a case where CreateDevice fails forever because we already did some
  3246. preliminary checks in acceleratedCompositingAvailable().)
  3247. Fixes <http://webkit.org/b/39295> <rdar://problem/7971319> Crash
  3248. (preceded by assertion) in WKCACFLayerRenderer::setNeedsDisplay when
  3249. computer wakes from sleep on particular page
  3250. Reviewed by John Sullivan.
  3251. * manual-tests/crash-after-wake-from-sleep.html: Added. This
  3252. is the Poster Circle demo from webkit.org/blog, but modified to
  3253. automatically reload every 5 seconds and with instructions to put the
  3254. computer to sleep and wake it up again.
  3255. * platform/graphics/win/WKCACFLayerRenderer.cpp:
  3256. (WebCore::WKCACFLayerRenderer::WKCACFLayerRenderer): Moved code to
  3257. initialize m_context, m_renderContext, and m_*Layer here...
  3258. (WebCore::WKCACFLayerRenderer::createRenderer): ...from here.
  3259. 2010-05-18 Adam Roben <aroben@apple.com>
  3260. Remove an unused member variable from WKCACFLayerRenderer
  3261. Rubber-stamped by Ada Chan.
  3262. * platform/graphics/win/WKCACFLayerRenderer.h: Removed m_viewLayer,
  3263. which is unused.
  3264. 2010-05-18 Anders Carlsson <andersca@apple.com>
  3265. Reviewed by Sam Weinig.
  3266. Allocate the m_preloads list hash set dynamically and free it when done.
  3267. https://bugs.webkit.org/show_bug.cgi?id=39309
  3268. <rdar://problem/7998495>
  3269. This saves about 6000 bytes on a fully loaded document.
  3270. * loader/DocLoader.cpp:
  3271. (WebCore::DocLoader::requestPreload):
  3272. (WebCore::DocLoader::clearPreloads):
  3273. * loader/DocLoader.h:
  3274. 2010-05-18 Anders Carlsson <andersca@apple.com>
  3275. Revert unintended indentation and unnecessary nested name specifier.
  3276. * rendering/RenderBlock.cpp:
  3277. (WebCore::clipOutPositionedObjects):
  3278. (WebCore::RenderBlock::insertPositionedObject):
  3279. 2010-05-18 Anders Carlsson <andersca@apple.com>
  3280. Reviewed by Sam Weinig.
  3281. Add an inlineCapacity template parameter to ListHashSet and use it to shrink the positioned object list hash set.
  3282. https://bugs.webkit.org/show_bug.cgi?id=39304
  3283. <rdar://problem/7998366>
  3284. Set the inlineCapacity for the positionedObjects ListHashSet to 4 instead of 256. Since a RenderBlock usually has
  3285. few positioned objects, this saves memory.
  3286. * WebCore.base.exp:
  3287. * rendering/RenderBlock.cpp:
  3288. (WebCore::clipOutPositionedObjects):
  3289. (WebCore::RenderBlock::insertPositionedObject):
  3290. * rendering/RenderBlock.h:
  3291. (WebCore::RenderBlock::positionedObjects):
  3292. 2010-05-17 Sam Weinig <sam@webkit.org>
  3293. Reviewed by Darin Adler.
  3294. https://bugs.webkit.org/show_bug.cgi?id=39258
  3295. Remove NamedAttrMap residual gunk
  3296. Replace NamedAttrMap.h/cpp with NamedNodeMap.h/cpp which was the class
  3297. it contained.
  3298. * CMakeLists.txt:
  3299. * GNUmakefile.am:
  3300. * WebCore.gypi:
  3301. * WebCore.pro:
  3302. * WebCore.vcproj/WebCore.vcproj:
  3303. * WebCore.xcodeproj/project.pbxproj:
  3304. * bindings/v8/custom/V8NamedNodesCollection.cpp:
  3305. * dom/NamedAttrMap.cpp: Removed.
  3306. * dom/NamedAttrMap.h: Removed.
  3307. * dom/NamedNodeMap.cpp: Copied from dom/NamedAttrMap.cpp.
  3308. * dom/NamedNodeMap.h: Replaced with dom/NamedAttrMap.h.
  3309. * editing/ReplaceNodeWithSpanCommand.cpp:
  3310. * platform/chromium/ClipboardChromium.cpp:
  3311. 2010-05-18 Brady Eidson <beidson@apple.com>
  3312. Reviewed by Eric Carlson.
  3313. <rdar://problem/7993468> REGRESSION (r58586): Audio doesn't play on first click of play button at NPR.org
  3314. NPR swallows the first mouse click on the play button, calls load() on the element, then waits for the
  3315. canplay event to come in before calling play itself.
  3316. After the site specific hack added in r58586, we disallowed play() from within the canplay event handler.
  3317. By tracking whether a load() was triggered by a user gesture, we can differentiate between the original
  3318. canplay event that we meant to ignore and the one resulting from the first mouse click which we want to honor.
  3319. No new tests. (Currently no way to test such site specific hack behavior)
  3320. * html/HTMLMediaElement.cpp:
  3321. (WebCore::HTMLMediaElement::HTMLMediaElement):
  3322. (WebCore::HTMLMediaElement::load): Set the m_loadInitiatedByUserGesture flag
  3323. (WebCore::HTMLMediaElement::play): Only apply the site specific hack if the load wasn't initiated by a user gesture.
  3324. * html/HTMLMediaElement.h:
  3325. 2010-05-18 Jakob Petsovits <jpetsovits@rim.com>
  3326. Reviewed by Dirk Schulze.
  3327. [OpenVG] Fix stupid build errors from the OpenVG Path commit
  3328. https://bugs.webkit.org/show_bug.cgi?id=39228
  3329. * platform/graphics/openvg/PainterOpenVG.cpp:
  3330. (WebCore::PainterOpenVG::clipPath):
  3331. * platform/graphics/openvg/PathOpenVG.cpp:
  3332. (WebCore::Path::transform):
  3333. 2010-05-18 Chris Jerdonek <cjerdonek@webkit.org>
  3334. Reviewed by Darin Adler.
  3335. Refactored FrameLoader::isDocumentSandboxed() from a private member function
  3336. to a static, non-member, non-friend function.
  3337. https://bugs.webkit.org/show_bug.cgi?id=39157
  3338. Making this function non-private lets us make FrameLoader::createWindow()
  3339. a non-member function in a subsequent patch. We also made it non-member
  3340. rather than member to increase encapsulation and limit the number of
  3341. public functions with access to private FrameLoader data.
  3342. No new functionality, so no new tests.
  3343. * loader/FrameLoader.cpp:
  3344. (WebCore::isDocumentSandboxed):
  3345. - Moved this function from a private member function of FrameLoader
  3346. to a static, non-member, non-friend function.
  3347. (WebCore::FrameLoader::createWindow):
  3348. - Updated the call to isDocumentSandboxed().
  3349. (WebCore::FrameLoader::submitForm):
  3350. - Updated the call to isDocumentSandboxed().
  3351. (WebCore::FrameLoader::requestObject):
  3352. - Updated the call to isDocumentSandboxed().
  3353. (WebCore::FrameLoader::shouldAllowNavigation):
  3354. - Updated the call to isDocumentSandboxed().
  3355. * loader/FrameLoader.h:
  3356. - Removed isDocumentSandboxed() and added a FIXME to move
  3357. createWindow() out of the FrameLoader class.
  3358. 2010-05-08 Robert Hogan <robert@roberthogan.net>
  3359. Reviewed by Simon Hausmann.
  3360. [Qt] Fix http/tests/xmlhttprequest/cross-origin-no-authorization.html
  3361. and http/tests/xmlhttprequest/cross-origin-authorization.html
  3362. QHttpNetworkRequest adds Authorization and Cookie headers to XHRs
  3363. without knowing if this is valid behaviour or not. In order to allow
  3364. Qt to decide whether Cookie/Authorization headers should be added
  3365. to an XHR QtWebKit needs to use an attribute added to QNetworkRequest.
  3366. These new attributes are: QNetworkRequest::CookieLoadControlAttribute,
  3367. QNetworkRequest::CookieSaveControlAttribute,and
  3368. QNetworkRequest::AuthenticationReuseControlAttribute.
  3369. QtWebKit will set QNetworkRequest::AuthenticationReuseControlAttribute to false
  3370. unless withCredentials is set to true in the XHR.
  3371. QtWebkit will set CookieLoad/SaveControlAttribute to false unless withCredentials
  3372. is set to true in the XHR.
  3373. Qt will pass the values onto QHttpNetworkRequest and this will permit
  3374. the Qt network access processing to decide whether or not to add either
  3375. or both of the Cookie/Authorisation headers, and whether to save cookies
  3376. returned from such requests. By default the attribute
  3377. will always be true so unless QtWebKit sets it to false normal
  3378. header processing is unaffected.
  3379. The Qt part of these changes was merged at: http://gitorious.org/qt/qt/merge_requests/592
  3380. https://bugs.webkit.org/show_bug.cgi?id=32967
  3381. * platform/network/qt/ResourceRequestQt.cpp:
  3382. (WebCore::ResourceRequest::toNetworkRequest):
  3383. 2010-05-18 Zoltan Herczeg <zherczeg@webkit.org>
  3384. Reviewed by Kenneth Rohde Christiansen.
  3385. [Qt] Implementing clipToImageBuffer for Qt port.
  3386. https://bugs.webkit.org/show_bug.cgi?id=24289
  3387. The implementation combines pixmap layers and destinationIn
  3388. composition mode.
  3389. * platform/graphics/qt/GraphicsContextQt.cpp:
  3390. (WebCore::TransparencyLayer::TransparencyLayer):
  3391. (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
  3392. (WebCore::GraphicsContext::savePlatformState):
  3393. (WebCore::GraphicsContext::restorePlatformState):
  3394. (WebCore::GraphicsContext::inTransparencyLayer):
  3395. (WebCore::GraphicsContext::beginTransparencyLayer):
  3396. (WebCore::GraphicsContext::endTransparencyLayer):
  3397. (WebCore::GraphicsContext::clipToImageBuffer):
  3398. 2010-05-18 Eric Seidel <eric@webkit.org>
  3399. Unreviewed build fix.
  3400. Make it possible to enable the new HTML5Tokenizer for testing
  3401. https://bugs.webkit.org/show_bug.cgi?id=39275
  3402. * WebCore.gypi:
  3403. - Fix HTMLLexer.* -> HTML5Lexer.*
  3404. * WebCore.vcproj/WebCore.vcproj:
  3405. - Add HTML5Lexer and HTML5Tokenizer to project.
  3406. 2010-05-18 Eric Seidel <eric@webkit.org>
  3407. Unreviewed build fix.
  3408. Make it possible to enable the new HTML5Tokenizer for testing
  3409. https://bugs.webkit.org/show_bug.cgi?id=39275
  3410. * dom/NamedAttrMap.cpp:
  3411. (WebCore::NamedNodeMap::setNamedItemNS):
  3412. - Move this to the .cpp file so as to avoid needing to include "Node.h" in the header.
  3413. * dom/NamedAttrMap.h:
  3414. * html/HTML5Token.h:
  3415. - Remove #include "String.h" which was wrong. Adam meant "PlatformString.h"
  3416. - Remove unneeded #include "Node.h", it was only needed because
  3417. NamedAttrMap.h was incorrectly depending on Node.h but not
  3418. including it. It didn't actually need Node.h except for one
  3419. inlined method setNamedItemNS, so I moved setNamedItemNS into
  3420. the .cpp to get rid of the Node.h requirement.
  3421. 2010-05-18 Eric Seidel <eric@webkit.org>
  3422. Reviewed by Adam Barth.
  3423. Make it possible to enable the new HTML5Tokenizer for testing
  3424. https://bugs.webkit.org/show_bug.cgi?id=39275
  3425. I added html5ParserEnabled to Settings so that we can enable/disable
  3426. the HTML5 parser for testing.
  3427. I also ripped out a bunch of dead code from HTML5Lexer.
  3428. I had to add HTML5Lexer/HTML5Tokenizer to all build systems so that
  3429. the build wouldn't fail now that we reference these classes from HTMLDocument.
  3430. * Android.mk:
  3431. * CMakeLists.txt:
  3432. * GNUmakefile.am:
  3433. * WebCore.gypi:
  3434. * WebCore.pro:
  3435. * WebCore.xcodeproj/project.pbxproj:
  3436. * html/HTML5Lexer.cpp:
  3437. (WebCore::HTML5Lexer::reset):
  3438. (WebCore::isWhitespace):
  3439. (WebCore::HTML5Lexer::nextToken):
  3440. * html/HTML5Lexer.h:
  3441. * html/HTML5Tokenizer.cpp: Added.
  3442. (WebCore::HTML5Tokenizer::HTML5Tokenizer):
  3443. (WebCore::HTML5Tokenizer::~HTML5Tokenizer):
  3444. (WebCore::HTML5Tokenizer::begin):
  3445. (WebCore::HTML5Tokenizer::write):
  3446. (WebCore::HTML5Tokenizer::end):
  3447. (WebCore::HTML5Tokenizer::finish):
  3448. (WebCore::HTML5Tokenizer::isWaitingForScripts):
  3449. * html/HTML5Tokenizer.h: Added.
  3450. * html/HTMLDocument.cpp:
  3451. (WebCore::HTMLDocument::createTokenizer):
  3452. * html/HTMLTokenizer.h:
  3453. * html/HTMLViewSourceDocument.cpp:
  3454. (WebCore::HTMLViewSourceDocument::createTokenizer):
  3455. * page/Settings.cpp:
  3456. (WebCore::Settings::Settings):
  3457. * page/Settings.h:
  3458. (WebCore::Settings::setHTML5ParserEnabled):
  3459. (WebCore::Settings::html5ParserEnabled):
  3460. 2010-05-18 Maciej Stachowiak <mjs@apple.com>
  3461. Not reviewed, build fix.
  3462. Attempt to fix build for v8 bindings (untested).
  3463. * bindings/v8/ScriptController.cpp:
  3464. (WebCore::ScriptController::clearWindowShell):
  3465. * bindings/v8/ScriptController.h:
  3466. 2010-05-17 Maciej Stachowiak <mjs@apple.com>
  3467. Reviewed by Oliver Hunt.
  3468. GC more promptly when navigating to a new inner window, but not at all when it went in the page cache
  3469. https://bugs.webkit.org/show_bug.cgi?id=39254
  3470. <rdar://problem/7996370>
  3471. ~1% PLT speedup
  3472. ~4% iBench HTML speedup
  3473. * bindings/js/GCController.cpp:
  3474. (WebCore::GCController::garbageCollectSoon): Change back to a 0 delay timer instead of
  3475. 0.5 second.
  3476. * bindings/js/ScriptController.cpp:
  3477. (WebCore::ScriptController::clearWindowShell): Add a new boolean parameter. Don't
  3478. garbageColectSoon if the page is going into the page cache.
  3479. * bindings/js/ScriptController.h: Prototype change for above.
  3480. * loader/FrameLoader.cpp:
  3481. (WebCore::FrameLoader::clear): Indicate when the page is going into the page cache.
  3482. 2010-05-18 Adam Barth <abarth@webkit.org>
  3483. Reviewed by Eric Seidel.
  3484. Add an HTML5Token
  3485. https://bugs.webkit.org/show_bug.cgi?id=39274
  3486. The token object is an ugly fake union, but I'm sure sure there's a
  3487. better way... Eric needs this to provide output for the test harness.
  3488. * WebCore.xcodeproj/project.pbxproj:
  3489. * html/HTML5Lexer.cpp:
  3490. (WebCore::HTML5Lexer::HTML5Lexer):
  3491. (WebCore::HTML5Lexer::write):
  3492. (WebCore::HTML5Lexer::emitCharacter):
  3493. * html/HTML5Lexer.h:
  3494. * html/HTML5Token.h: Added.
  3495. (WebCore::HTML5Token::):
  3496. (WebCore::HTML5Token::HTML5Token):
  3497. (WebCore::HTML5Token::setToCharacter):
  3498. 2010-05-18 Adam Barth <abarth@webkit.org>
  3499. Reviewed by Eric Seidel.
  3500. Implement ScriptData states for HTML5Lexer
  3501. https://bugs.webkit.org/show_bug.cgi?id=39273
  3502. This patch implements more of the lexer states according to the HTML5
  3503. specification. Currently, this code is compiled by not tested. We're
  3504. working on bringing up a test harness in parallel with transliterating
  3505. the spec into code.
  3506. * html/HTML5Lexer.cpp:
  3507. (WebCore::HTML5Lexer::tokenize):
  3508. (WebCore::HTML5Lexer::temporaryBufferIs):
  3509. * html/HTML5Lexer.h:
  3510. (WebCore::HTML5Lexer::):
  3511. 2010-05-17 Eric Seidel <eric@webkit.org>
  3512. Reviewed by Adam Barth.
  3513. Rename HTML5Tokenzier to HTML5Lexer so that we can add a new HTML5Tokenizer which implements Tokenizer
  3514. https://bugs.webkit.org/show_bug.cgi?id=39272
  3515. Strictly a rename, no functionality change.
  3516. * WebCore.xcodeproj/project.pbxproj:
  3517. * html/HTML5Lexer.cpp: Added.
  3518. * html/HTML5Lexer.h: Added.
  3519. * html/HTML5Tokenizer.cpp: Removed.
  3520. * html/HTML5Tokenizer.h: Removed.
  3521. 2010-05-17 Sheriff Bot <webkit.review.bot@gmail.com>
  3522. Unreviewed, rolling out r59652.
  3523. http://trac.webkit.org/changeset/59652
  3524. https://bugs.webkit.org/show_bug.cgi?id=39268
  3525. file-input-files-access test is broken on Mac (Requested by
  3526. dcheng on #webkit).
  3527. * platform/chromium/DragDataChromium.cpp:
  3528. (WebCore::DragData::asURL):
  3529. 2010-05-17 Adam Barth <abarth@webkit.org>
  3530. Reviewed by Eric Seidel.
  3531. Implement RAWTEXT tokenizer states
  3532. https://bugs.webkit.org/show_bug.cgi?id=39267
  3533. More tokenizer states. There's a bunch of functionality notImplemented
  3534. that we'll come back to.
  3535. * html/HTML5Tokenizer.cpp:
  3536. (WebCore::HTML5Tokenizer::tokenize):
  3537. * html/HTML5Tokenizer.h:
  3538. 2010-05-17 Adam Barth <abarth@webkit.org>
  3539. Reviewed by Eric Seidel.
  3540. Implement more parser states in HTML5Tokenizer
  3541. https://bugs.webkit.org/show_bug.cgi?id=39265
  3542. This patch implements some easy states. I'll come back and do the
  3543. harder states later.
  3544. * html/HTML5Tokenizer.cpp:
  3545. (WebCore::HTML5Tokenizer::tokenize):
  3546. (WebCore::HTML5Tokenizer::emitParseError):
  3547. * html/HTML5Tokenizer.h:
  3548. 2010-05-17 Daniel Cheng <dcheng@chromium.org>
  3549. Reviewed by Darin Adler.
  3550. DragData::asURL() shouldn't do file validity checks
  3551. https://bugs.webkit.org/show_bug.cgi?id=38711
  3552. There's no point to trying to make sure the file is valid in
  3553. DragData::asURL(). It's better to ask for forgiveness than to ask for
  3554. permission, since asking for permission is prone to race conditions
  3555. and results in unnecessary I/O. Consumers of this function either:
  3556. - need to verify the file exists themselves (e.g. the loader)
  3557. - don't care about file validity (rich text drag-and-drop)
  3558. * platform/chromium/DragDataChromium.cpp:
  3559. (WebCore::DragData::asURL):
  3560. 2010-05-17 Adam Barth <abarth@webkit.org>
  3561. Reviewed by Eric Seidel.
  3562. Update states in HTML5Tokenizer to match HTML5 spec
  3563. https://bugs.webkit.org/show_bug.cgi?id=39264
  3564. I've also implemented the DataState. More states to follow.
  3565. * html/HTML5Tokenizer.cpp:
  3566. (WebCore::HTML5Tokenizer::reset):
  3567. (WebCore::HTML5Tokenizer::tokenize):
  3568. * html/HTML5Tokenizer.h:
  3569. (WebCore::HTML5Tokenizer::):
  3570. 2010-05-17 Kent Tamura <tkent@chromium.org>
  3571. Reviewed by Darin Adler.
  3572. ':valid' CSS selector should not be applied to some form controls
  3573. https://bugs.webkit.org/show_bug.cgi?id=39162
  3574. * html/HTMLElement.cpp:
  3575. (WebCore::inlineTagList): Always includes progressTag. This change is
  3576. needed in a case of no ENABLE_PROGRESS_TAG. Without this change and
  3577. ENABLE_PROGRESS_TAG, <progress> tags disappear.
  3578. * html/HTMLInputElement.cpp:
  3579. (WebCore::HTMLInputElement::recalcWillValidate):
  3580. Return false for SUBMIT and IMAGE.
  3581. * html/HTMLProgressElement.h:
  3582. (WebCore::HTMLProgressElement::recalcWillValidate):
  3583. Return false. This change is needed in a case of ENABLE_PROGRESS_TAG.
  3584. 2010-05-17 Adam Barth <abarth@webkit.org>
  3585. Reviewed by Eric Seidel.
  3586. Remove load-related code from HTML5Tokenizer
  3587. https://bugs.webkit.org/show_bug.cgi?id=39263
  3588. This code is related to reloading resources and not to tokenizing. In
  3589. the PreloadScanner, these concerns are coupled, but we want to decouple
  3590. them.
  3591. * html/HTML5Tokenizer.cpp:
  3592. (WebCore::HTML5Tokenizer::HTML5Tokenizer):
  3593. (WebCore::HTML5Tokenizer::~HTML5Tokenizer):
  3594. (WebCore::HTML5Tokenizer::begin):
  3595. (WebCore::HTML5Tokenizer::end):
  3596. (WebCore::HTML5Tokenizer::reset):
  3597. (WebCore::HTML5Tokenizer::write):
  3598. (WebCore::HTML5Tokenizer::consumeEntity):
  3599. (WebCore::HTML5Tokenizer::tokenize):
  3600. (WebCore::HTML5Tokenizer::processAttribute):
  3601. (WebCore::HTML5Tokenizer::emitCharacter):
  3602. (WebCore::HTML5Tokenizer::emitTag):
  3603. * html/HTML5Tokenizer.h:
  3604. 2010-05-17 Adam Barth <abarth@webkit.org>
  3605. Reviewed by Eric Seidel.
  3606. Add HTML5Tokenizer to the build system on Mac
  3607. https://bugs.webkit.org/show_bug.cgi?id=39262
  3608. This file will be easier to work with if we're actually compiling it.
  3609. Hopefully we'll get this wired into the PreloadScanner soon. Once we
  3610. start actually calling the code, we'll add it to the build system on
  3611. other platforms.
  3612. * WebCore.xcodeproj/project.pbxproj:
  3613. 2010-05-17 Eric Seidel <eric@webkit.org>
  3614. Reviewed by Adam Barth.
  3615. Copy PreloadScanner.* to HTML5Tokenizer.* to start work on the new HTML5 Tokenizer
  3616. https://bugs.webkit.org/show_bug.cgi?id=39261
  3617. * html/HTML5Tokenizer.cpp: Rename PreloadScanner to HTML5Tokenizer.
  3618. * html/HTML5Tokenizer.h: ditto.
  3619. 2010-05-17 Eric Seidel <eric@webkit.org>
  3620. Reviewed by Adam Barth.
  3621. Copy PreloadScanner.* to HTML5Tokenizer.* to start work on the new HTML5 Tokenizer
  3622. https://bugs.webkit.org/show_bug.cgi?id=39261
  3623. This time copy the cpp from the right file.
  3624. * html/HTML5Tokenizer.cpp: Copied from WebCore/html/PreloadScanner.cpp.
  3625. 2010-05-17 Eric Seidel <eric@webkit.org>
  3626. Reviewed by Adam Barth.
  3627. Copy PreloadScanner.* to HTML5Tokenizer.* to start work on the new HTML5 Tokenizer
  3628. https://bugs.webkit.org/show_bug.cgi?id=39261
  3629. * html/HTML5Tokenizer.cpp: Copied from WebCore/html/PreloadScanner.h.
  3630. * html/HTML5Tokenizer.h: Copied from WebCore/html/PreloadScanner.h.
  3631. 2010-05-17 MORITA Hajime <morrita@google.com>
  3632. Reviewed by Kent Tamura.
  3633. [Chromium] Windows: Speed of indeterminate progress bar should be constant
  3634. https://bugs.webkit.org/show_bug.cgi?id=39211
  3635. No new tests, animation effect can be confirmed only manually.
  3636. * rendering/RenderThemeChromiumWin.cpp:
  3637. (WebCore::RenderThemeChromiumWin::animationDurationForProgressBar):
  3638. (WebCore::RenderThemeChromiumWin::paintProgressBar):
  3639. 2010-05-17 Drew Wilson <atwilson@chromium.org>
  3640. Unreviewed build fix for Qt and Chromium.
  3641. https://bugs.webkit.org/show_bug.cgi?id=39147
  3642. * page/Frame.h: Now includes CSSMutableStyleDeclaration.h.
  3643. 2010-05-17 Simon Fraser <simon.fraser@apple.com>
  3644. Reviewed by Darin Adler.
  3645. Remove unused member member from Document
  3646. https://bugs.webkit.org/show_bug.cgi?id=39251
  3647. Remove m_associatedHistoryItems from Document; it is never used.
  3648. * dom/Document.h:
  3649. 2010-05-17 Darin Adler <darin@apple.com>
  3650. Fix Qt build.
  3651. * page/Frame.cpp:
  3652. (WebCore::Frame::setTypingStyle): Move back to make non-inline.
  3653. * page/Frame.h: Removed inline version of setTypingStyle.
  3654. 2010-05-14 Darin Adler <darin@apple.com>
  3655. Reviewed by Brady Eidson.
  3656. Frame has many trivial member functions that should be inlined
  3657. https://bugs.webkit.org/show_bug.cgi?id=39147
  3658. * WebCore.base.exp: Export the functions that are now inlined.
  3659. * page/Frame.cpp:
  3660. (WebCore::Frame::removeEditingStyleFromBodyElement):
  3661. Removed the body of this function.
  3662. * page/Frame.h:
  3663. (WebCore::Frame::init): Moved here from .cpp.
  3664. (WebCore::Frame::loader): Ditto.
  3665. (WebCore::Frame::redirectScheduler): Ditto.
  3666. (WebCore::Frame::view): Ditto.
  3667. (WebCore::Frame::script): Ditto.
  3668. (WebCore::Frame::document): Ditto.
  3669. (WebCore::Frame::selection): Ditto.
  3670. (WebCore::Frame::editor): Ditto.
  3671. (WebCore::Frame::animation): Ditto.
  3672. (WebCore::Frame::mark): Ditto.
  3673. (WebCore::Frame::setMark): Ditto.
  3674. (WebCore::Frame::zoomFactor): Ditto.
  3675. (WebCore::Frame::jsStatusBarText): Ditto.
  3676. (WebCore::Frame::jsDefaultStatusBarText): Ditto.
  3677. (WebCore::Frame::needsReapplyStyles): Ditto.
  3678. (WebCore::Frame::typingStyle): Ditto.
  3679. (WebCore::Frame::setTypingStyle): Ditto.
  3680. (WebCore::Frame::clearTypingStyle): Ditto.
  3681. (WebCore::Frame::ownerElement): Ditto.
  3682. (WebCore::Frame::isDisconnected): Ditto.
  3683. (WebCore::Frame::setIsDisconnected): Ditto.
  3684. (WebCore::Frame::excludeFromTextSearch): Ditto.
  3685. (WebCore::Frame::setExcludeFromTextSearch): Ditto.
  3686. (WebCore::Frame::inViewSourceMode): Ditto.
  3687. (WebCore::Frame::setInViewSourceMode): Ditto.
  3688. (WebCore::Frame::markedTextMatchesAreHighlighted): Ditto.
  3689. (WebCore::Frame::tree): Ditto.
  3690. (WebCore::Frame::page): Ditto.
  3691. (WebCore::Frame::detachFromPage): Ditto.
  3692. (WebCore::Frame::eventHandler): Ditto.
  3693. (WebCore::Frame::shouldClose): Ditto.
  3694. 2010-05-17 Anders Carlsson <andersca@apple.com>
  3695. Reviewed by Sam Weinig.
  3696. https://bugs.webkit.org/show_bug.cgi?id=39247
  3697. <rdar://problem/7994707>
  3698. Move rarely used data members to the rare structures, thus saving memory.
  3699. Move rarely used member variables from StyleInheritedData and StyleVisualData to
  3700. StyleRareInheritedData and StyleRareNonInheritedData, namely:
  3701. indent, cursorData, m_effectiveZoom, widows and orphans move from StyleInheritedData to StyleRareInheritedData.
  3702. m_counterIncrement and m_counterReset move from StyleVisualData to StyleRareNonInheritedData.
  3703. * rendering/style/RenderStyle.cpp:
  3704. (WebCore::RenderStyle::diff):
  3705. (WebCore::RenderStyle::addCursor):
  3706. (WebCore::RenderStyle::setCursorList):
  3707. (WebCore::RenderStyle::clearCursorList):
  3708. * rendering/style/RenderStyle.h:
  3709. (WebCore::InheritedFlags::textIndent):
  3710. (WebCore::InheritedFlags::effectiveZoom):
  3711. (WebCore::InheritedFlags::counterIncrement):
  3712. (WebCore::InheritedFlags::counterReset):
  3713. (WebCore::InheritedFlags::cursors):
  3714. (WebCore::InheritedFlags::widows):
  3715. (WebCore::InheritedFlags::orphans):
  3716. (WebCore::InheritedFlags::setTextIndent):
  3717. (WebCore::InheritedFlags::setEffectiveZoom):
  3718. (WebCore::InheritedFlags::setCounterIncrement):
  3719. (WebCore::InheritedFlags::setCounterReset):
  3720. (WebCore::InheritedFlags::setWidows):
  3721. (WebCore::InheritedFlags::setOrphans):
  3722. * rendering/style/StyleInheritedData.cpp:
  3723. (WebCore::StyleInheritedData::StyleInheritedData):
  3724. (WebCore::StyleInheritedData::operator==):
  3725. * rendering/style/StyleInheritedData.h:
  3726. * rendering/style/StyleRareInheritedData.cpp:
  3727. (WebCore::StyleRareInheritedData::StyleRareInheritedData):
  3728. (WebCore::cursorDataEquivalent):
  3729. (WebCore::StyleRareInheritedData::operator==):
  3730. * rendering/style/StyleRareInheritedData.h:
  3731. * rendering/style/StyleRareNonInheritedData.cpp:
  3732. (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
  3733. (WebCore::StyleRareNonInheritedData::operator==):
  3734. * rendering/style/StyleRareNonInheritedData.h:
  3735. * rendering/style/StyleVisualData.cpp:
  3736. (WebCore::StyleVisualData::StyleVisualData):
  3737. * rendering/style/StyleVisualData.h:
  3738. (WebCore::StyleVisualData::operator==):
  3739. 2010-05-17 Robert Hogan <robert@webkit.org>
  3740. Rubber-stamped by Eric Seidel.
  3741. Fix --no-svg build.
  3742. I have no idea where the SVG-dependent include of this file is hidden, but
  3743. it is probably better to include it explicitly anyway like V8WorkerContextCustom.cpp.
  3744. * bindings/js/JSWorkerContextCustom.cpp:
  3745. 2010-05-17 David Hyatt <hyatt@apple.com>
  3746. Reviewed by Dan Bernstein.
  3747. https://bugs.webkit.org/show_bug.cgi?id=39231
  3748. Fix failures in the RTL portion of fast/multicol/layers-in-multicol.html. Make sure block children of RTL blocks are positioned using
  3749. the reduced column width instead of the total content width.
  3750. * rendering/RenderBlock.cpp:
  3751. (WebCore::RenderBlock::determineHorizontalPosition):
  3752. (WebCore::RenderBlock::nodeAtPoint):
  3753. (WebCore::RenderBlock::hitTestContents):
  3754. (WebCore::RenderBlock::adjustForColumns):
  3755. 2010-05-17 Jakob Petsovits <jpetsovits@rim.com>
  3756. Reviewed by George Staikos.
  3757. [OpenVG] Add support for decoding and drawing images
  3758. https://bugs.webkit.org/show_bug.cgi?id=36072
  3759. OpenVG has a maximum image size (how large is
  3760. specific to the OpenVG implementation), so this
  3761. requires us to store them as separate image tiles.
  3762. Image decoding and initial drawing code by
  3763. Adam Treat <atreat@rim.com>. Image decoder
  3764. downsampling support by Yong Li <yoli@rim.com>.
  3765. * platform/graphics/ImageSource.h:
  3766. * platform/graphics/openvg/ImageOpenVG.cpp: Added.
  3767. (WebCore::FrameData::clear):
  3768. (WebCore::BitmapImage::BitmapImage):
  3769. (WebCore::BitmapImage::checkForSolidColor):
  3770. (WebCore::BitmapImage::initPlatformData):
  3771. (WebCore::BitmapImage::invalidatePlatformData):
  3772. (WebCore::adjustSourceRectForDownSampling):
  3773. (WebCore::BitmapImage::draw):
  3774. (WebCore::Image::drawPattern):
  3775. (WebCore::Image::loadPlatformResource):
  3776. * platform/graphics/openvg/PainterOpenVG.cpp:
  3777. (WebCore::PainterOpenVG::drawImage):
  3778. (WebCore::PainterOpenVG::asNewNativeImage):
  3779. * platform/graphics/openvg/PainterOpenVG.h:
  3780. * platform/graphics/openvg/TiledImageOpenVG.cpp: Added.
  3781. (WebCore::TiledImageOpenVG::TiledImageOpenVG):
  3782. (WebCore::TiledImageOpenVG::operator=):
  3783. (WebCore::TiledImageOpenVG::~TiledImageOpenVG):
  3784. (WebCore::TiledImageOpenVG::numTiles):
  3785. (WebCore::TiledImageOpenVG::numColumns):
  3786. (WebCore::TiledImageOpenVG::numRows):
  3787. (WebCore::TiledImageOpenVG::setTile):
  3788. (WebCore::TiledImageOpenVG::tilesInRect):
  3789. (WebCore::TiledImageOpenVG::tile):
  3790. (WebCore::TiledImageOpenVG::tileRect):
  3791. (WebCore::TiledImageOpenVG::detachTiles):
  3792. (WebCore::TiledImageOpenVG::destroyTiles):
  3793. * platform/graphics/openvg/TiledImageOpenVG.h: Added.
  3794. (WebCore::TiledImageOpenVG::size):
  3795. (WebCore::TiledImageOpenVG::maxTileSize):
  3796. * platform/graphics/openvg/VGUtils.cpp:
  3797. (WebCore::VGUtils::bytesForImage):
  3798. (WebCore::VGUtils::bytesForImageScanline):
  3799. (WebCore::VGUtils::imageFormatBitsPerPixel):
  3800. (WebCore::VGUtils::endianAwareImageFormat):
  3801. * platform/graphics/openvg/VGUtils.h:
  3802. * platform/image-decoders/openvg/ImageDecoderOpenVG.cpp: Added.
  3803. (WebCore::RGBA32Buffer::asNewNativeImage):
  3804. 2010-05-17 Yaar Schnitman <yaar@chromium.org>
  3805. Reviewed by Darin Adler.
  3806. Fix JSC's generation of 'Optional' arguments. When a single 'Optional' extended attribute precedes multiple method arguments, all of these arguments are optional as a group (either all or non must be specified). This fix, which makes JSC compliant with V8 and with the Web IDL specs, is pretty harmless, since Optional is currently not being used anywhere in JSC, but it blocks further work on overloads.
  3807. https://bugs.webkit.org/show_bug.cgi?id=39227
  3808. * bindings/scripts/CodeGeneratorJS.pm:
  3809. * bindings/scripts/test/JS/JSTestObj.cpp:
  3810. (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
  3811. 2010-05-16 Sam Weinig <sam@webkit.org>
  3812. Reviewed by Adam Barth.
  3813. https://bugs.webkit.org/show_bug.cgi?id=39192
  3814. Remove unused PERFECT_HASH code CodeGeneratorJS.
  3815. * bindings/scripts/CodeGeneratorJS.pm:
  3816. 2010-05-17 Jeremy Moskovich <jeremy@chromium.org>
  3817. Reviewed by Jeremy Orlow.
  3818. Remove debug code that was introduced to help narrow down the
  3819. source of a crash.
  3820. https://bugs.webkit.org/show_bug.cgi?id=36426
  3821. No change in behavior, so no new tests.
  3822. * loader/FrameLoader.cpp:
  3823. (WebCore::FrameLoader::finishedLoadingDocument):
  3824. 2010-05-17 Andreas Kling <andreas.kling@nokia.com>
  3825. Reviewed by Kenneth Rohde Christiansen.
  3826. Bring CanvasRenderingContext2D's createImageData() in line with HTML5 spec
  3827. Added createImageData(ImageData) which returns a new ImageData with the same size as the one passed.
  3828. Changed createImageData(width, height) to use the absolute values of width and height.
  3829. https://bugs.webkit.org/show_bug.cgi?id=39189
  3830. Spec link:
  3831. http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-createimagedata
  3832. Test: fast/canvas/canvas-createImageData.html
  3833. * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
  3834. (WebCore::JSCanvasRenderingContext2D::createImageData):
  3835. * html/canvas/CanvasRenderingContext2D.cpp:
  3836. (WebCore::CanvasRenderingContext2D::createImageData):
  3837. * html/canvas/CanvasRenderingContext2D.h:
  3838. * html/canvas/CanvasRenderingContext2D.idl:
  3839. 2010-05-17 Antti Koivisto <koivisto@iki.fi>
  3840. This was missing from previous commit.
  3841. * platform/qt/QWebPageClient.h:
  3842. (QWebPageClient::graphicsItemVisibleRect):
  3843. 2010-05-17 Antti Koivisto <koivisto@iki.fi>
  3844. Reviewed by Kenneth Rohde Christiansen.
  3845. https://bugs.webkit.org/show_bug.cgi?id=39218
  3846. [Qt] Tiled backing store tiles sometimes flicker when exiting a zoom animation
  3847. Tiles sometimes flicker when exiting a zoom animation. This happens as a result
  3848. of the visible rectangle being momentarily out of sync.
  3849. Instead of updating the visible rect by explicitly setting it, pull it through
  3850. the client and recompute in the WebKit level.
  3851. * page/ChromeClient.h:
  3852. (WebCore::ChromeClient::visibleRectForTiledBackingStore):
  3853. * page/Frame.cpp:
  3854. (WebCore::Frame::tiledBackingStoreVisibleRect):
  3855. * page/Frame.h:
  3856. * platform/graphics/TiledBackingStore.cpp:
  3857. (WebCore::TiledBackingStore::checkVisibleRectChanged):
  3858. (WebCore::TiledBackingStore::createTiles):
  3859. * platform/graphics/TiledBackingStore.h:
  3860. * platform/graphics/TiledBackingStoreClient.h:
  3861. 2010-05-15 Adam Roben <aroben@apple.com>
  3862. Periodically try to reset a lost IDirect3DDevice9 until we succeed
  3863. This is how MSDN says we must respond to a lost device (see
  3864. <http://msdn.microsoft.com/en-us/library/bb174714(v=VS.85).aspx>).
  3865. Only testable by a manual test, unfortunately.
  3866. Fixes <rdar://problem/7986906> <http://webkit.org/b/39139> Pages that
  3867. use hardware acceleration don't repaint after waking computer from
  3868. sleep
  3869. Reviewed by John Sullivan.
  3870. * manual-tests/no-repaint-after-wake-from-sleep.html: Added. This is
  3871. the Poster Circle demo from webkit.org/blog, but with instructions for
  3872. putting the computer to sleep and waking it up again.
  3873. * platform/graphics/win/WKCACFLayerRenderer.cpp:
  3874. (WebCore::WKCACFLayerRenderer::WKCACFLayerRenderer): Initialize new
  3875. member that tells us whether we need to try to reset the device before
  3876. rendering.
  3877. (WebCore::WKCACFLayerRenderer::resize): Changed to tell resetDevice
  3878. the reason why the device needs to be reset (which is because the
  3879. window's size has changed).
  3880. (WebCore::WKCACFLayerRenderer::render): Before we do anything else,
  3881. check if we need to reset the device before rendering. If we do, try
  3882. to reset it. If that fails, bail out and set a timer to try again
  3883. later. If we discover that the device is lost when calling
  3884. IDirect3DDevice9::Present and resetting the device fails, bail out and
  3885. set a timer to try again later.
  3886. (WebCore::WKCACFLayerRenderer::resetDevice): Changed to return a
  3887. boolean indicating whether resetting succeeded or not. Added a
  3888. ResetReason parameter so callers can specify whey the device needs to
  3889. be reset. Before trying to do anything, we call
  3890. IDirect3DDevice9::TestCooperativeLevel to find out whether the device
  3891. can be reset currently. If it can't, we set a flag to tell ourselves
  3892. that the device must be reset before we next render, and indicate to
  3893. the caller that the reset failed. If we thought the device was lost
  3894. but it turns out not to be, we don't have to do anything and can tell
  3895. the caller that the reset succeeded. Otherwise we go ahead and reset
  3896. the device as before, and indicate to the caller that the reset
  3897. succeeded.
  3898. * platform/graphics/win/WKCACFLayerRenderer.h: Changed resetDevice to
  3899. return a boolean and take a ResetReason parameter. Added a comment
  3900. about when and why this function should be called. And added
  3901. m_mustResetLostDeviceBeforeRendering.
  3902. 2010-05-15 Adam Roben <aroben@apple.com>
  3903. Call CARenderOGLPurge whenever we call IDirect3DDevice9::Reset
  3904. MSDN says that all resoures allocated with D3DPOOL_DEFAULT must be
  3905. destroyed before calling IDirect3DDevice9::Reset. The only way to
  3906. guarantee this with Core Animation is to call CARenderOGLPurge.
  3907. Unfortunately this isn't testable at the moment, as we don't use any
  3908. features of Core Animation (e.g., mask layers) that actually make this
  3909. required. But it seems like a good idea to fix the code now so that
  3910. if/when we do start using those features we won't run into problems.
  3911. Fixes <http://webkit.org/b/39159> WKCACFLayerRenderer::resetDevice
  3912. might fail due to failing to destroy all D3DPOOL_DEFAULT resources
  3913. Reviewed by John Sullivan.
  3914. * platform/graphics/win/WKCACFLayerRenderer.cpp:
  3915. (WebCore::WKCACFLayerRenderer::render): Moved the call to
  3916. CARenderOGLPurge from here...
  3917. (WebCore::WKCACFLayerRenderer::resetDevice): ...to here, so that it
  3918. will be called whenever we reset the device (e.g., when resizing the
  3919. window).
  3920. 2010-05-17 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  3921. Rubber-stamped by Xan Lopez.
  3922. Build fix. Remove bashism from build system.
  3923. * GNUmakefile.am:
  3924. 2010-05-17 Sheriff Bot <webkit.review.bot@gmail.com>
  3925. Unreviewed, rolling out r59483.
  3926. http://trac.webkit.org/changeset/59483
  3927. https://bugs.webkit.org/show_bug.cgi?id=39215
  3928. "page_cycler_intl1 regression on Linux" (Requested by yurys on
  3929. #webkit).
  3930. * platform/chromium/ChromiumBridge.h:
  3931. * platform/graphics/chromium/FontCacheLinux.cpp:
  3932. (WebCore::FontCache::getFontDataForCharacters):
  3933. 2010-05-17 Kenneth Rohde Christiansen <kenneth@webkit.org>
  3934. Reviewed by Laszlo Gombos.
  3935. REGRESSION(59563): [Qt] JSValue QtClass::fallbackObject can be optimized
  3936. Patch declared a variable index, which shadowed an earlier declared
  3937. variable.
  3938. * bridge/qt/qt_class.cpp:
  3939. (JSC::Bindings::QtClass::fallbackObject):
  3940. 2010-05-14 Andrei Popescu <andreip@google.com>
  3941. Reviewed by Jeremy Orlow.
  3942. IDBRequest is not a proper ActiveDomObject
  3943. https://bugs.webkit.org/show_bug.cgi?id=39001
  3944. Add IDBRequest interface to the IsActiveDomType
  3945. routine of the CodeGeneratorV8.pm.
  3946. Rename IDBRequest::m_stopped to m_suspended and reset
  3947. the flag when resume() is called.
  3948. No new tests, Indexed Database isn't yet testable.
  3949. * bindings/scripts/CodeGeneratorV8.pm:
  3950. * storage/IDBRequest.cpp:
  3951. (WebCore::IDBRequest::suspend):
  3952. (WebCore::IDBRequest::resume):
  3953. (WebCore::IDBRequest::timerFired):
  3954. (WebCore::IDBRequest::onEventCommon):
  3955. * storage/IDBRequest.h:
  3956. 2010-05-17 Xan Lopez <xlopez@igalia.com>
  3957. Do not include the indexed database headers if the feature is not
  3958. enabled. Should fix the build in GTK+.
  3959. * bindings/js/JSEventCustom.cpp:
  3960. 2010-05-17 Xan Lopez <xlopez@igalia.com>
  3961. Try to fix GTK+ build.
  3962. * GNUmakefile.am:
  3963. 2010-05-14 Jeremy Orlow <jorlow@chromium.org>
  3964. Reviewed by Nate Chapin.
  3965. Finish up IndexedDB events
  3966. https://bugs.webkit.org/show_bug.cgi?id=39117
  3967. Implement the indexed database event interfaces as proposed by Mozilla.
  3968. Refactor the run time type detection code that was in IDBRequest into its own
  3969. class named IDBAny. Use this new class within the new event classes and
  3970. IDBResults.
  3971. Test: storage/indexeddb/basics.html
  3972. * DerivedSources.cpp:
  3973. * DerivedSources.make:
  3974. * GNUmakefile.am:
  3975. * WebCore.gyp/WebCore.gyp:
  3976. * WebCore.gypi:
  3977. * WebCore.pri:
  3978. * WebCore.pro:
  3979. * WebCore.vcproj/WebCore.vcproj:
  3980. * WebCore.xcodeproj/project.pbxproj:
  3981. * bindings/js/JSEventCustom.cpp:
  3982. (WebCore::toJS):
  3983. * bindings/js/JSEventTarget.cpp:
  3984. (WebCore::toJS):
  3985. * bindings/js/JSIDBAnyCustom.cpp: Added.
  3986. (WebCore::toJS):
  3987. * bindings/js/JSIDBRequestCustom.cpp: Removed.
  3988. * bindings/v8/custom/V8EventCustom.cpp:
  3989. (WebCore::toV8):
  3990. * bindings/v8/custom/V8IDBAnyCustom.cpp: Added.
  3991. (WebCore::toV8):
  3992. * bindings/v8/custom/V8IDBRequestCustom.cpp: Removed.
  3993. * dom/Event.cpp:
  3994. (WebCore::Event::isIDBErrorEvent):
  3995. (WebCore::Event::isIDBSuccessEvent):
  3996. * dom/Event.h:
  3997. * storage/IDBAny.cpp: Added.
  3998. (WebCore::IDBAny::create):
  3999. (WebCore::IDBAny::IDBAny):
  4000. (WebCore::IDBAny::~IDBAny):
  4001. (WebCore::IDBAny::idbDatabaseRequest):
  4002. (WebCore::IDBAny::indexedDatabaseRequest):
  4003. (WebCore::IDBAny::serializedScriptValue):
  4004. (WebCore::IDBAny::set):
  4005. * storage/IDBAny.h: Added.
  4006. (WebCore::IDBAny::):
  4007. (WebCore::IDBAny::type):
  4008. * storage/IDBAny.idl: Added.
  4009. * storage/IDBErrorEvent.cpp: Added.
  4010. (WebCore::IDBErrorEvent::create):
  4011. (WebCore::IDBErrorEvent::IDBErrorEvent):
  4012. (WebCore::IDBErrorEvent::~IDBErrorEvent):
  4013. * storage/IDBErrorEvent.h: Added.
  4014. (WebCore::IDBErrorEvent::code):
  4015. (WebCore::IDBErrorEvent::message):
  4016. (WebCore::IDBErrorEvent::isIDBErrorEvent):
  4017. * storage/IDBErrorEvent.idl: Added.
  4018. * storage/IDBEvent.cpp: Added.
  4019. (WebCore::IDBEvent::IDBEvent):
  4020. (WebCore::IDBEvent::~IDBEvent):
  4021. (WebCore::IDBEvent::source):
  4022. * storage/IDBEvent.h: Added.
  4023. * storage/IDBEvent.idl: Added.
  4024. * storage/IDBRequest.cpp:
  4025. (WebCore::IDBRequest::IDBRequest):
  4026. (WebCore::IDBRequest::onSuccess):
  4027. (WebCore::IDBRequest::timerFired):
  4028. (WebCore::IDBRequest::onEventCommon):
  4029. * storage/IDBRequest.h:
  4030. (WebCore::IDBRequest::create):
  4031. (WebCore::IDBRequest::result):
  4032. * storage/IDBRequest.idl:
  4033. * storage/IDBSuccessEvent.cpp: Added.
  4034. (WebCore::IDBSuccessEvent::create):
  4035. (WebCore::IDBSuccessEvent::IDBSuccessEvent):
  4036. (WebCore::IDBSuccessEvent::~IDBSuccessEvent):
  4037. (WebCore::IDBSuccessEvent::result):
  4038. * storage/IDBSuccessEvent.h: Added.
  4039. (WebCore::IDBSuccessEvent::isIDBSuccessEvent):
  4040. * storage/IDBSuccessEvent.idl: Added.
  4041. * storage/IndexedDatabaseImpl.cpp:
  4042. (WebCore::IndexedDatabaseImpl::open):
  4043. * storage/IndexedDatabaseRequest.cpp:
  4044. (WebCore::IndexedDatabaseRequest::IndexedDatabaseRequest):
  4045. (WebCore::IndexedDatabaseRequest::open):
  4046. * storage/IndexedDatabaseRequest.h:
  4047. 2010-05-16 Chris Jerdonek <cjerdonek@webkit.org>
  4048. Unreviewed.
  4049. Removed the stray equals sign from the reviewer's name in the
  4050. "Reviewed by" line of the ChangeLog entry for r59596:
  4051. http://trac.webkit.org/changeset/59596
  4052. 2010-05-16 Chris Jerdonek <cjerdonek@webkit.org>
  4053. Reviewed by Adam Barth.
  4054. Refactored FrameLoader::changeLocation() and urlSelected() to share more code.
  4055. https://bugs.webkit.org/show_bug.cgi?id=38827
  4056. No change in behavior, so no new tests.
  4057. * bindings/ScriptControllerBase.cpp:
  4058. (WebCore::ScriptController::executeIfJavaScriptURL):
  4059. - Changed a parameter from boolean to the ShouldReplaceDocumentIfJavaScriptURL enum.
  4060. * bindings/js/ScriptController.h:
  4061. - Changed a parameter from boolean to the ShouldReplaceDocumentIfJavaScriptURL enum.
  4062. * bindings/v8/ScriptController.h:
  4063. - Changed a parameter from boolean to the ShouldReplaceDocumentIfJavaScriptURL enum.
  4064. * loader/FrameLoader.cpp:
  4065. (WebCore::FrameLoader::changeLocation):
  4066. - Changed to call the new private overload of urlSelected().
  4067. (WebCore::FrameLoader::urlSelected):
  4068. - Added a private overload of urlSelected().
  4069. - Changed the public urlSelected() to call the private overload.
  4070. (WebCore::FrameLoader::submitForm):
  4071. * loader/FrameLoader.h:
  4072. - Added a private overload of urlSelected().
  4073. * loader/FrameLoaderTypes.h:
  4074. - Added a ShouldReplaceDocumentIfJavaScriptURL enum.
  4075. 2010-05-16 Daniel Bates <dbates@rim.com>
  4076. Reviewed by David Hyatt.
  4077. https://bugs.webkit.org/show_bug.cgi?id=39196
  4078. Rollout changeset 59274 <http://trac.webkit.org/changeset/59274>.
  4079. Prepared on behalf of David Hyatt.
  4080. "Not worth the memory use." Just roll this out.
  4081. * WebCore.vcproj/WebCore.vcproj:
  4082. * WebCore.xcodeproj/project.pbxproj:
  4083. * editing/visible_units.cpp:
  4084. (WebCore::previousLinePosition):
  4085. (WebCore::nextLinePosition):
  4086. * rendering/EllipsisBox.cpp:
  4087. (WebCore::EllipsisBox::paint):
  4088. (WebCore::EllipsisBox::selectionRect):
  4089. (WebCore::EllipsisBox::paintSelection):
  4090. (WebCore::EllipsisBox::nodeAtPoint):
  4091. * rendering/EllipsisBox.h:
  4092. (WebCore::EllipsisBox::EllipsisBox):
  4093. (WebCore::EllipsisBox::height):
  4094. * rendering/InlineBox.cpp:
  4095. (WebCore::InlineBox::height):
  4096. (WebCore::InlineBox::adjustPosition):
  4097. (WebCore::InlineBox::canAccommodateEllipsis):
  4098. * rendering/InlineBox.h:
  4099. (WebCore::InlineBox::InlineBox):
  4100. (WebCore::InlineBox::isInlineBox):
  4101. (WebCore::InlineBox::hasVirtualHeight):
  4102. (WebCore::InlineBox::setHasVirtualHeight):
  4103. (WebCore::InlineBox::virtualHeight):
  4104. (WebCore::InlineBox::setWidth):
  4105. (WebCore::InlineBox::width):
  4106. (WebCore::InlineBox::setX):
  4107. (WebCore::InlineBox::x):
  4108. (WebCore::InlineBox::setY):
  4109. (WebCore::InlineBox::y):
  4110. (WebCore::InlineBox::baselinePosition):
  4111. (WebCore::InlineBox::lineHeight):
  4112. * rendering/InlineFlowBox.cpp:
  4113. (WebCore::InlineFlowBox::placeBoxesVertically):
  4114. (WebCore::InlineFlowBox::computeVerticalOverflow):
  4115. (WebCore::InlineFlowBox::nodeAtPoint):
  4116. (WebCore::InlineFlowBox::paintBoxDecorations):
  4117. (WebCore::InlineFlowBox::paintMask):
  4118. (WebCore::InlineFlowBox::paintTextDecorations):
  4119. * rendering/InlineFlowBox.h:
  4120. (WebCore::InlineFlowBox::visibleOverflowRect):
  4121. (WebCore::InlineFlowBox::topLayoutOverflow):
  4122. (WebCore::InlineFlowBox::bottomLayoutOverflow):
  4123. (WebCore::InlineFlowBox::leftLayoutOverflow):
  4124. (WebCore::InlineFlowBox::rightLayoutOverflow):
  4125. (WebCore::InlineFlowBox::layoutOverflowRect):
  4126. (WebCore::InlineFlowBox::topVisualOverflow):
  4127. (WebCore::InlineFlowBox::bottomVisualOverflow):
  4128. (WebCore::InlineFlowBox::leftVisualOverflow):
  4129. (WebCore::InlineFlowBox::rightVisualOverflow):
  4130. (WebCore::InlineFlowBox::visualOverflowRect):
  4131. (WebCore::InlineFlowBox::setHorizontalOverflowPositions):
  4132. (WebCore::InlineFlowBox::setVerticalOverflowPositions):
  4133. * rendering/InlineTextBox.cpp:
  4134. (WebCore::InlineTextBox::selectionRect):
  4135. (WebCore::InlineTextBox::placeEllipsisBox):
  4136. (WebCore::InlineTextBox::nodeAtPoint):
  4137. (WebCore::InlineTextBox::paint):
  4138. (WebCore::InlineTextBox::paintSelection):
  4139. (WebCore::InlineTextBox::paintCompositionBackground):
  4140. (WebCore::InlineTextBox::paintDecoration):
  4141. (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
  4142. (WebCore::InlineTextBox::paintTextMatchMarker):
  4143. (WebCore::InlineTextBox::computeRectForReplacementMarker):
  4144. (WebCore::InlineTextBox::paintCompositionUnderline):
  4145. (WebCore::InlineTextBox::offsetForPosition):
  4146. (WebCore::InlineTextBox::positionForOffset):
  4147. * rendering/InlineTextBox.h:
  4148. (WebCore::InlineTextBox::setSpaceAdd):
  4149. * rendering/RenderBlock.cpp:
  4150. (WebCore::RenderBlock::positionForPointWithInlineChildren):
  4151. * rendering/RenderBlockLineLayout.cpp:
  4152. (WebCore::RenderBlock::computeVerticalPositionsForLine):
  4153. (WebCore::RenderBlock::layoutInlineChildren):
  4154. * rendering/RenderSVGInline.cpp:
  4155. (WebCore::RenderSVGInline::createInlineFlowBox):
  4156. * rendering/RenderSVGInlineText.cpp:
  4157. (WebCore::RenderSVGInlineText::createTextBox):
  4158. * rendering/RenderSVGText.cpp:
  4159. (WebCore::RenderSVGText::createRootInlineBox):
  4160. * rendering/RenderText.cpp:
  4161. (WebCore::RenderText::positionForPoint):
  4162. (WebCore::RenderText::firstRunX):
  4163. (WebCore::RenderText::firstRunY):
  4164. * rendering/RenderTreeAsText.cpp:
  4165. (WebCore::writeTextRun):
  4166. * rendering/RootInlineBox.cpp:
  4167. (WebCore::RootInlineBox::placeEllipsis):
  4168. (WebCore::RootInlineBox::addHighlightOverflow):
  4169. (WebCore::RootInlineBox::closestLeafChildForXPos):
  4170. * rendering/SVGInlineFlowBox.h:
  4171. (WebCore::SVGInlineFlowBox::SVGInlineFlowBox):
  4172. (WebCore::SVGInlineFlowBox::virtualHeight):
  4173. (WebCore::SVGInlineFlowBox::setHeight):
  4174. * rendering/SVGInlineTextBox.h:
  4175. (WebCore::SVGInlineTextBox::virtualHeight):
  4176. (WebCore::SVGInlineTextBox::setHeight):
  4177. (WebCore::SVGInlineTextBox::selectionTop):
  4178. (WebCore::SVGInlineTextBox::selectionHeight):
  4179. * rendering/SVGRootInlineBox.h:
  4180. (WebCore::SVGRootInlineBox::SVGRootInlineBox):
  4181. (WebCore::SVGRootInlineBox::virtualHeight):
  4182. (WebCore::SVGRootInlineBox::setHeight):
  4183. * rendering/TrailingFloatsRootInlineBox.h: Added.
  4184. (WebCore::TrailingFloatsRootInlineBox::TrailingFloatsRootInlineBox):
  4185. (WebCore::TrailingFloatsRootInlineBox::virtualHeight):
  4186. 2010-05-13 Tony Chang <tony@chromium.org>
  4187. Reviewed by Darin Adler.
  4188. REGRESSION: Crash by pasting to a textarea with white-space:nowrap
  4189. https://bugs.webkit.org/show_bug.cgi?id=38992
  4190. Test: editing/pasteboard/paste-plaintext-nowrap.html
  4191. * editing/InsertParagraphSeparatorCommand.cpp:
  4192. (WebCore::highestVisuallyEquivalentDivBelowRoot):
  4193. (WebCore::InsertParagraphSeparatorCommand::doApply):
  4194. 2010-05-16 David Hyatt <hyatt@apple.com>
  4195. Reviewed by Dan Bernstein.
  4196. https://bugs.webkit.org/show_bug.cgi?id=39194
  4197. Fix all of the multi-column painting and hit testing functions to properly account for RTL directionality.
  4198. Added fast/multicol/column-count-with-rules.html
  4199. * rendering/RenderBlock.cpp:
  4200. (WebCore::RenderBlock::paintColumnRules):
  4201. (WebCore::RenderBlock::paintColumnContents):
  4202. (WebCore::RenderBlock::hitTestColumns):
  4203. (WebCore::RenderBlock::adjustRectForColumns):
  4204. 2010-05-16 Dan Bernstein <mitz@apple.com>
  4205. Reviewed by Dave Hyatt.
  4206. Fix SVG test failures after r59588.
  4207. Updated SVG InlineBox virtual method overrides to match HTML ones. Removed
  4208. SVGInlineFlowBox::verticallyAlignBoxes() since InlineFlowBox no longer declares
  4209. verticallyAlignBoxes().
  4210. * rendering/SVGInlineFlowBox.cpp:
  4211. (WebCore::SVGInlineFlowBox::placeBoxesHorizontally):
  4212. * rendering/SVGInlineFlowBox.h:
  4213. * rendering/SVGRootInlineBox.cpp:
  4214. (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
  4215. (WebCore::SVGRootInlineBox::verticallyAlignBoxes):
  4216. * rendering/SVGRootInlineBox.h:
  4217. 2010-05-16 Dan Bernstein <mitz@apple.com>
  4218. Reviewed by Darin Adler.
  4219. Move transient glyph overflow and fallback font data from a global to the stack
  4220. https://bugs.webkit.org/show_bug.cgi?id=39050
  4221. * rendering/InlineFlowBox.cpp:
  4222. (WebCore::InlineFlowBox::placeBoxesHorizontally): Added a GlyphOverflowAndFallbackFontsMap
  4223. parameter. Read glyph overflow from the map.
  4224. (WebCore::InlineFlowBox::computeLogicalBoxHeights): Added a GlyphOverflowAndFallbackFontsMap
  4225. parameter. Read fallback fonts from the map.
  4226. (WebCore::InlineFlowBox::computeVerticalOverflow): Added a GlyphOverflowAndFallbackFontsMap
  4227. parameter. Read glyph overflow from the map.
  4228. * rendering/InlineFlowBox.h:
  4229. * rendering/InlineTextBox.cpp: Removed setFallbackFonts(), fallbackFonts(), setGlyphOverflow(),
  4230. and glyphOverflow(). Removed s_glyphOverflowAndFallbackFontsMap.
  4231. * rendering/InlineTextBox.h:
  4232. * rendering/RenderBlock.h:
  4233. * rendering/RenderBlockLineLayout.cpp:
  4234. (WebCore::RenderBlock::computeHorizontalPositionsForLine): Added a GlyphOverflowAndFallbackFontsMap
  4235. parameter. Write fallback fonts and glyph overflow into the map.
  4236. (WebCore::RenderBlock::computeVerticalPositionsForLine): Added a GlyphOverflowAndFallbackFontsMap
  4237. parameter. Pass it down to verticallyAlignBoxes().
  4238. (WebCore::RenderBlock::layoutInlineChildren): Create a GlyphOverflowAndFallbackFontsMap on the
  4239. stack and pass it down to computeHorizontalPositionsForLine(), computeVerticalPositionsForLine(),
  4240. and verticallyAlignBoxes().
  4241. * rendering/RootInlineBox.cpp:
  4242. (WebCore::RootInlineBox::verticallyAlignBoxes): Added a GlyphOverflowAndFallbackFontsMap parameter.
  4243. Pass it down to computeLogicalBoxHeights() and computeVerticalOverflow().
  4244. * rendering/RootInlineBox.h:
  4245. * rendering/SVGRootInlineBox.cpp:
  4246. (WebCore::SVGRootInlineBox::layoutInlineBoxes): Updated.
  4247. 2010-05-12 Tony Chang <tony@chromium.org>
  4248. Reviewed by Darin Adler.
  4249. Spellcheck disabling does not disable context menu
  4250. https://bugs.webkit.org/show_bug.cgi?id=25639
  4251. Test: editing/spelling/context-menu-suggestions.html
  4252. * platform/ContextMenu.cpp:
  4253. (WebCore::ContextMenu::populate):
  4254. 2010-05-16 Sam Weinig <sam@webkit.org>
  4255. Reviewed by Dan Bernstein.
  4256. https://bugs.webkit.org/show_bug.cgi?id=39190
  4257. Shave a word off of GlyphPageTreeNode
  4258. <rdar://problem/7990428>
  4259. * platform/graphics/GlyphPageTreeNode.h:
  4260. (WebCore::GlyphPageTreeNode::GlyphPageTreeNode):
  4261. 2010-05-16 Andreas Kling <andreas.kling@nokia.com>
  4262. Reviewed by Kenneth Rohde Christiansen.
  4263. Properly handle invalid arguments to CanvasRenderingContext2D's getImageData() and putImageData().
  4264. Both should throw NOT_SUPPORTED_ERR when called with nonfinite arguments.
  4265. getImageData() should throw INDEX_SIZE_ERR if either width or height is 0.
  4266. https://bugs.webkit.org/show_bug.cgi?id=39175
  4267. Spec link:
  4268. http://www.whatwg.org/specs/web-apps/current-work/#pixel-manipulation
  4269. Test: fast/canvas/canvas-getImageData-invalid.html
  4270. * html/canvas/CanvasRenderingContext2D.cpp:
  4271. (WebCore::CanvasRenderingContext2D::createImageData):
  4272. (WebCore::CanvasRenderingContext2D::getImageData):
  4273. (WebCore::CanvasRenderingContext2D::putImageData):
  4274. 2010-05-16 Andreas Kling <andreas.kling@nokia.com>
  4275. Reviewed by Kenneth Rohde Christiansen.
  4276. Canvas's toDataURL() should be case insensitive wrt the mimeType argument.
  4277. https://bugs.webkit.org/show_bug.cgi?id=39153
  4278. Spec link:
  4279. http://www.whatwg.org/specs/web-apps/current-work/#dom-canvas-todataurl
  4280. Test: fast/canvas/canvas-toDataURL-case-insensitive-mimetype.html
  4281. * dom/CanvasSurface.cpp:
  4282. (WebCore::CanvasSurface::toDataURL):
  4283. 2010-05-16 Simon Fraser <simon.fraser@apple.com>
  4284. Reviewed by Anders Carlsson.
  4285. Shrink SimpleFontData
  4286. https://bugs.webkit.org/show_bug.cgi?id=39179
  4287. Change SimpleFontData to have a pointer to the m_glyphToBoundsMap,
  4288. and to allocate this lazily. This reduces the size of the class from
  4289. 5632 to 1536 bytes.
  4290. * platform/graphics/SimpleFontData.h:
  4291. (WebCore::SimpleFontData::boundsForGlyph):
  4292. 2010-05-15 Simon Fraser <simon.fraser@apple.com>
  4293. Reviewed by Maciej Stachowiak.
  4294. Reduce the size of CachedResource
  4295. https://bugs.webkit.org/show_bug.cgi?id=39171
  4296. Make protected data members of CachedResource private, to allow for
  4297. easier rearrangement, and hide the fact that enums are in bitfields.
  4298. Rearrange the data members of CachedResource to save 32 bytes per instance
  4299. in 64-bit. Also modernized the constructor code.
  4300. * loader/CachedCSSStyleSheet.cpp:
  4301. (WebCore::CachedCSSStyleSheet::didAddClient):
  4302. (WebCore::CachedCSSStyleSheet::data):
  4303. (WebCore::CachedCSSStyleSheet::checkNotify):
  4304. (WebCore::CachedCSSStyleSheet::error):
  4305. * loader/CachedFont.cpp:
  4306. (WebCore::CachedFont::load):
  4307. (WebCore::CachedFont::didAddClient):
  4308. (WebCore::CachedFont::data):
  4309. (WebCore::CachedFont::ensureCustomFontData):
  4310. (WebCore::CachedFont::ensureSVGFontData):
  4311. (WebCore::CachedFont::checkNotify):
  4312. (WebCore::CachedFont::error):
  4313. * loader/CachedImage.cpp:
  4314. (WebCore::CachedImage::CachedImage):
  4315. (WebCore::CachedImage::load):
  4316. (WebCore::CachedImage::didAddClient):
  4317. (WebCore::CachedImage::allClientsRemoved):
  4318. (WebCore::CachedImage::image):
  4319. (WebCore::CachedImage::data):
  4320. (WebCore::CachedImage::error):
  4321. (WebCore::CachedImage::checkNotify):
  4322. (WebCore::CachedImage::destroyDecodedData):
  4323. * loader/CachedImage.h:
  4324. (WebCore::CachedImage::stillNeedsLoad):
  4325. * loader/CachedResource.cpp:
  4326. (WebCore::CachedResource::CachedResource):
  4327. * loader/CachedResource.h:
  4328. (WebCore::CachedResource::type):
  4329. (WebCore::CachedResource::preloadResult):
  4330. (WebCore::CachedResource::status):
  4331. (WebCore::CachedResource::setStatus):
  4332. (WebCore::CachedResource::isLoaded):
  4333. (WebCore::CachedResource::isLoading):
  4334. (WebCore::CachedResource::setErrorOccurred):
  4335. * loader/CachedScript.cpp:
  4336. (WebCore::CachedScript::didAddClient):
  4337. (WebCore::CachedScript::data):
  4338. (WebCore::CachedScript::checkNotify):
  4339. (WebCore::CachedScript::error):
  4340. * loader/CachedXSLStyleSheet.cpp:
  4341. (WebCore::CachedXSLStyleSheet::didAddClient):
  4342. (WebCore::CachedXSLStyleSheet::data):
  4343. (WebCore::CachedXSLStyleSheet::checkNotify):
  4344. (WebCore::CachedXSLStyleSheet::error):
  4345. 2010-05-16 Sheriff Bot <webkit.review.bot@gmail.com>
  4346. Unreviewed, rolling out r59574.
  4347. http://trac.webkit.org/changeset/59574
  4348. https://bugs.webkit.org/show_bug.cgi?id=39176
  4349. Supposedly broke cr-win, but the errors seems somewhat
  4350. unrelated (Requested by abarth on #webkit).
  4351. * platform/network/chromium/ResourceResponse.h:
  4352. (WebCore::ResourceResponse::ResourceResponse):
  4353. (WebCore::ResourceResponse::setSecurityInfo):
  4354. (WebCore::ResourceResponse::isContentFiltered):
  4355. (WebCore::ResourceResponse::setIsContentFiltered):
  4356. (WebCore::ResourceResponse::setAppCacheID):
  4357. (WebCore::ResourceResponse::setAppCacheManifestURL):
  4358. (WebCore::ResourceResponse::setWasFetchedViaSPDY):
  4359. (WebCore::ResourceResponse::setIsMultipartPayload):
  4360. (WebCore::ResourceResponse::setResponseTime):
  4361. 2010-05-16 Dan Bernstein <mitz@apple.com>
  4362. Reviewed by Darin Adler.
  4363. Scalar types allocated on the heap due to misuse of DEFINE_STATIC_LOCAL
  4364. https://bugs.webkit.org/show_bug.cgi?id=39086
  4365. Use global variables directly.
  4366. * bindings/v8/ScriptCallStack.cpp:
  4367. (WebCore::ScriptCallStack::createUtilityContext):
  4368. * platform/ScrollView.cpp:
  4369. (WebCore::ScrollView::wheelEvent):
  4370. * platform/graphics/mac/ComplexTextController.cpp:
  4371. (WebCore::shouldUseATSUIAPI):
  4372. 2010-05-16 Andreas Kling <andreas.kling@nokia.com>
  4373. Reviewed by Kenneth Rohde Christiansen.
  4374. Canvas's getContext() must return null when called with an invalid/unsupported parameter.
  4375. (HTML5 spec 4.8.11): http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-canvas-getcontext
  4376. https://bugs.webkit.org/show_bug.cgi?id=39150
  4377. Test: fast/canvas/canvas-getContext-invalid.html
  4378. * bindings/js/JSHTMLCanvasElementCustom.cpp:
  4379. (WebCore::JSHTMLCanvasElement::getContext):
  4380. * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
  4381. (WebCore::V8HTMLCanvasElement::getContextCallback):
  4382. 2010-05-15 Sheriff Bot <webkit.review.bot@gmail.com>
  4383. Unreviewed, rolling out r59565.
  4384. http://trac.webkit.org/changeset/59565
  4385. https://bugs.webkit.org/show_bug.cgi?id=39173
  4386. Broke GTK (Requested by abarth on #webkit).
  4387. * dom/CanvasSurface.cpp:
  4388. (WebCore::CanvasSurface::toDataURL):
  4389. 2010-05-15 Andreas Kling <andreas.kling@nokia.com>
  4390. Reviewed by Kenneth Rohde Christiansen.
  4391. Canvas's toDataURL() should be case insensitive wrt the mimeType argument.
  4392. https://bugs.webkit.org/show_bug.cgi?id=39153
  4393. Spec link:
  4394. http://www.whatwg.org/specs/web-apps/current-work/#dom-canvas-todataurl
  4395. Test: fast/canvas/canvas-toDataURL-case-insensitive-mimetype.html
  4396. * dom/CanvasSurface.cpp:
  4397. (WebCore::CanvasSurface::toDataURL):
  4398. 2010-05-15 Anders Bakken <agbakken@gmail.com>
  4399. Reviewed by Kenneth Rohde Christiansen.
  4400. QObject::objectName() returns a QString and QtField::name()
  4401. creates a temporary QByteArray object and returns constData() from it.
  4402. This is not safe.
  4403. This patch changes the signature of the function to return a
  4404. QByteArray instead of const char *.
  4405. https://bugs.webkit.org/show_bug.cgi?id=39010
  4406. * bridge/qt/qt_instance.cpp:
  4407. (JSC::Bindings::QtInstance::getPropertyNames):
  4408. (JSC::Bindings::QtField::name):
  4409. * bridge/qt/qt_runtime.h:
  4410. 2010-05-15 Anders Bakken <agbakken@gmail.com>
  4411. Reviewed by Kenneth Rohde Christiansen.
  4412. Don't unnecessarily copy data when searching for methods in QtClass.
  4413. [Qt] JSValue QtClass::fallbackObject can be optimized
  4414. https://bugs.webkit.org/show_bug.cgi?id=37684
  4415. * bridge/qt/qt_class.cpp:
  4416. (JSC::Bindings::QtClass::fallbackObject):
  4417. 2010-05-15 Anders Bakken <agbakken@gmail.com>
  4418. Reviewed by Kenneth Rohde Christiansen.
  4419. Identifier::ascii() is not threadsafe and shouldn't be used for
  4420. converting to and from QString/QByteArray.
  4421. https://bugs.webkit.org/show_bug.cgi?id=39009
  4422. * bridge/qt/qt_class.cpp:
  4423. (JSC::Bindings::QtClass::fallbackObject):
  4424. (JSC::Bindings::QtClass::fieldNamed):
  4425. 2010-05-15 Chang Shu <chang.shu@nokia.com>
  4426. Reviewed by Kenneth Rohde Christiansen.
  4427. Based on the spec and Philip Taylor's test suite, createImageData() should throw
  4428. an INDEX_SIZE_ERR exception if either the sw or sh arguments are zero.
  4429. The link to the spec:
  4430. http://philip.html5.org/tests/canvas/suite/tests/spec.html#testrefs.2d.imageData.getcreate.zero
  4431. https://bugs.webkit.org/show_bug.cgi?id=39166
  4432. The complete test suite is in the process of checking in.
  4433. https://bugs.webkit.org/show_bug.cgi?id=20553
  4434. * html/canvas/CanvasRenderingContext2D.cpp:
  4435. (WebCore::CanvasRenderingContext2D::createImageData):
  4436. 2010-05-15 Adam Barth <abarth@webkit.org>
  4437. Reviewed by Darin Adler.
  4438. XMLHttpRequest.getResponseHeader doesn't need to be custom
  4439. https://bugs.webkit.org/show_bug.cgi?id=39125
  4440. I don't see any reason this method needs to be custom. No new tests
  4441. because there's no behavior change.
  4442. * bindings/js/JSXMLHttpRequestCustom.cpp:
  4443. * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
  4444. * xml/XMLHttpRequest.idl:
  4445. 2010-05-15 Adam Barth <abarth@webkit.org>
  4446. Reviewed by Darin Adler.
  4447. XMLHttpRequest.setRequestHeader shouldn't be custom
  4448. https://bugs.webkit.org/show_bug.cgi?id=39124
  4449. I don't see any reason why this method needs to be custom. No tests
  4450. because no behavior change.
  4451. * bindings/js/JSXMLHttpRequestCustom.cpp:
  4452. * bindings/scripts/CodeGeneratorJS.pm:
  4453. * bindings/scripts/CodeGeneratorV8.pm:
  4454. * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
  4455. (webkit_dom_test_obj_method_that_requires_all_args):
  4456. (webkit_dom_test_obj_method_that_requires_all_args_and_throws):
  4457. * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
  4458. * bindings/scripts/test/JS/JSTestObj.cpp:
  4459. (WebCore::):
  4460. (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgs):
  4461. (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
  4462. * bindings/scripts/test/JS/JSTestObj.h:
  4463. * bindings/scripts/test/ObjC/DOMTestObj.h:
  4464. * bindings/scripts/test/ObjC/DOMTestObj.mm:
  4465. (-[DOMTestObj methodThatRequiresAllArgs:objArg:]):
  4466. (-[DOMTestObj methodThatRequiresAllArgsAndThrows:objArg:]):
  4467. * bindings/scripts/test/TestObj.idl:
  4468. * bindings/scripts/test/V8/V8TestObj.cpp:
  4469. (WebCore::TestObjInternal::methodThatRequiresAllArgsCallback):
  4470. (WebCore::TestObjInternal::methodThatRequiresAllArgsAndThrowsCallback):
  4471. (WebCore::ConfigureV8TestObjTemplate):
  4472. * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
  4473. * xml/XMLHttpRequest.idl:
  4474. 2010-05-14 Alexey Proskuryakov <ap@apple.com>
  4475. Reviewed by Darin Adler.
  4476. https://bugs.webkit.org/show_bug.cgi?id=39048
  4477. <rdar://problem/7978384> REGRESSION (r55802): XML errors on Google maps ("Entity 'nbsp' not
  4478. defined") with JavaScript disabled
  4479. Google Maps goes into mobile mode if JavaScript is disabled for some reason, and sends XHTML
  4480. content with XHTML Mobile DOCTYPE. We want to handle it whether XHTMLMP is enabled or not.
  4481. Test: fast/doctypes/xhtml-with-xhtmlmp-doctype.xhtml
  4482. * dom/XMLTokenizerLibxml2.cpp: (WebCore::externalSubsetHandler): Restore pre-55802 behavior
  4483. for builds that don't have XHTMLMP enabled. Given that r55802 negated the condition without
  4484. breaking XHTMLMP, this line is actually always needed.
  4485. 2010-05-15 Vangelis Kokkevis <vangelis@chromium.org>
  4486. Reviewed by Darin Fisher.
  4487. Fixing LayerChromium hierarchy updates where due to mixed ownership
  4488. handling, sublayer updates didn't always properly update parent-to-child
  4489. and child-to-parent pointers in sync.
  4490. https://bugs.webkit.org/show_bug.cgi?id=39138
  4491. * platform/graphics/chromium/LayerChromium.cpp:
  4492. (WebCore::LayerChromium::~LayerChromium):
  4493. (WebCore::LayerChromium::setNeedsCommit): Typo fix.
  4494. (WebCore::LayerChromium::insertSublayer):
  4495. (WebCore::LayerChromium::removeFromSuperlayer):
  4496. (WebCore::LayerChromium::removeSublayer):
  4497. (WebCore::LayerChromium::replaceSublayer):
  4498. (WebCore::LayerChromium::removeAllSublayers):
  4499. (WebCore::LayerChromium::setSublayers):
  4500. * platform/graphics/chromium/LayerChromium.h:
  4501. (WebCore::LayerChromium::setSuperlayer):
  4502. 2010-05-15 Andrey Kosyakov <caseq@chromium.org>
  4503. Reviewed by Timothy Hatcher.
  4504. Got rid of absolute positioning in favor of flex boxes where possible.
  4505. Added shadow for help window.
  4506. Changed window style names to more comprehensible.
  4507. https://bugs.webkit.org/show_bug.cgi?id=39120
  4508. * inspector/front-end/HelpScreen.js:
  4509. (WebInspector.HelpScreen):
  4510. * inspector/front-end/helpScreen.css:
  4511. (.help-window-outer):
  4512. (body.attached .help-window-outer):
  4513. (.help-window-main):
  4514. (body.attached .help-window-main):
  4515. (.help-window-caption):
  4516. (body.attached .help-window-caption):
  4517. (.help-window-title):
  4518. (.help-scrollable):
  4519. (.help-close-button):
  4520. (body.platform-mac .help-close-button):
  4521. (body:not(.platform-mac) .help-close-button):
  4522. 2010-05-15 Sheriff Bot <webkit.review.bot@gmail.com>
  4523. Unreviewed, rolling out r59549.
  4524. http://trac.webkit.org/changeset/59549
  4525. https://bugs.webkit.org/show_bug.cgi?id=39167
  4526. Broke Chromium build (Requested by abarth on #webkit).
  4527. * bindings/scripts/CodeGeneratorV8.pm:
  4528. * storage/IDBRequest.cpp:
  4529. (WebCore::IDBRequest::suspend):
  4530. (WebCore::IDBRequest::resume):
  4531. (WebCore::IDBRequest::timerFired):
  4532. (WebCore::IDBRequest::onEventCommon):
  4533. * storage/IDBRequest.h:
  4534. 2010-05-15 Vangelis Kokkevis <vangelis@chromium.org>
  4535. Reviewed by Darin Fisher.
  4536. Adding code path for composited layers (LayerChromium) containing only
  4537. an Image element.
  4538. https://bugs.webkit.org/show_bug.cgi?id=39142
  4539. No new tests, covered under the existing tests for composited layers.
  4540. * platform/graphics/chromium/GraphicsLayerChromium.cpp:
  4541. (WebCore::GraphicsLayerChromium::setContentsToImage):
  4542. (WebCore::GraphicsLayerChromium::updateContentsImage):
  4543. * platform/graphics/chromium/GraphicsLayerChromium.h:
  4544. * platform/graphics/chromium/LayerChromium.cpp:
  4545. (WebCore::LayerChromium::LayerChromium):
  4546. (WebCore::LayerChromium::setContents):
  4547. * platform/graphics/chromium/LayerChromium.h:
  4548. (WebCore::LayerChromium::contents):
  4549. 2010-05-15 Andrei Popescu <andreip@google.com>
  4550. Reviewed by Jeremy Orlow.
  4551. IDBRequest is not a proper ActiveDomObject
  4552. https://bugs.webkit.org/show_bug.cgi?id=39001
  4553. Add IDBRequest interface to the IsActiveDomType
  4554. routine of the CodeGeneratorV8.pm.
  4555. Rename IDBRequest::m_stopped to m_suspended and reset
  4556. the flag when resume() is called.
  4557. No new tests, Indexed Database isn't yet testable.
  4558. * bindings/scripts/CodeGeneratorV8.pm:
  4559. * storage/IDBRequest.cpp:
  4560. (WebCore::IDBRequest::suspend):
  4561. (WebCore::IDBRequest::resume):
  4562. (WebCore::IDBRequest::timerFired):
  4563. (WebCore::IDBRequest::onEventCommon):
  4564. * storage/IDBRequest.h:
  4565. 2010-05-15 Andrei Bucur <abucur@adobe.com>
  4566. Reviewed by Gustavo Noronha Silva.
  4567. Functions using the cairo_pattern_t object returned by
  4568. Pattern::createPlatformPattern sould destroy it after the painting
  4569. operation. Failing to do so causes memory leaks.
  4570. Test: No test was added because the patch adds no new functionality.
  4571. It just completes the normal life cycle of a cairo_pattern_t object.
  4572. * platform/graphics/cairo/FontCairo.cpp:
  4573. (WebCore::Font::drawGlyphs):
  4574. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  4575. (WebCore::setPlatformFill):
  4576. (WebCore::setPlatformStroke):
  4577. 2010-05-15 Yael Aharon <yael.aharon@nokia.com>
  4578. Reviewed by Kent Tamura.
  4579. Initial support for HTMLMeterElement
  4580. https://bugs.webkit.org/show_bug.cgi?id=38140
  4581. This patch adds support for HTMLMeterElement, including default rendering
  4582. of the meter element. That is because some platforms do not have a native gauge.
  4583. The feature is turned on only for the Qt platform.
  4584. Tests: fast/dom/HTMLMeterElement/meter-element.html
  4585. fast/dom/HTMLMeterElement/set-meter-properties.html
  4586. * DerivedSources.cpp:
  4587. * DerivedSources.make:
  4588. * GNUmakefile.am:
  4589. * WebCore.gypi:
  4590. * WebCore.pri:
  4591. * WebCore.pro:
  4592. * WebCore.vcproj/WebCore.vcproj:
  4593. * css/CSSPrimitiveValueMappings.h:
  4594. (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
  4595. * css/CSSValueKeywords.in:
  4596. * css/html.css:
  4597. (meter):
  4598. (meter::-webkit-meter):
  4599. * html/HTMLAttributeNames.in:
  4600. * html/HTMLElement.cpp:
  4601. (WebCore::inlineTagList):
  4602. * html/HTMLElementsAllInOne.cpp:
  4603. * html/HTMLMeterElement.cpp: Added.
  4604. (WebCore::HTMLMeterElement::HTMLMeterElement):
  4605. (WebCore::HTMLMeterElement::create):
  4606. (WebCore::HTMLMeterElement::createRenderer):
  4607. (WebCore::HTMLMeterElement::formControlType):
  4608. (WebCore::HTMLMeterElement::parseMappedAttribute):
  4609. (WebCore::HTMLMeterElement::min):
  4610. (WebCore::HTMLMeterElement::setMin):
  4611. (WebCore::HTMLMeterElement::max):
  4612. (WebCore::HTMLMeterElement::setMax):
  4613. (WebCore::HTMLMeterElement::value):
  4614. (WebCore::HTMLMeterElement::setValue):
  4615. (WebCore::HTMLMeterElement::low):
  4616. (WebCore::HTMLMeterElement::setLow):
  4617. (WebCore::HTMLMeterElement::high):
  4618. (WebCore::HTMLMeterElement::setHigh):
  4619. (WebCore::HTMLMeterElement::optimum):
  4620. (WebCore::HTMLMeterElement::setOptimum):
  4621. * html/HTMLMeterElement.h: Added.
  4622. (WebCore::HTMLMeterElement::recalcWillValidate):
  4623. * html/HTMLMeterElement.idl: Added.
  4624. * html/HTMLTagNames.in:
  4625. * page/DOMWindow.idl:
  4626. * platform/ThemeTypes.h:
  4627. * rendering/RenderMeter.cpp: Added.
  4628. (WebCore::RenderMeter::RenderMeter):
  4629. (WebCore::RenderMeter::layout):
  4630. (WebCore::RenderMeter::updateFromElement):
  4631. * rendering/RenderMeter.h: Added.
  4632. (WebCore::RenderMeter::renderName):
  4633. (WebCore::RenderMeter::isMeter):
  4634. (WebCore::toRenderMeter):
  4635. * rendering/RenderObject.h:
  4636. (WebCore::RenderObject::isMeter):
  4637. * rendering/RenderTheme.cpp:
  4638. (WebCore::RenderTheme::adjustStyle):
  4639. (WebCore::RenderTheme::paint):
  4640. (WebCore::RenderTheme::paintBorderOnly):
  4641. (WebCore::RenderTheme::paintDecorations):
  4642. (WebCore::RenderTheme::adjustMeterStyle):
  4643. (WebCore::RenderTheme::paintMeter):
  4644. * rendering/RenderTheme.h:
  4645. 2010-05-15 Eric Uhrhane <ericu@chromium.org>
  4646. Reviewed by Dmitry Titov.
  4647. Add bindings for async DB API in Workers.
  4648. https://bugs.webkit.org/show_bug.cgi?id=34992
  4649. Tests: storage/change-version-handle-reuse-worker.html
  4650. storage/execute-sql-args-worker.html
  4651. * bindings/js/JSWorkerContextCustom.cpp: Add openDatabase binding.
  4652. (WebCore::JSWorkerContext::openDatabase):
  4653. * bindings/v8/custom/V8WorkerContextCustom.cpp: Add openDatabase stub; Chromium will need work both in V8 and in the browser process before we can turn this on there.
  4654. (WebCore::V8WorkerContext::openDatabaseCallback):
  4655. Add NoStaticTables flags to all objects now shared with workers.
  4656. * storage/Database.idl:
  4657. * storage/SQLError.idl:
  4658. * storage/SQLResultSet.idl:
  4659. * storage/SQLResultSetRowList.idl:
  4660. * storage/SQLTransaction.idl:
  4661. * workers/WorkerContext.h: Add databaseExceededQuota.
  4662. * workers/WorkerContext.cpp:
  4663. (WebCore::WorkerContext::databaseExceededQuota): Add stub implementation for testing; you just get 5MB for now.
  4664. (WebCore::WorkerContext::openDatabase): Remove invalid assertion.
  4665. Add the IDL for the call to openDatabase.
  4666. * workers/WorkerContext.idl:
  4667. 2010-05-15 Leandro Pereira <leandro@profusion.mobi>
  4668. Reviewed by Adam Treat.
  4669. [EFL] Add build system for the EFL port.
  4670. http://webkit.org/b/37945
  4671. * CMakeLists.txt: Added.
  4672. * CMakeListsEfl.txt: Added.
  4673. * config.h: Add conditional to look for cmakeconfig.h.
  4674. 2010-05-15 Adam Barth <abarth@webkit.org>
  4675. Reviewed by Darin Adler.
  4676. Clipboard.setData doesn't need to be custom
  4677. https://bugs.webkit.org/show_bug.cgi?id=39133
  4678. The implementation of the custom binding for this function was a bit
  4679. different than its declaration in the IDL file. I've updated the IDL
  4680. to match the implementation, but we probably should check whether our
  4681. behavior is correct with respect to the specification.
  4682. No tests because I've maintained our current behavior.
  4683. * bindings/js/JSClipboardCustom.cpp:
  4684. * bindings/v8/custom/V8ClipboardCustom.cpp:
  4685. * dom/Clipboard.idl:
  4686. 2010-05-15 Yaar Schnitman <yaar@chromium.org>
  4687. Reviewed by Adam Barth.
  4688. V8 overload support ported to JSC. Unforking of overloaded declarations in WebGL & Canvas will be done in subsequent patches.
  4689. https://bugs.webkit.org/show_bug.cgi?id=38920
  4690. Note that JSTestCallback.cpp/h include minor irrelevant changes too since somebody forgot to update them after changing the JS generator.
  4691. * bindings/scripts/CodeGenerator.pm:
  4692. * bindings/scripts/CodeGeneratorJS.pm:
  4693. * bindings/scripts/CodeGeneratorV8.pm:
  4694. * bindings/scripts/test/JS/JSTestCallback.cpp:
  4695. (WebCore::JSTestCallback::JSTestCallback):
  4696. (WebCore::JSTestCallback::~JSTestCallback):
  4697. * bindings/scripts/test/JS/JSTestCallback.h:
  4698. * bindings/scripts/test/JS/JSTestObj.cpp:
  4699. (WebCore::):
  4700. (WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
  4701. (WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
  4702. (WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
  4703. (WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
  4704. (WebCore::testObjPrototypeFunctionOverloadedMethod):
  4705. * bindings/scripts/test/JS/JSTestObj.h:
  4706. * bindings/scripts/test/TestObj.idl:
  4707. 2010-05-15 Joanmarie Diggs <joanmarie.diggs@gmail.com>
  4708. Reviewed by Xan Lopez.
  4709. https://bugs.webkit.org/show_bug.cgi?id=30500
  4710. [Gtk] Find a way for WebKit to "announce" itself so that ATs can readily distinguish it from true Gtk/Gail
  4711. The "announcement" is now made in the form of an object attribute
  4712. associated with the AtkObject.
  4713. * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
  4714. (webkit_accessible_get_attributes):
  4715. 2010-05-15 Adam Barth <abarth@webkit.org>
  4716. Reviewed by Darin Adler.
  4717. Show a console message when X-Frame-Options blocks a load
  4718. https://bugs.webkit.org/show_bug.cgi?id=39087
  4719. The blank page confuses people when X-Frame-Options blocks a load. The
  4720. console message should at least give them a hint as to what's going on.
  4721. * dom/Document.cpp:
  4722. (WebCore::Document::processHttpEquiv):
  4723. 2010-05-15 Ilya Tikhonovsky <loislo@chromium.org>
  4724. Reviewed by Geoffrey Garen.
  4725. WebInspector: JSC Should provide heap size info for Timeline panel.
  4726. https://bugs.webkit.org/show_bug.cgi?id=38420
  4727. * GNUmakefile.am:
  4728. * WebCore.pro:
  4729. * WebCore.vcproj/WebCore.vcproj:
  4730. * WebCore.xcodeproj/project.pbxproj:
  4731. * bindings/js/ScriptGCEvent.cpp: Added.
  4732. (WebCore::ScriptGCEvent::getHeapSize):
  4733. * bindings/js/ScriptGCEvent.h:
  4734. 2010-05-15 Dave Tapuska <dtapuska@rim.com>
  4735. Reviewed by Darin Adler.
  4736. Fix alignment faults on ARMv5TE architectures.
  4737. In debug mode the RenderAreaDebugHeader was 12 bytes which
  4738. caused an alignment failure for RenderObjects because they
  4739. would start on a 4 byte boundary. Align the RenderArenaDebugHeader
  4740. using the ARENA_ALIGN macro.
  4741. In NDEBUG mode the RenderArena objects come from a pool which
  4742. has 4 byte alignment. Allow the alignment to be based on the
  4743. AllocAlignmentInteger. This define will be activated for ARMv5TE.
  4744. https://bugs.webkit.org/show_bug.cgi?id=19946
  4745. 2010-05-14 Adam Barth <abarth@webkit.org>
  4746. Reviewed by Darin Adler.
  4747. XMLHttpRequest.overrideMimeType doesn't need to be custom
  4748. https://bugs.webkit.org/show_bug.cgi?id=39127
  4749. I don't see any reason why this method should be custom. No tests
  4750. because no behavior change.
  4751. * bindings/js/JSXMLHttpRequestCustom.cpp:
  4752. * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
  4753. * xml/XMLHttpRequest.idl:
  4754. 2010-05-14 Adele Peterson <adele@apple.com>
  4755. Reviewed by Dave Hyatt.
  4756. Fix for https://bugs.webkit.org/show_bug.cgi?id=39095
  4757. <rdar://problem/7984158> REGRESSION (r53085): Infinite recursion in Position::getInlineBoxAndOffset when changing writing direction to right-to-left
  4758. Test: editing/selection/applystyle-to-inline-inside-block.html
  4759. * dom/Position.cpp: (WebCore::Position::getInlineBoxAndOffset): Now that this function correctly goes in and out of editable areas by calling
  4760. downstreamIgnoringEditingBoundaries and upstreamIgnoringEditingBoundaries for blocks (added in r58665), we no longer need a special case to
  4761. jump out to the parent when we hit an inline (which was added in r53085 when this issue was introduced).
  4762. 2010-05-14 Brian Weinstein <bweinstein@apple.com>
  4763. Reviewed by Mark Rowe.
  4764. Hopefully a last fix for the build. Call -mkdir instead of mkdir, so we don't bail if the mkdir call fails. Additionally,
  4765. use the %Env% syntax instead of $(Env), which is what we need if we are referring to Windows environment variables instead
  4766. of nmake variables.
  4767. * WebCore.vcproj/WebCore.make:
  4768. 2010-05-14 Stephanie Lewis <slewis@apple.com>
  4769. Rubber-stamped by Mark Rowe.
  4770. Update order files.
  4771. * WebCore.order:
  4772. 2010-05-14 David Hyatt <hyatt@apple.com>
  4773. Reviewed by Simon Fraser.
  4774. https://bugs.webkit.org/show_bug.cgi?id=39137
  4775. Make RenderLayers position properly inside multicolumn layout.
  4776. (1) Create RenderLayers when column properties are specified. This allows descendant layers to easily
  4777. know they are inside a multicolumn layout when positioning.
  4778. (2) Patch updateLayerPosition to offset the layer into the first column that contains the layer. Splitting
  4779. of a layer across columns still does not work, but the layer will now at least appear in the first column in
  4780. which it occurs.
  4781. (3) Fix pagination bugs caused by the fact that visual overflow doesn't propagate up the line box tree when layers
  4782. are involved. Make sure to use lineTop and lineBottom in this case (it's not perfect, but it gets most cases
  4783. working properly). With this change elements like <video> will paginate properly and not get split across pages.
  4784. (4) Make column repainting and layer positioning work with RTL columns by fixing adjustForColumns to
  4785. account for RTL.
  4786. (5) Fix RTL pagination by making sure the column pagination rects are the content width of the whole block and not just
  4787. the width of one column.
  4788. Added fast/multicol/layers-in-multicol.html
  4789. * rendering/RenderBlock.cpp:
  4790. (WebCore::RenderBlock::layoutColumns):
  4791. (WebCore::RenderBlock::adjustForColumns):
  4792. * rendering/RenderBox.h:
  4793. (WebCore::RenderBox::locationOffset):
  4794. * rendering/RenderBoxModelObject.h:
  4795. (WebCore::RenderBoxModelObject::requiresLayer):
  4796. * rendering/RenderLayer.cpp:
  4797. (WebCore::RenderLayer::updateLayerPosition):
  4798. (WebCore::RenderLayer::convertToLayerCoords):
  4799. (WebCore::RenderLayer::shouldBeNormalFlowOnly):
  4800. * rendering/RenderLineBoxList.cpp:
  4801. (WebCore::RenderLineBoxList::paint):
  4802. * rendering/RenderView.cpp:
  4803. (WebCore::RenderView::RenderView):
  4804. * rendering/RenderView.h:
  4805. (WebCore::RenderView::requiresLayer):
  4806. * rendering/style/RenderStyle.h:
  4807. (WebCore::InheritedFlags::specifiesColumns):
  4808. 2010-05-14 Leon Clarke <leonclarke@google.com>
  4809. Reviewed by Steve Block.
  4810. Refactor signature of tokenizeRelAttribute and the variables it refers to so that new features don't keep changing the signature, and make m_disabledState into an enum.
  4811. https://bugs.webkit.org/show_bug.cgi?id=38900
  4812. No new tests. Refactoring only.
  4813. * html/HTMLLinkElement.cpp:
  4814. (WebCore::HTMLLinkElement::HTMLLinkElement):
  4815. (WebCore::HTMLLinkElement::setDisabledState):
  4816. (WebCore::HTMLLinkElement::parseMappedAttribute):
  4817. (WebCore::HTMLLinkElement::tokenizeRelAttribute):
  4818. (WebCore::HTMLLinkElement::process):
  4819. (WebCore::HTMLLinkElement::addSubresourceAttributeURLs):
  4820. * html/HTMLLinkElement.h:
  4821. (WebCore::HTMLLinkElement::RelAttribute::RelAttribute):
  4822. (WebCore::HTMLLinkElement::isAlternate):
  4823. (WebCore::HTMLLinkElement::isDisabled):
  4824. (WebCore::HTMLLinkElement::isEnabledViaScript):
  4825. (WebCore::HTMLLinkElement::isIcon):
  4826. (WebCore::HTMLLinkElement::):
  4827. * html/PreloadScanner.cpp:
  4828. (WebCore::PreloadScanner::processAttribute):
  4829. 2010-05-14 Noam Rosenthal <noam.rosenthal@nokia.com>
  4830. Reviewed by Kenneth Rohde Christiansen.
  4831. [Qt] GraphicsLayer caches directly composited images
  4832. https://bugs.webkit.org/show_bug.cgi?id=38444
  4833. Directly-composited images and solid fills shouldn't be cached, as that cache
  4834. is never used (see GraphicsLayerQtImpl::paint). Cache is only relevant for HTML content,
  4835. but we were missing that test.
  4836. The fix makes sure we only cache HTML content.
  4837. No new tests: this is a minor optimization.
  4838. * platform/graphics/qt/GraphicsLayerQt.cpp:
  4839. (WebCore::GraphicsLayerQtImpl::flushChanges):
  4840. 2010-05-14 Brian Weinstein <bweinstein@apple.com>
  4841. Reviewed by Mark Rowe.
  4842. Build fix. Had the environment variables wrong for source and destination of the copy operation
  4843. that was added.
  4844. * WebCore.vcproj/WebCore.make:
  4845. 2010-05-14 Adam Barth <abarth@webkit.org>
  4846. Reviewed by Eric Seidel.
  4847. Remove custom bindings for HTMLInputElement
  4848. https://bugs.webkit.org/show_bug.cgi?id=38344
  4849. Fix a bug in the TestObj.idl file and update expected results. This
  4850. was originally part of a larger change reviewed by Eric, but I'm
  4851. landing it separately to help me understand the more interesting bits
  4852. of the patch clearly.
  4853. * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
  4854. (webkit_dom_test_obj_get_attr_with_setter_exception):
  4855. (webkit_dom_test_obj_set_attr_with_setter_exception):
  4856. (webkit_dom_test_obj_set_attr_with_getter_exception):
  4857. (webkit_dom_test_obj_set_property):
  4858. (webkit_dom_test_obj_get_property):
  4859. * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
  4860. * bindings/scripts/test/JS/JSTestObj.cpp:
  4861. (WebCore::jsTestObjAttrWithSetterException):
  4862. (WebCore::setJSTestObjAttrWithSetterException):
  4863. (WebCore::setJSTestObjAttrWithGetterException):
  4864. * bindings/scripts/test/ObjC/DOMTestObj.mm:
  4865. (-[DOMTestObj attrWithSetterException]):
  4866. (-[DOMTestObj setAttrWithSetterException:]):
  4867. (-[DOMTestObj setAttrWithGetterException:]):
  4868. * bindings/scripts/test/TestObj.idl:
  4869. * bindings/scripts/test/V8/V8TestObj.cpp:
  4870. (WebCore::TestObjInternal::attrWithSetterExceptionAttrGetter):
  4871. (WebCore::TestObjInternal::attrWithSetterExceptionAttrSetter):
  4872. (WebCore::TestObjInternal::attrWithGetterExceptionAttrSetter):
  4873. 2010-05-14 Kenneth Russell <kbr@google.com>
  4874. Reviewed by Darin Adler.
  4875. Rename WebGLArray types to TypedArray types
  4876. https://bugs.webkit.org/show_bug.cgi?id=39091
  4877. Extended functionality of do-webcore-rename script and used it to
  4878. rename the WebGLArray types to the TypedArray naming convention.
  4879. The only source files which were touched by hand, and which are
  4880. being manually reviewed, are:
  4881. WebCore/page/DOMWindow.idl
  4882. WebCore/bindings/generic/RuntimeEnabledFeatures.h (script's changes undone)
  4883. WebKit/WebCore/bindings/js/JSDOMWindowCustom.cpp
  4884. WebKit/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp
  4885. These only needed to be touched to update the aliases between the
  4886. WebGLArray and TypedArray names introduced in bug 39036. (It was
  4887. not feasible to have do-webcore-rename handle this as it would
  4888. introduce circular renamings.) These aliases will be removed in
  4889. roughly a month once existing WebGL content has been updated.
  4890. No new tests; covered under existing WebGL tests. Updated
  4891. constructed-objects-prototypes and prototype-inheritance-2 tests.
  4892. Ran all layout tests in Safari and all WebGL tests in Chromium.
  4893. * DerivedSources.make:
  4894. * GNUmakefile.am:
  4895. * WebCore.gypi:
  4896. * WebCore.pri:
  4897. * WebCore.pro:
  4898. * WebCore.xcodeproj/project.pbxproj:
  4899. * bindings/js/JSArrayBufferConstructor.cpp: Copied from WebCore/bindings/js/JSWebGLArrayBufferConstructor.cpp.
  4900. (WebCore::):
  4901. (WebCore::JSArrayBufferConstructor::JSArrayBufferConstructor):
  4902. (WebCore::constructCanvasArrayBuffer):
  4903. (WebCore::JSArrayBufferConstructor::getConstructData):
  4904. * bindings/js/JSArrayBufferConstructor.h: Copied from WebCore/bindings/js/JSWebGLArrayBufferConstructor.h.
  4905. (WebCore::construct):
  4906. * bindings/js/JSArrayBufferViewCustom.cpp: Copied from WebCore/bindings/js/JSWebGLArrayCustom.cpp.
  4907. (WebCore::toJS):
  4908. (WebCore::JSArrayBufferView::slice):
  4909. * bindings/js/JSArrayBufferViewHelper.h: Copied from WebCore/bindings/js/JSWebGLArrayHelper.h.
  4910. * bindings/js/JSDOMWindowCustom.cpp:
  4911. (WebCore::JSDOMWindow::arrayBuffer):
  4912. (WebCore::JSDOMWindow::int8Array):
  4913. (WebCore::JSDOMWindow::uint8Array):
  4914. (WebCore::JSDOMWindow::int32Array):
  4915. (WebCore::JSDOMWindow::uint32Array):
  4916. (WebCore::JSDOMWindow::int16Array):
  4917. (WebCore::JSDOMWindow::uint16Array):
  4918. (WebCore::JSDOMWindow::floatArray):
  4919. (WebCore::JSDOMWindow::webGLArrayBuffer):
  4920. (WebCore::JSDOMWindow::webGLByteArray):
  4921. (WebCore::JSDOMWindow::webGLUnsignedByteArray):
  4922. (WebCore::JSDOMWindow::webGLIntArray):
  4923. (WebCore::JSDOMWindow::webGLUnsignedIntArray):
  4924. (WebCore::JSDOMWindow::webGLShortArray):
  4925. (WebCore::JSDOMWindow::webGLUnsignedShortArray):
  4926. (WebCore::JSDOMWindow::webGLFloatArray):
  4927. * bindings/js/JSFloatArrayConstructor.cpp: Copied from WebCore/bindings/js/JSWebGLFloatArrayConstructor.cpp.
  4928. (WebCore::):
  4929. (WebCore::JSFloatArrayConstructor::JSFloatArrayConstructor):
  4930. (WebCore::constructCanvasFloatArray):
  4931. (WebCore::JSFloatArrayConstructor::getConstructData):
  4932. * bindings/js/JSFloatArrayConstructor.h: Copied from WebCore/bindings/js/JSWebGLFloatArrayConstructor.h.
  4933. * bindings/js/JSFloatArrayCustom.cpp: Copied from WebCore/bindings/js/JSWebGLFloatArrayCustom.cpp.
  4934. (WebCore::JSFloatArray::indexSetter):
  4935. (WebCore::toJS):
  4936. (WebCore::JSFloatArray::set):
  4937. * bindings/js/JSInt16ArrayConstructor.cpp: Copied from WebCore/bindings/js/JSWebGLShortArrayConstructor.cpp.
  4938. (WebCore::):
  4939. (WebCore::JSInt16ArrayConstructor::JSInt16ArrayConstructor):
  4940. (WebCore::constructCanvasShortArray):
  4941. (WebCore::JSInt16ArrayConstructor::getConstructData):
  4942. * bindings/js/JSInt16ArrayConstructor.h: Copied from WebCore/bindings/js/JSWebGLShortArrayConstructor.h.
  4943. * bindings/js/JSInt16ArrayCustom.cpp: Copied from WebCore/bindings/js/JSWebGLShortArrayCustom.cpp.
  4944. (WebCore::JSInt16Array::indexSetter):
  4945. (WebCore::toJS):
  4946. (WebCore::JSInt16Array::set):
  4947. * bindings/js/JSInt32ArrayConstructor.cpp: Copied from WebCore/bindings/js/JSWebGLIntArrayConstructor.cpp.
  4948. (WebCore::):
  4949. (WebCore::JSInt32ArrayConstructor::JSInt32ArrayConstructor):
  4950. (WebCore::constructCanvasIntArray):
  4951. (WebCore::JSInt32ArrayConstructor::getConstructData):
  4952. * bindings/js/JSInt32ArrayConstructor.h: Copied from WebCore/bindings/js/JSWebGLIntArrayConstructor.h.
  4953. * bindings/js/JSInt32ArrayCustom.cpp: Copied from WebCore/bindings/js/JSWebGLIntArrayCustom.cpp.
  4954. (WebCore::JSInt32Array::indexSetter):
  4955. (WebCore::toJS):
  4956. (WebCore::JSInt32Array::set):
  4957. * bindings/js/JSInt8ArrayConstructor.cpp: Copied from WebCore/bindings/js/JSWebGLByteArrayConstructor.cpp.
  4958. (WebCore::):
  4959. (WebCore::JSInt8ArrayConstructor::JSInt8ArrayConstructor):
  4960. (WebCore::constructCanvasByteArray):
  4961. (WebCore::JSInt8ArrayConstructor::getConstructData):
  4962. * bindings/js/JSInt8ArrayConstructor.h: Copied from WebCore/bindings/js/JSWebGLByteArrayConstructor.h.
  4963. * bindings/js/JSInt8ArrayCustom.cpp: Copied from WebCore/bindings/js/JSWebGLByteArrayCustom.cpp.
  4964. (WebCore::JSInt8Array::indexSetter):
  4965. (WebCore::toJS):
  4966. (WebCore::JSInt8Array::set):
  4967. * bindings/js/JSUint16ArrayConstructor.cpp: Copied from WebCore/bindings/js/JSWebGLUnsignedShortArrayConstructor.cpp.
  4968. (WebCore::):
  4969. (WebCore::JSUint16ArrayConstructor::JSUint16ArrayConstructor):
  4970. (WebCore::constructCanvasUnsignedShortArray):
  4971. (WebCore::JSUint16ArrayConstructor::getConstructData):
  4972. * bindings/js/JSUint16ArrayConstructor.h: Copied from WebCore/bindings/js/JSWebGLUnsignedShortArrayConstructor.h.
  4973. * bindings/js/JSUint16ArrayCustom.cpp: Copied from WebCore/bindings/js/JSWebGLUnsignedShortArrayCustom.cpp.
  4974. (WebCore::JSUint16Array::indexSetter):
  4975. (WebCore::toJS):
  4976. (WebCore::JSUint16Array::set):
  4977. * bindings/js/JSUint32ArrayConstructor.cpp: Copied from WebCore/bindings/js/JSWebGLUnsignedIntArrayConstructor.cpp.
  4978. (WebCore::):
  4979. (WebCore::JSUint32ArrayConstructor::JSUint32ArrayConstructor):
  4980. (WebCore::constructCanvasUnsignedIntArray):
  4981. (WebCore::JSUint32ArrayConstructor::getConstructData):
  4982. * bindings/js/JSUint32ArrayConstructor.h: Copied from WebCore/bindings/js/JSWebGLUnsignedIntArrayConstructor.h.
  4983. * bindings/js/JSUint32ArrayCustom.cpp: Copied from WebCore/bindings/js/JSWebGLUnsignedIntArrayCustom.cpp.
  4984. (WebCore::JSUint32Array::indexSetter):
  4985. (WebCore::toJS):
  4986. (WebCore::JSUint32Array::set):
  4987. * bindings/js/JSUint8ArrayConstructor.cpp: Copied from WebCore/bindings/js/JSWebGLUnsignedByteArrayConstructor.cpp.
  4988. (WebCore::):
  4989. (WebCore::JSUint8ArrayConstructor::JSUint8ArrayConstructor):
  4990. (WebCore::constructCanvasUnsignedByteArray):
  4991. (WebCore::JSUint8ArrayConstructor::getConstructData):
  4992. * bindings/js/JSUint8ArrayConstructor.h: Copied from WebCore/bindings/js/JSWebGLUnsignedByteArrayConstructor.h.
  4993. * bindings/js/JSUint8ArrayCustom.cpp: Copied from WebCore/bindings/js/JSWebGLUnsignedByteArrayCustom.cpp.
  4994. (WebCore::JSUint8Array::indexSetter):
  4995. (WebCore::toJS):
  4996. (WebCore::JSUint8Array::set):
  4997. * bindings/js/JSWebGLArrayBufferConstructor.cpp: Removed.
  4998. * bindings/js/JSWebGLArrayBufferConstructor.h: Removed.
  4999. * bindings/js/JSWebGLArrayCustom.cpp: Removed.
  5000. * bindings/js/JSWebGLArrayHelper.h: Removed.
  5001. * bindings/js/JSWebGLByteArrayConstructor.cpp: Removed.
  5002. * bindings/js/JSWebGLByteArrayConstructor.h: Removed.
  5003. * bindings/js/JSWebGLByteArrayCustom.cpp: Removed.
  5004. * bindings/js/JSWebGLFloatArrayConstructor.cpp: Removed.
  5005. * bindings/js/JSWebGLFloatArrayConstructor.h: Removed.
  5006. * bindings/js/JSWebGLFloatArrayCustom.cpp: Removed.
  5007. * bindings/js/JSWebGLIntArrayConstructor.cpp: Removed.
  5008. * bindings/js/JSWebGLIntArrayConstructor.h: Removed.
  5009. * bindings/js/JSWebGLIntArrayCustom.cpp: Removed.
  5010. * bindings/js/JSWebGLRenderingContextCustom.cpp:
  5011. (WebCore::JSWebGLRenderingContext::bufferData):
  5012. (WebCore::JSWebGLRenderingContext::bufferSubData):
  5013. (WebCore::JSWebGLRenderingContext::texImage2D):
  5014. (WebCore::JSWebGLRenderingContext::texSubImage2D):
  5015. (WebCore::dataFunctionf):
  5016. (WebCore::dataFunctioni):
  5017. (WebCore::dataFunctionMatrix):
  5018. * bindings/js/JSWebGLShortArrayConstructor.cpp: Removed.
  5019. * bindings/js/JSWebGLShortArrayConstructor.h: Removed.
  5020. * bindings/js/JSWebGLShortArrayCustom.cpp: Removed.
  5021. * bindings/js/JSWebGLUnsignedByteArrayConstructor.cpp: Removed.
  5022. * bindings/js/JSWebGLUnsignedByteArrayConstructor.h: Removed.
  5023. * bindings/js/JSWebGLUnsignedByteArrayCustom.cpp: Removed.
  5024. * bindings/js/JSWebGLUnsignedIntArrayConstructor.cpp: Removed.
  5025. * bindings/js/JSWebGLUnsignedIntArrayConstructor.h: Removed.
  5026. * bindings/js/JSWebGLUnsignedIntArrayCustom.cpp: Removed.
  5027. * bindings/js/JSWebGLUnsignedShortArrayConstructor.cpp: Removed.
  5028. * bindings/js/JSWebGLUnsignedShortArrayConstructor.h: Removed.
  5029. * bindings/js/JSWebGLUnsignedShortArrayCustom.cpp: Removed.
  5030. * bindings/v8/V8DOMWrapper.cpp:
  5031. * bindings/v8/custom/V8ArrayBufferCustom.cpp: Copied from WebCore/bindings/v8/custom/V8WebGLArrayBufferCustom.cpp.
  5032. (WebCore::V8ArrayBuffer::constructorCallback):
  5033. * bindings/v8/custom/V8ArrayBufferViewCustom.cpp: Copied from WebCore/bindings/v8/custom/V8WebGLArrayCustom.cpp.
  5034. (WebCore::toV8):
  5035. (WebCore::V8ArrayBufferView::sliceCallback):
  5036. * bindings/v8/custom/V8ArrayBufferViewCustom.h: Copied from WebCore/bindings/v8/custom/V8WebGLArrayCustom.h.
  5037. (WebCore::constructWebGLArray):
  5038. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  5039. (WebCore::V8DOMWindow::WebGLArrayBufferAccessorGetter):
  5040. (WebCore::V8DOMWindow::WebGLByteArrayAccessorGetter):
  5041. (WebCore::V8DOMWindow::WebGLUnsignedByteArrayAccessorGetter):
  5042. (WebCore::V8DOMWindow::WebGLShortArrayAccessorGetter):
  5043. (WebCore::V8DOMWindow::WebGLUnsignedShortArrayAccessorGetter):
  5044. (WebCore::V8DOMWindow::WebGLIntArrayAccessorGetter):
  5045. (WebCore::V8DOMWindow::WebGLUnsignedIntArrayAccessorGetter):
  5046. (WebCore::V8DOMWindow::WebGLFloatArrayAccessorGetter):
  5047. * bindings/v8/custom/V8FloatArrayCustom.cpp: Copied from WebCore/bindings/v8/custom/V8WebGLFloatArrayCustom.cpp.
  5048. (WebCore::V8FloatArray::constructorCallback):
  5049. (WebCore::V8FloatArray::setCallback):
  5050. (WebCore::toV8):
  5051. * bindings/v8/custom/V8Int16ArrayCustom.cpp: Copied from WebCore/bindings/v8/custom/V8WebGLShortArrayCustom.cpp.
  5052. (WebCore::V8Int16Array::constructorCallback):
  5053. (WebCore::V8Int16Array::setCallback):
  5054. (WebCore::toV8):
  5055. * bindings/v8/custom/V8Int32ArrayCustom.cpp: Copied from WebCore/bindings/v8/custom/V8WebGLIntArrayCustom.cpp.
  5056. (WebCore::V8Int32Array::constructorCallback):
  5057. (WebCore::V8Int32Array::setCallback):
  5058. (WebCore::toV8):
  5059. * bindings/v8/custom/V8Int8ArrayCustom.cpp: Copied from WebCore/bindings/v8/custom/V8WebGLByteArrayCustom.cpp.
  5060. (WebCore::V8Int8Array::constructorCallback):
  5061. (WebCore::V8Int8Array::setCallback):
  5062. (WebCore::toV8):
  5063. * bindings/v8/custom/V8Uint16ArrayCustom.cpp: Copied from WebCore/bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp.
  5064. (WebCore::V8Uint16Array::constructorCallback):
  5065. (WebCore::V8Uint16Array::setCallback):
  5066. (WebCore::toV8):
  5067. * bindings/v8/custom/V8Uint32ArrayCustom.cpp: Copied from WebCore/bindings/v8/custom/V8WebGLUnsignedIntArrayCustom.cpp.
  5068. (WebCore::V8Uint32Array::constructorCallback):
  5069. (WebCore::V8Uint32Array::setCallback):
  5070. (WebCore::toV8):
  5071. * bindings/v8/custom/V8Uint8ArrayCustom.cpp: Copied from WebCore/bindings/v8/custom/V8WebGLUnsignedByteArrayCustom.cpp.
  5072. (WebCore::V8Uint8Array::constructorCallback):
  5073. (WebCore::V8Uint8Array::setCallback):
  5074. (WebCore::toV8):
  5075. * bindings/v8/custom/V8WebGLArrayBufferCustom.cpp: Removed.
  5076. * bindings/v8/custom/V8WebGLArrayCustom.cpp: Removed.
  5077. * bindings/v8/custom/V8WebGLArrayCustom.h: Removed.
  5078. * bindings/v8/custom/V8WebGLByteArrayCustom.cpp: Removed.
  5079. * bindings/v8/custom/V8WebGLFloatArrayCustom.cpp: Removed.
  5080. * bindings/v8/custom/V8WebGLIntArrayCustom.cpp: Removed.
  5081. * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
  5082. (WebCore::vertexAttribAndUniformHelperf):
  5083. (WebCore::uniformHelperi):
  5084. (WebCore::uniformMatrixHelper):
  5085. * bindings/v8/custom/V8WebGLShortArrayCustom.cpp: Removed.
  5086. * bindings/v8/custom/V8WebGLUnsignedByteArrayCustom.cpp: Removed.
  5087. * bindings/v8/custom/V8WebGLUnsignedIntArrayCustom.cpp: Removed.
  5088. * bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp: Removed.
  5089. * html/canvas/ArrayBuffer.cpp: Copied from WebCore/html/canvas/WebGLArrayBuffer.cpp.
  5090. (WebCore::ArrayBuffer::create):
  5091. (WebCore::ArrayBuffer::ArrayBuffer):
  5092. (WebCore::ArrayBuffer::data):
  5093. (WebCore::ArrayBuffer::byteLength):
  5094. (WebCore::ArrayBuffer::~ArrayBuffer):
  5095. (WebCore::ArrayBuffer::tryAllocate):
  5096. * html/canvas/ArrayBuffer.h: Copied from WebCore/html/canvas/WebGLArrayBuffer.h.
  5097. * html/canvas/ArrayBuffer.idl: Copied from WebCore/html/canvas/WebGLArrayBuffer.idl.
  5098. * html/canvas/ArrayBufferView.cpp: Copied from WebCore/html/canvas/WebGLArray.cpp.
  5099. (WebCore::ArrayBufferView::ArrayBufferView):
  5100. (WebCore::ArrayBufferView::~ArrayBufferView):
  5101. (WebCore::ArrayBufferView::setImpl):
  5102. (WebCore::ArrayBufferView::calculateOffsetAndLength):
  5103. * html/canvas/ArrayBufferView.h: Copied from WebCore/html/canvas/WebGLArray.h.
  5104. (WebCore::ArrayBufferView::buffer):
  5105. (WebCore::ArrayBufferView::verifySubRange):
  5106. (WebCore::ArrayBufferView::clampOffsetAndNumElements):
  5107. * html/canvas/ArrayBufferView.idl: Copied from WebCore/html/canvas/WebGLArray.idl.
  5108. * html/canvas/FloatArray.cpp: Copied from WebCore/html/canvas/WebGLFloatArray.cpp.
  5109. (WebCore::FloatArray::create):
  5110. (WebCore::FloatArray::FloatArray):
  5111. (WebCore::FloatArray::slice):
  5112. * html/canvas/FloatArray.h: Copied from WebCore/html/canvas/WebGLFloatArray.h.
  5113. (WebCore::FloatArray::set):
  5114. (WebCore::FloatArray::item):
  5115. * html/canvas/FloatArray.idl: Copied from WebCore/html/canvas/WebGLFloatArray.idl.
  5116. * html/canvas/Int16Array.cpp: Copied from WebCore/html/canvas/WebGLShortArray.cpp.
  5117. (WebCore::Int16Array::create):
  5118. (WebCore::Int16Array::Int16Array):
  5119. (WebCore::Int16Array::slice):
  5120. * html/canvas/Int16Array.h: Copied from WebCore/html/canvas/WebGLShortArray.h.
  5121. * html/canvas/Int16Array.idl: Copied from WebCore/html/canvas/WebGLShortArray.idl.
  5122. * html/canvas/Int32Array.cpp: Copied from WebCore/html/canvas/WebGLIntArray.cpp.
  5123. (WebCore::Int32Array::create):
  5124. (WebCore::Int32Array::Int32Array):
  5125. (WebCore::Int32Array::slice):
  5126. * html/canvas/Int32Array.h: Copied from WebCore/html/canvas/WebGLIntArray.h.
  5127. * html/canvas/Int32Array.idl: Copied from WebCore/html/canvas/WebGLIntArray.idl.
  5128. * html/canvas/Int8Array.cpp: Copied from WebCore/html/canvas/WebGLByteArray.cpp.
  5129. (WebCore::Int8Array::create):
  5130. (WebCore::Int8Array::Int8Array):
  5131. (WebCore::Int8Array::slice):
  5132. * html/canvas/Int8Array.h: Copied from WebCore/html/canvas/WebGLByteArray.h.
  5133. * html/canvas/Int8Array.idl: Copied from WebCore/html/canvas/WebGLByteArray.idl.
  5134. * html/canvas/IntegralTypedArrayBase.h: Copied from WebCore/html/canvas/WebGLIntegralTypedArrayBase.h.
  5135. (WebCore::IntegralTypedArrayBase::set):
  5136. (WebCore::IntegralTypedArrayBase::item):
  5137. (WebCore::IntegralTypedArrayBase::IntegralTypedArrayBase):
  5138. * html/canvas/TypedArrayBase.h: Copied from WebCore/html/canvas/WebGLTypedArrayBase.h.
  5139. (WebCore::TypedArrayBase::set):
  5140. (WebCore::TypedArrayBase::TypedArrayBase):
  5141. (WebCore::TypedArrayBase::create):
  5142. * html/canvas/Uint16Array.cpp: Copied from WebCore/html/canvas/WebGLUnsignedShortArray.cpp.
  5143. (WebCore::Uint16Array::create):
  5144. (WebCore::Uint16Array::Uint16Array):
  5145. (WebCore::Uint16Array::slice):
  5146. * html/canvas/Uint16Array.h: Copied from WebCore/html/canvas/WebGLUnsignedShortArray.h.
  5147. * html/canvas/Uint16Array.idl: Copied from WebCore/html/canvas/WebGLUnsignedShortArray.idl.
  5148. * html/canvas/Uint32Array.cpp: Copied from WebCore/html/canvas/WebGLUnsignedIntArray.cpp.
  5149. (WebCore::Uint32Array::create):
  5150. (WebCore::Uint32Array::Uint32Array):
  5151. (WebCore::Uint32Array::slice):
  5152. * html/canvas/Uint32Array.h: Copied from WebCore/html/canvas/WebGLUnsignedIntArray.h.
  5153. * html/canvas/Uint32Array.idl: Copied from WebCore/html/canvas/WebGLUnsignedIntArray.idl.
  5154. * html/canvas/Uint8Array.cpp: Copied from WebCore/html/canvas/WebGLUnsignedByteArray.cpp.
  5155. (WebCore::Uint8Array::create):
  5156. (WebCore::Uint8Array::Uint8Array):
  5157. (WebCore::Uint8Array::slice):
  5158. * html/canvas/Uint8Array.h: Copied from WebCore/html/canvas/WebGLUnsignedByteArray.h.
  5159. * html/canvas/Uint8Array.idl: Copied from WebCore/html/canvas/WebGLUnsignedByteArray.idl.
  5160. * html/canvas/WebGLArray.cpp: Removed.
  5161. * html/canvas/WebGLArray.h: Removed.
  5162. * html/canvas/WebGLArray.idl: Removed.
  5163. * html/canvas/WebGLArrayBuffer.cpp: Removed.
  5164. * html/canvas/WebGLArrayBuffer.h: Removed.
  5165. * html/canvas/WebGLArrayBuffer.idl: Removed.
  5166. * html/canvas/WebGLBuffer.cpp:
  5167. (WebCore::WebGLBuffer::associateBufferData):
  5168. (WebCore::WebGLBuffer::associateBufferSubData):
  5169. * html/canvas/WebGLBuffer.h:
  5170. (WebCore::WebGLBuffer::elementArrayBuffer):
  5171. * html/canvas/WebGLByteArray.cpp: Removed.
  5172. * html/canvas/WebGLByteArray.h: Removed.
  5173. * html/canvas/WebGLByteArray.idl: Removed.
  5174. * html/canvas/WebGLFloatArray.cpp: Removed.
  5175. * html/canvas/WebGLFloatArray.h: Removed.
  5176. * html/canvas/WebGLFloatArray.idl: Removed.
  5177. * html/canvas/WebGLGetInfo.cpp:
  5178. (WebCore::WebGLGetInfo::WebGLGetInfo):
  5179. (WebCore::WebGLGetInfo::getWebGLFloatArray):
  5180. (WebCore::WebGLGetInfo::getWebGLIntArray):
  5181. (WebCore::WebGLGetInfo::getWebGLUnsignedByteArray):
  5182. * html/canvas/WebGLGetInfo.h:
  5183. * html/canvas/WebGLIntArray.cpp: Removed.
  5184. * html/canvas/WebGLIntArray.h: Removed.
  5185. * html/canvas/WebGLIntArray.idl: Removed.
  5186. * html/canvas/WebGLIntegralTypedArrayBase.h: Removed.
  5187. * html/canvas/WebGLRenderingContext.cpp:
  5188. (WebCore::WebGLRenderingContext::bufferData):
  5189. (WebCore::WebGLRenderingContext::bufferSubData):
  5190. (WebCore::WebGLRenderingContext::getUniform):
  5191. (WebCore::WebGLRenderingContext::getVertexAttrib):
  5192. (WebCore::WebGLRenderingContext::readPixels):
  5193. (WebCore::WebGLRenderingContext::texImage2D):
  5194. (WebCore::WebGLRenderingContext::texSubImage2D):
  5195. (WebCore::WebGLRenderingContext::uniform1fv):
  5196. (WebCore::WebGLRenderingContext::uniform1iv):
  5197. (WebCore::WebGLRenderingContext::uniform2fv):
  5198. (WebCore::WebGLRenderingContext::uniform2iv):
  5199. (WebCore::WebGLRenderingContext::uniform3fv):
  5200. (WebCore::WebGLRenderingContext::uniform3iv):
  5201. (WebCore::WebGLRenderingContext::uniform4fv):
  5202. (WebCore::WebGLRenderingContext::uniform4iv):
  5203. (WebCore::WebGLRenderingContext::uniformMatrix2fv):
  5204. (WebCore::WebGLRenderingContext::uniformMatrix3fv):
  5205. (WebCore::WebGLRenderingContext::uniformMatrix4fv):
  5206. (WebCore::WebGLRenderingContext::vertexAttrib1fv):
  5207. (WebCore::WebGLRenderingContext::vertexAttrib2fv):
  5208. (WebCore::WebGLRenderingContext::vertexAttrib3fv):
  5209. (WebCore::WebGLRenderingContext::vertexAttrib4fv):
  5210. (WebCore::WebGLRenderingContext::getWebGLFloatArrayParameter):
  5211. (WebCore::WebGLRenderingContext::getWebGLIntArrayParameter):
  5212. (WebCore::WebGLRenderingContext::getWebGLUnsignedByteArrayParameter):
  5213. * html/canvas/WebGLRenderingContext.h:
  5214. * html/canvas/WebGLRenderingContext.idl:
  5215. * html/canvas/WebGLShortArray.cpp: Removed.
  5216. * html/canvas/WebGLShortArray.h: Removed.
  5217. * html/canvas/WebGLShortArray.idl: Removed.
  5218. * html/canvas/WebGLTypedArrayBase.h: Removed.
  5219. * html/canvas/WebGLUnsignedByteArray.cpp: Removed.
  5220. * html/canvas/WebGLUnsignedByteArray.h: Removed.
  5221. * html/canvas/WebGLUnsignedByteArray.idl: Removed.
  5222. * html/canvas/WebGLUnsignedIntArray.cpp: Removed.
  5223. * html/canvas/WebGLUnsignedIntArray.h: Removed.
  5224. * html/canvas/WebGLUnsignedIntArray.idl: Removed.
  5225. * html/canvas/WebGLUnsignedShortArray.cpp: Removed.
  5226. * html/canvas/WebGLUnsignedShortArray.h: Removed.
  5227. * html/canvas/WebGLUnsignedShortArray.idl: Removed.
  5228. * page/DOMWindow.idl:
  5229. * platform/graphics/GraphicsContext3D.h:
  5230. * platform/graphics/mac/GraphicsContext3DMac.cpp:
  5231. (WebCore::GraphicsContext3D::bufferData):
  5232. (WebCore::GraphicsContext3D::bufferSubData):
  5233. * platform/graphics/qt/GraphicsContext3DQt.cpp:
  5234. (WebCore::GraphicsContext3D::bufferData):
  5235. (WebCore::GraphicsContext3D::bufferSubData):
  5236. 2010-05-14 Steve Falkenburg <sfalken@apple.com>
  5237. Reviewed by Sam Weinig.
  5238. <rdar://problem/7985864> Connection properties dictionary should use standard callbacks for keys, values
  5239. https://bugs.webkit.org/show_bug.cgi?id=39132
  5240. * platform/network/cf/ResourceHandleCFNet.cpp:
  5241. (WebCore::createConnectionProperties):
  5242. 2010-05-14 Abhishek Arya <inferno@chromium.org>
  5243. Reviewed by David Hyatt.
  5244. Move the m_width(Length) and m_columns(RenderTable::ColumnStruct)
  5245. vector out-of-bounds check out of the ASSERT into the main code.
  5246. https://bugs.webkit.org/show_bug.cgi?id=38261
  5247. Test: fast/table/fixed-table-layout-large-colspan-crash.html
  5248. * rendering/FixedTableLayout.cpp:
  5249. (WebCore::FixedTableLayout::calcWidthArray):
  5250. 2010-05-14 Eric Seidel <eric@webkit.org>
  5251. Unreviewed, rolling out r59489.
  5252. http://trac.webkit.org/changeset/59489
  5253. https://bugs.webkit.org/show_bug.cgi?id=37815
  5254. abarth broke the known universe and then some.
  5255. * Android.jscbindings.mk:
  5256. * GNUmakefile.am:
  5257. * WebCore.gypi:
  5258. * WebCore.pro:
  5259. * WebCore.vcproj/WebCore.vcproj:
  5260. * WebCore.xcodeproj/project.pbxproj:
  5261. * bindings/js/JSBindingsAllInOne.cpp:
  5262. * bindings/js/JSCallbackData.cpp:
  5263. (WebCore::JSCallbackData::invokeCallback):
  5264. * bindings/js/JSEventListener.cpp:
  5265. (WebCore::JSEventListener::handleEvent):
  5266. * bindings/js/JSInjectedScriptHostCustom.cpp:
  5267. (WebCore::InjectedScriptHost::createInjectedScript):
  5268. * bindings/js/ScheduledAction.cpp:
  5269. (WebCore::ScheduledAction::executeFunctionInContext):
  5270. (WebCore::ScheduledAction::execute):
  5271. * bindings/js/ScheduledAction.h:
  5272. * bindings/js/ScriptController.cpp:
  5273. (WebCore::ScriptController::evaluateInWorld):
  5274. * bindings/js/ScriptController.h:
  5275. * bindings/js/ScriptFunctionCall.cpp:
  5276. (WebCore::ScriptFunctionCall::call):
  5277. * bindings/objc/ObjCEventListener.mm:
  5278. (WebCore::ObjCEventListener::handleEvent):
  5279. * bindings/objc/WebScriptObject.mm:
  5280. (-[WebScriptObject callWebScriptMethod:withArguments:]):
  5281. (-[WebScriptObject evaluateWebScript:]):
  5282. * bindings/scripts/CodeGeneratorObjC.pm:
  5283. * bindings/scripts/test/ObjC/DOMTestCallback.mm:
  5284. (-[DOMTestCallback callbackWithClass1Param:]):
  5285. (-[DOMTestCallback callbackWithClass2Param:strArg:]):
  5286. (-[DOMTestCallback callbackWithNonBoolReturnType:]):
  5287. (-[DOMTestCallback customCallback:class6Param:]):
  5288. * bindings/scripts/test/ObjC/DOMTestInterface.mm:
  5289. * bindings/scripts/test/ObjC/DOMTestObj.mm:
  5290. (-[DOMTestObj readOnlyIntAttr]):
  5291. (-[DOMTestObj readOnlyStringAttr]):
  5292. (-[DOMTestObj readOnlyTestObjAttr]):
  5293. (-[DOMTestObj intAttr]):
  5294. (-[DOMTestObj setIntAttr:]):
  5295. (-[DOMTestObj longLongAttr]):
  5296. (-[DOMTestObj setLongLongAttr:]):
  5297. (-[DOMTestObj unsignedLongLongAttr]):
  5298. (-[DOMTestObj setUnsignedLongLongAttr:]):
  5299. (-[DOMTestObj stringAttr]):
  5300. (-[DOMTestObj setStringAttr:]):
  5301. (-[DOMTestObj testObjAttr]):
  5302. (-[DOMTestObj setTestObjAttr:]):
  5303. (-[DOMTestObj attrWithException]):
  5304. (-[DOMTestObj setAttrWithException:]):
  5305. (-[DOMTestObj attrWithSetterException]):
  5306. (-[DOMTestObj setAttrWithSetterException:]):
  5307. (-[DOMTestObj attrWithGetterException]):
  5308. (-[DOMTestObj setAttrWithGetterException:]):
  5309. (-[DOMTestObj customAttr]):
  5310. (-[DOMTestObj setCustomAttr:]):
  5311. (-[DOMTestObj scriptStringAttr]):
  5312. (-[DOMTestObj voidMethod]):
  5313. (-[DOMTestObj voidMethodWithArgs:strArg:objArg:]):
  5314. (-[DOMTestObj intMethod]):
  5315. (-[DOMTestObj intMethodWithArgs:strArg:objArg:]):
  5316. (-[DOMTestObj objMethod]):
  5317. (-[DOMTestObj objMethodWithArgs:strArg:objArg:]):
  5318. (-[DOMTestObj serializedValue:]):
  5319. (-[DOMTestObj methodWithException]):
  5320. (-[DOMTestObj customMethod]):
  5321. (-[DOMTestObj customMethodWithArgs:strArg:objArg:]):
  5322. (-[DOMTestObj customArgsAndException:]):
  5323. (-[DOMTestObj addEventListener:listener:useCapture:]):
  5324. (-[DOMTestObj removeEventListener:listener:useCapture:]):
  5325. (-[DOMTestObj withDynamicFrame]):
  5326. (-[DOMTestObj withDynamicFrameAndArg:]):
  5327. (-[DOMTestObj withDynamicFrameAndOptionalArg:optionalArg:]):
  5328. (-[DOMTestObj withDynamicFrameAndUserGesture:]):
  5329. (-[DOMTestObj withDynamicFrameAndUserGestureASAD:optionalArg:]):
  5330. (-[DOMTestObj withScriptStateVoid]):
  5331. (-[DOMTestObj withScriptStateObj]):
  5332. (-[DOMTestObj withScriptStateVoidException]):
  5333. (-[DOMTestObj withScriptStateObjException]):
  5334. (-[DOMTestObj methodWithOptionalArg:]):
  5335. (-[DOMTestObj methodWithNonOptionalArgAndOptionalArg:opt:]):
  5336. (-[DOMTestObj methodWithNonOptionalArgAndTwoOptionalArgs:opt1:opt2:]):
  5337. * bindings/v8/ScriptController.cpp:
  5338. * bindings/v8/ScriptController.h:
  5339. * html/HTMLFrameElementBase.cpp:
  5340. (WebCore::HTMLFrameElementBase::isURLAllowed):
  5341. 2010-05-14 Justin Schuh <jschuh@chromium.org>
  5342. Reviewed by Adam Barth.
  5343. Moving frame.src checks out of the bindings
  5344. https://bugs.webkit.org/show_bug.cgi?id=37815
  5345. Moved JavaScript frame.src checks out of bindings and into
  5346. HTMLFrameElementBase. Added main thread state stack to JavaScriptCore
  5347. so ExecState is available inside core DOM. Updated affected bindings
  5348. (except for GObject, which will need to be updated to avoid origin
  5349. failures inside native code).
  5350. * Android.jscbindings.mk:
  5351. * GNUmakefile.am:
  5352. * WebCore.gypi:
  5353. * WebCore.pro:
  5354. * WebCore.vcproj/WebCore.vcproj:
  5355. * WebCore.xcodeproj/project.pbxproj:
  5356. * bindings/js/JSBindingsAllInOne.cpp:
  5357. * bindings/js/JSCallbackData.cpp:
  5358. (WebCore::JSCallbackData::invokeCallback):
  5359. * bindings/js/JSEventListener.cpp:
  5360. (WebCore::JSEventListener::handleEvent):
  5361. * bindings/js/JSInjectedScriptHostCustom.cpp:
  5362. (WebCore::InjectedScriptHost::createInjectedScript):
  5363. * bindings/js/ScheduledAction.cpp:
  5364. (WebCore::ScheduledAction::executeFunctionInContext):
  5365. (WebCore::ScheduledAction::execute):
  5366. * bindings/js/ScheduledAction.h:
  5367. * bindings/js/ScriptController.cpp:
  5368. (WebCore::ScriptController::evaluateInWorld):
  5369. (WebCore::ScriptController::canAccessFromCurrentOrigin):
  5370. * bindings/js/ScriptController.h:
  5371. * bindings/js/ScriptFunctionCall.cpp:
  5372. (WebCore::ScriptFunctionCall::call):
  5373. * bindings/objc/ObjCEventListener.mm:
  5374. (WebCore::ObjCEventListener::handleEvent):
  5375. * bindings/objc/WebScriptObject.mm:
  5376. (-[WebScriptObject callWebScriptMethod:withArguments:]):
  5377. (-[WebScriptObject evaluateWebScript:]):
  5378. * bindings/scripts/CodeGeneratorObjC.pm:
  5379. * bindings/scripts/test/ObjC/DOMTestCallback.mm:
  5380. (-[DOMTestCallback callbackWithClass1Param:]):
  5381. (-[DOMTestCallback callbackWithClass2Param:strArg:]):
  5382. (-[DOMTestCallback callbackWithNonBoolReturnType:]):
  5383. (-[DOMTestCallback customCallback:class6Param:]):
  5384. * bindings/scripts/test/ObjC/DOMTestInterface.mm:
  5385. * bindings/scripts/test/ObjC/DOMTestObj.mm:
  5386. (-[DOMTestObj readOnlyIntAttr]):
  5387. (-[DOMTestObj readOnlyStringAttr]):
  5388. (-[DOMTestObj readOnlyTestObjAttr]):
  5389. (-[DOMTestObj intAttr]):
  5390. (-[DOMTestObj setIntAttr:]):
  5391. (-[DOMTestObj longLongAttr]):
  5392. (-[DOMTestObj setLongLongAttr:]):
  5393. (-[DOMTestObj unsignedLongLongAttr]):
  5394. (-[DOMTestObj setUnsignedLongLongAttr:]):
  5395. (-[DOMTestObj stringAttr]):
  5396. (-[DOMTestObj setStringAttr:]):
  5397. (-[DOMTestObj testObjAttr]):
  5398. (-[DOMTestObj setTestObjAttr:]):
  5399. (-[DOMTestObj attrWithException]):
  5400. (-[DOMTestObj setAttrWithException:]):
  5401. (-[DOMTestObj attrWithSetterException]):
  5402. (-[DOMTestObj setAttrWithSetterException:]):
  5403. (-[DOMTestObj attrWithGetterException]):
  5404. (-[DOMTestObj setAttrWithGetterException:]):
  5405. (-[DOMTestObj customAttr]):
  5406. (-[DOMTestObj setCustomAttr:]):
  5407. (-[DOMTestObj scriptStringAttr]):
  5408. (-[DOMTestObj voidMethod]):
  5409. (-[DOMTestObj voidMethodWithArgs:strArg:objArg:]):
  5410. (-[DOMTestObj intMethod]):
  5411. (-[DOMTestObj intMethodWithArgs:strArg:objArg:]):
  5412. (-[DOMTestObj objMethod]):
  5413. (-[DOMTestObj objMethodWithArgs:strArg:objArg:]):
  5414. (-[DOMTestObj serializedValue:]):
  5415. (-[DOMTestObj methodWithException]):
  5416. (-[DOMTestObj customMethod]):
  5417. (-[DOMTestObj customMethodWithArgs:strArg:objArg:]):
  5418. (-[DOMTestObj customArgsAndException:]):
  5419. (-[DOMTestObj addEventListener:listener:useCapture:]):
  5420. (-[DOMTestObj removeEventListener:listener:useCapture:]):
  5421. (-[DOMTestObj withDynamicFrame]):
  5422. (-[DOMTestObj withDynamicFrameAndArg:]):
  5423. (-[DOMTestObj withDynamicFrameAndOptionalArg:optionalArg:]):
  5424. (-[DOMTestObj withDynamicFrameAndUserGesture:]):
  5425. (-[DOMTestObj withDynamicFrameAndUserGestureASAD:optionalArg:]):
  5426. (-[DOMTestObj withScriptStateVoid]):
  5427. (-[DOMTestObj withScriptStateObj]):
  5428. (-[DOMTestObj withScriptStateVoidException]):
  5429. (-[DOMTestObj withScriptStateObjException]):
  5430. (-[DOMTestObj methodWithOptionalArg:]):
  5431. (-[DOMTestObj methodWithNonOptionalArgAndOptionalArg:opt:]):
  5432. (-[DOMTestObj methodWithNonOptionalArgAndTwoOptionalArgs:opt1:opt2:]):
  5433. * bindings/v8/ScriptController.cpp:
  5434. (WebCore::ScriptController::canAccessFromCurrentOrigin):
  5435. * bindings/v8/ScriptController.h:
  5436. * html/HTMLFrameElementBase.cpp:
  5437. (WebCore::HTMLFrameElementBase::isURLAllowed):
  5438. 2010-05-14 Sergey Ulanov <sergeyu@chromium.org>
  5439. Reviewed by Dmitry Titov and Brett Wilson.
  5440. Adding resized image caching for Skia.
  5441. https://bugs.webkit.org/show_bug.cgi?id=39085
  5442. Tests: HTML5 video on YouTube.
  5443. * platform/graphics/skia/ImageSkia.cpp:
  5444. (WebCore::Image::drawPattern): Use bitmap->resizedBitmap() to cache resized image when possible.
  5445. 2010-05-14 Alexey Proskuryakov <ap@apple.com>
  5446. Reviewed by Brady Eidson.
  5447. https://bugs.webkit.org/show_bug.cgi?id=39008
  5448. <rdar://problem/7976142> REGRESSION (r58950): Webkit crashes on clicking back button when in Hotmail
  5449. Test: fast/parser/tokenizer-close-during-document-write.html
  5450. * dom/Document.cpp: (WebCore::Document::write): Check that the tokenizer is still around
  5451. after calling write(). It can become null (as it happens in regression test), and I don't
  5452. see any guarantee that it would never be replaced with a different one (but I can't make a
  5453. test for that).
  5454. 2010-05-14 Jian Li <jianli@chromium.org>
  5455. Rubber-stamped by Dmitry Titov.
  5456. Fix the code indentation inside a namespace to be consistent with the
  5457. style guide.
  5458. * workers/GenericWorkerTask.h:
  5459. 2010-05-14 Jian Li <jianli@chromium.org>
  5460. Reviewed by Dmitry Titov.
  5461. Remove the ENABLE(WORKERS) guard from GenericWorkerTask.h and rename
  5462. all occurrences of GenericWorkerTask* to GenericTask* in this file.
  5463. https://bugs.webkit.org/show_bug.cgi?id=39129
  5464. I will have another patch to rename the file and move it to the right
  5465. place.
  5466. * workers/GenericWorkerTask.h:
  5467. (WebCore::):
  5468. (WebCore::GenericTask1::create):
  5469. (WebCore::GenericTask1::GenericTask1):
  5470. (WebCore::GenericTask2::create):
  5471. (WebCore::GenericTask2::GenericTask2):
  5472. (WebCore::GenericTask3::create):
  5473. (WebCore::GenericTask3::GenericTask3):
  5474. (WebCore::GenericTask4::create):
  5475. (WebCore::GenericTask4::GenericTask4):
  5476. (WebCore::GenericTask5::create):
  5477. (WebCore::GenericTask5::GenericTask5):
  5478. (WebCore::GenericTask6::create):
  5479. (WebCore::GenericTask6::GenericTask6):
  5480. (WebCore::GenericTask7::create):
  5481. (WebCore::GenericTask7::GenericTask7):
  5482. (WebCore::GenericTask8::create):
  5483. (WebCore::GenericTask8::GenericTask8):
  5484. (WebCore::createCallbackTask):
  5485. 2010-05-14 Evan Martin <evan@chromium.org>
  5486. Reviewed by David Levin.
  5487. [chromium] don't call fontconfig twice in complex text path
  5488. https://bugs.webkit.org/show_bug.cgi?id=38701
  5489. Previously getFontDataForCharacters would call fontconfig once to
  5490. resolve a font name, then pass that name to getCachedFontPlatformData
  5491. to load the font. This would be two trips through fontconfig (including
  5492. IPCs). With this change, we completely load the font in the first pass.
  5493. This patch is actually the same code as in r58341, which was reverted
  5494. because of a performance problem; a performance improvement has now
  5495. been committed, and with that change in place this change improves
  5496. the Chromium intl2 page cycler performance by another 5%.
  5497. See also https://bugs.webkit.org/show_bug.cgi?id=37904 .
  5498. Test: fast/text/international/bold-bengali.html
  5499. (Was checked in as part of the first attempt at this change, continues
  5500. to pass after this change.)
  5501. * platform/chromium/ChromiumBridge.h:
  5502. * platform/graphics/chromium/FontCacheLinux.cpp:
  5503. (WebCore::FontCache::getFontDataForCharacters):
  5504. 2010-05-14 Young Han Lee <joybro@company100.net>
  5505. Reviewed by Darin Adler.
  5506. Don't include RetainPtr.h unless PLATFORM(CF) is set.
  5507. The RetainPtr is only used for CF platform in this class.
  5508. https://bugs.webkit.org/show_bug.cgi?id=39043
  5509. No new tests, there is no new functionality.
  5510. * platform/network/curl/ResourceHandleManager.cpp:
  5511. 2010-05-14 Brian Weinstein <bweinstein@apple.com>
  5512. Reviewed by Adam Roben.
  5513. Build fix, we need to copy over the files in $(WebKitOutputDir)/include/JavaScriptCore/private before
  5514. WebCore builds. This is because we are building a couple WTF files in WebCore and JavaScriptCore.
  5515. * WebCore.vcproj/WebCore.make:
  5516. 2010-05-14 Shinichiro Hamaji <hamaji@chromium.org>
  5517. Unreviewed. Attempt to fix chromium's memory bot error.
  5518. More :visited link optimizations to reduce memory usage
  5519. https://bugs.webkit.org/show_bug.cgi?id=39084
  5520. The original change (r59386) adds check for m_element in initElement.
  5521. As don't initialize m_element in the constructor of CSSStyleSelector,
  5522. valgrind complains.
  5523. * css/CSSStyleSelector.cpp:
  5524. (WebCore::CSSStyleSelector::CSSStyleSelector):
  5525. 2010-05-14 Andreas Kling <andreas.kling@nokia.com>
  5526. Reviewed by Darin Adler.
  5527. CSSParser::parseColor() shouldn't alter 'color' unless passed a valid color string.
  5528. https://bugs.webkit.org/show_bug.cgi?id=39031
  5529. * css/CSSParser.cpp:
  5530. (WebCore::CSSParser::parseColor):
  5531. * editing/ApplyStyleCommand.cpp:
  5532. (WebCore::StyleChange::extractTextStyles): Don't depend on old behavior.
  5533. * html/canvas/CanvasRenderingContext2D.cpp:
  5534. (WebCore::CanvasRenderingContext2D::setShadow): Remove dead code.
  5535. 2010-05-14 Jens Alfke <snej@chromium.org>
  5536. Reviewed by John Sullivan.
  5537. Don't clear yellow autofill highlight from text fields until the user edits them.
  5538. https://bugs.webkit.org/show_bug.cgi?id=39032
  5539. No new tests (Couldn't find any autofill tests. The flag doesn't seem to be exposed to JS.)
  5540. * html/HTMLInputElement.cpp:
  5541. (WebCore::HTMLInputElement::handleFocusEvent): Don't clear the autofilled flag.
  5542. (WebCore::HTMLInputElement::setValueFromRenderer): Clear the autofilled flag.
  5543. 2010-05-14 Zhenyao Mo <zmo@google.com>
  5544. Reviewed by Dimitri Glazkov.
  5545. Must implement OpenGL ES 2.0 semantics for NPOT textures
  5546. https://bugs.webkit.org/show_bug.cgi?id=33805
  5547. Test: fast/canvas/webgl/texture-npot.html
  5548. * html/canvas/WebGLRenderingContext.cpp:
  5549. (WebCore::WebGLRenderingContext::WebGLRenderingContext): Create black 1x1 textures.
  5550. (WebCore::WebGLRenderingContext::bindTexture): Set texture dimensionality.
  5551. (WebCore::WebGLRenderingContext::copyTexImage2D): Error check, set texture size.
  5552. (WebCore::WebGLRenderingContext::drawArrays): Bind to black textures if needed.
  5553. (WebCore::WebGLRenderingContext::drawElements): Bind to black textures if needed.
  5554. (WebCore::WebGLRenderingContext::generateMipmap): Error check.
  5555. (WebCore::WebGLRenderingContext::texImage2DBase): Error check, set texture size.
  5556. (WebCore::WebGLRenderingContext::texParameterf): Set texture parameter.
  5557. (WebCore::WebGLRenderingContext::texParameteri): Ditto.
  5558. (WebCore::WebGLRenderingContext::handleNPOTTextures): Bind to black textures if needed before draw, and bind back to original textures after draw.
  5559. * html/canvas/WebGLRenderingContext.h: Add black 1x1 textures.
  5560. * html/canvas/WebGLTexture.cpp: Add support to track NPOT textures.
  5561. (WebCore::WebGLTexture::createBlackTexture1x1): Create a black 1x1 texture.
  5562. (WebCore::WebGLTexture::WebGLTexture): Initialize parameters and states.
  5563. (WebCore::WebGLTexture::setDimensionality): Set dimensionality.
  5564. (WebCore::WebGLTexture::setParameteri): Set parameter.
  5565. (WebCore::WebGLTexture::setParameterf): Ditto.
  5566. (WebCore::WebGLTexture::setSize): Set level 0 texture size.
  5567. (WebCore::WebGLTexture::isNPOT): Whether the texture is NPOT.
  5568. (WebCore::WebGLTexture::updateNPOTStates): Calculate NPOT and NeedToUseBlackTexture states.
  5569. * html/canvas/WebGLTexture.h: Add support to track NPOT textures.
  5570. (WebCore::WebGLTexture::isNPOT):
  5571. (WebCore::WebGLTexture::needToUseBlackTexture):
  5572. 2010-05-14 Andrey Kosyakov <caseq@chromium.org>
  5573. Reviewed by Pavel Feldman.
  5574. Web Inspector: add help on keyboard shortcuts (take 2).
  5575. https://bugs.webkit.org/show_bug.cgi?id=38667
  5576. * English.lproj/localizedStrings.js:
  5577. * WebCore.gypi:
  5578. * WebCore.vcproj/WebCore.vcproj:
  5579. * inspector/front-end/CallStackSidebarPane.js:
  5580. (WebInspector.CallStackSidebarPane):
  5581. (WebInspector.CallStackSidebarPane.prototype._placardSelected):
  5582. (WebInspector.CallStackSidebarPane.prototype.registerShortcuts):
  5583. * inspector/front-end/ConsoleView.js:
  5584. (WebInspector.ConsoleView):
  5585. (WebInspector.ConsoleView.prototype._registerShortcuts):
  5586. * inspector/front-end/ElementsPanel.js:
  5587. (WebInspector.ElementsPanel):
  5588. (WebInspector.ElementsPanel.prototype._registerShortcuts):
  5589. * inspector/front-end/ElementsTreeOutline.js:
  5590. (WebInspector.ElementsTreeOutline.prototype._keyDown):
  5591. * inspector/front-end/HelpScreen.js: Added.
  5592. * inspector/front-end/KeyboardShortcut.js:
  5593. * inspector/front-end/ScriptsPanel.js:
  5594. (WebInspector.ScriptsPanel.prototype.elementsToRestoreScrollPositionsFor):
  5595. (WebInspector.ScriptsPanel.prototype._registerShortcuts):
  5596. * inspector/front-end/ShortcutsHelp.js: Added.
  5597. * inspector/front-end/SidebarPane.js:
  5598. (WebInspector.SidebarPane.prototype._onTitleKeyDown):
  5599. * inspector/front-end/StylesSidebarPane.js:
  5600. (WebInspector.StylesSidebarPane.prototype.removeSection):
  5601. (WebInspector.StylesSidebarPane.prototype.registerShortcuts):
  5602. * inspector/front-end/TextViewer.js:
  5603. (WebInspector.TextViewer.prototype._handleKeyDown):
  5604. * inspector/front-end/WebKit.qrc:
  5605. * inspector/front-end/helpScreen.css: Added.
  5606. 2010-05-14 Tony Gentilcore <tonyg@chromium.org>
  5607. Reviewed by Darin Fisher.
  5608. [chromium] Update chromium port to send/receive cached metadata
  5609. https://bugs.webkit.org/show_bug.cgi?id=38665
  5610. No new tests because no new functionality.
  5611. * platform/chromium/ChromiumBridge.h:
  5612. * platform/network/chromium/ResourceResponse.h:
  5613. (WebCore::ResourceResponse::ResourceResponse):
  5614. (WebCore::ResourceResponse::responseTime):
  5615. (WebCore::ResourceResponse::setResponseTime):
  5616. 2010-05-14 Chris Evans <cevans@chromium.org>
  5617. Reviewed by Adam Barth.
  5618. Chromium-specific fix to prevent zombie infobars.
  5619. https://bugs.webkit.org/show_bug.cgi?id=38948
  5620. * bindings/v8/ScriptController.cpp
  5621. (WebCore::ScriptController::processingUserGesture):
  5622. Require a more definite "no" signal.
  5623. * loader/RedirectScheduler.cpp:
  5624. (WebCore::ScheduledFormSubmission::fire):
  5625. Use a very strong yes / no signal; no need for "possible" here.
  5626. * dom/UserGestureIndicator.h:
  5627. * dom/UserGestureIndicator.cpp:
  5628. Adapt to tri-state: definitely yes; definitely no; not sure.
  5629. 2010-05-14 Aaron Kennedy <tffeeb@gmail.com>
  5630. Reviewed by Simon Hausmann.
  5631. [Qt] JavaScript unable to invoke methods declared in QML
  5632. https://bugs.webkit.org/show_bug.cgi?id=38949
  5633. JavaScript code executed by webkit cannot call into QML declared
  5634. methods, as it does not check for dynamic meta objects.
  5635. * bridge/qt/qt_instance.cpp:
  5636. (JSC::Bindings::QtInstance::stringValue): Use QMetaObject::metacall.
  5637. * bridge/qt/qt_runtime.cpp:
  5638. (JSC::Bindings::QtRuntimeMetaMethod::call): Ditto.
  5639. 2010-05-14 Ben Murdoch <benm@google.com>
  5640. Reviewed by Darin Fisher.
  5641. Touch events are disabled by default when using V8.
  5642. https://bugs.webkit.org/show_bug.cgi?id=38990
  5643. Touch events are protected by a compile time guard, so it's safe to
  5644. assume that the runtime flag should be enabled by default when this
  5645. guard is present.
  5646. No new tests, build fix for Android.
  5647. * bindings/generic/RuntimeEnabledFeatures.cpp: enable touch events by default.
  5648. 2010-05-14 George Wright <gwright@rim.com>
  5649. Reviewed by George Staikos.
  5650. https://bugs.webkit.org/show_bug.cgi?id=38909
  5651. Update JSDataGridColumnListCustom.cpp to call identifierToAtomicString()
  5652. on the property name.
  5653. * bindings/js/JSDataGridColumnListCustom.cpp:
  5654. (WebCore::JSDataGridColumnList::canGetItemsForName):
  5655. (WebCore::JSDataGridColumnList::nameGetter):
  5656. 2010-05-14 Andreas Kling <andreas.kling@nokia.com>
  5657. Reviewed by Darin Adler.
  5658. Ignore invalid values for various CanvasRenderingContext2D properties
  5659. (lineWidth, miterLimit, shadowOffsetX, shadowOffsetY and shadowBlur)
  5660. https://bugs.webkit.org/show_bug.cgi?id=38841
  5661. Test: fast/canvas/canvas-invalid-values.html
  5662. * html/canvas/CanvasRenderingContext2D.cpp:
  5663. (WebCore::CanvasRenderingContext2D::setLineWidth):
  5664. (WebCore::CanvasRenderingContext2D::setMiterLimit):
  5665. (WebCore::CanvasRenderingContext2D::setShadowOffsetX):
  5666. (WebCore::CanvasRenderingContext2D::setShadowOffsetY):
  5667. (WebCore::CanvasRenderingContext2D::setShadowBlur):
  5668. 2010-05-13 Timothy Hatcher <timothy@apple.com>
  5669. Expose WebCore::reportException and WebCore::toJSDOMWindow symbols.
  5670. Reviewed by Sam Weinig.
  5671. * WebCore.base.exp: Expose reportException and toJSDOMWindow.
  5672. 2010-05-13 Joseph Pecoraro <joepeck@webkit.org>
  5673. Reviewed by Timothy Hatcher.
  5674. Web Inspector: Clearing Breakpoints Too Often
  5675. https://bugs.webkit.org/show_bug.cgi?id=39094
  5676. Minor resets should preserve both workers and breakpoints.
  5677. * inspector/front-end/ScriptsPanel.js:
  5678. (WebInspector.ScriptsPanel.prototype.reset):
  5679. 2010-05-13 Simon Fraser <simon.fraser@apple.com>
  5680. Reviewed by Dan Bernstein.
  5681. iframes in compositing layers don't redraw correctly on scrolling
  5682. https://bugs.webkit.org/show_bug.cgi?id=39096
  5683. When an iframe ends up in a compositing layer (that is painting to its backing store), we need
  5684. to turn off blitting on scrolling. RenderView::paintBoxDecorations() already has code to do this
  5685. for transformed frames, so do the same thing when the frame is enclosed in a compositing layer.
  5686. Test: compositing/iframes/iframe-copy-on-scroll.html
  5687. * rendering/RenderView.cpp:
  5688. (WebCore::RenderView::paintBoxDecorations):
  5689. 2010-05-13 Simon Fraser <simon.fraser@apple.com>
  5690. Reviewed by Dave Hyatt.
  5691. Fix scrolling in composited iframes
  5692. https://bugs.webkit.org/show_bug.cgi?id=39088
  5693. <rdar://problem/7980099>
  5694. When propagating compositing out of iframes, we have to update the position of the iframe content
  5695. layers on scrolling.
  5696. Test: compositing/iframes/scrolling-iframe.html
  5697. * page/FrameView.cpp:
  5698. (WebCore::FrameView::scrollPositionChanged): Call updateContentLayerScrollPosition() when scrolling.
  5699. * rendering/RenderLayerBacking.cpp:
  5700. (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry): Renamed setRootPlatformLayerClippingBox() to updateContentLayerOffset().
  5701. * rendering/RenderLayerCompositor.h:
  5702. * rendering/RenderLayerCompositor.cpp: Rename m_clippingLayer to m_clipLayer to go better with m_scrollLayer.
  5703. (WebCore::RenderLayerCompositor::updateContentLayerOffset): Renamed from setRootPlatformLayerClippingBox().
  5704. Set the size of the clipping layer from the FrameView now, so that scrollbars are not clipped out.
  5705. Update the scroll layer position too.
  5706. (WebCore::RenderLayerCompositor::updateContentLayerScrollPosition): Set the position of the scroll layer
  5707. when the ScrollView is scrolled.
  5708. (WebCore::RenderLayerCompositor::rootPlatformLayer): m_clippingLayer rename.
  5709. (WebCore::RenderLayerCompositor::ensureRootPlatformLayer): m_clippingLayer rename. Also create m_scrollLayer at
  5710. the same time as the clip layer, and clean it up as necessary.
  5711. (WebCore::RenderLayerCompositor::destroyRootPlatformLayer): m_clippingLayer rename, and clean up the m_scrollLayer too.
  5712. (WebCore::RenderLayerCompositor::detachRootPlatformLayer): m_clippingLayer rename
  5713. 2010-05-13 Sam Weinig <sam@webkit.org>
  5714. Reviewed by Anders Carlsson.
  5715. Follow up to:
  5716. Fix for https://bugs.webkit.org/show_bug.cgi?id=38221
  5717. Memory issues due to the changes in 36556 (increased CSSPrimitiveValue size).
  5718. Part of <rdar://problem/7921275>
  5719. Fix failing tests on Leopard.
  5720. Initialize m_hasCachedCSSText in CSSPrimitiveValue::init methods.
  5721. * css/CSSPrimitiveValue.cpp:
  5722. (WebCore::CSSPrimitiveValue::init):
  5723. (WebCore::CSSPrimitiveValue::cssText): Add extra assertion.
  5724. 2010-05-13 Kent Tamura <tkent@chromium.org>
  5725. Reviewed by Darin Adler.
  5726. Can't submit a form with <input type=checkbox required>
  5727. https://bugs.webkit.org/show_bug.cgi?id=39065
  5728. Test: fast/forms/interactive-validation-required-checkbox.html
  5729. * html/HTMLInputElement.cpp:
  5730. (WebCore::HTMLInputElement::setChecked):
  5731. Update the validity cache when a checkbox state is changed.
  5732. 2010-05-13 Kenneth Russell <kbr@google.com>
  5733. Reviewed by Dimitri Glazkov.
  5734. Alias WebGLArray type names to TypedArray type names
  5735. https://bugs.webkit.org/show_bug.cgi?id=39036
  5736. Exposed the existing WebGL<T>Array constructor functions on the
  5737. DOMWindow under the naming convention in the TypedArray spec. The
  5738. implementations will be renamed in a subsequent bug, and the
  5739. aliases to the WebGL<T>Array type names eventually removed. Ran
  5740. all layout tests (including WebGL) in Safari, and WebGL tests in
  5741. Chromium.
  5742. Test: revised array-unit-tests.html to test both type names.
  5743. Revised global prototype and constructor tests to ignore new types.
  5744. * bindings/generic/RuntimeEnabledFeatures.h:
  5745. (WebCore::RuntimeEnabledFeatures::arrayBufferEnabled):
  5746. (WebCore::RuntimeEnabledFeatures::int8ArrayEnabled):
  5747. (WebCore::RuntimeEnabledFeatures::uint8ArrayEnabled):
  5748. (WebCore::RuntimeEnabledFeatures::int16ArrayEnabled):
  5749. (WebCore::RuntimeEnabledFeatures::uint16ArrayEnabled):
  5750. (WebCore::RuntimeEnabledFeatures::int32ArrayEnabled):
  5751. (WebCore::RuntimeEnabledFeatures::uint32ArrayEnabled):
  5752. (WebCore::RuntimeEnabledFeatures::floatArrayEnabled):
  5753. * bindings/js/JSDOMWindowCustom.cpp:
  5754. (WebCore::JSDOMWindow::arrayBuffer):
  5755. (WebCore::JSDOMWindow::int8Array):
  5756. (WebCore::JSDOMWindow::uint8Array):
  5757. (WebCore::JSDOMWindow::int32Array):
  5758. (WebCore::JSDOMWindow::uint32Array):
  5759. (WebCore::JSDOMWindow::int16Array):
  5760. (WebCore::JSDOMWindow::uint16Array):
  5761. (WebCore::JSDOMWindow::floatArray):
  5762. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  5763. (WebCore::V8DOMWindow::ArrayBufferAccessorGetter):
  5764. (WebCore::V8DOMWindow::Int8ArrayAccessorGetter):
  5765. (WebCore::V8DOMWindow::Uint8ArrayAccessorGetter):
  5766. (WebCore::V8DOMWindow::Int16ArrayAccessorGetter):
  5767. (WebCore::V8DOMWindow::Uint16ArrayAccessorGetter):
  5768. (WebCore::V8DOMWindow::Int32ArrayAccessorGetter):
  5769. (WebCore::V8DOMWindow::Uint32ArrayAccessorGetter):
  5770. (WebCore::V8DOMWindow::FloatArrayAccessorGetter):
  5771. * page/DOMWindow.idl:
  5772. 2010-05-13 David Hyatt <hyatt@apple.com>
  5773. Reviewed by Anders Carlsson.
  5774. https://bugs.webkit.org/show_bug.cgi?id=39084
  5775. Improve :visited style resolution to reduce its memory footprint and to make some speed adjustments and
  5776. simplifications.
  5777. (1) Tie the caching of link state on CSSStyleSelector to the element. Just clear out the element when
  5778. style resolution finishes for the unvisited case to avoid caching across external calls. The internal
  5779. calls share the cache just fine by doing this.
  5780. (2) Delete the RenderStyle if the link is unvisited. This shouldn't take long enough to make us vulnerable
  5781. to timing attacks, and it makes sure the overall footprint stays the way it used to be for unvisited links.
  5782. (3) Limit the set of properties that can be applied to :visited links to only the colors it supports. This
  5783. stops images from being loadable from :visited rules.
  5784. * css/CSSStyleSelector.cpp:
  5785. (WebCore::CSSStyleSelector::init):
  5786. (WebCore::CSSStyleSelector::SelectorChecker::determineLinkState):
  5787. (WebCore::CSSStyleSelector::initElement):
  5788. (WebCore::CSSStyleSelector::canShareStyleWithElement):
  5789. (WebCore::CSSStyleSelector::styleForElement):
  5790. (WebCore::CSSStyleSelector::pseudoStyleForElement):
  5791. (WebCore::isValidVisitedLinkProperty):
  5792. (WebCore::CSSStyleSelector::applyProperty):
  5793. * css/CSSStyleSelector.h:
  5794. * rendering/style/RenderStyle.cpp:
  5795. (WebCore::colorIncludingFallback):
  5796. 2010-05-13 Sam Weinig <sam@webkit.org>
  5797. Reviewed by Darin Adler.
  5798. Fix for https://bugs.webkit.org/show_bug.cgi?id=38221
  5799. Memory issues due to the changes in 36556 (increased CSSPrimitiveValue size).
  5800. Part of <rdar://problem/7921275>
  5801. - Use an external cache to speedup cssText for CSSPrimitiveValue instead
  5802. of an extra member variable.
  5803. * css/CSSPrimitiveValue.cpp:
  5804. (WebCore::cssTextCache):
  5805. (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
  5806. (WebCore::CSSPrimitiveValue::cleanup):
  5807. (WebCore::CSSPrimitiveValue::cssText):
  5808. * css/CSSPrimitiveValue.h:
  5809. (WebCore::CSSPrimitiveValue::):
  5810. * css/CSSPrimitiveValueMappings.h:
  5811. (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
  5812. 2010-05-13 Enrica Casucci <enrica@apple.com>
  5813. Reviewed by Dave Hyatt.
  5814. Adding block elements to a block and removing them changes the height of the element.
  5815. https://bugs.webkit.org/show_bug.cgi?id=38874
  5816. The initial height of an empty editable block is different from the height of the same block after we add block elements
  5817. and remove them.
  5818. Test: editing/deleting/delete-block-contents-004.html
  5819. * rendering/RenderBlock.cpp:
  5820. (WebCore::RenderBlock::layoutBlock): resetting m_childrenInline flag to true when layout a block with no children.
  5821. 2010-05-13 Brady Eidson <beidson@apple.com>
  5822. Reviewed by Darin Adler.
  5823. Repro crash at www.sears.com (infinite recursion in beforeunload handler)
  5824. <rdar://problem/7965182> and https://bugs.webkit.org/show_bug.cgi?id=38928
  5825. Test: fast/loader/recursive-before-unload-crash.html
  5826. * loader/FrameLoader.cpp:
  5827. (WebCore::FrameLoader::shouldClose): Copied from Frame, with the pageDismissal flag set.
  5828. * loader/FrameLoader.h:
  5829. * page/Frame.cpp:
  5830. (WebCore::Frame::shouldClose): Forward to the new FrameLoader::shouldClose().
  5831. * page/Frame.h:
  5832. (WebCore::Frame::existingDOMWindow):
  5833. 2010-05-13 Sheriff Bot <webkit.review.bot@gmail.com>
  5834. Unreviewed, rolling out r59376.
  5835. http://trac.webkit.org/changeset/59376
  5836. https://bugs.webkit.org/show_bug.cgi?id=39080
  5837. Broke window prototype tests (Requested by jamesr on #webkit).
  5838. * bindings/generic/RuntimeEnabledFeatures.h:
  5839. * bindings/js/JSDOMWindowCustom.cpp:
  5840. (WebCore::JSDOMWindow::webGLFloatArray):
  5841. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  5842. * page/DOMWindow.idl:
  5843. 2010-05-13 Pavel Feldman <pfeldman@chromium.org>
  5844. Reviewed by Yury Semikhatsky.
  5845. Web Inspector: A disabled style property cannot be deleted.
  5846. https://bugs.webkit.org/show_bug.cgi?id=39057
  5847. * inspector/InspectorDOMAgent.cpp:
  5848. (WebCore::InspectorDOMAgent::applyStyleText):
  5849. 2010-05-12 Kenneth Russell <kbr@google.com>
  5850. Reviewed by Dimitri Glazkov.
  5851. Alias WebGLArray type names to TypedArray type names
  5852. https://bugs.webkit.org/show_bug.cgi?id=39036
  5853. Exposed the existing WebGL<T>Array constructor functions on the
  5854. DOMWindow under the naming convention in the TypedArray spec. The
  5855. implementations will be renamed in a subsequent bug, and the
  5856. aliases to the WebGL<T>Array type names eventually removed. Ran
  5857. all WebGL layout tests in Safari and Chromium.
  5858. Test: revised array-unit-tests.html to test both type names.
  5859. * bindings/generic/RuntimeEnabledFeatures.h:
  5860. (WebCore::RuntimeEnabledFeatures::arrayBufferEnabled):
  5861. (WebCore::RuntimeEnabledFeatures::int8ArrayEnabled):
  5862. (WebCore::RuntimeEnabledFeatures::uint8ArrayEnabled):
  5863. (WebCore::RuntimeEnabledFeatures::int16ArrayEnabled):
  5864. (WebCore::RuntimeEnabledFeatures::uint16ArrayEnabled):
  5865. (WebCore::RuntimeEnabledFeatures::int32ArrayEnabled):
  5866. (WebCore::RuntimeEnabledFeatures::uint32ArrayEnabled):
  5867. (WebCore::RuntimeEnabledFeatures::floatArrayEnabled):
  5868. * bindings/js/JSDOMWindowCustom.cpp:
  5869. (WebCore::JSDOMWindow::arrayBuffer):
  5870. (WebCore::JSDOMWindow::int8Array):
  5871. (WebCore::JSDOMWindow::uint8Array):
  5872. (WebCore::JSDOMWindow::int32Array):
  5873. (WebCore::JSDOMWindow::uint32Array):
  5874. (WebCore::JSDOMWindow::int16Array):
  5875. (WebCore::JSDOMWindow::uint16Array):
  5876. (WebCore::JSDOMWindow::floatArray):
  5877. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  5878. (WebCore::V8DOMWindow::ArrayBufferAccessorGetter):
  5879. (WebCore::V8DOMWindow::Int8ArrayAccessorGetter):
  5880. (WebCore::V8DOMWindow::Uint8ArrayAccessorGetter):
  5881. (WebCore::V8DOMWindow::Int16ArrayAccessorGetter):
  5882. (WebCore::V8DOMWindow::Uint16ArrayAccessorGetter):
  5883. (WebCore::V8DOMWindow::Int32ArrayAccessorGetter):
  5884. (WebCore::V8DOMWindow::Uint32ArrayAccessorGetter):
  5885. (WebCore::V8DOMWindow::FloatArrayAccessorGetter):
  5886. * page/DOMWindow.idl:
  5887. 2010-05-13 Brady Eidson <beidson@apple.com>
  5888. Reviewed by John Sullivan.
  5889. Part of <rdar://problem/7965182> and https://bugs.webkit.org/show_bug.cgi?id=38928
  5890. No new tests. (No change in behavior)
  5891. m_unloadEventBeingDispatched was already overloaded to include both unload and pagehide events.
  5892. In general, these are "page dismissal" events, and might also include beforeunload, so let's rename
  5893. the flag!
  5894. * loader/FrameLoader.cpp:
  5895. (WebCore::FrameLoader::FrameLoader):
  5896. (WebCore::FrameLoader::stopLoading):
  5897. (WebCore::FrameLoader::loadURL):
  5898. (WebCore::FrameLoader::loadWithDocumentLoader):
  5899. (WebCore::FrameLoader::stopAllLoaders):
  5900. (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
  5901. (WebCore::FrameLoader::pageHidden):
  5902. * loader/FrameLoader.h:
  5903. 2010-05-13 Joseph Pecoraro <joepeck@webkit.org>
  5904. Reviewed by Pavel Feldman.
  5905. Web Inspector: Event Markers should be hidden in Resource's "Size" Graph
  5906. https://bugs.webkit.org/show_bug.cgi?id=39074
  5907. Added Show / Hide event dividers functionality to the timeline grid,
  5908. and included delegation functions in AbstractTimelinePanel.
  5909. * inspector/front-end/AbstractTimelinePanel.js: delegate to the inner grid
  5910. (WebInspector.AbstractTimelinePanel.prototype.hideEventDividers):
  5911. (WebInspector.AbstractTimelinePanel.prototype.showEventDividers):
  5912. * inspector/front-end/ResourcesPanel.js:
  5913. (WebInspector.ResourcesPanel.prototype.populateSidebar): save a reference to the size graph item to know when its selected
  5914. (WebInspector.ResourcesPanel.prototype._graphSelected): if the size graph is selected hide the dividers, otherwise show them
  5915. * inspector/front-end/TimelineGrid.js:
  5916. (WebInspector.TimelineGrid.prototype.hideEventDividers): set the container to display: none
  5917. (WebInspector.TimelineGrid.prototype.showEventDividers): set the container to display: block
  5918. 2010-05-13 Chang Shu <chang.shu@nokia.com>
  5919. Reviewed by Kenneth Rohde Christiansen.
  5920. Based on the spec and Philip Taylor's test suite, strokeStyle and fillStyle attributes
  5921. must initially have the string value #000000.
  5922. The link to the spec:
  5923. http://philip.html5.org/tests/canvas/suite/tests/spec.html#testrefs.2d.colours.default
  5924. https://bugs.webkit.org/show_bug.cgi?id=39068
  5925. The complete test suite is in the process of checking in.
  5926. https://bugs.webkit.org/show_bug.cgi?id=20553
  5927. * html/canvas/CanvasRenderingContext2D.cpp:
  5928. (WebCore::CanvasRenderingContext2D::State::State):
  5929. 2010-05-13 Yury Semikhatsky <yurys@chromium.org>
  5930. Unreviewed, rolling out r59360.
  5931. http://trac.webkit.org/changeset/59360
  5932. https://bugs.webkit.org/show_bug.cgi?id=38667
  5933. It broke Chromium Win build
  5934. * English.lproj/localizedStrings.js:
  5935. * WebCore.gypi:
  5936. * WebCore.vcproj/WebCore.vcproj:
  5937. * inspector/front-end/CallStackSidebarPane.js:
  5938. (WebInspector.CallStackSidebarPane):
  5939. (WebInspector.CallStackSidebarPane.prototype._placardSelected):
  5940. * inspector/front-end/ConsoleView.js:
  5941. (WebInspector.ConsoleView):
  5942. * inspector/front-end/ElementsPanel.js:
  5943. (WebInspector.ElementsPanel):
  5944. * inspector/front-end/ElementsTreeOutline.js:
  5945. (WebInspector.ElementsTreeOutline.prototype._keyDown):
  5946. * inspector/front-end/HelpScreen.js: Removed.
  5947. * inspector/front-end/KeyboardShortcut.js:
  5948. (WebInspector.KeyboardShortcut._makeKeyFromCodeAndModifiers):
  5949. * inspector/front-end/ScriptsPanel.js:
  5950. (WebInspector.ScriptsPanel):
  5951. (WebInspector.ScriptsPanel.prototype.elementsToRestoreScrollPositionsFor):
  5952. * inspector/front-end/ShortcutsHelp.js: Removed.
  5953. * inspector/front-end/SidebarPane.js:
  5954. (WebInspector.SidebarPane.prototype._onTitleKeyDown):
  5955. * inspector/front-end/StylesSidebarPane.js:
  5956. (WebInspector.StylesSidebarPane.prototype.removeSection):
  5957. * inspector/front-end/TextViewer.js:
  5958. (WebInspector.TextViewer.prototype._handleKeyDown):
  5959. * inspector/front-end/WebKit.qrc:
  5960. * inspector/front-end/helpScreen.css: Removed.
  5961. * inspector/front-end/inspector.html:
  5962. * inspector/front-end/inspector.js:
  5963. (WebInspector.loaded):
  5964. (WebInspector.documentKeyDown):
  5965. (WebInspector._searchKeyDown):
  5966. (WebInspector.startEditing.keyDownEventListener):
  5967. (WebInspector.startEditing):
  5968. * inspector/front-end/utilities.js:
  5969. 2010-05-13 Antti Koivisto <koivisto@iki.fi>
  5970. Reviewed by Kenneth Rohde Christiansen.
  5971. https://bugs.webkit.org/show_bug.cgi?id=39063
  5972. [Qt] Tiled backing store checker pattern does not paint correctly when scaling factor is not 1
  5973. Use the dirty rect that has been adjusted for scaling instead of the original one.
  5974. * platform/graphics/TiledBackingStore.cpp:
  5975. (WebCore::TiledBackingStore::paint):
  5976. 2010-05-13 Chang Shu <chang.shu@nokia.com>
  5977. Reviewed by Kenneth Rohde Christiansen.
  5978. Based on Philip Taylor's test suite, resetting the canvas
  5979. state resets the current path.
  5980. https://bugs.webkit.org/show_bug.cgi?id=38934
  5981. The complete test suite is in the process of checking in.
  5982. https://bugs.webkit.org/show_bug.cgi?id=20553
  5983. * html/canvas/CanvasRenderingContext2D.cpp:
  5984. (WebCore::CanvasRenderingContext2D::reset):
  5985. 2010-05-13 Andrey Kosyakov <caseq@chromium.org>
  5986. Reviewed by Pavel Feldman.
  5987. Added help screen with keyboard shortcuts.
  5988. https://bugs.webkit.org/show_bug.cgi?id=38667
  5989. * English.lproj/localizedStrings.js:
  5990. * WebCore.gypi:
  5991. * WebCore.vcproj/WebCore.vcproj:
  5992. * inspector/front-end/CallStackSidebarPane.js:
  5993. (WebInspector.CallStackSidebarPane):
  5994. (WebInspector.CallStackSidebarPane.prototype._placardSelected):
  5995. (WebInspector.CallStackSidebarPane.prototype.registerShortcuts):
  5996. * inspector/front-end/ConsoleView.js:
  5997. (WebInspector.ConsoleView):
  5998. (WebInspector.ConsoleView.prototype._registerShortcuts):
  5999. * inspector/front-end/ElementsPanel.js:
  6000. (WebInspector.ElementsPanel):
  6001. (WebInspector.ElementsPanel.prototype._registerShortcuts):
  6002. * inspector/front-end/HelpScreen.js: Added.
  6003. * inspector/front-end/KeyboardShortcut.js:
  6004. (WebInspector.KeyboardShortcut.makeDescriptor):
  6005. (WebInspector.KeyboardShortcut.shortcutToString):
  6006. (WebInspector.KeyboardShortcut._modifiersToString):
  6007. * inspector/front-end/ScriptsPanel.js:
  6008. (WebInspector.ScriptsPanel):
  6009. (WebInspector.ScriptsPanel.prototype.elementsToRestoreScrollPositionsFor):
  6010. (WebInspector.ScriptsPanel.prototype._registerShortcuts):
  6011. * inspector/front-end/ShortcutsHelp.js: Added.
  6012. * inspector/front-end/StylesSidebarPane.js:
  6013. (WebInspector.StylesSidebarPane.prototype.removeSection):
  6014. (WebInspector.StylesSidebarPane.prototype.registerShortcuts):
  6015. * inspector/front-end/WebKit.qrc:
  6016. * inspector/front-end/helpScreen.css: Added.
  6017. 2010-05-13 Yoshiki Hayashi <yhayashi@google.com>
  6018. Reviewed by Darin Adler.
  6019. Fix a bug in handleRunInChild where only the first child run-in block
  6020. is inserted because removeChildNode clears next sibling.
  6021. https://bugs.webkit.org/show_bug.cgi?id=25047
  6022. Test: fast/css/run-in-children.html
  6023. * rendering/RenderBlock.cpp:
  6024. (WebCore::RenderBlock::handleRunInChild):
  6025. 2010-05-13 Alejandro G. Castro <alex@igalia.com>
  6026. Reviewed by Xan Lopez.
  6027. In case there is no expose event we render the theme in a pixmap
  6028. and copy it to the cairo context. This is slow but it is used just
  6029. in case we are printing nowadays.
  6030. [GTK] Theme does not render when printing
  6031. https://bugs.webkit.org/show_bug.cgi?id=38896
  6032. * platform/gtk/RenderThemeGtk.cpp:
  6033. (WebCore::paintMozillaGtkWidget):
  6034. 2010-05-12 Yuzo Fujishima <yuzo@google.com>
  6035. Reviewed by Darin Adler.
  6036. Fix Bug 35014 - Modifying UA rules from page JS crashes
  6037. Added a NULL check.
  6038. https://bugs.webkit.org/show_bug.cgi?id=35014
  6039. Test: fast/css/modify-ua-rules-from-javascript.html
  6040. * css/CSSMutableStyleDeclaration.cpp:
  6041. (WebCore::CSSMutableStyleDeclaration::setNeedsStyleRecalc):
  6042. 2010-05-12 Dumitru Daniliuc <dumi@chromium.org>
  6043. Reviewed by Adam Barth.
  6044. Add the parent class for Database and DatabaseSync.
  6045. https://bugs.webkit.org/show_bug.cgi?id=39041
  6046. * GNUmakefile.am:
  6047. * WebCore.gypi:
  6048. * WebCore.pro:
  6049. * WebCore.vcproj/WebCore.vcproj:
  6050. * WebCore.xcodeproj/project.pbxproj:
  6051. * storage/AbstractDatabase.cpp: Added.
  6052. * storage/AbstractDatabase.h: Added.
  6053. 2010-05-12 Noam Rosenthal <noam.rosenthal@nokia.com>
  6054. Reviewed by Kenneth Rohde Christiansen.
  6055. [Qt] GraphicsLayer: depth-test causes flicker in certain situations
  6056. This patch removes the simplistic 2D depth test as it leads to flickering side effects.
  6057. https://bugs.webkit.org/show_bug.cgi?id=38370
  6058. Tested by http://webkit.org/blog-files/3d-transforms/morphing-cubes.html
  6059. * platform/graphics/qt/GraphicsLayerQt.cpp:
  6060. (WebCore::GraphicsLayerQtImpl::updateTransform):
  6061. 2010-05-12 Simon Fraser <simon.fraser@apple.com>
  6062. Reviewed by Mark Rowe.
  6063. Fix layer dump to avoid spurious platform differences
  6064. https://bugs.webkit.org/show_bug.cgi?id=39045
  6065. Only dump the children transform on layers that are not the root layer.
  6066. The children transform on the root layer is used on Leopard to implement
  6067. geometry flipping, so avoid this supurious difference in test output.
  6068. * platform/graphics/GraphicsLayer.cpp:
  6069. (WebCore::GraphicsLayer::dumpProperties):
  6070. 2010-05-12 Sheriff Bot <webkit.review.bot@gmail.com>
  6071. Unreviewed, rolling out r59270.
  6072. http://trac.webkit.org/changeset/59270
  6073. https://bugs.webkit.org/show_bug.cgi?id=39044
  6074. Caused a crash on some pages - bug 39042 (Requested by smfr on
  6075. #webkit).
  6076. * rendering/RenderBlock.cpp:
  6077. (WebCore::RenderBlock::removeChild):
  6078. 2010-05-12 Simon Fraser <simon.fraser@apple.com>
  6079. Reviewed by David Hyatt.
  6080. Composited plug-ins can cause missed painting
  6081. https://bugs.webkit.org/show_bug.cgi?id=39033
  6082. <rdar://problem/7972478>
  6083. Fixed missed painting (and assertions in debug builds) related to compositing
  6084. propagating out of iframes that contain plug-ins.
  6085. When an iframe enters or leaves compositing mode, RenderLayerCompositor uses
  6086. setNeedsStyleRecalc(SyntheticStyleChange) to trigger the parent document to re-evaluate
  6087. whether the iframe itself should be composited. However, for iframes containing plug-ins,
  6088. this can happen at inappropriate times. For example, when a browser tab is brought frontmost,
  6089. plug-ins are instantiated for the first time (via -viewDidMoveToWindow), which triggers a
  6090. setNeedsStyleRecalc() on the object element. Soon after, the -viewWillDraw machinery
  6091. does layout from the top down. During layout of the iframe, the iframe enters compositing mode,
  6092. and does a setNeedsStyleRecalc() on the iframe element in its parent document. This leaves the
  6093. FrameView as needsLayout(), so the FrameView::paintContents() asserts and bails.
  6094. The fix is to avoid doing a setNeedsStyleRecalc() on the root while inside a recalcStyle on
  6095. the iframe. We do this by switching the iframe into compositing mode eagerly as soon as we know
  6096. the plug-in needs it.
  6097. A secondary fix is to ensure that if a document has composited iframes, when that document becomes
  6098. composited, we connect compositing layers between the iframes and the parent document.
  6099. Tests: compositing/iframes/connect-compositing-iframe-delayed.html
  6100. compositing/iframes/iframe-src-change.html
  6101. * WebCore.base.exp: Export FrameView::enterCompositingMode()
  6102. * page/FrameView.h: New method, enterCompositingMode(), that we can call from WebKit plug-in code.
  6103. * page/FrameView.cpp:
  6104. (WebCore::FrameView::enterCompositingMode):
  6105. * rendering/RenderLayerCompositor.h:
  6106. * rendering/RenderLayerCompositor.cpp:
  6107. (WebCore::RenderLayerCompositor::enableCompositingMode): When we switch into compositing mode, we
  6108. force a style recaclc on any iframes to get them into compositing layers, so they can hook up
  6109. with their content layers if necessary.
  6110. (WebCore::RenderLayerCompositor::didMoveOnscreen): Only call attachRootPlatformLayer() if we really need to.
  6111. (WebCore::RenderLayerCompositor::willMoveOffscreen): Only call detachRootPlatformLayer() if we really need to.
  6112. (WebCore::RenderLayerCompositor::detachRootPlatformLayer): Whitespace.
  6113. (WebCore::RenderLayerCompositor::notifyIFramesOfCompositingChange): Fetch iframe elements, and send a
  6114. synthetic style recalc on them.
  6115. 2010-05-12 Anders Carlsson <andersca@apple.com>
  6116. Reviewed by Simon Fraser.
  6117. Shrink the size of FillLayer by moving a member variable.
  6118. https://bugs.webkit.org/show_bug.cgi?id=39035
  6119. * rendering/style/FillLayer.cpp:
  6120. (WebCore::FillLayer::FillLayer):
  6121. * rendering/style/FillLayer.h:
  6122. 2010-05-12 Sam Weinig <sam@webkit.org>
  6123. Reviewed by Anders Carlsson.
  6124. A bunch of nice micro-optimizations for ~1% speedup on PLT.
  6125. - Add fastGetAttribute. The same as getAttribute except can only be
  6126. called when it is known not to be style attribute or one of the SVG
  6127. animatable attributes.
  6128. - Inline some functions from Font.
  6129. - Return the same string from deprecatedParseURL if there is nothing
  6130. to strip.
  6131. - Use a member variable instead of a virtual function to determine
  6132. whether a ScheduledNavigation is a location change.
  6133. * WebCore.base.exp:
  6134. * css/CSSHelper.cpp:
  6135. (WebCore::deprecatedParseURL):
  6136. * css/CSSStyleSelector.cpp:
  6137. (WebCore::linkAttribute):
  6138. (WebCore::CSSStyleSelector::canShareStyleWithElement):
  6139. (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
  6140. * dom/Element.cpp:
  6141. (WebCore::Element::getAttribute):
  6142. * dom/Element.h:
  6143. (WebCore::Element::fastHasAttribute):
  6144. (WebCore::Element::fastGetAttribute):
  6145. * html/HTMLFormControlElement.cpp:
  6146. (WebCore::HTMLFormControlElement::formControlName):
  6147. * html/HTMLInputElement.cpp:
  6148. (WebCore::HTMLInputElement::value):
  6149. * loader/RedirectScheduler.cpp:
  6150. (WebCore::ScheduledNavigation::ScheduledNavigation):
  6151. (WebCore::ScheduledNavigation::isLocationChange):
  6152. (WebCore::ScheduledURLNavigation::ScheduledURLNavigation):
  6153. (WebCore::ScheduledRedirect::ScheduledRedirect):
  6154. (WebCore::ScheduledLocationChange::ScheduledLocationChange):
  6155. (WebCore::ScheduledRefresh::ScheduledRefresh):
  6156. (WebCore::ScheduledHistoryNavigation::ScheduledHistoryNavigation):
  6157. (WebCore::ScheduledFormSubmission::ScheduledFormSubmission):
  6158. (WebCore::RedirectScheduler::locationChangePending):
  6159. * platform/graphics/Font.cpp:
  6160. * platform/graphics/Font.h:
  6161. (WebCore::Font::~Font):
  6162. (WebCore::Font::primaryFont):
  6163. (WebCore::Font::fontDataAt):
  6164. (WebCore::Font::fontDataForCharacters):
  6165. (WebCore::Font::isFixedPitch):
  6166. (WebCore::Font::fontSelector):
  6167. * platform/graphics/FontFallbackList.h:
  6168. * rendering/RenderImage.cpp:
  6169. (WebCore::RenderImage::imageMap):
  6170. 2010-05-12 David Hyatt <hyatt@apple.com>
  6171. Reviewed by Sam Weinig.
  6172. Make InlineBoxes use an IntRect for dimensions, and eliminate the dynamic computation of height() every time.
  6173. * WebCore.xcodeproj/project.pbxproj:
  6174. * editing/visible_units.cpp:
  6175. (WebCore::previousLinePosition):
  6176. (WebCore::nextLinePosition):
  6177. * rendering/EllipsisBox.cpp:
  6178. (WebCore::EllipsisBox::paint):
  6179. (WebCore::EllipsisBox::selectionRect):
  6180. (WebCore::EllipsisBox::paintSelection):
  6181. (WebCore::EllipsisBox::nodeAtPoint):
  6182. * rendering/EllipsisBox.h:
  6183. (WebCore::EllipsisBox::EllipsisBox):
  6184. * rendering/InlineBox.cpp:
  6185. (WebCore::InlineBox::adjustPosition):
  6186. (WebCore::InlineBox::canAccommodateEllipsis):
  6187. * rendering/InlineBox.h:
  6188. (WebCore::InlineBox::InlineBox):
  6189. (WebCore::InlineBox::isSVGRootInlineBox):
  6190. (WebCore::InlineBox::x):
  6191. (WebCore::InlineBox::y):
  6192. (WebCore::InlineBox::width):
  6193. (WebCore::InlineBox::height):
  6194. (WebCore::InlineBox::bottom):
  6195. (WebCore::InlineBox::right):
  6196. (WebCore::InlineBox::setX):
  6197. (WebCore::InlineBox::setY):
  6198. (WebCore::InlineBox::setWidth):
  6199. (WebCore::InlineBox::setHeight):
  6200. (WebCore::InlineBox::location):
  6201. (WebCore::InlineBox::size):
  6202. (WebCore::InlineBox::setLocation):
  6203. (WebCore::InlineBox::setSize):
  6204. (WebCore::InlineBox::move):
  6205. (WebCore::InlineBox::frameRect):
  6206. (WebCore::InlineBox::setFrameRect):
  6207. (WebCore::InlineBox::baselinePosition):
  6208. (WebCore::InlineBox::lineHeight):
  6209. * rendering/InlineFlowBox.cpp:
  6210. (WebCore::InlineFlowBox::placeBoxesVertically):
  6211. (WebCore::InlineFlowBox::computeVerticalOverflow):
  6212. (WebCore::InlineFlowBox::nodeAtPoint):
  6213. (WebCore::InlineFlowBox::paintBoxDecorations):
  6214. (WebCore::InlineFlowBox::paintMask):
  6215. (WebCore::InlineFlowBox::paintTextDecorations):
  6216. * rendering/InlineFlowBox.h:
  6217. (WebCore::InlineFlowBox::visibleOverflowRect):
  6218. (WebCore::InlineFlowBox::topLayoutOverflow):
  6219. (WebCore::InlineFlowBox::bottomLayoutOverflow):
  6220. (WebCore::InlineFlowBox::leftLayoutOverflow):
  6221. (WebCore::InlineFlowBox::rightLayoutOverflow):
  6222. (WebCore::InlineFlowBox::layoutOverflowRect):
  6223. (WebCore::InlineFlowBox::topVisualOverflow):
  6224. (WebCore::InlineFlowBox::bottomVisualOverflow):
  6225. (WebCore::InlineFlowBox::leftVisualOverflow):
  6226. (WebCore::InlineFlowBox::rightVisualOverflow):
  6227. (WebCore::InlineFlowBox::visualOverflowRect):
  6228. (WebCore::InlineFlowBox::setHorizontalOverflowPositions):
  6229. (WebCore::InlineFlowBox::setVerticalOverflowPositions):
  6230. * rendering/InlineTextBox.cpp:
  6231. (WebCore::InlineTextBox::selectionRect):
  6232. (WebCore::InlineTextBox::placeEllipsisBox):
  6233. (WebCore::InlineTextBox::nodeAtPoint):
  6234. (WebCore::InlineTextBox::paint):
  6235. (WebCore::InlineTextBox::paintSelection):
  6236. (WebCore::InlineTextBox::paintCompositionBackground):
  6237. (WebCore::InlineTextBox::paintDecoration):
  6238. (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
  6239. (WebCore::InlineTextBox::paintTextMatchMarker):
  6240. (WebCore::InlineTextBox::computeRectForReplacementMarker):
  6241. (WebCore::InlineTextBox::paintCompositionUnderline):
  6242. (WebCore::InlineTextBox::offsetForPosition):
  6243. (WebCore::InlineTextBox::positionForOffset):
  6244. * rendering/InlineTextBox.h:
  6245. (WebCore::InlineTextBox::setSpaceAdd):
  6246. * rendering/RenderBlock.cpp:
  6247. (WebCore::RenderBlock::positionForPointWithInlineChildren):
  6248. * rendering/RenderBlockLineLayout.cpp:
  6249. (WebCore::RenderBlock::computeVerticalPositionsForLine):
  6250. (WebCore::RenderBlock::layoutInlineChildren):
  6251. * rendering/RenderSVGInline.cpp:
  6252. (WebCore::RenderSVGInline::createInlineFlowBox):
  6253. * rendering/RenderSVGInlineText.cpp:
  6254. (WebCore::RenderSVGInlineText::createTextBox):
  6255. * rendering/RenderSVGText.cpp:
  6256. (WebCore::RenderSVGText::createRootInlineBox):
  6257. * rendering/RenderText.cpp:
  6258. (WebCore::RenderText::positionForPoint):
  6259. (WebCore::RenderText::firstRunX):
  6260. (WebCore::RenderText::firstRunY):
  6261. * rendering/RenderTreeAsText.cpp:
  6262. (WebCore::writeTextRun):
  6263. * rendering/RootInlineBox.cpp:
  6264. (WebCore::RootInlineBox::placeEllipsis):
  6265. (WebCore::RootInlineBox::addHighlightOverflow):
  6266. (WebCore::RootInlineBox::closestLeafChildForXPos):
  6267. * rendering/SVGInlineFlowBox.h:
  6268. (WebCore::SVGInlineFlowBox::SVGInlineFlowBox):
  6269. * rendering/SVGInlineTextBox.h:
  6270. (WebCore::SVGInlineTextBox::selectionTop):
  6271. (WebCore::SVGInlineTextBox::selectionHeight):
  6272. * rendering/SVGRootInlineBox.h:
  6273. (WebCore::SVGRootInlineBox::SVGRootInlineBox):
  6274. (WebCore::SVGRootInlineBox::isSVGRootInlineBox):
  6275. * rendering/TrailingFloatsRootInlineBox.h: Removed.
  6276. 2010-05-12 Dumitru Daniliuc <dumi@chromium.org>
  6277. Reviewed by Dimitri Glazkov.
  6278. Removing the unnecessary dirfd parameter.
  6279. https://bugs.webkit.org/show_bug.cgi?id=38869
  6280. * platform/chromium/ChromiumBridge.h:
  6281. * platform/sql/chromium/SQLiteFileSystemChromiumPosix.cpp:
  6282. 2010-05-12 Enrica Casucci <enrica@apple.com>
  6283. Reviewed by Dave Hyatt.
  6284. Adding block elements to a block and removing them changes the height of the element.
  6285. https://bugs.webkit.org/show_bug.cgi?id=38874
  6286. The initial height of an empty editable block is different from the height of the same block after we add block elements
  6287. and remove them.
  6288. Test: editing/deleting/delete-block-contents-004.html
  6289. * rendering/RenderBlock.cpp:
  6290. (WebCore::RenderBlock::removeChild): m_childrenInline was set to true only when the Renderer is created
  6291. and never reset to true when all the block elements contained are removed.
  6292. 2010-05-11 Dumitru Daniliuc <dumi@chromium.org>
  6293. Reviewed by Dimitri Glazkov.
  6294. Do not check if a database needs to be vacuumed after a read-only transaction.
  6295. https://bugs.webkit.org/show_bug.cgi?id=38972
  6296. * storage/SQLTransaction.cpp:
  6297. (WebCore::SQLTransaction::postflightAndCommit):
  6298. 2010-05-12 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  6299. Reviewed by Kenneth Rohde Christiansen.
  6300. [Qt] Detect debug mode consistently
  6301. https://bugs.webkit.org/show_bug.cgi?id=38863
  6302. No new tests as there is no new functionality.
  6303. * WebCore.pro:
  6304. 2010-05-12 James Robinson <jamesr@chromium.org>
  6305. Patch by Dan Bernstein.
  6306. Reviewed by David Hyatt.
  6307. Fix marking the layout root's parent as needing layout
  6308. https://bugs.webkit.org/show_bug.cgi?id=37760
  6309. If an element gets marked as needing layout due to the recalcStyle()
  6310. call in FrameView::layout(), the m_layoutSchedulingEnabled flag will
  6311. be set to false. It's possible at this point that a parent of the
  6312. existing FrameView::m_layoutRoot will be marked as needing layout.
  6313. This patch updates FrameView::scheduleRelayoutOfSubtree to account
  6314. for this case.
  6315. Manual test only due to subtle timing issues.
  6316. * manual-tests/layoutroot_detach.xml: Added.
  6317. * page/FrameView.cpp:
  6318. (WebCore::FrameView::scheduleRelayoutOfSubtree):
  6319. 2010-05-12 Eric Seidel <eric@webkit.org>
  6320. Unreviewed, rolling out r59245.
  6321. http://trac.webkit.org/changeset/59245
  6322. https://bugs.webkit.org/show_bug.cgi?id=38874
  6323. Broke at least one test on multiple platforms
  6324. * rendering/RenderBlock.cpp:
  6325. (WebCore::RenderBlock::removeChild):
  6326. 2010-05-12 Alexey Proskuryakov <ap@apple.com>
  6327. Reviewed by Darin Adler.
  6328. https://bugs.webkit.org/show_bug.cgi?id=38752
  6329. Strange behaviour after js insertion into a page pointing directly to an object (image, swf, etc)
  6330. Test: fast/images/extra-image-in-image-document.html
  6331. * loader/ImageLoader.cpp: (WebCore::ImageLoader::updateFromElement): Reset setAutoLoadImages
  6332. after manually feeding an image - there may be more coming.
  6333. 2010-05-12 yael aharon <yael.aharon@nokia.com>
  6334. Reviewed by Dan Bernstein.
  6335. HTMLLabelElement::control() should return HTMLFormControlElement, not HTMLElement
  6336. https://bugs.webkit.org/show_bug.cgi?id=38991
  6337. No new tests since no new functionality was introduced.
  6338. * html/HTMLLabelElement.cpp:
  6339. (WebCore::HTMLLabelElement::control):
  6340. * html/HTMLLabelElement.h:
  6341. 2010-05-12 David Hyatt <hyatt@apple.com>
  6342. Reviewed by Darin Adler.
  6343. https://bugs.webkit.org/show_bug.cgi?id=38891
  6344. First-letter had a number of bugs that were exposed by my attempt to optimize the setting of styles when updating first-letter.
  6345. The code that drills down to find the first-letter child stopped if it hit an element that didn't need layout. This means it could
  6346. return random incorrect results (and cause the first-letter object to not be found).
  6347. In addition when the first-letter was floated/positioned, the text child was not correctly returned, but the container itself was
  6348. returned instead.
  6349. Finally, the updating code was leaving the box that wrapped the first letter text with a stale style. The old code happened to work because
  6350. it made new styles for the text elements instead of using the enclosing box style. The regression was caused by my change to make the
  6351. text children simply share style with their parent (thus making the bug that the parent had the wrong style become more prominent).
  6352. No new tests, since there's a timing component to reproducing the issue.
  6353. * rendering/RenderBlock.cpp:
  6354. (WebCore::RenderBlock::updateFirstLetter):
  6355. 2010-05-12 Enrica Casucci <enrica@apple.com>
  6356. Reviewed by Dave Hyatt.
  6357. Adding block elements to a block and removing them changes the height of the element.
  6358. https://bugs.webkit.org/show_bug.cgi?id=38874
  6359. The initial height of an empty editable block is different from the height of the same block after we add block elements
  6360. and remove them.
  6361. Test: editing/deleting/delete-block-contents-004.html
  6362. * rendering/RenderBlock.cpp:
  6363. (WebCore::RenderBlock::removeChild): m_childrenInline was set to true only when the Renderer is created
  6364. and never reset to true when all the block elements contained are removed.
  6365. 2010-05-12 Pavel Feldman <pfeldman@chromium.org>
  6366. Reviewed by Timothy Hatcher.
  6367. Web Inspector: disabling style property on container breaks styles inspection for given node.
  6368. https://bugs.webkit.org/show_bug.cgi?id=39005
  6369. Tests: inspector/styles-disable-inherited.html
  6370. inspector/styles-disable-then-enable.html
  6371. * inspector/front-end/StylesSidebarPane.js:
  6372. (WebInspector.StylesSidebarPane.prototype._containsInherited):
  6373. (WebInspector.StylesSidebarPane.prototype._arrayContainsInheritedProperty):
  6374. 2010-05-12 Abhishek Arya <inferno@chromium.org>
  6375. Reviewed by Darin Adler.
  6376. HTML Entity Escape the contents of a textarea node when accessed
  6377. via the innerHTML and outerHTML node properties.
  6378. https://bugs.webkit.org/show_bug.cgi?id=38922
  6379. Test: fast/innerHTML/innerHTML-special-elements.html
  6380. * editing/markup.cpp:
  6381. (WebCore::appendStartMarkup):
  6382. 2010-05-12 Beth Dakin <bdakin@apple.com>
  6383. Reviewed by Darin Adler.
  6384. Fix for https://bugs.webkit.org/show_bug.cgi?id=38871 REGRESSION:
  6385. Crash clicking background NPR tab after few minutes of sitting idle
  6386. -and corresponding-
  6387. <rdar://problem/7941504>
  6388. Move m_mediaCanStartListeners HashSet to Document away from Page.
  6389. * dom/Document.cpp:
  6390. (WebCore::Document::Document):
  6391. (WebCore::Document::addMediaCanStartListener):
  6392. (WebCore::Document::removeMediaCanStartListener):
  6393. (WebCore::Document::takeAnyMediaCanStartListener):
  6394. * dom/Document.h:
  6395. * page/Page.cpp:
  6396. (WebCore::Page::takeAnyMediaCanStartListener):
  6397. * page/Page.h:
  6398. (WebCore::Page::canStartMedia):
  6399. 2010-05-11 Ilya Tikhonovsky <loislo@chromium.org>
  6400. Reviewed by Pavel Feldman.
  6401. WebInspector: Sometimes ResourceRequest records aren't connected to the initiator.
  6402. https://bugs.webkit.org/show_bug.cgi?id=38925
  6403. * inspector/InspectorTimelineAgent.cpp:
  6404. (WebCore::InspectorTimelineAgent::didScheduleResourceRequest):
  6405. * inspector/InspectorTimelineAgent.h:
  6406. (WebCore::):
  6407. * inspector/TimelineRecordFactory.cpp:
  6408. (WebCore::TimelineRecordFactory::createScheduleResourceRequestData):
  6409. * inspector/TimelineRecordFactory.h:
  6410. * inspector/front-end/TimelineAgent.js:
  6411. * inspector/front-end/TimelinePanel.js:
  6412. (WebInspector.TimelinePanel):
  6413. (WebInspector.TimelinePanel.prototype.get _recordStyles):
  6414. (WebInspector.TimelinePanel.prototype._findParentRecord):
  6415. (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
  6416. (WebInspector.TimelinePanel.prototype._clearPanel):
  6417. (WebInspector.TimelinePanel.FormattedRecord):
  6418. (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
  6419. (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
  6420. * loader/loader.cpp:
  6421. (WebCore::Loader::load):
  6422. 2010-05-12 Kent Tamura <tkent@chromium.org>
  6423. Reviewed by Darin Adler.
  6424. placeholder text should be stripped from line breaks
  6425. https://bugs.webkit.org/show_bug.cgi?id=36291
  6426. According to http://dev.w3.org/html5/spec/forms.html#attr-input-placeholder ,
  6427. we need to remove CR and LF from the placeholder attribute values.
  6428. Introduce HTMLTextFormControlElement::strippedPlaceholder(), which
  6429. returns stripped value, and replace getAttribute(placeholderAttr) with it.
  6430. Test: fast/forms/placeholder-stripped.html
  6431. * html/HTMLFormControlElement.cpp:
  6432. (WebCore::HTMLTextFormControlElement::strippedPlaceholder):
  6433. (WebCore::HTMLTextFormControlElement::isPlaceholderEmpty):
  6434. (WebCore::HTMLTextFormControlElement::placeholderShouldBeVisible):
  6435. Use strippedPlaceholder().
  6436. * html/HTMLFormControlElement.h:
  6437. * platform/text/CharacterNames.h: Add carriageReturn.
  6438. * rendering/RenderTextControlMultiLine.cpp:
  6439. (WebCore::RenderTextControlMultiLine::updateFromElement):
  6440. Use strippedPlaceholder().
  6441. * rendering/RenderTextControlSingleLine.cpp:
  6442. (WebCore::RenderTextControlSingleLine::updateFromElement):
  6443. Use strippedPlaceholder().
  6444. 2010-05-10 Rodrigo Belem <rodrigo.belem@openbossa.org>
  6445. Reviewed by Kenneth Christiansen , Simon Hausmann and Gustavo Noronha.
  6446. [Qt, Gtk] Allows build-webkit script to receive an install prefix as parameter
  6447. https://bugs.webkit.org/show_bug.cgi?id=26224
  6448. This patch adds the ability, in the QtWebkit build system, to change
  6449. the installation path.
  6450. * WebCore.pro:
  6451. 2010-05-12 Jer Noble <jer.noble@apple.com>
  6452. Reviewed by Darin Adler.
  6453. Bug 38689: #34005 will break fullscreen video playback
  6454. https://bugs.webkit.org/show_bug.cgi?id=38689
  6455. The PlatformMedia struct now contains a type field indicating which type
  6456. it contains. The struct now contains a union of all possible return types,
  6457. allowing the type of media returned by MediaPlayerPrivate instances to be
  6458. determined at runtime.
  6459. * platform/graphics/MediaPlayer.h:
  6460. (WebCore::PlatformMedia::):
  6461. (WebCore::):
  6462. * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
  6463. (WebCore::MediaPlayerPrivate::platformMedia):
  6464. * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
  6465. (WebCore::MediaPlayerPrivateQuickTimeVisualContext::platformMedia):
  6466. * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
  6467. (WebCore::MediaPlayerPrivate::platformMedia):
  6468. 2010-05-12 Young Han Lee <joybro@company100.net>
  6469. Reviewed by Darin Adler.
  6470. Add missing ENABLE(SVG) guards.
  6471. https://bugs.webkit.org/show_bug.cgi?id=38892
  6472. * rendering/RenderSVGResourceClipper.cpp:
  6473. * rendering/RenderSVGResourceMarker.cpp:
  6474. * rendering/RenderSVGResourceMasker.cpp:
  6475. 2010-05-12 Pavel Feldman <pfeldman@chromium.org>
  6476. Reviewed by Yury Semikhatsky.
  6477. Web Inspector: align sidebar checkboxes on windows.
  6478. https://bugs.webkit.org/show_bug.cgi?id=38986
  6479. * inspector/front-end/StylesSidebarPane.js:
  6480. * inspector/front-end/inspector.css:
  6481. (.sidebar-pane-subtitle):
  6482. (body.platform-windows .sidebar-pane-subtitle):
  6483. 2010-05-10 yael aharon <yael.aharon@nokia.com>
  6484. Reviewed by Darin Adler.
  6485. Support control attribute of HTMLLabelElement
  6486. https://bugs.webkit.org/show_bug.cgi?id=38688
  6487. Added support for the control attribute of HTMLLabelElement and changed the logic of determining
  6488. which control is associated with the label to conform to HTML5 spec.
  6489. Added a manual test for testing the logic of selecting the control to get focused, activated or hovered
  6490. when the label gets focused, activated or is hovered.
  6491. Test: fast/dom/HTMLLabelElement/click-label.html
  6492. Test: fast/dom/HTMLLabelElement/focus-label.html
  6493. Test: fast/dom/HTMLLabelElement/label-control.html
  6494. * accessibility/AccessibilityRenderObject.cpp:
  6495. (WebCore::labelForElement):
  6496. (WebCore::AccessibilityRenderObject::correspondingControlForLabelElement):
  6497. * html/HTMLFormControlElement.cpp:
  6498. (WebCore::HTMLFormControlElement::isLabelable):
  6499. * html/HTMLFormControlElement.h:
  6500. * html/HTMLLabelElement.cpp:
  6501. (WebCore::nodeAsLabelableFormControl):
  6502. (WebCore::HTMLLabelElement::control):
  6503. (WebCore::HTMLLabelElement::setActive):
  6504. (WebCore::HTMLLabelElement::setHovered):
  6505. (WebCore::HTMLLabelElement::defaultEventHandler):
  6506. (WebCore::HTMLLabelElement::focus):
  6507. (WebCore::HTMLLabelElement::accessKeyAction):
  6508. * html/HTMLLabelElement.h:
  6509. * html/HTMLLabelElement.idl:
  6510. * manual-tests/dom/form-control-for-label.html: Added.
  6511. 2010-05-12 Steve Block <steveblock@google.com>
  6512. Reviewed by David Levin.
  6513. Android's writeToFile() is buggy
  6514. https://bugs.webkit.org/show_bug.cgi?id=38908
  6515. No new tests, build fix only.
  6516. * platform/android/FileSystemAndroid.cpp: Remove Android's version of writeToFile().
  6517. * platform/posix/FileSystemPOSIX.cpp: Use POSIX version of writeToFile() on Android.
  6518. (WebCore::writeToFile):
  6519. 2010-05-10 Philippe Normand <pnormand@igalia.com>
  6520. Reviewed by David Levin.
  6521. [GStreamer] incoherent #ifdef in GOwnPtrGStreamer.h
  6522. https://bugs.webkit.org/show_bug.cgi?id=38839
  6523. Fixed #ifdef/curly braces coherence.
  6524. * platform/graphics/gstreamer/GOwnPtrGStreamer.cpp:
  6525. (WTF::GstElement):
  6526. 2010-05-10 Philippe Normand <pnormand@igalia.com>
  6527. Reviewed by Dirk Schulze.
  6528. [GStreamer] un-needed cairo.h include
  6529. https://bugs.webkit.org/show_bug.cgi?id=38837
  6530. Cairo not used in the sink anymore. So it's not needed to include
  6531. the header.
  6532. * platform/graphics/gstreamer/VideoSinkGStreamer.h:
  6533. 2010-05-12 Zoltan Herczeg <zherczeg@webkit.org>
  6534. Reviewed by Nikolas Zimmermann.
  6535. Build fix for Windows and Chromium builds.
  6536. * WebCore.gypi:
  6537. * WebCore.vcproj/WebCore.vcproj:
  6538. * svg/graphics/filters/SVGFELighting.cpp:
  6539. (WebCore::FELighting::LightingData::upLeftPixelValue):
  6540. (WebCore::FELighting::LightingData::upPixelValue):
  6541. (WebCore::FELighting::LightingData::upRightPixelValue):
  6542. (WebCore::FELighting::LightingData::leftPixelValue):
  6543. (WebCore::FELighting::LightingData::centerPixelValue):
  6544. (WebCore::FELighting::LightingData::rightPixelValue):
  6545. (WebCore::FELighting::LightingData::downLeftPixelValue):
  6546. (WebCore::FELighting::LightingData::downPixelValue):
  6547. (WebCore::FELighting::LightingData::downRightPixelValue):
  6548. (WebCore::FELighting::setPixel):
  6549. 2010-05-12 Zoltan Herczeg <zherczeg@webkit.org>
  6550. Reviewed by Nikolas Zimmermann.
  6551. Implementing SVG filters: feDiffuseLighting and feSpecularLighting
  6552. https://bugs.webkit.org/show_bug.cgi?id=32197
  6553. https://bugs.webkit.org/show_bug.cgi?id=32199
  6554. The patch implements the SVG filters feDiffuseLighting and
  6555. feSpecularLighting including the impementation of their possible
  6556. light sources according to the Scalable Vector Graphics (SVG)
  6557. 1.1 Specification. Only two features are missing: supporting images
  6558. with height or width set to 1, and kernelUnitLength other than (1,1).
  6559. Since the two lighting filters have a similar body, a common base
  6560. class called FELighting is introduced, and contains the code for
  6561. both filters. The implementation employs single precision floating
  6562. point arithmetic (fixed precision integer arithmetic seemed too difficult).
  6563. Indentation is removed of the modified header files in svg/graphics/filters
  6564. * GNUmakefile.am:
  6565. * WebCore.pro:
  6566. * WebCore.xcodeproj/project.pbxproj:
  6567. * platform/graphics/FloatPoint3D.cpp:
  6568. * platform/graphics/FloatPoint3D.h:
  6569. (WebCore::FloatPoint3D::FloatPoint3D): constructors changed to inline
  6570. (WebCore::operator*): dot product
  6571. * svg/SVGFESpotLightElement.cpp:
  6572. (WebCore::SVGFESpotLightElement::lightSource):
  6573. * svg/graphics/filters/SVGDistantLightSource.h:
  6574. (WebCore::DistantLightSource::create):
  6575. (WebCore::DistantLightSource::azimuth):
  6576. (WebCore::DistantLightSource::elevation):
  6577. (WebCore::DistantLightSource::DistantLightSource):
  6578. * svg/graphics/filters/SVGFEDiffuseLighting.cpp:
  6579. (WebCore::FEDiffuseLighting::FEDiffuseLighting):
  6580. (WebCore::FEDiffuseLighting::create):
  6581. * svg/graphics/filters/SVGFEDiffuseLighting.h:
  6582. * svg/graphics/filters/SVGFELighting.cpp: Added.
  6583. (WebCore::FELighting::FELighting):
  6584. (WebCore::FELighting::LightingData::upLeftPixelValue):
  6585. (WebCore::FELighting::LightingData::upPixelValue):
  6586. (WebCore::FELighting::LightingData::upRightPixelValue):
  6587. (WebCore::FELighting::LightingData::leftPixelValue):
  6588. (WebCore::FELighting::LightingData::centerPixelValue):
  6589. (WebCore::FELighting::LightingData::rightPixelValue):
  6590. (WebCore::FELighting::LightingData::downLeftPixelValue):
  6591. (WebCore::FELighting::LightingData::downPixelValue):
  6592. (WebCore::FELighting::LightingData::downRightPixelValue):
  6593. (WebCore::FELighting::setPixel):
  6594. (WebCore::FELighting::drawLighting):
  6595. (WebCore::FELighting::apply):
  6596. * svg/graphics/filters/SVGFELighting.h: Added.
  6597. (WebCore::FELighting::uniteChildEffectSubregions):
  6598. (WebCore::FELighting::):
  6599. * svg/graphics/filters/SVGFESpecularLighting.cpp:
  6600. (WebCore::FESpecularLighting::FESpecularLighting):
  6601. (WebCore::FESpecularLighting::create):
  6602. * svg/graphics/filters/SVGFESpecularLighting.h:
  6603. * svg/graphics/filters/SVGLightSource.cpp:
  6604. (WebCore::PointLightSource::initPaintingData):
  6605. (WebCore::PointLightSource::updatePaintingData):
  6606. (WebCore::SpotLightSource::initPaintingData):
  6607. (WebCore::SpotLightSource::updatePaintingData):
  6608. (WebCore::DistantLightSource::initPaintingData):
  6609. (WebCore::DistantLightSource::updatePaintingData):
  6610. * svg/graphics/filters/SVGLightSource.h:
  6611. (WebCore::):
  6612. (WebCore::LightSource::LightSource):
  6613. (WebCore::LightSource::~LightSource):
  6614. (WebCore::LightSource::type):
  6615. * svg/graphics/filters/SVGPointLightSource.h:
  6616. (WebCore::PointLightSource::create):
  6617. (WebCore::PointLightSource::position):
  6618. (WebCore::PointLightSource::PointLightSource):
  6619. * svg/graphics/filters/SVGSpotLightSource.h:
  6620. (WebCore::SpotLightSource::create):
  6621. (WebCore::SpotLightSource::position):
  6622. (WebCore::SpotLightSource::direction):
  6623. (WebCore::SpotLightSource::specularExponent):
  6624. (WebCore::SpotLightSource::limitingConeAngle):
  6625. (WebCore::SpotLightSource::SpotLightSource):
  6626. 2010-05-12 Xan Lopez <xlopez@igalia.com>
  6627. Reviewed by Nikolas Zimmermann.
  6628. Add missing AM_V_GEN directives to generation rules so that they
  6629. remain silent when requested.
  6630. * GNUmakefile.am:
  6631. 2010-05-12 Lucas De Marchi <lucas.demarchi@profusion.mobi>
  6632. Reviewed by Jeremy Orlow.
  6633. [EFL] It does not make sense to use ScrollbarEfl::ScrollbarEfl, so
  6634. use ScrollbarEfl (GCC 4.5 seems to be pickier about this). Revision 59030
  6635. fixed cases for RenderThemeEfl, but missed this for ScrollbarEfl.
  6636. http://webkit.org/b/38904
  6637. No new tests required.
  6638. * platform/efl/ScrollbarEfl.cpp:
  6639. (scrollbarEflEdjeMessage):
  6640. 2010-05-12 MORITA Hajime <morrita@google.com>
  6641. Reviewed by Kent Tamura.
  6642. [Chromium] Support HTML5 <progress> element on Windows.
  6643. https://bugs.webkit.org/show_bug.cgi?id=37308
  6644. Extended ChromiumBridge to handle progress bar painting,
  6645. and added delegations to it.
  6646. No new tests. Test cases should be shared with existing ones for
  6647. progress element. Expectaions will be added after PROGRESS_TAG is
  6648. enabled on Chromium tree.
  6649. * platform/chromium/ChromiumBridge.h:
  6650. * rendering/RenderProgress.cpp:
  6651. (WebCore::RenderProgress::animationProgress):
  6652. (WebCore::RenderProgress::isDeterminate):
  6653. * rendering/RenderProgress.h:
  6654. (WebCore::RenderProgress::position):
  6655. * rendering/RenderThemeChromiumWin.cpp:
  6656. (WebCore::RenderThemeChromiumWin::animationRepeatIntervalForProgressBar):
  6657. (WebCore::RenderThemeChromiumWin::animationDurationForProgressBar):
  6658. (WebCore::RenderThemeChromiumWin::adjustProgressBarStyle):
  6659. (WebCore::RenderThemeChromiumWin::paintProgressBar):
  6660. * rendering/RenderThemeChromiumWin.h:
  6661. 2010-05-12 Marcus Bulach <bulach@chromium.org>
  6662. Reviewed by Steve Block.
  6663. Removes Geolocation::setPosition and uses positionChanged() to capture lastPosition().
  6664. This brings CLIENT_BASED_GEOLOCATION more inline with the non-client based.
  6665. https://bugs.webkit.org/show_bug.cgi?id=38195
  6666. * page/Geolocation.cpp:
  6667. (WebCore::Geolocation::lastPosition):
  6668. (WebCore::Geolocation::requestPermission):
  6669. (WebCore::Geolocation::positionChangedInternal):
  6670. (WebCore::Geolocation::positionChanged):
  6671. (WebCore::Geolocation::geolocationServicePositionChanged):
  6672. * page/Geolocation.h:
  6673. * page/GeolocationController.cpp:
  6674. (WebCore::GeolocationController::positionChanged):
  6675. (WebCore::GeolocationController::lastPosition):
  6676. * page/GeolocationController.h:
  6677. 2010-05-12 Marcus Bulach <bulach@chromium.org>
  6678. Reviewed by Steve Block.
  6679. Attaches the geolocation bridge later on startUpdating().
  6680. This prevents a page requesting permission when it has just accessed navigator.geolocation (without calling navigator.geolocation.getCurrentPosition/watchPosition).
  6681. Note: when Geolocation::haveSuitableCachedPosition(), WebGeolocationServiceBridgeImpl::startUpdating() is not called,
  6682. so we attach the bridge if needed at requestGeolocationPermissionForFrame().
  6683. https://bugs.webkit.org/show_bug.cgi?id=38323
  6684. http://crbug.com/42789
  6685. * platform/chromium/GeolocationServiceChromium.h:
  6686. 2010-05-12 Robin Qiu <robin.qiu@torchmobile.com.cn>
  6687. Reviewed by Dirk Schulze.
  6688. Fix a bug in SVGPathSegList::getPathSegAtLength().
  6689. This bug is just a misktake: almost all of the code is OK, but the
  6690. parameter is not used at all, therefore, this function always returns
  6691. "1".
  6692. And make a modification to return the last path segment if the distance
  6693. exceeds the actual path length.
  6694. https://bugs.webkit.org/show_bug.cgi?id=37515
  6695. Test: svg/dom/svgpath-getPathSegAtLength.html
  6696. * svg/SVGPathSegList.cpp:
  6697. (WebCore::SVGPathSegList::getPathSegAtLength):
  6698. 2010-05-11 David Hyatt <hyatt@apple.com>
  6699. Reviewed by Maciej Stachowiak.
  6700. https://bugs.webkit.org/show_bug.cgi?id=38976, fast/css/pseudo-cache-stale.html has incorrect results.
  6701. Make sure to trigger a relayout of any objects whose first-line styles change dynamically.
  6702. * dom/Element.cpp:
  6703. (WebCore::Element::pseudoStyleCacheIsInvalid):
  6704. 2010-05-11 Joseph Pecoraro <joepeck@webkit.org>
  6705. Reviewed by Timothy Hatcher.
  6706. Web Inspector: Shorthand Properties Getting Deleted When Editing
  6707. https://bugs.webkit.org/show_bug.cgi?id=38958
  6708. * inspector/front-end/DOMAgent.js:
  6709. (WebInspector.CSSStyleDeclaration.prototype.styleTextWithShorthands): was getting regular values instead of shorthand values
  6710. 2010-05-11 Tony Chang <tony@chromium.org>
  6711. Reviewed by Darin Fisher.
  6712. [chromium] Remove subframe scrollbar routing (r58937)
  6713. https://bugs.webkit.org/show_bug.cgi?id=38894
  6714. * page/chromium/EventHandlerChromium.cpp:
  6715. (WebCore::EventHandler::passMousePressEventToSubframe):
  6716. 2010-05-11 Simon Fraser <simon.fraser@apple.com>
  6717. Reviewed by Maciej Stachowiak.
  6718. Body not redrawn, and filled with garbage on some composited pages
  6719. https://bugs.webkit.org/show_bug.cgi?id=38951
  6720. <rdar://problem/7891548>
  6721. When the root layer becomes composited (for example, because a negative z-index
  6722. descendant in its stacking context becomes composited), then it has to be made
  6723. large enough to fill the viewport, because the page background draws into it.
  6724. Test: compositing/geometry/composited-html-size.html
  6725. * rendering/RenderLayerCompositor.cpp:
  6726. (WebCore::RenderLayerCompositor::calculateCompositedBounds):
  6727. 2010-05-11 Anders Carlsson <andersca@apple.com>
  6728. Reviewed by Mark Rowe.
  6729. https://bugs.webkit.org/show_bug.cgi?id=38961
  6730. Move some member variables around to reduce class sizes.
  6731. If a class inherits (directly or indirectly) from FastAllocBase, we don't want the first member variable
  6732. of that class to also inherit (directly or indirectly) from FastAllocBase as this will add padding to the class
  6733. and thus increasing its size.
  6734. * css/CSSParserValues.h:
  6735. * css/CSSSelector.h:
  6736. (WebCore::CSSSelector::CSSSelector):
  6737. (WebCore::CSSSelector::RareData::RareData):
  6738. * platform/graphics/FontCache.cpp:
  6739. (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey):
  6740. 2010-05-11 Dumitru Daniliuc <dumi@chromium.org>
  6741. Reviewed by Adam Barth.
  6742. Adding a function needed by the V8 code generator to turn on/off
  6743. the binding for WorkerContext::openDatabaseSync().
  6744. https://bugs.webkit.org/show_bug.cgi?id=38960
  6745. * bindings/generic/RuntimeEnabledFeatures.cpp:
  6746. (WebCore::RuntimeEnabledFeatures::openDatabaseSyncEnabled):
  6747. * bindings/generic/RuntimeEnabledFeatures.h:
  6748. 2010-05-11 MORITA Hajime <morrita@google.com>
  6749. Reviewed by Dirk Schulze.
  6750. CSS SVG font doesn't recognize URL without element reference
  6751. https://bugs.webkit.org/show_bug.cgi?id=37144
  6752. CachedFont::getSVGFontById() did assume that element reference (ID) is given.
  6753. So fixed to handle an empty or missing element reference. In which case,
  6754. the first font element is returned if available.
  6755. Test: svg/custom/svg-fonts-with-no-element-reference.html
  6756. * loader/CachedFont.cpp:
  6757. (WebCore::CachedFont::getSVGFontById):
  6758. 2010-05-11 Jer Noble <jer.noble@apple.com>
  6759. No Review.
  6760. Fix the Windows Debug Build: the correct VCProj variable to use when linking against
  6761. JavaScriptCore is $(WebKitDLLConfigSuffix), not $(WebKitConfigSuffix), which expands
  6762. to an empty string rather than "_debug".
  6763. * WebCore.vcproj/QTMovieWin.vcproj:
  6764. 2010-05-11 Jer Noble <jer.noble@apple.com>
  6765. 19 media tests are crashing on Windows Release
  6766. https://bugs.webkit.org/show_bug.cgi?id=38950
  6767. rdar://problem/7971658
  6768. Reviewed by Darin Adler.
  6769. Link against JavaScriptCore.lib instead of WTF.lib, so the free and malloc used by
  6770. QTMovieWin is always the free and malloc in JavaScriptCore.dll.
  6771. * WebCore.vcproj/QTMovieWin.vcproj:
  6772. 2010-05-11 Darin Adler <darin@apple.com>
  6773. Reviewed by Beth Dakin.
  6774. Another refactoring patch in preparation for a fix to
  6775. https://bugs.webkit.org/show_bug.cgi?id=38871
  6776. REGRESSION: Crash clicking background NPR tab after few minutes of sitting idle
  6777. * dom/Document.cpp:
  6778. (WebCore::Document::addMediaCanStartListener): Added.
  6779. (WebCore::Document::removeMediaCanStartListener): Added.
  6780. * dom/Document.h: Added add/removeMediaCanStartListener.
  6781. * html/HTMLMediaElement.cpp:
  6782. (WebCore::HTMLMediaElement::~HTMLMediaElement): Call removeMediaCanStartListener
  6783. on the document instead of the page.
  6784. (WebCore::HTMLMediaElement::willMoveToNewOwnerDocument): Call
  6785. removeMediaCanStartListener on the current document.
  6786. (WebCore::HTMLMediaElement::didMoveToNewOwnerDocument): Call
  6787. addMediaCanStartListener on the new document.
  6788. (WebCore::HTMLMediaElement::loadInternal): Call addMediaCanStartListener
  6789. on the document instead of the page.
  6790. * plugins/PluginView.cpp:
  6791. (WebCore::PluginView::startOrAddToUnstartedList): Call addMediaCanStartListener
  6792. on the document instead of the page.
  6793. (WebCore::PluginView::~PluginView): Call removeMediaCanStartListener
  6794. on the document instead of the page, and do it in line instead of calling
  6795. a function.
  6796. * plugins/PluginView.h: Removed unused removeFromUnstartedListIfNecessary.
  6797. 2010-05-11 Brian Weinstein <bweinstein@apple.com>
  6798. Reviewed by Steve Falkenburg and Jon Honeycutt.
  6799. Patch by Gavin Barraclough.
  6800. REGRESSION (r57900-57919): 3% PLT Regression from moving strings into WTF.
  6801. https://bugs.webkit.org/show_bug.cgi?id=38930
  6802. <rdar://problem/7937188>
  6803. Add the WTF strings into the WebCore vcproj, from their copied location in $(WebKitOutputDir).
  6804. No new tests because no change in behavior.
  6805. * WebCore.vcproj/WebCore.vcproj:
  6806. 2010-05-11 Beth Dakin <bdakin@apple.com>
  6807. Reviewed by Darin Adler.
  6808. Small re-factoring patch in preparation for fixing https://
  6809. bugs.webkit.org/show_bug.cgi?id=38871 REGRESSION: Crash clicking
  6810. background NPR tab after few minutes of sitting idle
  6811. * page/Page.cpp:
  6812. (WebCore::Page::takeAnyMediaCanStartListener):
  6813. (WebCore::Page::setCanStartMedia):
  6814. * page/Page.h:
  6815. 2010-05-11 Alexey Proskuryakov <ap@apple.com>
  6816. Reviewed by Brady Eidson.
  6817. https://bugs.webkit.org/show_bug.cgi?id=37989
  6818. Safari (still) doesn't always send basic credentials preemptively
  6819. Test: http/tests/xmlhttprequest/basic-auth-default.html
  6820. After fetching credentials from WebCore storage, put them back right away. This will add
  6821. default credentials for the directory, since this may be the first time we learn about its
  6822. associated protection space.
  6823. * platform/network/cf/ResourceHandleCFNet.cpp:
  6824. (WebCore::ResourceHandle::didReceiveAuthenticationChallenge):
  6825. (WebCore::WebCoreSynchronousLoader::didReceiveChallenge):
  6826. * platform/network/mac/ResourceHandleMac.mm:
  6827. (WebCore::ResourceHandle::didReceiveAuthenticationChallenge):
  6828. (-[WebCoreSynchronousLoader connection:didReceiveAuthenticationChallenge:]):
  6829. 2010-05-11 Kevin Watters <kevinwatters@gmail.com>
  6830. Reviewed by Kevin Ollivier.
  6831. [wx] Create an NSFont on Mac builds that do not have built-in methods to do so.
  6832. https://bugs.webkit.org/show_bug.cgi?id=38931
  6833. * platform/graphics/wx/FontPlatformData.h:
  6834. (WebCore::FontPlatformData::nsFont):
  6835. * platform/graphics/wx/FontPlatformDataWxMac.mm:
  6836. (DegToRad):
  6837. (OSXCreateNSFont):
  6838. (WebCore::FontPlatformData::cacheNSFont):
  6839. * platform/graphics/wx/SimpleFontDataWx.cpp:
  6840. (WebCore::SimpleFontData::platformWidthForGlyph):
  6841. 2010-05-11 Avi Drissman <avi@chromium.org>
  6842. Reviewed by Darin Fisher.
  6843. [Chromium] Pipe RTL info into WebPopupMenuInfo
  6844. https://bugs.webkit.org/show_bug.cgi?id=38749
  6845. * platform/chromium/PopupMenuChromium.cpp:
  6846. (WebCore::PopupContainer::menuStyle):
  6847. * platform/chromium/PopupMenuChromium.h:
  6848. 2010-05-11 Mark Rowe <mrowe@apple.com>
  6849. Fix the world.
  6850. In r59162 a change was made to WebCore's FeatureDefines.xcconfig that enabled FILE_READER and FILE_WRITER.
  6851. The author and reviewer of that patch ignored the carefully-worded warning at the top of that file asking
  6852. that changes to the file be kept in sync across JavaScriptCore, WebCore and WebKit, as well as being kept
  6853. in sync with build-webkit. This led to WebCore and WebKit having different views of Document's vtable
  6854. and results in crashes in Safari shortly after launch when virtual function calls resulted in the wrong
  6855. function in WebCore being called.
  6856. We fix this by bringing the FeatureDefines.xcconfig files in to sync. Based on the ChangeLog message and
  6857. other changes in r59162 it appears that enabling FILE_WRITER was unintentional so that particular change
  6858. has been reverted.
  6859. * Configurations/FeatureDefines.xcconfig:
  6860. 2010-05-11 Dimitri Glazkov <dglazkov@chromium.org>
  6861. Reviewed by Darin Adler.
  6862. REGRESSION(r58520): Implicit submission on forms with button type="submit" no longer works
  6863. https://bugs.webkit.org/show_bug.cgi?id=38913
  6864. * Widened the check for a successful submit button to include all HTMLFormControlElements.
  6865. * Clarified implicit submission code by:
  6866. - introducing HTMLFormControlElement::canTriggerImplicitSubmission flag,
  6867. - getting rid of static casting and checking for tag names.
  6868. * html/HTMLFormControlElement.h:
  6869. (WebCore::HTMLFormControlElement::canTriggerImplicitSubmission): Added.
  6870. * html/HTMLFormElement.cpp:
  6871. (WebCore::HTMLFormElement::submitImplicitly): Renamed parameters for clarity, refactored code
  6872. to use canTriggerImplicitSubmission.
  6873. * html/HTMLFormElement.h: Renamed parameter for clarity.
  6874. * html/HTMLInputElement.cpp:
  6875. (WebCore::HTMLInputElement::defaultEventHandler): Used canTriggerImplicitSubmission()
  6876. instead of isTextField() for clarity.
  6877. * html/HTMLInputElement.h:
  6878. (WebCore::HTMLInputElement::canTriggerImplicitSubmission): Added.
  6879. * html/HTMLIsIndexElement.h:
  6880. (WebCore::HTMLIsIndexElement::canTriggerImplicitSubmission): Added.
  6881. 2010-05-11 Sheriff Bot <webkit.review.bot@gmail.com>
  6882. Unreviewed, rolling out r59171.
  6883. http://trac.webkit.org/changeset/59171
  6884. https://bugs.webkit.org/show_bug.cgi?id=38933
  6885. "Broke the world" (Requested by bweinstein on #webkit).
  6886. * WebCore.vcproj/WebCore.vcproj:
  6887. 2010-05-11 Brian Weinstein <bweinstein@apple.com>
  6888. Reviewed by Steve Falkenburg.
  6889. Patch by Gavin Barraclough.
  6890. REGRESSION (r57900-57919): 3% PLT Regression from moving strings into WTF.
  6891. https://bugs.webkit.org/show_bug.cgi?id=38930
  6892. <rdar://problem/7937188>
  6893. Add the WTF strings into the WebCore vcproj, from their copied location in $(WebKitOutputDir).
  6894. No new tests because no change in behavior.
  6895. * WebCore.vcproj/WebCore.vcproj:
  6896. 2010-05-11 Jian Li <jianli@chromium.org>
  6897. Unreviewed. Fix compiling erron on snow leopard.
  6898. * html/FileThreadTask.h:
  6899. (WebCore::createFileThreadTask):
  6900. 2010-05-11 Jian Li <jianli@chromium.org>
  6901. Reviewed by Dmitry Titov.
  6902. Expose FileReader interface.
  6903. https://bugs.webkit.org/show_bug.cgi?id=38609
  6904. Test: fast/files/file-reader.html
  6905. * Configurations/FeatureDefines.xcconfig:
  6906. * DerivedSources.cpp:
  6907. * DerivedSources.make:
  6908. * GNUmakefile.am:
  6909. * WebCore.gypi:
  6910. * WebCore.pri:
  6911. * WebCore.vcproj/WebCore.vcproj:
  6912. * WebCore.xcodeproj/project.pbxproj:
  6913. * bindings/js/JSEventTarget.cpp:
  6914. (WebCore::toJS):
  6915. * bindings/v8/V8DOMWrapper.cpp:
  6916. (WebCore::V8DOMWrapper::convertEventTargetToV8Object):
  6917. * html/FileError.idl:
  6918. * html/FileReader.idl: Added.
  6919. * page/DOMWindow.idl:
  6920. 2010-05-11 Xan Lopez <xlopez@igalia.com>
  6921. Reviewed by Gustavo Noronha.
  6922. [gtk] critical warning in soup_message_set_first_party() when cancelling a navigation
  6923. https://bugs.webkit.org/show_bug.cgi?id=38653
  6924. Check if willSendRequest cancelled the request before setting the
  6925. first party for the cookies in the message, otherwise we'll get a
  6926. critical warning.
  6927. * platform/network/soup/ResourceHandleSoup.cpp:
  6928. (WebCore::restartedCallback):
  6929. 2010-05-11 Jer Noble <jer.noble@apple.com>
  6930. Reviewed by Adele Peterson.
  6931. REGRESSION (r59001): 11 media tests are failing on Windows (38847)
  6932. rdar://problem/7962997
  6933. https://bugs.webkit.org/show_bug.cgi?id=38847
  6934. QTMovieWin was too much refactored; the cacheMovieScale() function should have
  6935. been left in QTMovie (instead of being moved into QTMovieGWorld). This fixes the
  6936. video-size-intrinsic-scale test.
  6937. QTMovieTask::updateTaskTimer() was ignoring the maxInterval parameter unless
  6938. QTGetTimeUntilNextTask() returned an error, which caused the next timer to be
  6939. scheduled for extremely far in the future, breaking some of the layout tests.
  6940. QTMovieTask::fireTaskClients() now makes a local copy of the task list before
  6941. calling clients, in case one of them removes themselves from the task list and
  6942. invalidates our iterating pointer.
  6943. * platform/graphics/win/QTMovie.cpp:
  6944. (QTMoviePrivate::task):
  6945. (QTMoviePrivate::createMovieController):
  6946. (QTMoviePrivate::cacheMovieScale):
  6947. * platform/graphics/win/QTMovieGWorld.cpp:
  6948. (QTMovieGWorldPrivate::movieLoadStateChanged):
  6949. * platform/graphics/win/QTMovieTask.cpp:
  6950. (QTMovieTask::updateTaskTimer):
  6951. (QTMovieTask::fireTaskClients):
  6952. 2010-05-11 Patrick Gansterer <paroga@paroga.com>
  6953. Reviewed by Adam Roben.
  6954. Port SharedBuffer to WinCE.
  6955. https://bugs.webkit.org/show_bug.cgi?id=37222
  6956. Use only functions which are available on Win32 and WinCE.
  6957. * platform/win/SharedBufferWin.cpp:
  6958. (WebCore::SharedBuffer::createWithContentsOfFile):
  6959. 2010-05-11 Benjamin Poulain <benjamin.poulain@nokia.com>
  6960. Reviewed by Kenneth Rohde Christiansen.
  6961. [Qt] fast/text/find-hidden-text.html
  6962. https://bugs.webkit.org/show_bug.cgi?id=32922
  6963. Use the real page step for populating the QStyleOption otherwhise
  6964. the size can be negative, which can break the QStyle used.
  6965. * platform/qt/ScrollbarThemeQt.cpp:
  6966. (WebCore::styleOptionSlider):
  6967. 2010-05-11 Pavel Feldman <pfeldman@chromium.org>
  6968. Reviewed by Yury Semikhatsky.
  6969. Web Inspector: make styles rendering more user-friendly.
  6970. https://bugs.webkit.org/show_bug.cgi?id=36747
  6971. * inspector/front-end/ElementsPanel.js:
  6972. (WebInspector.ElementsPanel):
  6973. * inspector/front-end/StylesSidebarPane.js:
  6974. (WebInspector.StylesSidebarPane.prototype._update):
  6975. (WebInspector.StylesSidebarPane.prototype._rebuildSectionsForStyleRules):
  6976. (WebInspector.ComputedStyleSidebarPane):
  6977. (WebInspector.StylePropertiesSection):
  6978. (WebInspector.StylePropertiesSection.prototype.collapse):
  6979. (WebInspector.StylePropertiesSection.prototype.startEditingSelector):
  6980. * inspector/front-end/inspector.css:
  6981. (#elements-content):
  6982. (#elements-sidebar):
  6983. (.styles-sidebar-separator):
  6984. (.styles-section):
  6985. (.styles-section .header):
  6986. (.styles-section .header .title):
  6987. (.styles-section .header .subtitle):
  6988. (.styles-section .header .subtitle a):
  6989. (.styles-section .properties):
  6990. (.styles-section.no-affect .properties li):
  6991. (.styles-section.no-affect .properties li.editing):
  6992. (.styles-section.expanded .properties):
  6993. (.styles-section .properties li):
  6994. (.styles-section .properties li.parent):
  6995. (.styles-section .properties ol):
  6996. (.styles-section .properties ol.expanded):
  6997. (.styles-section .properties li.parent::before):
  6998. (.styles-section .properties li.parent.expanded::before):
  6999. (.styles-section .properties li .info):
  7000. (.styles-section:hover .properties .enabled-button):
  7001. (.styles-section .properties li.disabled .enabled-button):
  7002. (.styles-section .properties .enabled-button):
  7003. (.styles-section .properties .overloaded, .styles-section .properties .disabled):
  7004. (.styles-section.computed-style .properties .disabled):
  7005. (.styles-section .properties .implicit, .styles-section .properties .inherited):
  7006. (.styles-section .properties .inherited):
  7007. (.styles-section.show-inherited .properties .inherited):
  7008. 2010-05-11 Nikolas Zimmermann <nzimmermann@rim.com>
  7009. Reviewed by Dirk Schulze.
  7010. Move buildLayoutInformationForTextBox() from SVGRootInlineBox in SVGInlineTextBox where it belongs
  7011. https://bugs.webkit.org/show_bug.cgi?id=38799
  7012. Cleanup SVGRootInlineBox/SVGInlineTextBox. Move buildLayoutInformationForTextBox to SVGInlineTextBox.
  7013. Move lots of helper methods into new SVGTextLayoutUtilities class. Adapted all callsites.
  7014. Fixed bug in kerning handling, hkern was applyable to vertical text as well. Covered by two new tests.
  7015. Tests: svg/text/text-hkern-on-vertical-text.svg
  7016. svg/text/text-vkern-on-horizontal-text.svg
  7017. * Android.mk: Add SVGTextLayoutUtilities.cpp/h to build.
  7018. * GNUmakefile.am: Ditto.
  7019. * WebCore.gypi: Ditto.
  7020. * WebCore.pro: Ditto.
  7021. * WebCore.vcproj/WebCore.vcproj: Ditto.
  7022. * WebCore.xcodeproj/project.pbxproj: Ditto.
  7023. * rendering/SVGInlineTextBox.cpp:
  7024. (WebCore::SVGInlineTextBox::calculateGlyphWidth): Use textRenderer()->characters() instead of textRenderer()->text()->characters() as shortcut.
  7025. (WebCore::SVGInlineTextBox::svgCharacterHitsPosition): Fix style issue, no else if after a return branch.
  7026. (WebCore::SVGInlineTextBox::paintSelection): Use !color.alpha() instead of color.alpha() == 0.
  7027. (WebCore::SVGInlineTextBox::buildLayoutInformation): Moved from SVGRootInlineBox::buildLayoutInformationForTextBox.
  7028. * rendering/SVGInlineTextBox.h: Fix indention.
  7029. (WebCore::SVGInlineTextBox::selectionTop): Inlined.
  7030. (WebCore::SVGInlineTextBox::selectionHeight): Inlined.
  7031. * rendering/SVGRenderTreeAsText.cpp: Include SVGTextLayoutUtilities.h
  7032. * rendering/SVGRootInlineBox.cpp: Move almost all static text layout helper functions in SVGTextLayoutUtilities
  7033. (WebCore::calculateTextLengthCorrectionForTextChunk): Fixed style issue in long if conditions spanning multiple lines.
  7034. (WebCore::SVGRootInlineBox::computePerCharacterLayoutInformation): Use different topLeftPositionOfCharacterRange() taking start/end iterators.
  7035. (WebCore::SVGRootInlineBox::buildLayoutInformation): Use the moved SVGInlineTextBox::buildLayoutInformation() method.
  7036. (WebCore::SVGRootInlineBox::buildTextChunks): Fixed small style issue, remove unneeded parenthesis.
  7037. (WebCore::SVGRootInlineBox::layoutTextChunks): Fix style issue in debugging code.
  7038. * rendering/SVGRootInlineBox.h: Rename 'LastGlyphInfo' to 'SVGLastGlyphInfo' and move to SVGTextLayoutUtilities.
  7039. (WebCore::SVGRootInlineBox::svgTextChunks): Inlined for speed.
  7040. * rendering/SVGTextLayoutUtilities.cpp: Added.
  7041. (WebCore::isVerticalWritingMode):
  7042. (WebCore::dominantBaselineToShift):
  7043. (WebCore::alignmentBaselineToShift):
  7044. (WebCore::glyphOrientationToAngle):
  7045. (WebCore::glyphOrientationIsMultiplyOf180Degrees):
  7046. (WebCore::applyGlyphAdvanceAndShiftRespectingOrientation):
  7047. (WebCore::topLeftPositionOfCharacterRange):
  7048. (WebCore::cummulatedWidthOfInlineBoxCharacterRange):
  7049. (WebCore::cummulatedHeightOfInlineBoxCharacterRange):
  7050. (WebCore::svgTextRunForInlineTextBox):
  7051. (WebCore::calculateCSSKerning):
  7052. (WebCore::applySVGKerning):
  7053. * rendering/SVGTextLayoutUtilities.h: Added.
  7054. (WebCore::):
  7055. (WebCore::SVGTextPaintInfo::SVGTextPaintInfo):
  7056. (WebCore::SVGLastGlyphInfo::SVGLastGlyphInfo):
  7057. 2010-05-11 Zoltan Herczeg <zherczeg@webkit.org>
  7058. Reviewed by Dirk Schulze.
  7059. RenderSVGImage::imageChanged should invalidate the SVG filter cache
  7060. https://bugs.webkit.org/show_bug.cgi?id=38838
  7061. Test: svg/filters/filteredImage.svg
  7062. * rendering/RenderSVGImage.cpp:
  7063. (WebCore::RenderSVGImage::imageChanged):
  7064. 2010-05-10 Simon Fraser <simon.fraser@apple.com>
  7065. Fix asserting GTK build.
  7066. r59137 changed the behavior of RenderObject::repaintUsingContainer(). I mistakenly
  7067. thought that non-compositing builds would always pass a 0 repaintContainer, but
  7068. actually the RenderView is passed in this case. So use this to repaint if
  7069. ACCELERATED_COMPOSITING is turned off.
  7070. * rendering/RenderObject.cpp:
  7071. (WebCore::RenderObject::repaintUsingContainer):
  7072. 2010-05-10 Simon Fraser <simon.fraser@apple.com>
  7073. Fix warning on Windows about unreachable code.
  7074. * rendering/RenderLayerCompositor.cpp:
  7075. (WebCore::RenderLayerCompositor::shouldPropagateCompositingToEnclosingIFrame):
  7076. 2010-05-10 Simon Fraser <simon.fraser@apple.com>
  7077. Reviewed by Anders Carlsson
  7078. Allow compositing layers to be connected across iframe boundaries on Mac
  7079. https://bugs.webkit.org/show_bug.cgi?id=38856
  7080. RenderObject::repaintUsingContainer() incorrectly did a view-based
  7081. repaint if the repaint container was the RenderView. Instead, we need
  7082. to check to see if the RenderView's layer is composited, and, if so,
  7083. whether it's painting into the window or not. This can occur when iframes
  7084. are composited.
  7085. The bug is timing-sensitive, involving compositing in iframes, and I was not able to
  7086. concoct a good testcase.
  7087. * rendering/RenderObject.cpp:
  7088. (WebCore::RenderObject::repaintUsingContainer):
  7089. 2010-05-10 Simon Fraser <simon.fraser@apple.com>
  7090. Reviewed by Anders Carlsson
  7091. Allow compositing layers to be connected across iframe boundaries on Mac
  7092. https://bugs.webkit.org/show_bug.cgi?id=38856
  7093. Changes to allow compositing layers for iframes to switch between being hosted
  7094. by the iframe's layer-backed NSView, and parented in the GraphicsLayer tree of the
  7095. enclosing document.
  7096. Tests: compositing/iframes/connect-compositing-iframe.html
  7097. compositing/iframes/connect-compositing-iframe2.html
  7098. compositing/iframes/connect-compositing-iframe3.html
  7099. * page/FrameView.h:
  7100. * page/FrameView.cpp:
  7101. (WebCore::FrameView::hasCompositedContent): New convenience method.
  7102. (WebCore::FrameView::setIsOverlapped): If we're composited, poke the owner document in case it
  7103. wants to re-evaluate compositing decisions.
  7104. (WebCore::FrameView::isOverlapped): Just expose the existing flag.
  7105. * rendering/RenderLayer.cpp:
  7106. (WebCore::RenderLayer::shouldBeNormalFlowOnly):
  7107. (WebCore::RenderLayer::isSelfPaintingLayer):
  7108. * rendering/RenderLayerBacking.cpp:
  7109. (WebCore::RenderLayerBacking::updateGraphicsLayerConfiguration): If this is an iframe, we need
  7110. to ensure that the layers for the iframe content are hooked up.
  7111. (WebCore::RenderLayerBacking::updateDrawsContent): When an iframe toggles between different
  7112. attachments, the 'drawsContent' behavior of its root layer changes, so needs to be updated.
  7113. * rendering/RenderLayerCompositor.h:
  7114. (WebCore::RenderLayerCompositor::updateCompositingLayers): Call destroyRootPlatformLayer()
  7115. instead of detachRootPlatformLayer() and manually zeroing out the OwnPtrs.
  7116. (WebCore::RenderLayerCompositor::updateBacking): If a RenderIFrame changes compositing mode,
  7117. we need to ensure that its content compositor attachment is updated.
  7118. (WebCore::RenderLayerCompositor::repaintOnCompositingChange): The existing code had a bug
  7119. that caused repaints for RenderViews (which have no parent) to bail. We only want to bail
  7120. for non-RenderViews that are not attached.
  7121. (WebCore::RenderLayerCompositor::rebuildCompositingLayerTree): Factored the iframe-connecting
  7122. code into a new method, parentIFrameContentLayers().
  7123. (WebCore::RenderLayerCompositor::parentIFrameContentLayers): New method to share the code that hooks
  7124. up the iframe's compositing layers to the parent.
  7125. (WebCore::RenderLayerCompositor::shouldPropagateCompositingToEnclosingIFrame): Add logic to propagate
  7126. compositing out of iframes on Mac in two situations: 1) when the FrameView is overlapped, and 2)
  7127. if the parent document is already composited.
  7128. (WebCore::RenderLayerCompositor::ensureRootPlatformLayer): Clean up the logic here to better deal
  7129. with dynamic changes of the attachment type.
  7130. (WebCore::RenderLayerCompositor::destroyRootPlatformLayer): Clean up and null out the clipping layer here.
  7131. (WebCore::RenderLayerCompositor::attachRootPlatformLayer): Call rootLayerAttachmentChanged().
  7132. (WebCore::RenderLayerCompositor::detachRootPlatformLayer): Ditto. Also unparent the clipping and platform layers.
  7133. (WebCore::RenderLayerCompositor::updateRootLayerAttachment): Call ensureRootPlatformLayer() to re-evaluate
  7134. the layer attachment.
  7135. (WebCore::RenderLayerCompositor::rootLayerAttachmentChanged): We need to update the drawsContent() status
  7136. of the RenderView's layer's backing, because it changes depending on the attachment.
  7137. * rendering/RenderWidget.cpp:
  7138. (WebCore::RenderWidget::paint): Do overlap testing if the frameView can do fast repaints (as before),
  7139. but also now when the frameView has composited content.
  7140. 2010-05-10 Simon Fraser <simon.fraser@apple.com>
  7141. Reviewed by Anders Carlsson
  7142. Allow compositing layers to be connected across iframe boundaries on Mac
  7143. https://bugs.webkit.org/show_bug.cgi?id=38856
  7144. Rename the static shouldPropagateCompositingToIFrameParent() to shouldPropagateCompositingToEnclosingIFrame(),
  7145. to pave the way for runtime switches in the propagation behavior. We have to make sure we call it on
  7146. the correct RenderLayerCompositor (that belonging to the iframe's content document).
  7147. * rendering/RenderLayerBacking.cpp:
  7148. (WebCore::RenderLayerBacking::paintingGoesToWindow): Now that we know the root layer attachment, we
  7149. can simplify this method.
  7150. * rendering/RenderLayerCompositor.h:
  7151. * rendering/RenderLayerCompositor.cpp:
  7152. (WebCore::RenderLayerCompositor::enableCompositingMode): No need for the setNeedsStyleRecalc()
  7153. here, because the ensureRootPlatformLayer() or destroyRootPlatformLayer() will have already done it.
  7154. (WebCore::RenderLayerCompositor::rebuildCompositingLayerTree): Use the root layer attachment to determine
  7155. whether to parent the iframe's layers.
  7156. (WebCore::RenderLayerCompositor::didMoveOnscreen): Method name change.
  7157. (WebCore::RenderLayerCompositor::shouldPropagateCompositingToEnclosingIFrame): Name change.
  7158. (WebCore::RenderLayerCompositor::requiresCompositingForIFrame): We need to consult the iframe contents
  7159. document's compositor to ask whether propagation is appropriate.
  7160. (WebCore::RenderLayerCompositor::ensureRootPlatformLayer): Name change.
  7161. 2010-05-10 Simon Fraser <simon.fraser@apple.com>
  7162. Reviewed by Anders Carlsson
  7163. Allow compositing layers to be connected across iframe boundaries on Mac
  7164. https://bugs.webkit.org/show_bug.cgi?id=38856
  7165. Use an enum for the type of root layer attachment on a RenderLayerCompositor, so we can
  7166. determine if the attachment is via the ChromeClient, via an enclosing iframe, or unattached.
  7167. * rendering/RenderLayerCompositor.h: New RootLayerAttachment enum.
  7168. (WebCore::RenderLayerCompositor::rootLayerAttachment): getter for the current attachment.
  7169. * rendering/RenderLayerCompositor.cpp:
  7170. (WebCore::RenderLayerCompositor::RenderLayerCompositor): Init m_rootLayerAttachment.
  7171. (WebCore::RenderLayerCompositor::~RenderLayerCompositor): Assert that is unattached.
  7172. (WebCore::RenderLayerCompositor::updateCompositingLayers): Call destroyRootPlatformLayer instead of willMoveOffscreen,
  7173. when there are no layers left. Also clear out the clipping layer.
  7174. (WebCore::RenderLayerCompositor::didMoveOnscreen): Call attachRootPlatformLayer.
  7175. (WebCore::RenderLayerCompositor::willMoveOffscreen): Call ensureRootPlatformLayer with the appropriate attachment.
  7176. (WebCore::RenderLayerCompositor::ensureRootPlatformLayer): Only create the m_rootPlatformLayer if we don't have one
  7177. already, but be sure to always set the root layer geometry orientation. Also only create the
  7178. m_clippingLayer if we need to.
  7179. (WebCore::RenderLayerCompositor::destroyRootPlatformLayer): Call detachRootPlatformLayer().
  7180. (WebCore::RenderLayerCompositor::attachRootPlatformLayer): Code moved from didMoveOnscreen, but switching on
  7181. attachment.
  7182. (WebCore::RenderLayerCompositor::detachRootPlatformLayer): Code moved from willMoveOffscreen, but switching on
  7183. attachment.
  7184. 2010-05-10 Simon Fraser <simon.fraser@apple.com>
  7185. Reviewed by Anders Carlsson
  7186. Allow compositing layers to be connected across iframe boundaries on Mac
  7187. https://bugs.webkit.org/show_bug.cgi?id=38856
  7188. Clean up the geometry logic when propagating compositing out of iframes.
  7189. * rendering/RenderLayerCompositor.cpp:
  7190. (WebCore::RenderLayerCompositor::updateRootLayerPosition): Geometry on m_rootPlatformLayer no longer
  7191. needs to be special when there's a clipping layer.
  7192. (WebCore::RenderLayerCompositor::ensureRootPlatformLayer): Don't set the clipping layer to have
  7193. flipped geometry ever, and only set the root layer to have flipped geometry if it is not
  7194. being hosted in an iframe. Also no need to set a custom anchor point on the clipping layer.
  7195. 2010-05-10 Simon Fraser <simon.fraser@apple.com>
  7196. Reviewed by Anders Carlsson
  7197. Allow compositing layers to be connected across iframe boundaries on Mac
  7198. https://bugs.webkit.org/show_bug.cgi?id=38856
  7199. Clean up some methods related to composited iframes. No behavioral changes.
  7200. * rendering/RenderLayerBacking.h: Move innerRenderLayerCompositor() to be a static method:
  7201. RenderLayerCompositor::iframeContentsCompositor().
  7202. * rendering/RenderLayerBacking.cpp: Remove innerRenderLayerCompositor().
  7203. (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry): Call iframeContentsCompositor().
  7204. * rendering/RenderLayerCompositor.cpp:
  7205. (WebCore::RenderLayerCompositor::enableCompositingMode): Call enclosingIFrameElement()
  7206. (WebCore::RenderLayerCompositor::rebuildCompositingLayerTree): iframeContentsCompositor() is now a static method in this class.
  7207. Also check that the iframe contents are in compositing mode (slightly clearer than relying on rootPlatformLayer() returning
  7208. null).
  7209. (WebCore::RenderLayerCompositor::iframeContentsCompositor): Moved from RenderLayerBacking.
  7210. (WebCore::RenderLayerCompositor::didMoveOnscreen): Use enclosingIFrameElement() method.
  7211. (WebCore::RenderLayerCompositor::willMoveOffscreen): Ditto.
  7212. (WebCore::RenderLayerCompositor::enclosingIFrameElement): New method.
  7213. (WebCore::RenderLayerCompositor::ensureRootPlatformLayer): Call enclosingIFrameElement().
  7214. * rendering/RenderLayerCompositor.h: New method, iframeContentsCompositor().
  7215. 2010-05-10 Dumitru Daniliuc <dumi@chromium.org>
  7216. Reviewed by Brady Eidson.
  7217. Cleaning up and fixing the existing JSC DB bindings.
  7218. https://bugs.webkit.org/show_bug.cgi?id=34994
  7219. * bindings/js/JSDOMWindowCustom.cpp:
  7220. (WebCore::JSDOMWindow::openDatabase):
  7221. * bindings/js/JSDatabaseCustom.cpp:
  7222. (WebCore::JSDatabase::changeVersion):
  7223. (WebCore::createTransaction):
  7224. (WebCore::JSDatabase::transaction):
  7225. (WebCore::JSDatabase::readTransaction):
  7226. * bindings/js/JSSQLTransactionCustom.cpp:
  7227. (WebCore::JSSQLTransaction::executeSql):
  7228. 2010-05-10 Fumitoshi Ukai <ukai@chromium.org>
  7229. Reviewed by Alexey Proskuryakov.
  7230. WebSocket needs to suspend/resume as Active DOM object.
  7231. https://bugs.webkit.org/show_bug.cgi?id=38171
  7232. Implement suspend()/resume() in WebSocket and WebSocketChannel.
  7233. While WebSocketChannel is suspended, it only adds received data in m_buffer
  7234. or record the handle was closed, and report no event to WebSocket.
  7235. When resumed, it will process buffer or handle closing.
  7236. Since suspend/resume would be called while processing JavaScript event handler (e.g. before/after alert()), WebSocketChannel method that would fire an event need to be reentrant.
  7237. So, WebSocketChannel::processBuffer() call WebSocket to fire an event at most once and skips buffer before the calling,
  7238. so that next call of processBuffer() would process the next frame.
  7239. * websockets/ThreadableWebSocketChannel.h:
  7240. * websockets/ThreadableWebSocketChannelClientWrapper.h:
  7241. (WebCore::ThreadableWebSocketChannelClientWrapper::didConnect):
  7242. Mark channel is opened, and process pending events if not suspended.
  7243. (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveMessage):
  7244. Push message back in pending queue, and process pending events if not suspended.
  7245. (WebCore::ThreadableWebSocketChannelClientWrapper::didClose):
  7246. Mark channel is closed, and process pending events if not suspended.
  7247. (WebCore::ThreadableWebSocketChannelClientWrapper::suspend):
  7248. Mark suspended.
  7249. (WebCore::ThreadableWebSocketChannelClientWrapper::resume):
  7250. Unmark suspended, and process pending events.
  7251. (WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper):
  7252. (WebCore::ThreadableWebSocketChannelClientWrapper::processPendingEvents):
  7253. * websockets/WebSocket.cpp:
  7254. (WebCore::WebSocket::canSuspend):
  7255. (WebCore::WebSocket::suspend):
  7256. (WebCore::WebSocket::resume):
  7257. (WebCore::WebSocket::didClose):
  7258. * websockets/WebSocket.h:
  7259. * websockets/WebSocketChannel.cpp:
  7260. (WebCore::WebSocketChannel::WebSocketChannel):
  7261. (WebCore::WebSocketChannel::connect):
  7262. (WebCore::WebSocketChannel::send):
  7263. (WebCore::WebSocketChannel::bufferedAmount):
  7264. (WebCore::WebSocketChannel::close):
  7265. (WebCore::WebSocketChannel::suspend):
  7266. (WebCore::WebSocketChannel::resume):
  7267. When resumed, it will process buffer and
  7268. handle closing if handle was already closed while suspended.
  7269. (WebCore::WebSocketChannel::didClose):
  7270. If suspended, record unhandled bufferedAmount and set m_closed true, so that closing will be processed when resumed.
  7271. (WebCore::WebSocketChannel::didReceiveData):
  7272. Add received data in buffer and process buffer while it is not suspended.
  7273. (WebCore::WebSocketChannel::processBuffer):
  7274. Process handshake header or one frame message.
  7275. Return true if there are more data to be processed.
  7276. Return false otherwise (e.g. incomplete handshake header or incomplete frame).
  7277. * websockets/WebSocketChannel.h:
  7278. * websockets/WorkerThreadableWebSocketChannel.cpp:
  7279. (WebCore::WorkerThreadableWebSocketChannel::suspend):
  7280. (WebCore::WorkerThreadableWebSocketChannel::resume):
  7281. (WebCore::WorkerThreadableWebSocketChannel::Peer::suspend):
  7282. (WebCore::WorkerThreadableWebSocketChannel::Peer::resume):
  7283. (WebCore::WorkerThreadableWebSocketChannel::mainThreadSuspend):
  7284. (WebCore::WorkerThreadableWebSocketChannel::Bridge::suspend):
  7285. (WebCore::WorkerThreadableWebSocketChannel::mainThreadResume):
  7286. (WebCore::WorkerThreadableWebSocketChannel::Bridge::resume):
  7287. * websockets/WorkerThreadableWebSocketChannel.h:
  7288. 2010-05-07 Dumitru Daniliuc <dumi@chromium.org>
  7289. Reviewed by Brady Eidson.
  7290. Implement the JSC bindings for the sync DB API.
  7291. https://bugs.webkit.org/show_bug.cgi?id=34994
  7292. * bindings/js/JSDatabaseSyncCustom.cpp:
  7293. (WebCore::JSDatabaseSync::changeVersion):
  7294. (WebCore::createTransaction):
  7295. * bindings/js/JSSQLTransactionSyncCustom.cpp:
  7296. (WebCore::JSSQLTransactionSync::executeSql):
  7297. 2010-05-10 Dean Jackson <dino@apple.com>
  7298. Reviewed by Simon Fraser.
  7299. https://bugs.webkit.org/show_bug.cgi?id=36566
  7300. The animation-fill-mode property was missing from
  7301. a few places where the animation shorthand is set up.
  7302. Test: animations/animation-shorthand-removed.html
  7303. * css/CSSMutableStyleDeclaration.cpp:
  7304. (WebCore::CSSMutableStyleDeclaration::getPropertyValue): Make sure
  7305. animation-fill-mode is included in the animation shorthand
  7306. * css/CSSPropertyLonghand.cpp:
  7307. (WebCore::initShorthandMap):
  7308. 2010-05-10 Sam Weinig <sam@webkit.org>
  7309. Reviewed by Darin Adler.
  7310. Fix for https://bugs.webkit.org/show_bug.cgi?id=38583
  7311. <rdar://problem/7948784> Crash in Element::normalizeAttributes.
  7312. Test: fast/dom/Element/normalize-crash.html
  7313. * dom/Element.cpp:
  7314. (WebCore::Element::normalizeAttributes): Copy attributes to a vector
  7315. before iterating.
  7316. * dom/NamedAttrMap.cpp:
  7317. (WebCore::NamedNodeMap::copyAttributesToVector): Added.
  7318. * dom/NamedAttrMap.h:
  7319. 2010-05-10 Jian Li <jianli@chromium.org>
  7320. Reviewed by Adam Barth.
  7321. [V8] Fix V8 code generator script to generate the correct code for
  7322. converting ScriptString.
  7323. https://bugs.webkit.org/show_bug.cgi?id=38873
  7324. Updated the bindings test result. Note that the result is also updated
  7325. to reflect other script generator changes not introduced by this patch.
  7326. * bindings/scripts/CodeGeneratorV8.pm:
  7327. * bindings/scripts/test/JS/JSTestCallback.cpp:
  7328. (WebCore::JSTestCallback::JSTestCallback):
  7329. (WebCore::JSTestCallback::~JSTestCallback):
  7330. * bindings/scripts/test/JS/JSTestCallback.h:
  7331. * bindings/scripts/test/V8/V8TestObj.cpp:
  7332. (WebCore::TestObjInternal::scriptStringAttrAttrGetter):
  7333. 2010-05-10 Mark Rowe <mrowe@apple.com>
  7334. Fix the 32-bit WebKit2 build.
  7335. * WebCore.base.exp:
  7336. 2010-05-07 Jon Honeycutt <jhoneycutt@apple.com>
  7337. Crash closing window containing Flash plug-in
  7338. https://bugs.webkit.org/show_bug.cgi?id=38797
  7339. <rdar://problem/7935266>
  7340. Reviewed by Eric Seidel.
  7341. Test: plugins/geturlnotify-during-document-teardown.html
  7342. * plugins/PluginView.cpp:
  7343. (WebCore::PluginView::load):
  7344. Null check the DocumentLoader; it's possible for this to be null while
  7345. the Document is being torn down and before the plug-in is destroyed.
  7346. 2010-05-10 Alexey Proskuryakov <ap@apple.com>
  7347. Reviewed by Darin Adler.
  7348. Based on a patch by Eric Seidel.
  7349. https://bugs.webkit.org/show_bug.cgi?id=28697
  7350. <rdar://problem/7946578> WebKit crash on WebCore::Node::nodeIndex()
  7351. It's not OK to call ContainerNode::willRemoveChild() in a loop, because Range code assumes
  7352. that it can adjust start and end position to any node except for the one being removed -
  7353. so these notifications cannot be batched.
  7354. Test: fast/dom/Range/remove-all-children-crash.html
  7355. * dom/ContainerNode.cpp:
  7356. (WebCore::willRemoveChild): Removed unused ExceptionCode.
  7357. (WebCore::willRemoveChildren): New function, used in removeChildren() case.
  7358. (WebCore::ContainerNode::removeChild): ExceptionCode return was always 0, don't bother with it.
  7359. (WebCore::ContainerNode::removeChildren): Call willRemoveChildrenFromNode.
  7360. (WebCore::dispatchChildRemovalEvents): Moved some logic out into willRemoveChildrenFromNode
  7361. and willRemoveChild.
  7362. * dom/Document.cpp:
  7363. (WebCore::Document::nodeChildrenWillBeRemoved): New function, used in removeChildren() case.
  7364. * dom/Document.h:
  7365. (WebCore::Document::nodeChildrenWillBeRemoved): New function, used in removeChildren() case.
  7366. * dom/Range.h:
  7367. * dom/Range.cpp:
  7368. (WebCore::boundaryNodeChildrenWillBeRemoved): New function, used in removeChildren() case.
  7369. (WebCore::Range::nodeChildrenWillBeRemoved): Ditto.
  7370. 2010-05-10 Dumitru Daniliuc <dumi@chromium.org>
  7371. Reviewed by Adam Barth.
  7372. Implement the V8 bindings for the sync DB API.
  7373. https://bugs.webkit.org.show_bug.cgi?id=34994
  7374. * bindings/v8/custom/V8DatabaseSyncCustom.cpp:
  7375. (WebCore::V8DatabaseSync::changeVersionCallback):
  7376. (WebCore::createTransaction):
  7377. * bindings/v8/custom/V8SQLTransactionSyncCustom.cpp:
  7378. (WebCore::V8SQLTransactionSync::executeSqlCallback):
  7379. * bindings/v8/custom/V8WorkerContextCustom.cpp:
  7380. (WebCore::V8WorkerContextCustom::openDatabaseSyncCallback):
  7381. 2010-05-10 Dumitru Daniliuc <dumi@chromium.org>
  7382. Reviewed by Adam Barth.
  7383. Clean up and fix the existing V8 DB bindings.
  7384. https://bugs.webkit.org/show_bug.cgi?id=34994
  7385. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  7386. (WebCore::V8DOMWindow::openDatabaseCallback):
  7387. * bindings/v8/custom/V8DatabaseCustom.cpp:
  7388. (WebCore::V8Database::changeVersionCallback):
  7389. (WebCore::createTransaction):
  7390. * bindings/v8/custom/V8SQLTransactionCustom.cpp:
  7391. (WebCore::V8SQLTransaction::executeSqlCallback):
  7392. 2010-05-10 Kevin Ollivier <kevino@theolliviers.com>
  7393. [wx] Build fix for wx 2.8 after complex text changes.
  7394. * platform/graphics/wx/FontPlatformDataWxMac.mm:
  7395. (WebCore::FontPlatformData::nsFont):
  7396. * platform/graphics/wx/SimpleFontDataWx.cpp:
  7397. (WebCore::SimpleFontData::platformWidthForGlyph):
  7398. 2010-05-10 John Gregg <johnnyg@google.com>
  7399. [chromium] Try to fix the chromium build after r59085 by
  7400. including MathExtras.h before using isnan().
  7401. https://bugs.webkit.org/show_bug.cgi?id=38860
  7402. * html/canvas/WebGLIntegralTypedArrayBase.h:
  7403. 2010-05-10 Kevin Ollivier <kevino@theolliviers.com>
  7404. [wx] Build fix for wx trunk after complex text changes.
  7405. * platform/graphics/wx/FontPlatformDataWx.cpp:
  7406. (WebCore::FontPlatformData::FontPlatformData):
  7407. 2010-05-10 Tony Gentilcore <tonyg@chromium.org>
  7408. Reviewed by Adam Barth.
  7409. Provide mechanism to cache metadata for a resource
  7410. https://bugs.webkit.org/show_bug.cgi?id=37874
  7411. No new tests because no new functionality.
  7412. * WebCore.gypi:
  7413. * loader/CachedMetadata.h: Added.
  7414. (WebCore::CachedMetadata::create):
  7415. (WebCore::CachedMetadata::deserialize):
  7416. (WebCore::CachedMetadata::serialize):
  7417. (WebCore::CachedMetadata::~CachedMetadata):
  7418. (WebCore::CachedMetadata::dataTypeID):
  7419. (WebCore::CachedMetadata::data):
  7420. (WebCore::CachedMetadata::size):
  7421. (WebCore::CachedMetadata::readUnsigned):
  7422. (WebCore::CachedMetadata::appendUnsigned):
  7423. (WebCore::CachedMetadata::CachedMetadata):
  7424. * loader/CachedResource.cpp:
  7425. (WebCore::CachedResource::setSerializedCachedMetadata):
  7426. (WebCore::CachedResource::setCachedMetadata):
  7427. (WebCore::CachedResource::cachedMetadata):
  7428. * loader/CachedResource.h:
  7429. * loader/ResourceLoader.h:
  7430. (WebCore::ResourceLoader::didReceiveCachedMetadata):
  7431. * loader/SubresourceLoader.cpp:
  7432. (WebCore::SubresourceLoader::didReceiveCachedMetadata):
  7433. * loader/SubresourceLoader.h:
  7434. * loader/SubresourceLoaderClient.h:
  7435. (WebCore::SubresourceLoaderClient::didReceiveCachedMetadata):
  7436. * loader/loader.cpp:
  7437. (WebCore::Loader::Host::didReceiveCachedMetadata):
  7438. * loader/loader.h:
  7439. * platform/network/ResourceHandle.cpp:
  7440. (WebCore::ResourceHandle::cacheMetadata):
  7441. * platform/network/ResourceHandle.h:
  7442. * platform/network/ResourceHandleClient.h:
  7443. (WebCore::ResourceHandleClient::didReceiveCachedMetadata):
  7444. 2010-05-09 Kenneth Russell <kbr@google.com>
  7445. Reviewed by Dimitri Glazkov.
  7446. Refactor WebGLArray types to share more code
  7447. https://bugs.webkit.org/show_bug.cgi?id=37712
  7448. Refactored WebGLArray types for maximal code sharing. Added
  7449. WebGLTypedArrayBase and WebGLIntegralTypedArrayBase template
  7450. superclasses. Changed overridden virtuals to have minimal
  7451. visibility (private instead of public). Fixed const correctness of
  7452. a few methods. There are no changes to the public APIs of the
  7453. WebGLArray classes; the JavaScript bindings are unchanged.
  7454. No new tests; existing tests cover this functionality. Ran all
  7455. WebGL layout tests in Safari and Chromium on Mac OS X.
  7456. * WebCore.gypi:
  7457. * WebCore.xcodeproj/project.pbxproj:
  7458. * html/canvas/WebGLArray.h:
  7459. (WebCore::WebGLArray::buffer):
  7460. (WebCore::WebGLArray::baseAddress):
  7461. (WebCore::WebGLArray::byteOffset):
  7462. * html/canvas/WebGLByteArray.cpp:
  7463. (WebCore::WebGLByteArray::create):
  7464. (WebCore::WebGLByteArray::WebGLByteArray):
  7465. (WebCore::WebGLByteArray::slice):
  7466. * html/canvas/WebGLByteArray.h:
  7467. (WebCore::WebGLByteArray::isByteArray):
  7468. * html/canvas/WebGLFloatArray.cpp:
  7469. (WebCore::WebGLFloatArray::create):
  7470. (WebCore::WebGLFloatArray::WebGLFloatArray):
  7471. (WebCore::WebGLFloatArray::slice):
  7472. * html/canvas/WebGLFloatArray.h:
  7473. (WebCore::WebGLFloatArray::set):
  7474. (WebCore::WebGLFloatArray::item):
  7475. (WebCore::WebGLFloatArray::isFloatArray):
  7476. * html/canvas/WebGLIntArray.cpp:
  7477. (WebCore::WebGLIntArray::create):
  7478. (WebCore::WebGLIntArray::WebGLIntArray):
  7479. (WebCore::WebGLIntArray::slice):
  7480. * html/canvas/WebGLIntArray.h:
  7481. (WebCore::WebGLIntArray::isIntArray):
  7482. * html/canvas/WebGLIntegralTypedArrayBase.h: Added.
  7483. (WebCore::WebGLIntegralTypedArrayBase::set):
  7484. (WebCore::WebGLIntegralTypedArrayBase::item):
  7485. (WebCore::WebGLIntegralTypedArrayBase::WebGLIntegralTypedArrayBase):
  7486. * html/canvas/WebGLShortArray.cpp:
  7487. (WebCore::WebGLShortArray::create):
  7488. (WebCore::WebGLShortArray::WebGLShortArray):
  7489. (WebCore::WebGLShortArray::slice):
  7490. * html/canvas/WebGLShortArray.h:
  7491. (WebCore::WebGLShortArray::isShortArray):
  7492. * html/canvas/WebGLTypedArrayBase.h: Added.
  7493. (WebCore::WebGLTypedArrayBase::data):
  7494. (WebCore::WebGLTypedArrayBase::set):
  7495. (WebCore::WebGLTypedArrayBase::length):
  7496. (WebCore::WebGLTypedArrayBase::WebGLTypedArrayBase):
  7497. (WebCore::WebGLTypedArrayBase::create):
  7498. (WebCore::WebGLTypedArrayBase::sliceImpl):
  7499. (WebCore::WebGLTypedArrayBase::byteLength):
  7500. * html/canvas/WebGLUnsignedByteArray.cpp:
  7501. (WebCore::WebGLUnsignedByteArray::create):
  7502. (WebCore::WebGLUnsignedByteArray::WebGLUnsignedByteArray):
  7503. (WebCore::WebGLUnsignedByteArray::slice):
  7504. * html/canvas/WebGLUnsignedByteArray.h:
  7505. (WebCore::WebGLUnsignedByteArray::isUnsignedByteArray):
  7506. * html/canvas/WebGLUnsignedIntArray.cpp:
  7507. (WebCore::WebGLUnsignedIntArray::create):
  7508. (WebCore::WebGLUnsignedIntArray::WebGLUnsignedIntArray):
  7509. (WebCore::WebGLUnsignedIntArray::slice):
  7510. * html/canvas/WebGLUnsignedIntArray.h:
  7511. (WebCore::WebGLUnsignedIntArray::isUnsignedIntArray):
  7512. * html/canvas/WebGLUnsignedShortArray.cpp:
  7513. (WebCore::WebGLUnsignedShortArray::create):
  7514. (WebCore::WebGLUnsignedShortArray::WebGLUnsignedShortArray):
  7515. (WebCore::WebGLUnsignedShortArray::slice):
  7516. * html/canvas/WebGLUnsignedShortArray.h:
  7517. (WebCore::WebGLUnsignedShortArray::isUnsignedShortArray):
  7518. 2010-05-10 Kenneth Russell <kbr@google.com>
  7519. Reviewed by Dimitri Glazkov.
  7520. Refactor WebGLArray types to share more code
  7521. https://bugs.webkit.org/show_bug.cgi?id=37712
  7522. Refactored WebGLArray types for maximal code sharing. Added
  7523. WebGLTypedArrayBase and WebGLIntegralTypedArrayBase template
  7524. superclasses. Changed overridden virtuals to have minimal
  7525. visibility (private instead of public). Fixed const correctness of
  7526. a few methods. There are no changes to the public APIs of the
  7527. WebGLArray classes; the JavaScript bindings are unchanged.
  7528. No new tests; existing tests cover this functionality. Ran all
  7529. WebGL layout tests in Safari and Chromium on Mac OS X.
  7530. * WebCore.gypi:
  7531. * WebCore.xcodeproj/project.pbxproj:
  7532. * html/canvas/WebGLArray.h:
  7533. (WebCore::WebGLArray::buffer):
  7534. (WebCore::WebGLArray::baseAddress):
  7535. (WebCore::WebGLArray::byteOffset):
  7536. * html/canvas/WebGLByteArray.cpp:
  7537. (WebCore::WebGLByteArray::create):
  7538. (WebCore::WebGLByteArray::WebGLByteArray):
  7539. (WebCore::WebGLByteArray::slice):
  7540. * html/canvas/WebGLByteArray.h:
  7541. (WebCore::WebGLByteArray::isByteArray):
  7542. * html/canvas/WebGLFloatArray.cpp:
  7543. (WebCore::WebGLFloatArray::create):
  7544. (WebCore::WebGLFloatArray::WebGLFloatArray):
  7545. (WebCore::WebGLFloatArray::slice):
  7546. * html/canvas/WebGLFloatArray.h:
  7547. (WebCore::WebGLFloatArray::set):
  7548. (WebCore::WebGLFloatArray::item):
  7549. (WebCore::WebGLFloatArray::isFloatArray):
  7550. * html/canvas/WebGLIntArray.cpp:
  7551. (WebCore::WebGLIntArray::create):
  7552. (WebCore::WebGLIntArray::WebGLIntArray):
  7553. (WebCore::WebGLIntArray::slice):
  7554. * html/canvas/WebGLIntArray.h:
  7555. (WebCore::WebGLIntArray::isIntArray):
  7556. * html/canvas/WebGLIntegralTypedArrayBase.h: Added.
  7557. (WebCore::WebGLIntegralTypedArrayBase::set):
  7558. (WebCore::WebGLIntegralTypedArrayBase::item):
  7559. (WebCore::WebGLIntegralTypedArrayBase::WebGLIntegralTypedArrayBase):
  7560. * html/canvas/WebGLShortArray.cpp:
  7561. (WebCore::WebGLShortArray::create):
  7562. (WebCore::WebGLShortArray::WebGLShortArray):
  7563. (WebCore::WebGLShortArray::slice):
  7564. * html/canvas/WebGLShortArray.h:
  7565. (WebCore::WebGLShortArray::isShortArray):
  7566. * html/canvas/WebGLTypedArrayBase.h: Added.
  7567. (WebCore::WebGLTypedArrayBase::data):
  7568. (WebCore::WebGLTypedArrayBase::set):
  7569. (WebCore::WebGLTypedArrayBase::length):
  7570. (WebCore::WebGLTypedArrayBase::WebGLTypedArrayBase):
  7571. (WebCore::WebGLTypedArrayBase::create):
  7572. (WebCore::WebGLTypedArrayBase::sliceImpl):
  7573. (WebCore::WebGLTypedArrayBase::byteLength):
  7574. * html/canvas/WebGLUnsignedByteArray.cpp:
  7575. (WebCore::WebGLUnsignedByteArray::create):
  7576. (WebCore::WebGLUnsignedByteArray::WebGLUnsignedByteArray):
  7577. (WebCore::WebGLUnsignedByteArray::slice):
  7578. * html/canvas/WebGLUnsignedByteArray.h:
  7579. (WebCore::WebGLUnsignedByteArray::isUnsignedByteArray):
  7580. * html/canvas/WebGLUnsignedIntArray.cpp:
  7581. (WebCore::WebGLUnsignedIntArray::create):
  7582. (WebCore::WebGLUnsignedIntArray::WebGLUnsignedIntArray):
  7583. (WebCore::WebGLUnsignedIntArray::slice):
  7584. * html/canvas/WebGLUnsignedIntArray.h:
  7585. (WebCore::WebGLUnsignedIntArray::isUnsignedIntArray):
  7586. * html/canvas/WebGLUnsignedShortArray.cpp:
  7587. (WebCore::WebGLUnsignedShortArray::create):
  7588. (WebCore::WebGLUnsignedShortArray::WebGLUnsignedShortArray):
  7589. (WebCore::WebGLUnsignedShortArray::slice):
  7590. * html/canvas/WebGLUnsignedShortArray.h:
  7591. (WebCore::WebGLUnsignedShortArray::isUnsignedShortArray):
  7592. 2010-05-10 Brent Fulgham <bfulgham@webkit.org>
  7593. Build fix, not reviewed.
  7594. Correct post-build copy command for WinCairo port to make sure
  7595. cairo headers are available for WebKit.dll build.
  7596. * WebCore.vcproj/WebCore.vcproj:
  7597. 2010-05-10 Dirk Schulze <krit@webkit.org>
  7598. Reviewed by Nikolas Zimmermann.
  7599. Further optimization for SVG's repaintRect calculation
  7600. https://bugs.webkit.org/show_bug.cgi?id=38820
  7601. This is a further optimization to get smaller repaintRects on SVG objects
  7602. in combination with masker or clipper resources.
  7603. Masker takes the unite of all stroke boundaries of it's childs.
  7604. Both, clipper and masker, store this union to avoid multiple calls of the childs
  7605. and the unite calculations now.
  7606. The unite rect can be transformed to any targets objectBoundingBox, if the content
  7607. unit of the resource is set to objectBoundingBoxMode.
  7608. This speeds up the use of resources with multiple target objects.
  7609. No behavior changes, the smaller repaintRects cause updates for DRT results.
  7610. * rendering/RenderSVGResource.h:
  7611. * rendering/RenderSVGResourceClipper.cpp:
  7612. (WebCore::RenderSVGResourceClipper::invalidateClients):
  7613. (WebCore::RenderSVGResourceClipper::calculateClipContentRepaintRect):
  7614. (WebCore::RenderSVGResourceClipper::resourceBoundingBox):
  7615. * rendering/RenderSVGResourceClipper.h:
  7616. * rendering/RenderSVGResourceFilter.cpp:
  7617. (WebCore::RenderSVGResourceFilter::resourceBoundingBox):
  7618. * rendering/RenderSVGResourceFilter.h:
  7619. * rendering/RenderSVGResourceGradient.h:
  7620. (WebCore::RenderSVGResourceGradient::resourceBoundingBox):
  7621. * rendering/RenderSVGResourceMarker.h:
  7622. (WebCore::RenderSVGResourceMarker::resourceBoundingBox):
  7623. * rendering/RenderSVGResourceMasker.cpp:
  7624. (WebCore::RenderSVGResourceMasker::invalidateClients):
  7625. (WebCore::RenderSVGResourceMasker::createMaskImage):
  7626. (WebCore::RenderSVGResourceMasker::calculateMaskContentRepaintRect):
  7627. (WebCore::RenderSVGResourceMasker::resourceBoundingBox):
  7628. * rendering/RenderSVGResourceMasker.h:
  7629. * rendering/RenderSVGResourcePattern.h:
  7630. (WebCore::RenderSVGResourcePattern::resourceBoundingBox):
  7631. * rendering/RenderSVGResourceSolidColor.h:
  7632. (WebCore::RenderSVGResourceSolidColor::resourceBoundingBox):
  7633. 2010-05-11 Ilya Tikhonovsky <loislo@chromium.org>
  7634. Reviewed by Pavel Feldman.
  7635. WebInspector: Cosmetic changes.
  7636. 1) Inner Function Call event of Timer Fire should be merged into parent even if it is not the only child.
  7637. 2) Standard tooltips for resource links are clashing with Popover.
  7638. 3) Recalculate Style caller info are duplicating in Details Popover (Caller and Details rows).
  7639. https://bugs.webkit.org/show_bug.cgi?id=38732
  7640. * inspector/front-end/TimelinePanel.js:
  7641. (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
  7642. (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
  7643. (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
  7644. * inspector/front-end/inspector.js:
  7645. (WebInspector.linkifyURLAsNode):
  7646. 2010-05-10 Csaba Osztrogonác <ossy@webkit.org>
  7647. Rubber-stamped by Simon Hausmann.
  7648. [Qt] Roll-out r59020 and r59021, because the Qt part of these changes
  7649. haven't been landed in Qt trunk yet. Should be rolled-in again after the merge.
  7650. https://bugs.webkit.org/show_bug.cgi?id=32967
  7651. * platform/network/qt/ResourceRequestQt.cpp:
  7652. (WebCore::ResourceRequest::toNetworkRequest):
  7653. 2010-05-10 Markus Goetz <Markus.Goetz@nokia.com>
  7654. Reviewed by Simon Hausmann.
  7655. Qt after 4.6.3 has its integrated DNS cache. Therefore some
  7656. code is not necessary anymore.
  7657. https://bugs.webkit.org/show_bug.cgi?id=38834
  7658. * platform/network/qt/DnsPrefetchHelper.h:
  7659. (WebCore::DnsPrefetchHelper::lookup):
  7660. (WebCore::DnsPrefetchHelper::lookedUp):
  7661. 2010-05-10 Chris Jerdonek <cjerdonek@webkit.org>
  7662. Reviewed by Darin Adler.
  7663. Asserted that Node::setDocument() is not being used to change
  7664. the document of a node.
  7665. https://bugs.webkit.org/show_bug.cgi?id=38821
  7666. * dom/Node.cpp:
  7667. (WebCore::Node::setDocument):
  7668. Added an ASSERT at the beginning of the function.
  7669. * dom/Node.h:
  7670. Documented that Node::setDocument() should not be used to change the
  7671. document of a node until after the node has been removed from its
  7672. prior document.
  7673. 2010-05-10 Dirk Schulze <krit@webkit.org>
  7674. Reviewed by Darin Adler.
  7675. SVG FilterEffects need more detailed DRT information
  7676. https://bugs.webkit.org/show_bug.cgi?id=38683
  7677. All SVG Filter effects get dumped now. The structure of the DRT output
  7678. changed. The last effect is shown first, followed by the previous effects.
  7679. No changed behaior, so no new test added.
  7680. * platform/graphics/filters/FEBlend.cpp:
  7681. (WebCore::operator<<):
  7682. (WebCore::FEBlend::externalRepresentation):
  7683. * platform/graphics/filters/FEBlend.h:
  7684. * platform/graphics/filters/FEColorMatrix.cpp:
  7685. (WebCore::operator<<):
  7686. (WebCore::FEColorMatrix::externalRepresentation):
  7687. * platform/graphics/filters/FEColorMatrix.h:
  7688. * platform/graphics/filters/FEComponentTransfer.cpp:
  7689. (WebCore::operator<<):
  7690. (WebCore::FEComponentTransfer::externalRepresentation):
  7691. * platform/graphics/filters/FEComponentTransfer.h:
  7692. * platform/graphics/filters/FEComposite.cpp:
  7693. (WebCore::operator<<):
  7694. (WebCore::FEComposite::externalRepresentation):
  7695. * platform/graphics/filters/FEComposite.h:
  7696. (WebCore::):
  7697. (WebCore::FEComposite::uniteChildEffectSubregions):
  7698. * platform/graphics/filters/FEGaussianBlur.cpp:
  7699. (WebCore::FEGaussianBlur::externalRepresentation):
  7700. * platform/graphics/filters/FEGaussianBlur.h:
  7701. (WebCore::FEGaussianBlur::uniteChildEffectSubregions):
  7702. * platform/graphics/filters/FilterEffect.cpp:
  7703. (WebCore::FilterEffect::externalRepresentation):
  7704. * platform/graphics/filters/FilterEffect.h:
  7705. * platform/graphics/filters/SourceAlpha.cpp:
  7706. (WebCore::SourceAlpha::externalRepresentation):
  7707. * platform/graphics/filters/SourceAlpha.h:
  7708. * platform/graphics/filters/SourceGraphic.cpp:
  7709. (WebCore::SourceGraphic::externalRepresentation):
  7710. * platform/graphics/filters/SourceGraphic.h:
  7711. * rendering/RenderTreeAsText.cpp:
  7712. (WebCore::writeIndent):
  7713. * rendering/RenderTreeAsText.h:
  7714. * rendering/SVGRenderTreeAsText.cpp:
  7715. (WebCore::writeSVGResourceContainer):
  7716. * svg/graphics/filters/SVGFEConvolveMatrix.cpp:
  7717. (WebCore::operator<<):
  7718. (WebCore::FEConvolveMatrix::externalRepresentation):
  7719. * svg/graphics/filters/SVGFEConvolveMatrix.h:
  7720. * svg/graphics/filters/SVGFEDiffuseLighting.cpp:
  7721. (WebCore::FEDiffuseLighting::externalRepresentation):
  7722. * svg/graphics/filters/SVGFEDiffuseLighting.h:
  7723. * svg/graphics/filters/SVGFEDisplacementMap.cpp:
  7724. (WebCore::operator<<):
  7725. (WebCore::FEDisplacementMap::externalRepresentation):
  7726. * svg/graphics/filters/SVGFEDisplacementMap.h:
  7727. * svg/graphics/filters/SVGFEFlood.cpp:
  7728. (WebCore::FEFlood::externalRepresentation):
  7729. * svg/graphics/filters/SVGFEFlood.h:
  7730. * svg/graphics/filters/SVGFEImage.cpp:
  7731. (WebCore::FEImage::externalRepresentation):
  7732. * svg/graphics/filters/SVGFEImage.h:
  7733. * svg/graphics/filters/SVGFEMerge.cpp:
  7734. (WebCore::FEMerge::externalRepresentation):
  7735. * svg/graphics/filters/SVGFEMerge.h:
  7736. * svg/graphics/filters/SVGFEMorphology.cpp:
  7737. (WebCore::operator<<):
  7738. (WebCore::FEMorphology::externalRepresentation):
  7739. * svg/graphics/filters/SVGFEMorphology.h:
  7740. * svg/graphics/filters/SVGFEOffset.cpp:
  7741. (WebCore::FEOffset::externalRepresentation):
  7742. * svg/graphics/filters/SVGFEOffset.h:
  7743. * svg/graphics/filters/SVGFESpecularLighting.cpp:
  7744. (WebCore::FESpecularLighting::externalRepresentation):
  7745. * svg/graphics/filters/SVGFESpecularLighting.h:
  7746. * svg/graphics/filters/SVGFETile.cpp:
  7747. (WebCore::FETile::externalRepresentation):
  7748. * svg/graphics/filters/SVGFETile.h:
  7749. * svg/graphics/filters/SVGFETurbulence.cpp:
  7750. (WebCore::operator<<):
  7751. (WebCore::FETurbulence::externalRepresentation):
  7752. * svg/graphics/filters/SVGFETurbulence.h:
  7753. 2010-05-10 Jeremy Orlow <jorlow@chromium.org>
  7754. Reviewed by Nate Chapin.
  7755. Change IndexedDB to use events instead of callbacks
  7756. https://bugs.webkit.org/show_bug.cgi?id=38594
  7757. Switch IndexedDB over to an event based model to match what
  7758. Mozilla (and probably MS?) are doing. This also gets rid of
  7759. a lot of template mess at the expense of a little extra boiler
  7760. plate code (for each type that IDBResult.result could be).
  7761. This change also introduces JSC bindings that match the level of
  7762. functionality the V8 bindings have.
  7763. Still not testable, but that shoudl change shortly.
  7764. * DerivedSources.cpp:
  7765. * DerivedSources.make:
  7766. * GNUmakefile.am:
  7767. * WebCore.gypi:
  7768. * WebCore.pri:
  7769. * WebCore.pro:
  7770. * WebCore.vcproj/WebCore.vcproj:
  7771. * WebCore.xcodeproj/project.pbxproj:
  7772. * bindings/js/JSEventCustom.cpp:
  7773. * bindings/js/JSIDBRequestCustom.cpp: Added.
  7774. (WebCore::JSIDBRequest::result):
  7775. * bindings/v8/V8DOMWrapper.cpp:
  7776. (WebCore::V8DOMWrapper::convertEventTargetToV8Object):
  7777. * bindings/v8/custom/V8CustomIDBCallbacks.h: Removed.
  7778. * bindings/v8/custom/V8IDBRequestCustom.cpp: Added.
  7779. (WebCore::V8IDBRequest::resultAccessorGetter):
  7780. * bindings/v8/custom/V8IndexedDatabaseRequestCustom.cpp: Removed.
  7781. * dom/EventTarget.cpp:
  7782. (WebCore::EventTarget::toIDBRequest):
  7783. * dom/EventTarget.h:
  7784. * storage/IDBCallbacks.h:
  7785. * storage/IDBDatabaseRequest.h:
  7786. (WebCore::IDBDatabaseRequest::createObjectStore):
  7787. * storage/IDBRequest.cpp: Added.
  7788. (WebCore::IDBRequest::IDBRequest):
  7789. (WebCore::IDBRequest::~IDBRequest):
  7790. (WebCore::IDBRequest::idbDatabaseResult):
  7791. (WebCore::IDBRequest::serializedScriptValueResult):
  7792. (WebCore::IDBRequest::onError):
  7793. (WebCore::IDBRequest::onSuccess):
  7794. (WebCore::IDBRequest::abort):
  7795. (WebCore::IDBRequest::scriptExecutionContext):
  7796. (WebCore::IDBRequest::stop):
  7797. (WebCore::IDBRequest::suspend):
  7798. (WebCore::IDBRequest::resume):
  7799. (WebCore::IDBRequest::eventTargetData):
  7800. (WebCore::IDBRequest::ensureEventTargetData):
  7801. (WebCore::IDBRequest::timerFired):
  7802. (WebCore::IDBRequest::onEventCommon):
  7803. * storage/IDBRequest.h: Added.
  7804. (WebCore::IDBRequest::create):
  7805. (WebCore::IDBRequest::):
  7806. (WebCore::IDBRequest::resultType):
  7807. (WebCore::IDBRequest::readyState):
  7808. (WebCore::IDBRequest::error):
  7809. (WebCore::IDBRequest::toIDBRequest):
  7810. (WebCore::IDBRequest::refEventTarget):
  7811. (WebCore::IDBRequest::derefEventTarget):
  7812. * storage/IDBRequest.idl: Added.
  7813. * storage/IndexedDatabase.h:
  7814. * storage/IndexedDatabaseImpl.cpp:
  7815. (WebCore::IndexedDatabaseImpl::open):
  7816. * storage/IndexedDatabaseImpl.h:
  7817. * storage/IndexedDatabaseRequest.cpp:
  7818. (WebCore::IndexedDatabaseRequest::open):
  7819. * storage/IndexedDatabaseRequest.h:
  7820. * storage/IndexedDatabaseRequest.idl:
  7821. 2010-05-10 Ilya Tikhonovsky <loislo@chromium.org>
  7822. Not reviewed: rollback the commit r59062
  7823. * inspector/front-end/TimelinePanel.js:
  7824. (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
  7825. (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
  7826. (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
  7827. * inspector/front-end/inspector.js:
  7828. (WebInspector.linkifyURLAsNode):
  7829. 2010-05-10 Ilya Tikhonovsky <loislo@chromium.org>
  7830. Reviewed by Pavel Feldman.
  7831. WebInspector: Cosmetic changes.
  7832. 1) Inner Function Call event of Timer Fire should be merged into parent even if it is not the only child.
  7833. 2) Standard tooltips for resource links are clashing with Popover.
  7834. 3) Recalculate Style caller info are duplicating in Details Popover (Caller and Details rows).
  7835. https://bugs.webkit.org/show_bug.cgi?id=38732
  7836. * inspector/front-end/TimelinePanel.js:
  7837. (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
  7838. (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
  7839. (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
  7840. * inspector/front-end/inspector.js:
  7841. (WebInspector.linkifyURLAsNode):
  7842. 2010-05-08 Ilya Tikhonovsky <loislo@chromium.org>
  7843. Reviewed by Pavel Feldman.
  7844. WebInspector: If some record is not in visible area then it's expand element also is not
  7845. visible even if it has children in visible area.
  7846. https://bugs.webkit.org/show_bug.cgi?id=38643
  7847. * inspector/front-end/TimelinePanel.js:
  7848. (WebInspector.TimelinePanel):
  7849. (WebInspector.TimelinePanel.prototype._refreshRecords):
  7850. 2010-05-07 Sam Weinig <sam@webkit.org>
  7851. Reviewed by Darin Adler.
  7852. Fix for https://bugs.webkit.org/show_bug.cgi?id=38557
  7853. r58526 introduced a ~30% regression on Dromaeo JS lib
  7854. This fix does two things.
  7855. - Don't use QualifiedName as the key to a HashMap, use a
  7856. RefPtr<QualifiedNameImpl> instead. We should remove the HashTraits for
  7857. QualifiedName and that will happen in a follow up patch.
  7858. - Only mark cached NodeLists on Documents instead of all Nodes. This is
  7859. okay since the marking of NodeLists is an optimization to keep NodeList
  7860. wrappers alive and is not mandated by any spec.
  7861. * bindings/js/JSDocumentCustom.cpp:
  7862. (WebCore::JSDocument::markChildren):
  7863. * bindings/js/JSNodeCustom.cpp:
  7864. (WebCore::JSNode::markChildren):
  7865. * dom/Node.cpp:
  7866. (WebCore::Node::removeCachedTagNodeList):
  7867. (WebCore::Node::getElementsByTagNameNS):
  7868. * dom/NodeRareData.h:
  7869. 2010-05-08 Antonio Gomes <tonikitoo@webkit.org>
  7870. Unreviewed attempt to fix Windows build.
  7871. * page/SpatialNavigation.h:
  7872. (WebCore::fudgeFactor):
  7873. 2010-05-03 Antonio Gomes <tonikitoo@webkit.org>
  7874. Reviewed by Kenneth Christiansen.
  7875. Spatial Navigation: create a getter for the "fudgeFactor"
  7876. https://bugs.webkit.org/show_bug.cgi?id=38488
  7877. A couple of places in the Spatial Navigation code make use of a "fudge factor"
  7878. to improve precision by working around outline focus metrics and such. Patch adds
  7879. a helper method for unify getter operations of this value, instead of having it
  7880. declared locally in the various methods it is used.
  7881. No behaviour change.
  7882. * page/SpatialNavigation.cpp:
  7883. (WebCore::scrollIntoView):
  7884. (WebCore::deflateIfOverlapped):
  7885. * page/SpatialNavigation.h:
  7886. (WebCore::fudgeFactor):
  7887. 2010-05-08 Stuart Morgan <stuartmorgan@chromium.org>
  7888. Reviewed by Darin Adler.
  7889. Change the npapi.h header guards to match the npapi-headers repository
  7890. copy.
  7891. https://bugs.webkit.org/show_bug.cgi?id=38666
  7892. * bridge/npapi.h:
  7893. 2010-05-08 Stuart Morgan <stuartmorgan@chromium.org>
  7894. Reviewed by Darin Fisher.
  7895. Resolve most of the whitespace/comment/order differences in npapi.h
  7896. and npruntime.h relative to the npapi-headers repository versions.
  7897. No changes to the substance of the code.
  7898. https://bugs.webkit.org/show_bug.cgi?id=38666
  7899. * bridge/npapi.h:
  7900. (_NPPrint::):
  7901. (_NPCocoaEvent::):
  7902. * bridge/npruntime.h:
  7903. 2010-05-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  7904. Reviewed by Darin Adler.
  7905. Fix guard around IndexedDatabase
  7906. https://bugs.webkit.org/show_bug.cgi?id=38710
  7907. No new tests, there is no new functionality.
  7908. * page/PageGroup.h:
  7909. 2010-05-08 Luiz Agostini <luiz.agostini@openbossa.org>
  7910. Reviewed by Simon Hausmann.
  7911. [Qt] Platform plugin
  7912. https://bugs.webkit.org/show_bug.cgi?id=38438
  7913. Select popups delegate private API. To provide select popup delegates
  7914. a plugin that implements QWebKitPlatformPlugin must be found
  7915. in QCoreApplication::libraryPaths.
  7916. * WebCore.pro:
  7917. 2010-05-08 Leandro Pereira <leandro@profusion.mobi>
  7918. Reviewed by Gustavo Noronha Silva.
  7919. [EFL] It does not make sense to use RenderThemeEfl::RenderThemeEfl, so
  7920. use RenderThemeEfl (GCC 4.5 seems to be pickier about this).
  7921. http://webkit.org/b/38770
  7922. * platform/efl/RenderThemeEfl.cpp:
  7923. (WebCore::renderThemeEflColorClassSelectionActive):
  7924. (WebCore::renderThemeEflColorClassSelectionInactive):
  7925. (WebCore::renderThemeEflColorClassFocusRing):
  7926. (WebCore::renderThemeEflColorClassButtonText):
  7927. (WebCore::renderThemeEflColorClassComboText):
  7928. (WebCore::renderThemeEflColorClassEntryText):
  7929. (WebCore::renderThemeEflColorClassSearchText):
  7930. (WebCore::RenderThemeEfl::adjustCheckboxStyle):
  7931. (WebCore::RenderThemeEfl::adjustRadioStyle):
  7932. (WebCore::RenderThemeEfl::adjustButtonStyle):
  7933. (WebCore::RenderThemeEfl::adjustMenuListStyle):
  7934. (WebCore::RenderThemeEfl::adjustTextFieldStyle):
  7935. (WebCore::RenderThemeEfl::adjustSearchFieldDecorationStyle):
  7936. (WebCore::RenderThemeEfl::adjustSearchFieldResultsButtonStyle):
  7937. (WebCore::RenderThemeEfl::adjustSearchFieldResultsDecorationStyle):
  7938. (WebCore::RenderThemeEfl::adjustSearchFieldCancelButtonStyle):
  7939. (WebCore::RenderThemeEfl::adjustSearchFieldStyle):
  7940. 2010-05-08 Leandro Pereira <leandro@profusion.mobi>
  7941. Reviewed by Gustavo Noronha Silva.
  7942. ResourceHandleSoup should depend only on GLib, not on GTK+.
  7943. http://webkit.org/b/38763
  7944. * platform/network/soup/ResourceHandleSoup.cpp: Include glib.h
  7945. instead of gtk/gtk.h.
  7946. 2010-05-08 Eric Seidel <eric@webkit.org>
  7947. Unreviewed, rolling out r59023.
  7948. http://trac.webkit.org/changeset/59023
  7949. https://bugs.webkit.org/show_bug.cgi?id=37874
  7950. Caused Chromium Windows build to fail to link.
  7951. * WebCore.gypi:
  7952. * loader/CachedMetadata.h: Removed.
  7953. * loader/CachedResource.cpp:
  7954. * loader/CachedResource.h:
  7955. * loader/ResourceLoader.h:
  7956. * loader/SubresourceLoader.cpp:
  7957. * loader/SubresourceLoader.h:
  7958. * loader/SubresourceLoaderClient.h:
  7959. * loader/loader.cpp:
  7960. * loader/loader.h:
  7961. * platform/network/ResourceHandle.cpp:
  7962. * platform/network/ResourceHandle.h:
  7963. * platform/network/ResourceHandleClient.h:
  7964. 2010-05-08 Ilya Tikhonovsky <loislo@chromium.org>
  7965. Reviewed by Timothy Hatcher.
  7966. WebInspector: Autocompletion in console is not usable because it is not add to the entered text the common prefix of suggestions.
  7967. As example if you entered $0.getE then getElementByClassName will be suggested as gray text.
  7968. If you press tab then getElementByClassName be suggested again and lementByClassName becomes selected as black text with selection background.
  7969. Really after pressing the TAB the next suggestion should be selected (getElementByTagName) and only flexible part of suggestions should be selected.
  7970. In this case it should be TagName because getElementBy is the common part for all getE prefix suggestions.
  7971. https://bugs.webkit.org/show_bug.cgi?id=38753
  7972. * inspector/front-end/TextPrompt.js:
  7973. (WebInspector.TextPrompt.prototype._completionsReady):
  7974. 2010-05-08 Tony Gentilcore <tonyg@chromium.org>
  7975. Reviewed by Darin Fisher.
  7976. Provide mechanism to store cached metadata on a CachedResource.
  7977. https://bugs.webkit.org/show_bug.cgi?id=37874
  7978. No new tests because no new functionality.
  7979. * WebCore.gypi:
  7980. * loader/CachedMetadata.h: Added.
  7981. (WebCore::CachedMetadata::~CachedMetadata):
  7982. (WebCore::CachedMetadata::data):
  7983. (WebCore::CachedMetadata::size):
  7984. (WebCore::CachedMetadata::create):
  7985. (WebCore::CachedMetadata::deserialize):
  7986. (WebCore::CachedMetadata::serialize):
  7987. (WebCore::CachedMetadata::dataTypeID):
  7988. (WebCore::CachedMetadata::readUnsigned):
  7989. (WebCore::CachedMetadata::appendUnsigned):
  7990. (WebCore::CachedMetadata::CachedMetadata):
  7991. * loader/CachedResource.cpp:
  7992. (WebCore::CachedResource::setSerializedCachedMetadata):
  7993. (WebCore::CachedResource::setCachedMetadata):
  7994. (WebCore::CachedResource::cachedMetadata):
  7995. * loader/CachedResource.h:
  7996. * loader/ResourceLoader.h:
  7997. (WebCore::ResourceLoader::didReceiveCachedMetadata):
  7998. * loader/SubresourceLoader.cpp:
  7999. (WebCore::SubresourceLoader::didReceiveCachedMetadata):
  8000. * loader/SubresourceLoader.h:
  8001. * loader/SubresourceLoaderClient.h:
  8002. (WebCore::SubresourceLoaderClient::didReceiveCachedMetadata):
  8003. * loader/loader.cpp:
  8004. (WebCore::Loader::Host::didReceiveCachedMetadata):
  8005. * loader/loader.h:
  8006. * platform/network/ResourceHandle.cpp:
  8007. (WebCore::ResourceHandle::cacheMetadata):
  8008. * platform/network/ResourceHandle.h:
  8009. * platform/network/ResourceHandleClient.h:
  8010. (WebCore::ResourceHandleClient::didReceiveCachedMetadata):
  8011. 2010-05-08 Michael Nordman <michaeln@google.com>
  8012. Reviewed by Dmitry Titov.
  8013. Have WorkerScriptLoader provide access to the ResourceResponse for the loaded script
  8014. through the WorkerScriptLoaderClient interface.
  8015. https://bugs.webkit.org/show_bug.cgi?id=38605
  8016. No new tests. There are no script visible changes.
  8017. * workers/WorkerScriptLoader.cpp: Call the client with the response.
  8018. (WebCore::WorkerScriptLoader::didReceiveResponse):
  8019. * workers/WorkerScriptLoaderClient.h: Define a new method to receive the response.
  8020. (WebCore::WorkerScriptLoaderClient::didReceiveResponse):
  8021. 2010-05-08 Robert Hogan <robert@roberthogan.net>
  8022. Reviewed by Simon Hausmann.
  8023. [Qt] Fix http/tests/xmlhttprequest/cross-origin-no-authorization.html
  8024. and http/tests/xmlhttprequest/cross-origin-authorization.html
  8025. QHttpNetworkRequest adds Authorization and Cookie headers to XHRs
  8026. without knowing if this is valid behaviour or not. In order to allow
  8027. Qt to decide whether Cookie/Authorization headers should be added
  8028. to an XHR QtWebKit needs to use an attribute added to QNetworkRequest.
  8029. These new attributes are: QNetworkRequest::CookieLoadControlAttribute,
  8030. QNetworkRequest::CookieSaveControlAttribute,and
  8031. QNetworkRequest::AuthenticationReuseControlAttribute.
  8032. QtWebKit will set QNetworkRequest::AuthenticationReuseControlAttribute to false
  8033. unless withCredentials is set to true in the XHR.
  8034. QtWebkit will set CookieLoad/SaveControlAttribute to false unless withCredentials
  8035. is set to true in the XHR.
  8036. Qt will pass the values onto QHttpNetworkRequest and this will permit
  8037. the Qt network access processing to decide whether or not to add either
  8038. or both of the Cookie/Authorisation headers, and whether to save cookies
  8039. returned from such requests. By default the attribute
  8040. will always be true so unless QtWebKit sets it to false normal
  8041. header processing is unaffected.
  8042. The Qt part of these changes was merged at: http://gitorious.org/qt/qt/merge_requests/592
  8043. https://bugs.webkit.org/show_bug.cgi?id=32967
  8044. * platform/network/qt/ResourceRequestQt.cpp:
  8045. (WebCore::ResourceRequest::toNetworkRequest):
  8046. 2010-05-08 Ilya Tikhonovsky <loislo@chromium.org>
  8047. Reviewed by Pavel Feldman.
  8048. WebInsector: Record expand UI element should be extracted from TimelineRecordGraphRow as separate class for future reuse.
  8049. https://bugs.webkit.org/show_bug.cgi?id=38726
  8050. * inspector/front-end/TimelinePanel.js:
  8051. (WebInspector.TimelinePanel):
  8052. (WebInspector.TimelinePanel.prototype._refreshRecords):
  8053. (WebInspector.TimelineRecordGraphRow):
  8054. (WebInspector.TimelineRecordGraphRow.prototype.update):
  8055. (WebInspector.TimelineExpandableElement):
  8056. (WebInspector.TimelineExpandableElement.prototype._update):
  8057. (WebInspector.TimelineExpandableElement.prototype._dispose):
  8058. 2010-05-05 Robert Hogan <robert@webkit.org>
  8059. Reviewed by Alexey Proskuryakov.
  8060. [Qt] Fix encoding of status message in Plugin API
  8061. https://bugs.webkit.org/show_bug.cgi?id=35144
  8062. Spotted by Alexey Proskuryakov.
  8063. * plugins/PluginView.cpp:
  8064. (WebCore::PluginView::status):
  8065. 2010-05-08 Dirk Schulze <krit@webkit.org>
  8066. Unreviewed win build fix.
  8067. JS bindings were missing in DerivedSources.cpp
  8068. * DerivedSources.cpp:
  8069. 2010-05-08 Dirk Schulze <krit@webkit.org>
  8070. Uneviewed fix of Win bot
  8071. Added JS bindings to Win build system.
  8072. * WebCore.vcproj/WebCore.vcproj:
  8073. 2010-05-08 Dirk Schulze <krit@webkit.org>
  8074. Unreviewed try to fix Win bot.
  8075. SVGFont's VKern implementation missing
  8076. https://bugs.webkit.org/show_bug.cgi?id=38663
  8077. * bindings/scripts/CodeGeneratorJS.pm:
  8078. 2010-05-08 Dirk Schulze <krit@webkit.org>
  8079. Reviewed by Nikolas Zimmermann.
  8080. SVGFont's VKern implementation missing
  8081. https://bugs.webkit.org/show_bug.cgi?id=38663
  8082. Implementation of vkern, needed by SVGFont. Also added DOM and JS bindings
  8083. for vkern and hkern. Made some clean-up in SVGParserUtilities and SVGFontElement.
  8084. SVGHKernElement and SVGVKernElement share most of the code now.
  8085. Test: svg/text/text-vkern.svg
  8086. * Android.derived.jscbindings.mk:
  8087. * Android.derived.v8bindings.mk:
  8088. * Android.mk:
  8089. * DerivedSources.make:
  8090. * GNUmakefile.am:
  8091. * WebCore.gyp/WebCore.gyp:
  8092. * WebCore.gypi:
  8093. * WebCore.pri:
  8094. * WebCore.pro:
  8095. * WebCore.vcproj/WebCore.vcproj:
  8096. * WebCore.xcodeproj/project.pbxproj:
  8097. * page/DOMWindow.idl:
  8098. * rendering/SVGRootInlineBox.cpp:
  8099. (WebCore::applySVGKerning):
  8100. (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
  8101. * svg/SVGAllInOne.cpp:
  8102. * svg/SVGFontElement.cpp:
  8103. (WebCore::SVGFontElement::invalidateGlyphCache):
  8104. (WebCore::SVGFontElement::ensureGlyphCache):
  8105. (WebCore::matches):
  8106. (WebCore::kerningForPairOfStringsAndGlyphs):
  8107. (WebCore::SVGFontElement::horizontalKerningForPairOfStringsAndGlyphs):
  8108. (WebCore::SVGFontElement::verticalKerningForPairOfStringsAndGlyphs):
  8109. * svg/SVGFontElement.h:
  8110. (WebCore::SVGKerningPair::SVGKerningPair):
  8111. (WebCore::SVGFontElement::rendererIsNeeded):
  8112. * svg/SVGHKernElement.cpp:
  8113. (WebCore::SVGHKernElement::buildHorizontalKerningPair):
  8114. * svg/SVGHKernElement.h:
  8115. * svg/SVGParserUtilities.cpp:
  8116. (WebCore::parseGlyphName):
  8117. (WebCore::parseKerningUnicodeString):
  8118. * svg/SVGParserUtilities.h:
  8119. * svg/SVGVKernElement.cpp: Added.
  8120. (WebCore::SVGVKernElement::SVGVKernElement):
  8121. (WebCore::SVGVKernElement::~SVGVKernElement):
  8122. (WebCore::SVGVKernElement::insertedIntoDocument):
  8123. (WebCore::SVGVKernElement::removedFromDocument):
  8124. (WebCore::SVGVKernElement::buildVerticalKerningPair):
  8125. * svg/SVGVKernElement.h: Added.
  8126. (WebCore::SVGVKernElement::rendererIsNeeded):
  8127. * svg/SVGVKernElement.idl: Added.
  8128. * svg/svgtags.in:
  8129. 2010-05-08 Jer Noble <jer.noble@apple.com>
  8130. Unreviewed, just fixing windows build.
  8131. * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h: Add #if USE(ACCELERATED_COMPOSITING) guards around GraphicsLayer areas of the code. Include GraphicsLayer.h directly.
  8132. * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp: As above.
  8133. * platform/graphics/win/QTMovieVisualContext.cpp: Remove the #include of d3d9types.h.
  8134. 2010-05-08 Eric Seidel <eric@webkit.org>
  8135. Unreviewed, just reverting commit.
  8136. REGRESSION(59000): r59000 contained all sorts of changes it should not have, needs revert.
  8137. https://bugs.webkit.org/show_bug.cgi?id=38798
  8138. Test: fast/js/global-resolve-through-eval.html
  8139. * bindings/js/JSCallbackData.h:
  8140. (WebCore::JSCallbackData::JSCallbackData):
  8141. (WebCore::JSCallbackData::~JSCallbackData):
  8142. (WebCore::DeleteCallbackDataTask::create):
  8143. (WebCore::DeleteCallbackDataTask::performTask):
  8144. (WebCore::DeleteCallbackDataTask::isCleanupTask):
  8145. (WebCore::DeleteCallbackDataTask::DeleteCallbackDataTask):
  8146. * bindings/js/JSCustomVoidCallback.cpp:
  8147. (WebCore::JSCustomVoidCallback::JSCustomVoidCallback):
  8148. (WebCore::JSCustomVoidCallback::~JSCustomVoidCallback):
  8149. * bindings/js/JSCustomVoidCallback.h:
  8150. * bindings/scripts/CodeGeneratorJS.pm:
  8151. * bindings/scripts/test/JS/JSTestInterface.cpp:
  8152. (WebCore::):
  8153. * bindings/scripts/test/JS/JSTestObj.cpp:
  8154. (WebCore::):
  8155. * workers/WorkerThread.cpp:
  8156. (WebCore::WorkerThreadShutdownFinishTask::performTask):
  8157. (WebCore::WorkerThreadShutdownStartTask::performTask):
  8158. 2010-05-07 Zoltan Herczeg <zherczeg@webkit.org>
  8159. Reviewed by Dirk Schulze
  8160. Fixed the inverse function of f(x) = ((x + 0.055) / 1.055) ^ 2.4
  8161. https://bugs.webkit.org/show_bug.cgi?id=38735
  8162. It is ((x ^ (1 / 2.4)) * 1.055) - 0.055
  8163. Chromium pixel tests cover the issue.
  8164. * platform/graphics/ImageBuffer.cpp:
  8165. (WebCore::ImageBuffer::transformColorSpace):
  8166. 2010-05-04 Jer Noble <jer.noble@apple.com>
  8167. Reviewed by Eric Carlson
  8168. Safari pegs CPU and drops tons of frames using HTML5 Vimeo player
  8169. <https://bugs.webkit.org/show_bug.cgi?id=34005>
  8170. <rdar://problem/7569713>
  8171. The original functionality of QTMovieWin has been split between QTMovieGWorld,
  8172. and a new class: QTMovie. QTMovie contains all the "controller" parts (changing
  8173. the rate, seeking, etc) while QTMovieGWorld retains all the drawing code. QTMovieGWorld
  8174. now takes a QTMovie, and as such QTMovie is now retainable. QTMovieGWorld registers
  8175. itself as a client of QTMovie, so that it can receive load-state notifications,
  8176. and thus QTMovie must now support multiple clients. Movie tasking timer support
  8177. has been moved into its own class (QTMovieTask) and will be addressed in a future
  8178. patch. Most of the functions listed below only changed so much as their class name changed.
  8179. * platform/graphics/win/QTMovie.cpp: Copied from WebCore/platform/graphics/win/QTMovieWin.cpp.
  8180. (QTMoviePrivate::QTMoviePrivate):
  8181. (QTMoviePrivate::~QTMoviePrivate):
  8182. (QTMoviePrivate::startTask):
  8183. (QTMoviePrivate::endTask):
  8184. (QTMoviePrivate::task):
  8185. (QTMoviePrivate::createMovieController):
  8186. (QTMovie::QTMovie):
  8187. (QTMovie::~QTMovie):
  8188. (QTMovie::addClient):
  8189. (QTMovie::removeClient):
  8190. (QTMovie::play):
  8191. (QTMovie::pause):
  8192. (QTMovie::rate):
  8193. (QTMovie::setRate):
  8194. (QTMovie::duration):
  8195. (QTMovie::currentTime):
  8196. (QTMovie::setCurrentTime):
  8197. (QTMovie::setVolume):
  8198. (QTMovie::setPreservesPitch):
  8199. (QTMovie::dataSize):
  8200. (QTMovie::maxTimeLoaded):
  8201. (QTMovie::loadState):
  8202. (QTMovie::getNaturalSize):
  8203. (QTMovie::load):
  8204. (QTMovie::disableUnsupportedTracks):
  8205. (QTMovie::isDisabled):
  8206. (QTMovie::setDisabled):
  8207. (QTMovie::hasVideo):
  8208. (QTMovie::hasAudio):
  8209. (QTMovie::hasClosedCaptions):
  8210. (QTMovie::setClosedCaptionsVisible):
  8211. (QTMovie::countSupportedTypes):
  8212. (QTMovie::getSupportedType):
  8213. (QTMovie::initializeQuickTime):
  8214. (QTMovie::getMovieHandle):
  8215. * platform/graphics/win/QTMovie.h: Copied from WebCore/platform/graphics/win/QTMovieWin.h.
  8216. * platform/graphics/win/QTMovieGWorld.cpp: Copied from WebCore/platform/graphics/win/QTMovieWin.cpp.
  8217. (QTMovieGWorldPrivate::QTMovieGWorldPrivate):
  8218. (QTMovieGWorldPrivate::~QTMovieGWorldPrivate):
  8219. (QTMovieGWorldPrivate::cacheMovieScale):
  8220. (movieDrawingCompleteProc):
  8221. (QTMovieGWorldPrivate::registerDrawingCallback):
  8222. (QTMovieGWorldPrivate::unregisterDrawingCallback):
  8223. (QTMovieGWorldPrivate::drawingComplete):
  8224. (QTMovieGWorldPrivate::updateGWorld):
  8225. (QTMovieGWorldPrivate::createGWorld):
  8226. (QTMovieGWorldPrivate::clearGWorld):
  8227. (QTMovieGWorldPrivate::setSize):
  8228. (QTMovieGWorldPrivate::updateMovieSize):
  8229. (QTMovieGWorldPrivate::deleteGWorld):
  8230. (QTMovieGWorldPrivate::movieEnded):
  8231. (QTMovieGWorldPrivate::movieLoadStateChanged):
  8232. (QTMovieGWorldPrivate::movieTimeChanged):
  8233. (QTMovieGWorld::QTMovieGWorld):
  8234. (QTMovieGWorld::~QTMovieGWorld):
  8235. (QTMovieGWorld::setSize):
  8236. (QTMovieGWorld::setVisible):
  8237. (QTMovieGWorld::getCurrentFrameInfo):
  8238. (QTMovieGWorld::paint):
  8239. (QTMovieGWorld::setDisabled):
  8240. (QTMovieGWorld::isDisabled):
  8241. (QTMovieGWorld::fullscreenWndProc):
  8242. (QTMovieGWorld::enterFullscreen):
  8243. (QTMovieGWorld::exitFullscreen):
  8244. (QTMovieGWorld::setMovie):
  8245. (QTMovieGWorld::movie):
  8246. * platform/graphics/win/QTMovieGWorld.h: Copied from WebCore/platform/graphics/win/QTMovieWin.h.
  8247. * platform/graphics/win/QTMovieTask.cpp: Added.
  8248. (QTMovieTask::QTMovieTask):
  8249. (QTMovieTask::~QTMovieTask):
  8250. (QTMovieTask::sharedTask):
  8251. (QTMovieTask::updateTaskTimer):
  8252. (QTMovieTask::fireTaskClients):
  8253. (QTMovieTask::addTaskClient):
  8254. (QTMovieTask::removeTaskClient):
  8255. (QTMovieTask::setTaskTimerFuncs):
  8256. * platform/graphics/win/QTMovieTask.h: Added.
  8257. 2010-05-04 Jer Noble <jer.noble@apple.com>
  8258. Reviewed by Eric Carlson
  8259. Safari pegs CPU and drops tons of frames using HTML5 Vimeo player
  8260. <https://bugs.webkit.org/show_bug.cgi?id=34005>
  8261. <rdar://problem/7569713>
  8262. MediaPlayerPrivateQuickTimeVisualContext has been added as a
  8263. supported MediaPlayer implementation. MediaPlayerPrivateQuickTimeWin
  8264. has been left as a fallback MediaPlayer implementation for those media
  8265. types which do not support visual contexts (currently, none).
  8266. * platform/graphics/MediaPlayer.cpp:
  8267. (WebCore::installedMediaEngines):
  8268. 2010-05-04 Jer Noble <jer.noble@apple.com>
  8269. Reviewed by Maciej Stachowiak
  8270. Safari pegs CPU and drops tons of frames using HTML5 Vimeo player
  8271. <https://bugs.webkit.org/show_bug.cgi?id=34005>
  8272. <rdar://problem/7569713>
  8273. MediaPlayerPrivateTaskTimer has been broken out from MediaPlayerPrivateQuickTimeWin::TaskTimer
  8274. so that multiple clients can share its implementation. It works with the new
  8275. QTMovieTaskTimer to provide timer support to QTMovieTaskTimer clients.
  8276. * platform/graphics/win/MediaPlayerPrivateTaskTimer.cpp: Added.
  8277. (WebCore::MediaPlayerPrivateTaskTimer::initialize):
  8278. (WebCore::MediaPlayerPrivateTaskTimer::setDelay):
  8279. (WebCore::MediaPlayerPrivateTaskTimer::stopTaskTimer):
  8280. (WebCore::MediaPlayerPrivateTaskTimer::fired):
  8281. * platform/graphics/win/MediaPlayerPrivateTaskTimer.h: Added.
  8282. 2010-05-04 Jer Noble <jer.noble@apple.com>
  8283. Reviewed by Eric Carlson
  8284. Safari pegs CPU and drops tons of frames using HTML5 Vimeo player
  8285. <https://bugs.webkit.org/show_bug.cgi?id=34005>
  8286. <rdar://problem/7569713>
  8287. MediaPlayerPrivateQuickTimeVisualContext is a new MediaPlayerPrivate implementation
  8288. which uses QTMovieVisualContext instead of QTMovieWin to render video frames. Much
  8289. like MediaPlayerPrivateQuickTimeWin, MPPQTVisualContext breaks out QTMovie and
  8290. QTMovieVisualContext, and uses the newly shared MediaPlayerPrivateTaskTimer. It also
  8291. uses aggregation (in the form of friend classes) instead of multiple inheritence
  8292. to implement its various client callbacks, so as not to expose its own clients to
  8293. the QTMovie classes.
  8294. * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp: Copied from WebCore/platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp.
  8295. * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h: Copied from WebCore/platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h.
  8296. 2010-05-04 Jer Noble <jer.noble@apple.com>
  8297. Reviewed by Maciej Stachowiak
  8298. Safari pegs CPU and drops tons of frames using HTML5 Vimeo player
  8299. <https://bugs.webkit.org/show_bug.cgi?id=34005>
  8300. <rdar://problem/7569713>
  8301. MediaPlayerPrivateQuickTimeWin has been modified to support the new bifurcated
  8302. QTMovie/QTMovieWin classes. It's private TaskTimer class has been broken out
  8303. into a new top-level class (MediaPlayerPrivateTaskTimer) which will be addressed
  8304. in a future patch.
  8305. * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
  8306. (WebCore::MediaPlayerPrivate::~MediaPlayerPrivate):
  8307. (WebCore::MediaPlayerPrivate::load):
  8308. (WebCore::MediaPlayerPrivate::paused):
  8309. (WebCore::MediaPlayerPrivate::setSize):
  8310. (WebCore::MediaPlayerPrivate::setVisible):
  8311. (WebCore::MediaPlayerPrivate::paint):
  8312. (WebCore::mimeTypeCache):
  8313. (WebCore::MediaPlayerPrivate::isAvailable):
  8314. (WebCore::MediaPlayerPrivate::movieEnded):
  8315. (WebCore::MediaPlayerPrivate::movieLoadStateChanged):
  8316. (WebCore::MediaPlayerPrivate::movieTimeChanged):
  8317. (WebCore::MediaPlayerPrivate::movieNewImageAvailable):
  8318. (WebCore::MediaPlayerPrivate::paintContents):
  8319. * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:
  8320. 2010-05-04 Jer Noble <jer.noble@apple.com>
  8321. Reviewed by Anders Carlsson
  8322. Safari pegs CPU and drops tons of frames using HTML5 Vimeo player
  8323. <https://bugs.webkit.org/show_bug.cgi?id=34005>
  8324. <rdar://problem/7569713>
  8325. QTCFDictionary defines functions which help serialize and unserialize
  8326. CFDictionaries. This is necessary because QuickTime links against a
  8327. non-debug CoreFoundation in our debug build, and passing non-debug
  8328. CFDictionaries to a debug CF will cause a crash.
  8329. QTMovieTask is a new class containing the tasking functionality broken
  8330. out from QTMovieWin. This is necessary now that the tasking
  8331. functionality is needed in multiple files/classes.
  8332. QTPixelBuffer is a C++ wrapper for CVPixelBuffers, necessary because
  8333. like the CF case above, QuickTime has its own implementation of CoreVideo
  8334. and its CV types cannot be used with the AAS version of CoreVideo.
  8335. QTMovieVisualContext is the new drawing implementation, parallel to
  8336. QTMovieWin. It currently uses a software rendering path, but can be
  8337. extended in the future to support hardware rendering.
  8338. * platform/graphics/win/QTCFDictionary.cpp: Added.
  8339. * platform/graphics/win/QTCFDictionary.h: Added.
  8340. * platform/graphics/win/QTMovieTask.cpp: Added.
  8341. * platform/graphics/win/QTMovieTask.h: Added.
  8342. * platform/graphics/win/QTMovieVisualContext.cpp: Added.
  8343. * platform/graphics/win/QTMovieVisualContext.h: Added.
  8344. * platform/graphics/win/QTPixelBuffer.cpp: Added.
  8345. * platform/graphics/win/QTPixelBuffer.h: Added.
  8346. 2010-05-07 Eric Uhrhane <ericu@chromium.org>
  8347. Reviewed by Dmitry Titov.
  8348. JSCallbackData is deleted on the Main thread, not the Context thread.
  8349. https://bugs.webkit.org/show_bug.cgi?id=38623
  8350. No new tests; you'll only see a problem after the worker-access-to-DB
  8351. code goes in. Without this fix, the GTK bots assert, but it's
  8352. timing-sensitive and not truly platform-specific.
  8353. * bindings/js/JSCallbackData.h:
  8354. (WebCore::JSCallbackData::JSCallbackData):
  8355. (WebCore::JSCallbackData::~JSCallbackData):
  8356. Store the allocating thread, then assert that we're on it at deletion.
  8357. (WebCore::DeleteCallbackDataTask):
  8358. This is the task that can get posted to the context thread for cleanup.
  8359. * bindings/js/JSCustomVoidCallback.cpp:
  8360. * bindings/js/JSCustomVoidCallback.h:
  8361. This callback isn't autogenerated, so we have to do the cleanup manually.
  8362. * bindings/scripts/CodeGeneratorJS.pm:
  8363. Add the proper cleanup to all autogenerated callbacks.
  8364. * workers/WorkerThread.cpp:
  8365. (WebCore::WorkerThreadShutdownFinishTask::performTask):
  8366. (WebCore::WorkerThreadShutdownStartTask::performTask):
  8367. WorkerContext::clearScript can't be called until the posted deletion tasks have completed; move the call from shutdown start to shutdown finish.
  8368. 2010-05-07 Eric Seidel <eric@webkit.org>
  8369. Reviewed by Adam Barth.
  8370. Fix JSC binding generation to match webkit style
  8371. https://bugs.webkit.org/show_bug.cgi?id=38173
  8372. Add spaces around "|" to match webkit style.
  8373. * bindings/scripts/CodeGeneratorJS.pm:
  8374. * bindings/scripts/test/JS/JSTestObj.cpp:
  8375. 2010-05-07 Dumitru Daniliuc <dumi@chromium.org>
  8376. Reviewed by Brady Eidson.
  8377. Adding the IDL files for the sync DB API and the stubs for the JS and V8 bindings.
  8378. https://bugs.webkit.org/show_bug.cgi?id=34994
  8379. * DerivedSources.cpp:
  8380. * DerivedSources.make:
  8381. * GNUmakefile.am:
  8382. * WebCore.gypi:
  8383. * WebCore.pri:
  8384. * WebCore.pro:
  8385. * WebCore.vcproj/WebCore.vcproj:
  8386. * WebCore.xcodeproj/project.pbxproj:
  8387. * bindings/js/JSBindingsAllInOne.cpp:
  8388. * bindings/js/JSDatabaseSyncCustom.cpp: Added.
  8389. (WebCore::JSDatabaseSync::changeVersion):
  8390. (WebCore::createTransaction):
  8391. (WebCore::JSDatabaseSync::transaction):
  8392. (WebCore::JSDatabaseSync::readTransaction):
  8393. * bindings/js/JSSQLTransactionSyncCustom.cpp: Added.
  8394. (WebCore::JSSQLTransactionSync::executeSql):
  8395. * bindings/js/JSWorkerContextCustom.cpp:
  8396. (WebCore::JSWorkerContext::openDatabaseSync):
  8397. * bindings/v8/custom/V8BindingMacros.h: Added.
  8398. * bindings/v8/custom/V8DatabaseSyncCustom.cpp: Added.
  8399. (WebCore::V8DatabaseSync::changeVersionCallback):
  8400. (WebCore::createTransaction):
  8401. (WebCore::V8DatabaseSync::transactionCallback):
  8402. (WebCore::V8DatabaseSync::readTransactionCallback):
  8403. * bindings/v8/custom/V8SQLTransactionSyncCustom.cpp: Added.
  8404. (WebCore::V8SQLTransactionSync::executeSqlCallback):
  8405. * bindings/v8/custom/V8WorkerContextCustom.cpp:
  8406. (WebCore::V8WorkerContext::openDatabaseSyncCallback):
  8407. * storage/Database.idl:
  8408. * storage/DatabaseCallback.h:
  8409. * storage/DatabaseCallback.idl:
  8410. * storage/DatabaseSync.cpp:
  8411. (WebCore::DatabaseSync::changeVersion):
  8412. (WebCore::DatabaseSync::transaction):
  8413. * storage/DatabaseSync.h:
  8414. * storage/DatabaseSync.idl: Added.
  8415. * storage/SQLError.idl:
  8416. * storage/SQLResultSet.idl:
  8417. * storage/SQLResultSetRowList.idl:
  8418. * storage/SQLTransaction.idl:
  8419. * storage/SQLTransactionSync.idl: Added.
  8420. * storage/SQLTransactionSyncCallback.h:
  8421. * storage/SQLTransactionSyncCallback.idl: Added.
  8422. * workers/WorkerContext.cpp:
  8423. (WebCore::WorkerContext::openDatabaseSync):
  8424. * workers/WorkerContext.h:
  8425. * workers/WorkerContext.idl:
  8426. 2010-05-07 Beth Dakin <bdakin@apple.com>
  8427. Reviewed by Simon Fraser.
  8428. Fix for <rdar://problem/7956972> REGRESSION: Can't focus and type
  8429. in GMail due to bad repainting
  8430. -and corresponding-
  8431. https://bugs.webkit.org/show_bug.cgi?id=38782
  8432. This patch reverts back to pre-r58797 behavior when
  8433. shouldPropagateCompositingToIFrameParent() is false.
  8434. * rendering/RenderLayerBacking.cpp:
  8435. (WebCore::RenderLayerBacking::paintingGoesToWindow):
  8436. 2010-05-07 Sheriff Bot <webkit.review.bot@gmail.com>
  8437. Unreviewed, rolling out r58963.
  8438. http://trac.webkit.org/changeset/58963
  8439. https://bugs.webkit.org/show_bug.cgi?id=38773
  8440. Broke Chromium layout tests. (Requested by dcheng on #webkit).
  8441. * platform/chromium/DragDataChromium.cpp:
  8442. (WebCore::DragData::asURL):
  8443. 2010-05-07 Martin Robinson <mrobinson@igalia.com>
  8444. Reviewed by Gustavo Noronha Silva.
  8445. https://bugs.webkit.org/show_bug.cgi?id=38769
  8446. ClipboardGtk should write the URL label in the text portion of the DataObject
  8447. No tests as this code path is currently unused in the GTK+ port.
  8448. * platform/gtk/ClipboardGtk.cpp:
  8449. (WebCore::ClipboardGtk::writeURL): Write the label to the text portion of the DataObject, instead of the URL.
  8450. 2010-05-07 Nikolas Zimmermann <nzimmermann@rim.com>
  8451. Reviewed by Dirk Schulze.
  8452. RenderSVGResourceClipper assigns a temporary mutated RenderStyle but does not correctly preserve the old style
  8453. https://bugs.webkit.org/show_bug.cgi?id=38767
  8454. Fix small logic error leading to a problem in RenderSVGResourceClipper. It assigns a new temporary RenderStyle
  8455. to the target object, but fails to reset it correctly to the old style. Fixes all svg/clip-path errors on the windows bots.
  8456. * rendering/RenderSVGResourceClipper.cpp:
  8457. (WebCore::RenderSVGResourceClipper::createClipData):
  8458. 2010-05-07 Daniel Cheng <dcheng@chromium.org>
  8459. Reviewed by Jian Li.
  8460. [chromium] DragDataChromium::asURL() shouldn't do file validity checks
  8461. https://bugs.webkit.org/show_bug.cgi?id=38711
  8462. The renderer is sandboxed in Chromium, so these calls will give us no
  8463. meaningful information. The loader will do the right thing if we pass
  8464. it a file URL that points to an invalid file.
  8465. No new tests.
  8466. * platform/chromium/DragDataChromium.cpp:
  8467. (WebCore::DragData::asURL):
  8468. 2010-05-07 Simon Fraser <simon.fraser@apple.com>
  8469. Reviewed by Dan Bernstein.
  8470. Fix debug-only render tree output to show object addresses in hex.
  8471. * rendering/RenderTreeAsText.cpp:
  8472. (WebCore::writeRenderObject):
  8473. (WebCore::write):
  8474. 2010-05-07 Alexey Proskuryakov <ap@apple.com>
  8475. Reviewed by Adele Peterson.
  8476. https://bugs.webkit.org/show_bug.cgi?id=38546
  8477. Node.focus() fails to move focus from subframe properly
  8478. Test: fast/frames/take-focus-from-iframe.html
  8479. * html/HTMLFrameElementBase.cpp: (WebCore::HTMLFrameElementBase::setFocus): Don't clear
  8480. focus if this frame doesn't have it. This can happen if page's and HTMLFrameElement's ideas
  8481. of focused frame get out of sync temporarily.
  8482. 2010-05-07 Nikolas Zimmermann <nzimmermann@rim.com>
  8483. Reviewed by Dirk Schulze.
  8484. svg/custom/use-instanceRoot-as-event-target.xhtml crashes randomly
  8485. https://bugs.webkit.org/show_bug.cgi?id=37798
  8486. When creating JSEventListeners through attributes (onclick, etc..) or add/removeEventListener
  8487. calls on a SVGElementInstance, do NOT pass the element instance itself as JS wrapper object
  8488. but the correspondingElement(). SVGElementInstance redirects all event listener registrations
  8489. to the correspondingElement(), as they share an event listener list, per SVG spec. The old
  8490. code was very dangerous, leading to random assertions, when garbage collection teared down
  8491. the JSSVGElementInstance and event listeners fired, whose listeners were registered with
  8492. it, but residing in the correspondingElement() event listener list.
  8493. Removes the need for CustomToJS code for JSSVGElementInstance, which was wrong anyways. We hoped
  8494. to keep the event listeers alive by just creating a js wrapper of the correspondingElement(), that
  8495. could only work as long as garbage collection didn't tear it down, just luck. Also remove the
  8496. CustomPushEventHandlerScope marker, as it is only used for JSLazyEventListeners and only works
  8497. for JSNode derived objects, it was a no-op for SVGElementInstance, thus removed it.
  8498. Should fix all random crashes/assertions seen with svg/custom/use-instanceRoot-as-event-target.xhtml
  8499. See bug report for a detailed crash analysis.
  8500. * bindings/js/JSSVGElementInstanceCustom.cpp: Remove custom toJS()/pushEventHandlerScope() handling, not necessary anymore.
  8501. (WebCore::JSSVGElementInstance::markChildren):
  8502. * bindings/scripts/CodeGeneratorJS.pm: For JSSVGElementInstance pass the correspondingElement() as JS wrapper object, not itself.
  8503. * svg/SVGElementInstance.cpp:
  8504. (WebCore::SVGElementInstance::invalidateAllInstancesOfElement): Be sure to trigger a style update here, so dirty shadow trees for <use> get rebuild. Otherwhise DOM may be out-of-sync.
  8505. (WebCore::SVGElementInstance::eventTargetData): Add ASSERT_NOT_REACHED(), all event listener calls are forwarded to the correspondingElement().
  8506. (WebCore::SVGElementInstance::ensureEventTargetData): Ditto.
  8507. * svg/SVGElementInstance.idl: Remove CustomToJS, CustomPushEventHandlerScope markers.
  8508. 2010-05-06 Kenneth Russell <kbr@google.com>
  8509. Reviewed by Dimitri Glazkov.
  8510. WebCore::WebGLUnsignedIntArrayInternal::getCallback ReadAV@Arbitrary (deef89ee3d0345edebeaf13cf974c47c)
  8511. https://bugs.webkit.org/show_bug.cgi?id=38039
  8512. Web IDL now allows indexed getters and setters to be unnamed. Per
  8513. discussion in WebGL working group and recent update to spec,
  8514. removed the buggy get() and single-element set() methods from the
  8515. JavaScript bindings to the WebGL array types. Refactored set()
  8516. implementation in JSC bindings to share more code and modified V8
  8517. binding to look more like it. Added unit tests for indexed getter
  8518. with out-of-range indices and verifying removal of get and
  8519. single-element set methods. Updated existing WebGL array tests.
  8520. Tests: fast/canvas/webgl/array-get-and-set-method-removal.html
  8521. fast/canvas/webgl/array-get-out-of-bounds.html
  8522. * bindings/js/JSWebGLArrayHelper.h:
  8523. (WebCore::setWebGLArrayHelper):
  8524. * bindings/js/JSWebGLByteArrayCustom.cpp:
  8525. (WebCore::JSWebGLByteArray::set):
  8526. * bindings/js/JSWebGLFloatArrayCustom.cpp:
  8527. (WebCore::JSWebGLFloatArray::set):
  8528. * bindings/js/JSWebGLIntArrayCustom.cpp:
  8529. (WebCore::JSWebGLIntArray::set):
  8530. * bindings/js/JSWebGLShortArrayCustom.cpp:
  8531. (WebCore::JSWebGLShortArray::set):
  8532. * bindings/js/JSWebGLUnsignedByteArrayCustom.cpp:
  8533. (WebCore::JSWebGLUnsignedByteArray::set):
  8534. * bindings/js/JSWebGLUnsignedIntArrayCustom.cpp:
  8535. (WebCore::JSWebGLUnsignedIntArray::set):
  8536. * bindings/js/JSWebGLUnsignedShortArrayCustom.cpp:
  8537. (WebCore::JSWebGLUnsignedShortArray::set):
  8538. * bindings/v8/custom/V8WebGLArrayCustom.h:
  8539. (WebCore::setWebGLArrayHelper):
  8540. * bindings/v8/custom/V8WebGLByteArrayCustom.cpp:
  8541. (WebCore::V8WebGLByteArray::setCallback):
  8542. * bindings/v8/custom/V8WebGLFloatArrayCustom.cpp:
  8543. (WebCore::V8WebGLFloatArray::setCallback):
  8544. * bindings/v8/custom/V8WebGLIntArrayCustom.cpp:
  8545. (WebCore::V8WebGLIntArray::setCallback):
  8546. * bindings/v8/custom/V8WebGLShortArrayCustom.cpp:
  8547. (WebCore::V8WebGLShortArray::setCallback):
  8548. * bindings/v8/custom/V8WebGLUnsignedByteArrayCustom.cpp:
  8549. (WebCore::V8WebGLUnsignedByteArray::setCallback):
  8550. * bindings/v8/custom/V8WebGLUnsignedIntArrayCustom.cpp:
  8551. (WebCore::V8WebGLUnsignedIntArray::setCallback):
  8552. * bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp:
  8553. (WebCore::V8WebGLUnsignedShortArray::setCallback):
  8554. * html/canvas/WebGLByteArray.h:
  8555. * html/canvas/WebGLByteArray.idl:
  8556. * html/canvas/WebGLFloatArray.h:
  8557. * html/canvas/WebGLFloatArray.idl:
  8558. * html/canvas/WebGLIntArray.h:
  8559. * html/canvas/WebGLIntArray.idl:
  8560. * html/canvas/WebGLShortArray.h:
  8561. * html/canvas/WebGLShortArray.idl:
  8562. * html/canvas/WebGLUnsignedByteArray.h:
  8563. * html/canvas/WebGLUnsignedByteArray.idl:
  8564. * html/canvas/WebGLUnsignedIntArray.h:
  8565. * html/canvas/WebGLUnsignedIntArray.idl:
  8566. * html/canvas/WebGLUnsignedShortArray.h:
  8567. * html/canvas/WebGLUnsignedShortArray.idl:
  8568. 2010-05-07 Pavel Feldman <pfeldman@chromium.org>
  8569. Not reviewed: chromium dev tools tests fix.
  8570. Add a more strict check prior to accessing constructor property in
  8571. Web Inspector frontend.
  8572. * inspector/front-end/InjectedScript.js:
  8573. (injectedScriptConstructor):
  8574. 2010-05-07 Pavel Feldman <pfeldman@chromium.org>
  8575. Reviewed by Joseph Pecoraro.
  8576. Web Inspector: On Linux/Windows panel history is
  8577. traversed while iterating over words in text prompt.
  8578. https://bugs.webkit.org/show_bug.cgi?id=38740
  8579. * inspector/front-end/TextPrompt.js:
  8580. (WebInspector.TextPrompt):
  8581. * inspector/front-end/inspector.js:
  8582. (WebInspector.documentKeyDown):
  8583. 2010-05-07 Pavel Feldman <pfeldman@chromium.org>
  8584. Reviewed by Timothy Hatcher.
  8585. Web Inspector: come up with InjectedScript._className that works for both JSC and V8.
  8586. https://bugs.webkit.org/show_bug.cgi?id=38755
  8587. * inspector/front-end/InjectedScript.js:
  8588. (injectedScriptConstructor):
  8589. 2010-05-07 Joseph Pecoraro <joepeck@webkit.org>
  8590. Reviewed by Adam Barth.
  8591. document.write is not synchronous after page load
  8592. https://bugs.webkit.org/show_bug.cgi?id=38146
  8593. If there are no pending scripts, a document.write call should be
  8594. synchronous. This matches other browsers and the HTML5 spec. Forcing
  8595. the tokenizer to be synchronous in Document::write does not affect
  8596. external scripts written by the write call. This should only change
  8597. behavior of document.write after the page is done loading.
  8598. Difficult to test reliably due to HTMLTokenizing relying on processing time.
  8599. I made a manual test because the test requires processing very large strings
  8600. synchronously and therefore can take some time.
  8601. Test: WebCore/manual-tests/dom/document-write-synchronous-after-page-load.html
  8602. * dom/Document.cpp:
  8603. (WebCore::SynchronousHTMLTokenizerGuard::SynchronousHTMLTokenizerGuard): if the provided tokenizer is an HTMLTokenizer make it synchronous
  8604. (WebCore::SynchronousHTMLTokenizerGuard::~SynchronousHTMLTokenizerGuard): if the provided tokenizer was an HTMLTokenizer return its synchronous state
  8605. (WebCore::Document::write): temporarily set the tokenizer to synchronous during document.write
  8606. * dom/Tokenizer.h:
  8607. (WebCore::Tokenizer::asHTMLTokenizer): default implementation returns 0, to be overridden by HTMLTokenizer
  8608. * html/HTMLTokenizer.h: allow access to to the force synchronous state
  8609. (WebCore::HTMLTokenizer::forceSynchronous): accessor
  8610. (WebCore::HTMLTokenizer::asHTMLTokenizer): override the default to return itself
  8611. * manual-tests/dom/document-write-synchronous-after-page-load.html: Added.
  8612. 2010-05-07 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
  8613. Reviewed by Simon Hausmann.
  8614. [Qt] Fix rendering of -webkit-user-select: none
  8615. -webkit-user-select: none is implemented by filling
  8616. the area with an invalid default-constructed Color.
  8617. In most ports passing an invalid color down to the
  8618. graphics backend seems to produce transparent fills.
  8619. In Qt the behavior of painting with an invalid QColor
  8620. is undefined, and in practice it results in painting
  8621. black opaque areas.
  8622. One way to fix this would be to use Qt::transparent
  8623. when converting an undefined Color to a QColor, but
  8624. Qt does not have short circuits for fully transparent
  8625. painting, and we actually end up in slow code paths
  8626. due to the transparency. So, we're better of doing the
  8627. short circuit in WebKit.
  8628. https://bugs.webkit.org/show_bug.cgi?id=38523
  8629. * platform/graphics/qt/GraphicsContextQt.cpp:
  8630. 2010-05-07 Ben Murdoch <benm@google.com>
  8631. Reviewed by Darin Adler.
  8632. Potential crash in EventHandler::handleTouchEvent
  8633. https://bugs.webkit.org/show_bug.cgi?id=38646
  8634. Fix a ref counting bug that can cause a crash if the m_originatingouchPointTargets
  8635. hashmap holds the last ref to an EventTarget when the user lifts their finger.
  8636. This is very hard to reproduce in a consistent way and clearly a
  8637. simple logic error in the code, therefore no new tests.
  8638. * page/EventHandler.cpp:
  8639. (WebCore::EventHandler::handleTouchEvent): Don't let the RefPtr we get back from
  8640. the hasmap go out of scope so soon as it could delete the wrapped ptr if the
  8641. hashmap held the last ref (and we use the raw ptr that the RefPtr
  8642. wraps later in the WebCore::Touch constructor).
  8643. 2010-05-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  8644. Rubber-stamped by Kenneth Rohde Christiansen.
  8645. [GTK] Fails to build on GTK+ < 2.14
  8646. https://bugs.webkit.org/show_bug.cgi?id=38746
  8647. Build fix only. Do basically the same as gtk_adjustment_configure
  8648. would do if we are bellow GTK+ 2.14.
  8649. * platform/gtk/ScrollViewGtk.cpp:
  8650. (WebCore::AdjustmentConfigure):
  8651. 2010-05-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  8652. Rubber-stamped by Xan Lopez.
  8653. Crash with MgOpenModerna font, with non-UTF-8 character
  8654. https://bugs.webkit.org/show_bug.cgi?id=37795
  8655. NULL-check the font platform data, for now, to avoid the crash.
  8656. Could not yet figure out a way to get a test written that does not
  8657. involve adding the font to the tree, but there are doubts about
  8658. licensing.
  8659. * platform/graphics/cairo/FontCacheCairo.cpp:
  8660. (WebCore::FontCache::getFontDataForCharacters):
  8661. 2010-05-07 MORITA Hajime <morrita@google.com>
  8662. Reviewed by Eric Seidel.
  8663. [Chromium] RenderThemeChromiumMac.mm should share the code with RenderThemeMac.mm
  8664. https://bugs.webkit.org/show_bug.cgi?id=37204
  8665. Made RenderThemeChromiumMac subclass of RenderThemeMac, instead of RenderTheme.
  8666. Added some method to RenderThemeMac for overriding on RenderThemeChromiumMac.
  8667. No new tests; Should have no behavioural change.
  8668. * WebCore.gyp/WebCore.gyp:
  8669. * rendering/RenderThemeChromiumMac.h:
  8670. * rendering/RenderThemeChromiumMac.mm:
  8671. (WebCore::RenderThemeChromiumMac::usesTestModeFocusRingColor):
  8672. (WebCore::RenderThemeChromiumMac::documentViewFor):
  8673. (WebCore::RenderThemeChromiumMac::adjustMediaSliderThumbSize):
  8674. (WebCore::RenderThemeChromiumMac::paintMediaVolumeSliderTrack):
  8675. (WebCore::RenderThemeChromiumMac::paintMediaVolumeSliderThumb):
  8676. * rendering/RenderThemeMac.h:
  8677. (WebCore::RenderThemeMac::updateActiveState): Added for overriding
  8678. * rendering/RenderThemeMac.mm:
  8679. (WebCore::RenderThemeMac::usesTestModeFocusRingColor): Added for overriding
  8680. (WebCore::RenderThemeMac::documentViewFor): Added for overriding
  8681. (WebCore::RenderThemeMac::paintMenuList):
  8682. (WebCore::RenderThemeMac::setPopupButtonCellState):
  8683. (WebCore::RenderThemeMac::paintSliderThumb):
  8684. (WebCore::RenderThemeMac::paintSearchField):
  8685. (WebCore::RenderThemeMac::setSearchCellState):
  8686. (WebCore::RenderThemeMac::paintSearchFieldCancelButton):
  8687. (WebCore::RenderThemeMac::paintSearchFieldResultsDecoration):
  8688. (WebCore::RenderThemeMac::paintSearchFieldResultsButton):
  8689. (WebCore::RenderThemeMac::adjustSliderThumbSize):
  8690. (WebCore::RenderThemeMac::adjustMediaSliderThumbSize): Added for overriding
  8691. (WebCore::RenderThemeMac::extraMediaControlsStyleSheet):
  8692. 2010-05-06 Fumitoshi Ukai <ukai@chromium.org>
  8693. Reviewed by Alexey Proskuryakov.
  8694. JavaScriptCore/wtf/RandomNumber.h should provide using WTF::*
  8695. https://bugs.webkit.org/show_bug.cgi?id=38719
  8696. * platform/graphics/wince/FontCustomPlatformData.cpp:
  8697. (WebCore::createUniqueFontName):
  8698. Remove WTF:: prefix from randomNumber()
  8699. * platform/network/FormDataBuilder.cpp:
  8700. (WebCore::FormDataBuilder::generateUniqueBoundaryString):
  8701. Ditto.
  8702. 2010-04-27 Tony Chang <tony@chromium.org>
  8703. Reviewed by Eric Seidel.
  8704. [chromium] clicking a scrollbar in an iframe shouldn't lose the selection
  8705. https://bugs.webkit.org/show_bug.cgi?id=38189
  8706. Test: fast/events/mousedown-in-subframe-scrollbar.html
  8707. * page/chromium/EventHandlerChromium.cpp:
  8708. (WebCore::EventHandler::passMousePressEventToSubframe): If clicking on
  8709. a scrollbar, pass the event directly to the scrollbar. This matches
  8710. mac which passes the event to the NSScroller.
  8711. 2010-05-06 Simon Fraser <simon.fraser@apple.com>
  8712. Reviewed by Dan Bernstein.
  8713. Compositing layers that are clipped out by an overflow:scroll parent fail to get created on reveal
  8714. https://bugs.webkit.org/show_bug.cgi?id=38712
  8715. When compositing layer creation is testing layer overlap, we need to re-run the
  8716. algorithm when an overflow:scroll element scrolls, to create new layers for revealed
  8717. elements.
  8718. Test: compositing/layer-creation/overflow-scroll-overlap.html
  8719. * rendering/RenderLayer.cpp:
  8720. (WebCore::RenderLayer::scrollToOffset): First, move the compositing updates
  8721. until after the call to updateWidgetPositions(), so that this order is similar
  8722. to what we done when a FrameView scrolls. This change has no known side effects.
  8723. Second, if compositingConsultsOverlap() is true, we need to actually do a
  8724. compositing layer update to compute whether revealed/hidden layers should
  8725. be created/destroyed.
  8726. 2010-05-06 Maciej Stachowiak <mjs@apple.com>
  8727. Not reviewed, build fix.
  8728. Try again - with quotes this time. *facepalm*
  8729. * dom/Notation.cpp:
  8730. 2010-05-06 Maciej Stachowiak <mjs@apple.com>
  8731. Not reviewed, build fix.
  8732. Speculative fix for Qt and Gtk.
  8733. * dom/Notation.cpp:
  8734. 2010-05-06 Maciej Stachowiak <mjs@apple.com>
  8735. Not reviewed, build fix.
  8736. Fix an assert that I failed to update in my earlier change.
  8737. * dom/CharacterData.h:
  8738. (WebCore::CharacterData::CharacterData):
  8739. 2010-05-06 Alexey Proskuryakov <ap@apple.com>
  8740. Reviewed by Geoff Garen.
  8741. https://bugs.webkit.org/show_bug.cgi?id=38697
  8742. REGRESSION (r58299): Replying on reddit.com no longer works
  8743. * css/CSSSelector.cpp: (WebCore::CSSSelector::extractPseudoType): Don't recognize :first,
  8744. :left and :right. The aren't allowed in all contexts, and properly implementing them is out
  8745. of scope for this regression fix.
  8746. 2010-05-06 Jian Li <jianli@chromium.org>
  8747. Reviewed by Adam Barth.
  8748. Improve code generator scripts to support converting ScriptString.
  8749. https://bugs.webkit.org/show_bug.cgi?id=38699
  8750. Change both JSC and V8 generators to introduce "ConvertScriptString"
  8751. attribute to allow converting from ScriptString. Also updated the
  8752. bindings test result.
  8753. These changes are necessary in order to avoid adding custom binding codes
  8754. when we add the FileReader interface.
  8755. * bindings/scripts/CodeGeneratorJS.pm:
  8756. * bindings/scripts/CodeGeneratorV8.pm:
  8757. * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
  8758. (webkit_dom_test_obj_get_script_string_attr):
  8759. (webkit_dom_test_obj_get_property):
  8760. (webkit_dom_test_obj_class_init):
  8761. * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
  8762. * bindings/scripts/test/JS/JSTestObj.cpp:
  8763. (WebCore::):
  8764. (WebCore::jsTestObjScriptStringAttr):
  8765. * bindings/scripts/test/JS/JSTestObj.h:
  8766. * bindings/scripts/test/ObjC/DOMTestObj.h:
  8767. * bindings/scripts/test/ObjC/DOMTestObj.mm:
  8768. (-[DOMTestObj scriptStringAttr]):
  8769. * bindings/scripts/test/TestObj.idl:
  8770. * bindings/scripts/test/V8/V8TestObj.cpp:
  8771. (WebCore::TestObjInternal::scriptStringAttrAttrGetter):
  8772. (WebCore::):
  8773. 2010-05-06 Jian Li <jianli@chromium.org>
  8774. Reviewed by Adam Barth.
  8775. Improve code generator scripts to pass additional ScriptExecutionContext
  8776. argument to the constructor.
  8777. https://bugs.webkit.org/show_bug.cgi?id=38687
  8778. Change both JSC and V8 generators to introduce "CallWith=ScriptExecutionContext"
  8779. attribute to allow passing the additional ScriptExecutionContext argument to
  8780. the constructor. Also add another test IDL file to test interface-level
  8781. features.
  8782. These changes are necessary in order to avoid adding custom binding codes
  8783. when we add the FileReader interface.
  8784. * bindings/scripts/CodeGeneratorJS.pm:
  8785. * bindings/scripts/CodeGeneratorV8.pm:
  8786. * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp: Added.
  8787. * bindings/scripts/test/GObject/WebKitDOMTestInterface.h: Added.
  8788. * bindings/scripts/test/GObject/WebKitDOMTestInterfacePrivate.h: Added.
  8789. * bindings/scripts/test/JS/JSTestInterface.cpp: Added.
  8790. * bindings/scripts/test/JS/JSTestInterface.h: Added.
  8791. * bindings/scripts/test/ObjC/DOMTestInterface.h: Added.
  8792. * bindings/scripts/test/ObjC/DOMTestInterface.mm: Added.
  8793. * bindings/scripts/test/ObjC/DOMTestInterfaceInternal.h: Added.
  8794. * bindings/scripts/test/TestInterface.idl: Added.
  8795. * bindings/scripts/test/V8/V8TestInterface.cpp: Added.
  8796. * bindings/scripts/test/V8/V8TestInterface.h: Added.
  8797. * bindings/v8/V8Proxy.h:
  8798. (WebCore::V8Proxy::constructDOMObjectWithScriptExecutionContext):
  8799. 2010-05-06 Maciej Stachowiak <mjs@apple.com>
  8800. Build fix, not reviewed.
  8801. Speculative Windows and Debug build fixes for the last change.
  8802. * dom/Node.h:
  8803. (WebCore::Node::inDocument):
  8804. (WebCore::Node::setFlag):
  8805. 2010-05-06 James Robinson <jamesr@chromium.org>
  8806. Reviewed by Eric Seidel.
  8807. Fix warnings emitted by gcc 4.4.1 on linux in chromium-specific platform graphics files.
  8808. https://bugs.webkit.org/show_bug.cgi?id=38158
  8809. Fixes:
  8810. - replace NULL with 0
  8811. - remove unusued locals
  8812. - add parens around ambiguous looking compound predicates like (a || b && c)
  8813. This also adds a check for x >= 0 to FontLinux.cpp's in this statement:
  8814. if (x < walker.width())
  8815. This is more documentation than anything else since walker.width() returns
  8816. an unsigned the current behavior is that x is promoted to unsigned and as
  8817. long as x + walker.width() is less than 2^31 all negative values of x
  8818. end up wrapping around and not being < walker.width(). This behavior is
  8819. tested by fast/text/international/khmer-selection.html
  8820. * platform/graphics/chromium/FontLinux.cpp:
  8821. (WebCore::adjustTextRenderMode):
  8822. (WebCore::TextRunWalker::TextRunWalker):
  8823. (WebCore::TextRunWalker::length):
  8824. (WebCore::TextRunWalker::width):
  8825. (WebCore::TextRunWalker::getTextRun):
  8826. (WebCore::TextRunWalker::getNormalizedTextRun):
  8827. (WebCore::Font::offsetForPositionForComplexText):
  8828. * platform/graphics/chromium/FontPlatformDataLinux.cpp:
  8829. (WebCore::FontPlatformData::setupPaint):
  8830. * platform/graphics/chromium/HarfbuzzSkia.cpp:
  8831. (WebCore::getOutlinePoint):
  8832. * platform/graphics/skia/GraphicsContext3DSkia.cpp:
  8833. (WebCore::GraphicsContext3D::getImageData):
  8834. * platform/graphics/skia/GraphicsContextSkia.cpp:
  8835. (WebCore::isCoordinateSkiaSafe):
  8836. (WebCore::GraphicsContext::fillRect):
  8837. (WebCore::GraphicsContext::strokePath):
  8838. (WebCore::GraphicsContext::strokeRect):
  8839. 2010-05-06 Ada Chan <adachan@apple.com>
  8840. Reviewed by David Kilzer.
  8841. https://bugs.webkit.org/show_bug.cgi?id=38695
  8842. Check the result from widget() for NULL before accessing it.
  8843. * rendering/RenderIFrame.cpp:
  8844. (WebCore::RenderIFrame::calcHeight):
  8845. (WebCore::RenderIFrame::calcWidth):
  8846. 2010-05-06 Maciej Stachowiak <mjs@apple.com>
  8847. Reviewed by Darin Adler.
  8848. further fixes towards REGRESSION (r57292): 1% PLT regression from visited link information leak fix
  8849. https://bugs.webkit.org/show_bug.cgi?id=38682
  8850. <rdar://problem/7859794>
  8851. Looks like a 1-2% speedup on PLT.
  8852. - Reorder CSS properties.
  8853. - Remove short circuit tag check in matchRulesForList which costs more than it saves.
  8854. - Inline initForStyleResolve.
  8855. - Optimize applyDeclarations to avoid switch and take fewer branches in the inner loop.
  8856. - Change the way Node handles flags - replace bitfield with a uint32_t and explicit masking,
  8857. to make it cheaper to initialize the bits and give faster access.
  8858. - Added new Node flags to check for isStyledElement, isHTMLElement, isSVGElement, isComment,
  8859. and devirtualize those methods.
  8860. - Inline constructors for Node, Element, Text, CharacterData, StyledElement, etc since
  8861. they are very simple and lots of nodes get constructed.
  8862. * css/CSSPropertyNames.in: Move a few of the properties up front so we can check for them
  8863. with < instead of switch statements
  8864. * css/CSSStyleSelector.cpp:
  8865. (WebCore::CSSStyleSelector::matchRulesForList): Remove unnecessary preflight check
  8866. for tag match before checking selector. This check very rarely short circuits anything,
  8867. since most rules with a tag end up in the appropriate tag bucket. So doing the check
  8868. cost more time than the time saved.
  8869. (WebCore::CSSStyleSelector::initForStyleResolve): Inline. Create RenderStyle in a better way.
  8870. (WebCore::CSSStyleSelector::applyDeclarations): Get rid of switch statement and use <= to
  8871. check for the high priority properties. Convert to template to avoid checking "applyFirst"
  8872. each time through the loop.
  8873. (WebCore::CSSStyleSelector::styleForElement): Adjust for new applyDeclarations() signature.
  8874. (WebCore::CSSStyleSelector::keyframeStylesForAnimation): ditto
  8875. (WebCore::CSSStyleSelector::pseudoStyleForElement): ditto
  8876. * css/CSSStyleSelector.h: Adjust for new applyDeclarations() signature.
  8877. * rendering/style/RenderStyle.cpp:
  8878. (WebCore::RenderStyle::RenderStyle): Inline constructor.
  8879. * rendering/style/RenderStyle.h: Make constructor private so it can be inline.
  8880. * dom/Node.h:
  8881. (WebCore::): See high-level description of changes above. Redid the
  8882. way boolean flags work.
  8883. (WebCore::Node::isElementNode):
  8884. (WebCore::Node::isContainerNode):
  8885. (WebCore::Node::isTextNode):
  8886. (WebCore::Node::isHTMLElement):
  8887. (WebCore::Node::isSVGElement):
  8888. (WebCore::Node::isStyledElement):
  8889. (WebCore::Node::isCommentNode):
  8890. (WebCore::Node::hasID):
  8891. (WebCore::Node::hasClass):
  8892. (WebCore::Node::active):
  8893. (WebCore::Node::inActiveChain):
  8894. (WebCore::Node::inDetach):
  8895. (WebCore::Node::hovered):
  8896. (WebCore::Node::attached):
  8897. (WebCore::Node::setAttached):
  8898. (WebCore::Node::needsStyleRecalc):
  8899. (WebCore::Node::styleChangeType):
  8900. (WebCore::Node::childNeedsStyleRecalc):
  8901. (WebCore::Node::isLink):
  8902. (WebCore::Node::setHasID):
  8903. (WebCore::Node::setHasClass):
  8904. (WebCore::Node::setChildNeedsStyleRecalc):
  8905. (WebCore::Node::clearChildNeedsStyleRecalc):
  8906. (WebCore::Node::setInDocument):
  8907. (WebCore::Node::clearInDocument):
  8908. (WebCore::Node::setInActiveChain):
  8909. (WebCore::Node::clearInActiveChain):
  8910. (WebCore::Node::setIsLink):
  8911. (WebCore::Node::clearIsLink):
  8912. (WebCore::Node::setActive):
  8913. (WebCore::Node::setHovered):
  8914. (WebCore::Node::inDocument):
  8915. (WebCore::Node::):
  8916. (WebCore::Node::getFlag):
  8917. (WebCore::Node::setFlag):
  8918. (WebCore::Node::clearFlag):
  8919. (WebCore::Node::hasRareData):
  8920. (WebCore::Node::isParsingChildrenFinished):
  8921. (WebCore::Node::setIsParsingChildrenFinished):
  8922. (WebCore::Node::clearIsParsingChildrenFinished):
  8923. (WebCore::Node::isStyleAttributeValid):
  8924. (WebCore::Node::setIsStyleAttributeValid):
  8925. (WebCore::Node::clearIsStyleAttributeValid):
  8926. (WebCore::Node::isSynchronizingStyleAttribute):
  8927. (WebCore::Node::setIsSynchronizingStyleAttribute):
  8928. (WebCore::Node::clearIsSynchronizingStyleAttribute):
  8929. (WebCore::Node::areSVGAttributesValid):
  8930. (WebCore::Node::setAreSVGAttributesValid):
  8931. (WebCore::Node::clearAreSVGAttributesValid):
  8932. (WebCore::Node::isSynchronizingSVGAttributes):
  8933. (WebCore::Node::setIsSynchronizingSVGAttributes):
  8934. (WebCore::Node::clearIsSynchronizingSVGAttributes):
  8935. (WebCore::Node::hasRareSVGData):
  8936. (WebCore::Node::setHasRareSVGData):
  8937. (WebCore::Node::clearHasRareSVGData):
  8938. (WebCore::Node::initialRefCount):
  8939. * dom/Node.cpp:
  8940. (WebCore::Node::trackForDebugging): Adjusted for changes in
  8941. flag handling.
  8942. (WebCore::Node::ensureRareData): ditto
  8943. (WebCore::Node::setStyleChange): ditto
  8944. (WebCore::Node::setNeedsStyleRecalc): ditto
  8945. (WebCore::Node::lazyAttach): ditto
  8946. (WebCore::Node::attach): ditto
  8947. (WebCore::Node::detach): ditto
  8948. (WebCore::Node::insertedIntoDocument): ditto
  8949. (WebCore::Node::removedFromDocument): ditto
  8950. * dom/CharacterData.cpp:
  8951. * dom/CharacterData.h:
  8952. (WebCore::CharacterData::CharacterData): Inline the constructor (moved from .cpp)
  8953. * dom/Comment.cpp:
  8954. (WebCore::Comment::Comment): Tell the base class that we're a comment.
  8955. * dom/Comment.h: Remove isCommentNode override.
  8956. * dom/ContainerNode.cpp:
  8957. (WebCore::ContainerNode::detach): Adjusted for changes in flag
  8958. handling.
  8959. (WebCore::ContainerNode::removedFromDocument): ditto
  8960. * dom/Document.cpp:
  8961. (WebCore::Document::Document): Adjusted for changes in flag handling.
  8962. (WebCore::Document::recalcStyle): ditto
  8963. (WebCore::Document::setFocusedNode): ditto
  8964. * dom/Document.h:
  8965. (WebCore::Node::Node): Inline the Node constructor - goes here
  8966. because it uses Document.
  8967. * dom/DocumentFragment.cpp: include Document.h due to above change
  8968. * dom/EditingText.cpp: ditto
  8969. * dom/EntityReference.cpp: ditto
  8970. * dom/Element.cpp:
  8971. (WebCore::Element::getAttribute): Adjusted for changes in flag
  8972. handling.
  8973. (WebCore::Element::setAttribute): ditto
  8974. (WebCore::Element::hasAttributes): ditto
  8975. (WebCore::Element::recalcStyle): ditto
  8976. (WebCore::Element::finishParsingChildren): ditto
  8977. * dom/Element.h:
  8978. (WebCore::Element::Element): Inline (moved from .cpp)
  8979. (WebCore::Element::isFinishedParsingChildren):
  8980. (WebCore::Element::beginParsingChildren):
  8981. (WebCore::Element::attributes): Adjusted for changes in flag
  8982. handling.
  8983. * dom/StyledElement.cpp:
  8984. (WebCore::StyledElement::updateStyleAttribute): Adjust for
  8985. changes to flag handling.
  8986. (WebCore::StyledElement::mapToEntry): ditto
  8987. (WebCore::StyledElement::parseMappedAttribute): ditto
  8988. (WebCore::StyledElement::copyNonAttributeProperties): ditto
  8989. * dom/StyledElement.h:
  8990. (WebCore::StyledElement::StyledElement): Inline (moved from.cpp)
  8991. (WebCore::StyledElement::invalidateStyleAttribute): Adjust for
  8992. changes in flag handling.
  8993. * dom/Text.h:
  8994. (WebCore::Text::Text): Inline (moved from .cpp)
  8995. * dom/Text.cpp:
  8996. * html/HTMLAnchorElement.cpp:
  8997. (WebCore::HTMLAnchorElement::HTMLAnchorElement): Adjust for changes in
  8998. flag handling.
  8999. (WebCore::HTMLAnchorElement::parseMappedAttribute): ditto
  9000. * html/HTMLElement.cpp:
  9001. (WebCore::HTMLElement::create): Tell base class we're an HTML element.
  9002. * html/HTMLElement.h: ditto above; remove isHTMLElement override.
  9003. * html/HTMLFormControlElement.h: Tell base class we're an HTML element.
  9004. * html/HTMLFrameOwnerElement.cpp:
  9005. (WebCore::HTMLFrameOwnerElement::HTMLFrameOwnerElement): ditto
  9006. * html/HTMLProgressElement.cpp:
  9007. (WebCore::HTMLProgressElement::HTMLProgressElement): ditto
  9008. * mathml/MathMLElement.cpp:
  9009. (WebCore::MathMLElement::MathMLElement): Tell base class we're a styled
  9010. element.
  9011. * rendering/MediaControlElements.cpp:
  9012. (WebCore::MediaControlShadowRootElement::MediaControlShadowRootElement):
  9013. Adjust for changes in flag handling.
  9014. (WebCore::MediaControlElement::MediaControlElement): ditto
  9015. (WebCore::MediaControlInputElement::MediaControlInputElement): ditto
  9016. * rendering/RenderFileUploadControl.cpp:
  9017. (WebCore::RenderFileUploadControl::updateFromElement): ditto
  9018. * rendering/RenderLayer.cpp:
  9019. (WebCore::RenderLayer::updateHoverActiveState): ditto
  9020. * rendering/RenderProgress.cpp:
  9021. (WebCore::RenderProgress::updateValuePartState): ditto
  9022. * rendering/RenderSlider.cpp:
  9023. (WebCore::RenderSlider::updateFromElement): ditto
  9024. * rendering/SVGShadowTreeElements.cpp:
  9025. (WebCore::SVGShadowTreeRootElement::SVGShadowTreeRootElement): ditto
  9026. * rendering/TextControlInnerElements.cpp:
  9027. (WebCore::TextControlInnerElement::attachInnerElement): ditto
  9028. * svg/SVGAnimatedProperty.h:
  9029. (WebCore::SVGAnimatedPropertyTearOff::setBaseVal): ditto
  9030. (WebCore::SVGAnimatedPropertyTearOff::setAnimVal): ditto
  9031. * svg/SVGElement.cpp:
  9032. (WebCore::SVGElement::SVGElement): Tell base class we're
  9033. an svg element.
  9034. (WebCore::SVGElement::ensureRareSVGData): Adjust for flag handling
  9035. changes.
  9036. (WebCore::SVGElement::updateAnimatedSVGAttribute): ditto
  9037. * svg/SVGElement.h:
  9038. (WebCore::SVGElement::invalidateSVGAttributes): ditto
  9039. * svg/SVGPolyElement.cpp:
  9040. (WebCore::SVGPolyElement::svgAttributeChanged): ditto
  9041. * wml/WMLAnchorElement.cpp:
  9042. (WebCore::WMLAnchorElement::WMLAnchorElement): ditto
  9043. * wml/WMLElement.cpp:
  9044. (WebCore::WMLElement::WMLElement): Tell base class we're a styled
  9045. element.
  9046. 2010-05-06 Adam Barth <abarth@webkit.org>
  9047. Unreviewed. Fix indent. Sorry, my OCD was acting up.
  9048. * page/EventHandler.cpp:
  9049. (WebCore::EventHandler::handleMouseReleaseEvent):
  9050. 2010-05-06 Pavel Feldman <pfeldman@chromium.org>
  9051. Reviewed by Joseph Pecoraro.
  9052. Web Inspector: store selected Headers / Content tab on explicit switch and/or explicit navigate only.
  9053. https://bugs.webkit.org/show_bug.cgi?id=38660
  9054. * inspector/front-end/ResourceView.js:
  9055. (WebInspector.ResourceView):
  9056. (WebInspector.ResourceView.prototype._selectHeadersTab):
  9057. (WebInspector.ResourceView.prototype.selectContentTab):
  9058. * inspector/front-end/ResourcesPanel.js:
  9059. (WebInspector.ResourcesPanel.prototype.showResource):
  9060. 2010-05-06 Luiz Agostini <luiz.agostini@openbossa.org>
  9061. Rubber-stamped by Simon Hausmann.
  9062. [Qt] use QT_MOBILE_THEME in Symbian
  9063. https://bugs.webkit.org/show_bug.cgi?id=38440
  9064. Putting QT_MOBILE_THEME into use for Symbian.
  9065. * WebCore.pro:
  9066. 2010-05-06 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  9067. Unreviewed, build fix WinCE for QtWebKit.
  9068. [Qt] Compilation with Plugins disabled is broken
  9069. https://bugs.webkit.org/show_bug.cgi?id=31407
  9070. Rename platform/qt/TemporaryLinkStubs.cpp to avoid name collition on
  9071. Windows.
  9072. Thanks for Ismail "cartman" Donmez for help.
  9073. No new tests, as there is no new functionality.
  9074. * WebCore.gypi:
  9075. * WebCore.pro:
  9076. * platform/qt/TemporaryLinkStubs.cpp: Removed.
  9077. * platform/qt/TemporaryLinkStubsQt.cpp: Copied from WebCore/platform/qt/TemporaryLinkStubs.cpp.
  9078. 2010-05-06 Simon Hausmann <simon.hausmann@nokia.com>
  9079. Reviewed by Kenneth Rohde Christiansen.
  9080. [Qt] REGRESSION: Loading of external CSS and JS files over network fails in some cases
  9081. https://bugs.webkit.org/show_bug.cgi?id=36755
  9082. Enable the direct connection between QtNetwork and QtWebKit only for Qt versions
  9083. greater than 4.6.2, due to a bug in Qt that's been fixed after 4.6.2.
  9084. * platform/network/qt/QNetworkReplyHandler.cpp:
  9085. 2010-05-06 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  9086. Reviewed by Xan Lopez.
  9087. Rework where we get page step and line step from, so we do not
  9088. depend on scrollbars existing. Caught by API test I forgot to run.
  9089. * platform/gtk/ScrollViewGtk.cpp:
  9090. (WebCore::ScrollView::setGtkAdjustments):
  9091. 2010-05-06 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  9092. Reviewed by Xan Lopez.
  9093. [GTK] Adjustment resetting uses wrong values, and misses page_size and steps
  9094. https://bugs.webkit.org/show_bug.cgi?id=38657
  9095. Fix resetting adjustment values. In the page cache case, we were
  9096. confusing page_size and upper, leading to stray scrollbars
  9097. sometimes.
  9098. * platform/gtk/ScrollViewGtk.cpp:
  9099. (WebCore::ScrollView::setGtkAdjustments):
  9100. 2010-05-06 Darin Adler <darin@apple.com>
  9101. Reviewed by Beth Dakin.
  9102. Page::setCanStartMedia does not properly handle the case where a media listener is removed
  9103. https://bugs.webkit.org/show_bug.cgi?id=38602
  9104. We can't find any real case where this causes a crash at this time, but
  9105. we want to harden the code anyway. Thus there are no new regression tests.
  9106. * page/Page.cpp:
  9107. (WebCore::Page::removeMediaCanStartListener): Removed incorrect assertion.
  9108. (WebCore::Page::setCanStartMedia): Change algorithm so we notify listeners
  9109. one at a time and don't notify any listener that has already been removed
  9110. from the set.
  9111. 2010-05-05 Ojan Vafai <ojan@chromium.org>
  9112. Reviewed by Darin Adler.
  9113. shift+click on an existing selection doesn't work right
  9114. https://bugs.webkit.org/show_bug.cgi?id=36542
  9115. NSTextView behavior is to move the end of the selection
  9116. closest to the shift-click. Win/Linux behavior is to always
  9117. move the focus end of the selection.
  9118. Test: editing/selection/shift-click.html
  9119. * page/EventHandler.cpp:
  9120. (WebCore::textDistance):
  9121. (WebCore::EventHandler::handleMousePressEventSingleClick):
  9122. 2010-05-06 Pavel Feldman <pfeldman@chromium.org>
  9123. Reviewed by Timothy Hatcher.
  9124. Web Inspector: implement panels history traversal on Cmd+Left/Right.
  9125. https://bugs.webkit.org/show_bug.cgi?id=38649
  9126. * inspector/front-end/inspector.js:
  9127. (WebInspector.set currentPanel):
  9128. (WebInspector.loaded):
  9129. (WebInspector.documentKeyDown):
  9130. (WebInspector.PanelHistory):
  9131. (WebInspector.PanelHistory.prototype.canGoBack):
  9132. (WebInspector.PanelHistory.prototype.goBack):
  9133. (WebInspector.PanelHistory.prototype.canGoForward):
  9134. (WebInspector.PanelHistory.prototype.goForward):
  9135. (WebInspector.PanelHistory.prototype.setPanel):
  9136. 2010-05-03 Evan Martin <evan@chromium.org>
  9137. Reviewed by Eric Seidel.
  9138. [chromium] use glyphDataForCharacter so we hit the glyphdata cache
  9139. https://bugs.webkit.org/show_bug.cgi?id=38500
  9140. Calling fontDataForCharacters() while rendering text is expensive.
  9141. Examining the relevant Mac code in WebKit revealed that calling the
  9142. similarly-named glyphDataForCharacters() results in caching the font
  9143. data on a per-glyph basis.
  9144. Since we now choose a font based on the first character in a run, we
  9145. need to be careful that all the glyphs within the run use the same font.
  9146. This is also similar to the WebKit Mac code. We need to remove all of
  9147. the script run bits eventually and this is a step in that direction.
  9148. Tests: fast/text/international/danda-space.html spacing changes slightly
  9149. (now matches Firefox better) and fast/text/international/thai-baht-space.html
  9150. now picks the correct (serif) font for the digits.
  9151. * platform/graphics/chromium/FontLinux.cpp:
  9152. (WebCore::TextRunWalker::nextScriptRun):
  9153. (WebCore::TextRunWalker::setupFontForScriptRun):
  9154. 2010-05-06 Martin Robinson <mrobinson@webkit.org>
  9155. Reviewed by Gustavo Noronha Silva.
  9156. [GTK] Enable DOM clipboard and drag-and-drop access
  9157. https://bugs.webkit.org/show_bug.cgi?id=30623
  9158. Convert dragging portion of drag-and-drop to use DataObjectGtk.
  9159. No new tests, because functionality has not changed.
  9160. * page/gtk/EventHandlerGtk.cpp:
  9161. (WebCore::EventHandler::createDraggingClipboard): Pass the DataObjectGtk as a parameter here.
  9162. * platform/gtk/ClipboardGtk.h:
  9163. (WebCore::ClipboardGtk::create): Take the DataObject as a parameter instead of creating it here.
  9164. (WebCore::ClipboardGtk::helper): Added.
  9165. (WebCore::ClipboardGtk::dataObject): Added.
  9166. * platform/gtk/PasteboardHelper.h: Make targetListForDataObject a public method.
  9167. 2010-05-06 Pavel Feldman <pfeldman@chromium.org>
  9168. Reviewed by Timothy Hatcher.
  9169. Web Inspector: Do not show content tab for resources
  9170. not supporting content preview.
  9171. https://bugs.webkit.org/show_bug.cgi?id=38635
  9172. * English.lproj/localizedStrings.js:
  9173. * inspector/front-end/FontView.js:
  9174. (WebInspector.FontView.prototype.hasContentTab):
  9175. * inspector/front-end/ImageView.js:
  9176. (WebInspector.ImageView.prototype.hasContentTab):
  9177. * inspector/front-end/ResourceView.js:
  9178. (WebInspector.ResourceView):
  9179. (WebInspector.ResourceView.prototype._selectTab):
  9180. (WebInspector.ResourceView.prototype.hasContentTab):
  9181. * inspector/front-end/SourceView.js:
  9182. (WebInspector.SourceView.prototype.hasContentTab):
  9183. 2010-05-06 Antonio Gomes <tonikitoo@webkit.org>
  9184. Reviewed by Kenneth Christiansen.
  9185. Spatial Navigation: adapt the logic of {deep}findFocusableNodeInDirection to do traversal starting from Node* not Document*
  9186. https://bugs.webkit.org/show_bug.cgi?id=37803
  9187. Instead of receiving a Document pointer as incoming parameter, patch modifies
  9188. findFocusableNodeInDirection and deepFindFocusableNodeInDirection methods to
  9189. receive a Node pointer as start for content traversal.
  9190. This way we can make good use of deepFindFocusableNodeInDirection to traverse
  9191. other scrollable container like scrollable div's, and not only frames or iframes.
  9192. Patch also makes use of 'while' instead of 'for' to loop control, that gives move
  9193. flexibility to the incremental step: e.g. if a scrollable div was processed, the incremental
  9194. step in the loop does not have to do node->traverseNextNode() but node->traverseNextSibling().
  9195. No behavior change. It is a preparation for supporting scrollable containers in Spatial
  9196. Navigation.
  9197. * page/FocusController.cpp:
  9198. (WebCore::FocusController::advanceFocusDirectionally):
  9199. (WebCore::FocusController::findFocusableNodeInDirection):
  9200. (WebCore::FocusController::deepFindFocusableNodeInDirection):
  9201. * page/FocusController.h:
  9202. 2010-05-06 Csaba Osztrogonác <ossy@webkit.org>
  9203. Unreviewed WinCE buildfix after r58842.
  9204. Preprocessor doesn't understand "true", changed to "1"
  9205. * platform/graphics/MediaPlayer.cpp:
  9206. 2010-05-06 Mikhail Naganov <mnaganov@chromium.org>
  9207. Reviewed by Pavel Feldman.
  9208. Temporarily disable 'console.profiles' until we can distinguish
  9209. functions from different frames
  9210. https://bugs.webkit.org/show_bug.cgi?id=38638
  9211. * bindings/v8/custom/V8ConsoleCustom.cpp:
  9212. (WebCore::V8Console::profilesAccessorGetter):
  9213. 2010-05-06 Steve Block <steveblock@google.com>
  9214. Reviewed by Eric Seidel.
  9215. MAC_JAVA_BRIDGE should be renamed JAVA_BRIDGE
  9216. https://bugs.webkit.org/show_bug.cgi?id=38544
  9217. No new tests, build fix only.
  9218. * DerivedSources.make:
  9219. * bindings/js/ScriptController.cpp:
  9220. (WebCore::ScriptController::ScriptController):
  9221. * bindings/js/ScriptController.h:
  9222. * bindings/js/ScriptControllerMac.mm:
  9223. (WebCore::ScriptController::createScriptInstanceForWidget):
  9224. * bridge/jni/JNIBridge.cpp:
  9225. * bridge/jni/JNIBridge.h:
  9226. * bridge/jni/JNIUtility.cpp:
  9227. * bridge/jni/JNIUtility.h:
  9228. * bridge/jni/jni_jsobject.h:
  9229. * bridge/jni/jni_jsobject.mm:
  9230. * bridge/jni/jni_objc.mm:
  9231. * bridge/jni/jsc/JNIBridgeJSC.cpp:
  9232. * bridge/jni/jsc/JNIBridgeJSC.h:
  9233. * bridge/jni/jsc/JNIUtilityPrivate.cpp:
  9234. * bridge/jni/jsc/JNIUtilityPrivate.h:
  9235. * bridge/jni/jsc/JavaClassJSC.cpp:
  9236. * bridge/jni/jsc/JavaClassJSC.h:
  9237. * bridge/jni/jsc/JavaInstanceJSC.cpp:
  9238. * bridge/jni/jsc/JavaInstanceJSC.h:
  9239. * loader/FrameLoaderClient.h:
  9240. 2010-05-05 Alejandro G. Castro <alex@igalia.com>
  9241. Reviewed by Xan Lopez.
  9242. Fixed the gobject introspection compilation with the new DOM
  9243. bindings, we needed to add DOM objects.
  9244. * GNUmakefile.am:
  9245. 2010-05-06 Adam Barth <abarth@webkit.org>
  9246. Reviewed by Eric Seidel.
  9247. drop support for sessionStorage in sandbox iframes
  9248. https://bugs.webkit.org/show_bug.cgi?id=38151
  9249. This patch causes us to throw a security exception when a sandboxed
  9250. iframe attempts to access sessionStorage, matching our behavior for
  9251. localStorage. The letter of the spec asks us to create a separate
  9252. storage area for each unique origin. We might want to do that in a
  9253. future patch, but throwing a security error seems like a safe move now.
  9254. * page/DOMWindow.cpp:
  9255. (WebCore::DOMWindow::sessionStorage):
  9256. (WebCore::DOMWindow::localStorage):
  9257. * page/DOMWindow.h:
  9258. * page/DOMWindow.idl:
  9259. * page/SecurityOrigin.h:
  9260. (WebCore::SecurityOrigin::canAccessSessionStorage):
  9261. * storage/StorageEventDispatcher.cpp:
  9262. (WebCore::StorageEventDispatcher::dispatch):
  9263. 2010-05-06 Andy Estes <aestes@apple.com>
  9264. Reviewed by Maciej Stachowiak.
  9265. Allow forms submitting to target="_blank" to open popups if the submission
  9266. originated from a user gesture.
  9267. https://bugs.webkit.org/show_bug.cgi?id=37335
  9268. <rdar://problem/7884980>
  9269. Test: fast/events/popup-allowed-from-gesture-initiated-form-submit.html
  9270. * bindings/js/ScriptController.cpp:
  9271. (WebCore::ScriptController::processingUserGesture): If no DOM event is
  9272. being processed, consult UserGestureIndicator to determine return value.
  9273. * bindings/js/ScriptController.h: Moved the logic of processingUserGestureEvent()
  9274. into processingUserGesture().
  9275. 2010-05-06 Xan Lopez <xlopez@igalia.com>
  9276. Rubber-stamped by Eric Seidel.
  9277. [GTK] Refactor GenerateProperties in CodeGenerationGObject.pm
  9278. https://bugs.webkit.org/show_bug.cgi?id=38577
  9279. Thinko caught while refactoring, $custom variable was not
  9280. initialized.
  9281. * bindings/scripts/CodeGeneratorGObject.pm:
  9282. * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
  9283. (webkit_dom_test_obj_set_property):
  9284. (webkit_dom_test_obj_get_property):
  9285. (webkit_dom_test_obj_class_init):
  9286. 2010-05-06 Xan Lopez <xlopez@igalia.com>
  9287. Rubber-stamped by Eric Seidel.
  9288. [GTK] Refactor GenerateProperties in CodeGenerationGObject.pm
  9289. https://bugs.webkit.org/show_bug.cgi?id=38577
  9290. Refactor GenerateProperty out of GenerateProperties. This is in
  9291. preparation for EventListeren attributes, which won't generate
  9292. normal GObject properties.
  9293. * bindings/scripts/CodeGeneratorGObject.pm:
  9294. 2010-05-06 Pavel Feldman <pfeldman@chromium.org>
  9295. Reviewed by Joseph Pecoraro.
  9296. Web Inspector: follow up to linkify event listeners.
  9297. https://bugs.webkit.org/show_bug.cgi?id=38257
  9298. * bindings/js/ScriptEventListener.cpp:
  9299. (WebCore::eventListenerHandlerLocation):
  9300. * bindings/v8/ScriptEventListener.cpp:
  9301. (WebCore::eventListenerHandlerLocation):
  9302. * inspector/front-end/ElementsPanel.js:
  9303. (WebInspector.ElementsPanel.prototype.linkifyNodeReference):
  9304. * inspector/front-end/EventListenersSidebarPane.js:
  9305. 2010-05-05 Charles Wei <charles.wei@torchmobile.com.cn>
  9306. Reviewed by George Staikos
  9307. https://bugs.webkit.org/show_bug.cgi?id=37848
  9308. This patch adds WCSS -wap-input-format and -wap-input-required support to WebKit
  9309. Tests: fast/wcss/wap-input-format.xhtml
  9310. fast/wcss/wap-input-required.xhtml
  9311. * css/CSSParser.cpp:
  9312. (WebCore::CSSParser::parseValue):
  9313. (WebCore::CSSParser::parseWCSSInputProperty):
  9314. * css/CSSParser.h:
  9315. * css/CSSStyleSelector.cpp:
  9316. (WebCore::CSSStyleSelector::applyProperty):
  9317. * css/WCSSPropertyNames.in:
  9318. * dom/InputElement.cpp:
  9319. (WebCore::InputElement::sanitizeValue):
  9320. (WebCore::InputElement::handleBeforeTextInsertedEvent):
  9321. (WebCore::InputElementData::InputElementData):
  9322. (WebCore::formatCodes):
  9323. (WebCore::cursorPositionToMaskIndex):
  9324. (WebCore::InputElement::isConformToInputMask):
  9325. (WebCore::InputElement::validateInputMask):
  9326. * dom/InputElement.h:
  9327. (WebCore::InputElementData::inputFormatMask):
  9328. (WebCore::InputElementData::setInputFormatMask):
  9329. (WebCore::InputElementData::maxInputCharsAllowed):
  9330. (WebCore::InputElementData::setMaxInputCharsAllowed):
  9331. * html/HTMLInputElement.cpp:
  9332. (WebCore::HTMLInputElement::setWapInputFormat):
  9333. * html/HTMLInputElement.h:
  9334. (WebCore::HTMLInputElement::data):
  9335. * wml/WMLInputElement.h:
  9336. (WebCore::WMLInputElement::data):
  9337. 2010-05-05 MORITA Hajime <morrita@google.com>
  9338. Reviewed by Darin Adler.
  9339. https://bugs.webkit.org/show_bug.cgi?id=38150
  9340. Refactoring: webkitEditableContentChangedEvent should be handled by the owner of appropriate the renderer.
  9341. Moved a part of code chunk in HTMLFormControlElementWithState::defaultEventHandler()
  9342. which accesses the renderer from foreign node,
  9343. to TextControlInnerTextElement::defaultEventHandler() which owns the renderer.
  9344. No new tests. No behavioral change.
  9345. * html/HTMLFormControlElement.cpp:
  9346. (WebCore::HTMLFormControlElementWithState::defaultEventHandler):
  9347. * html/HTMLFormControlElement.h:
  9348. * html/HTMLInputElement.h:
  9349. * html/HTMLTextAreaElement.h:
  9350. * rendering/TextControlInnerElements.cpp:
  9351. (WebCore::TextControlInnerTextElement::defaultEventHandler):
  9352. 2010-05-05 Joseph Pecoraro <joepeck@webkit.org>
  9353. Reviewed by Timothy Hatcher.
  9354. Web Inspector: Line Numbers should be Aligned with the Source Code Line
  9355. https://bugs.webkit.org/show_bug.cgi?id=38593
  9356. If there is a message bubble, such as an error message, in a source view
  9357. the line number should be in line with the source code line, not centered
  9358. between the source and bubble.
  9359. * inspector/front-end/textViewer.css:
  9360. (.webkit-line-number): added vertical-align: top
  9361. 2010-05-05 Dan Bernstein <mitz@apple.com>
  9362. Fix the decelerated compositing build.
  9363. * page/FrameView.cpp:
  9364. (WebCore::FrameView::isEnclosedInCompositingLayer):
  9365. * page/FrameView.h:
  9366. 2010-05-05 Gavin Barraclough <barraclough@apple.com>
  9367. Reviewed by Darin Adler.
  9368. Bug 38604 - workers-gc2 crashing on Qt
  9369. This appears to be due to a couple of issues.
  9370. (1) When the atomic string table is deleted it does not clear the 'inTable' bit
  9371. on AtomicStrings - it implicitly assumes that all AtomicStrings have already
  9372. been deleted at this point (otherwise they will crash in their destructor when
  9373. they try to remove themselves from the atomic string table).
  9374. (2) We don't fix the ordering in which WTF::WTFThreadData and
  9375. WebCore::ThreadGlobalData are destructed.
  9376. We should make sure that ThreadGlobalData is cleaned up before worker threads
  9377. terminate and WTF::WTFThreadData is destroyed, and we should clear the inTable
  9378. bit of members on atomic string table destruction.
  9379. WTF changes (fix issue 2, above) - clean up the thread data on worker termination.
  9380. * platform/ThreadGlobalData.cpp:
  9381. (WebCore::ThreadGlobalData::~ThreadGlobalData):
  9382. (WebCore::ThreadGlobalData::destroy):
  9383. * platform/ThreadGlobalData.h:
  9384. * workers/WorkerThread.cpp:
  9385. (WebCore::WorkerThread::workerThread):
  9386. 2010-05-05 Dan Bernstein <mitz@apple.com>
  9387. Reviewed by Simon Fraser.
  9388. <rdar://problem/7932072> Iframes in composited layers don’t repaint correctly (affects Yahoo! Mail with Flash Player 10.1)
  9389. https://bugs.webkit.org/show_bug.cgi?id=38427
  9390. Test: compositing/iframes/iframe-in-composited-layer.html
  9391. * WebCore.base.exp: Export FrameView::isEnclosedInCompositingLayer().
  9392. * page/FrameView.cpp:
  9393. (WebCore::FrameView::isEnclosedInCompositingLayer): Added this predicate.
  9394. * page/FrameView.h:
  9395. 2010-05-05 Chris Marrin <cmarrin@apple.com>
  9396. Reviewed by Simon Fraser.
  9397. Got composited iframes showing up on Mac again
  9398. https://bugs.webkit.org/show_bug.cgi?id=38565
  9399. This was broken by http://trac.webkit.org/changeset/58798. That
  9400. change connected iframes through the parent document to the root
  9401. of the layer tree. That is correct for Windows, but not for Mac.
  9402. So the places where the linkage is made were wrapped in
  9403. shouldPropagateCompositingToIFrameParent() calls, which is
  9404. always false for Mac.
  9405. Test: compositing/iframes/composited-iframe-alignment.html
  9406. * rendering/RenderLayerCompositor.cpp:Avoid doing composited iframe linkage on Mac
  9407. (WebCore::RenderLayerCompositor::rebuildCompositingLayerTree):
  9408. (WebCore::RenderLayerCompositor::didMoveOnscreen):
  9409. (WebCore::RenderLayerCompositor::willMoveOffscreen):
  9410. (WebCore::RenderLayerCompositor::ensureRootPlatformLayer):
  9411. 2010-05-05 Alexey Proskuryakov <ap@apple.com>
  9412. Reviewed by Darin Adler.
  9413. https://bugs.webkit.org/show_bug.cgi?id=38260
  9414. <rdar://problem/7917548> Fix whitespace removing in deprecatedParseURL().
  9415. Broken all the way since r4 (yes, that's a revision number).
  9416. Test: http/tests/security/xss-DENIED-javascript-with-spaces.html
  9417. * css/CSSHelper.cpp: (WebCore::deprecatedParseURL): Fixed loop conditions for remaining length.
  9418. 2010-05-05 Chris Fleizach <cfleizach@apple.com>
  9419. Reviewed by Beth Dakin.
  9420. Many AXUnknown showing up in the hierarchy
  9421. https://bugs.webkit.org/show_bug.cgi?id=38607
  9422. The RenderTableSection should not be an accessible element.
  9423. Test: platform/mac/accessibility/parent-of-table-row-is-table.html
  9424. * accessibility/AccessibilityRenderObject.cpp:
  9425. (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
  9426. 2010-05-05 Csaba Osztrogonác <ossy@webkit.org>
  9427. Reviewed by Simon Hausmann.
  9428. [Qt]Disable Qt Multimedia backend for HTML 5 Audio and Video elements
  9429. Fall back to the Phonon backend until the release situation has been cleared up.
  9430. https://bugs.webkit.org/show_bug.cgi?id=38612
  9431. Buildfix for QT_VERSION >= 0x040700 after r58810.
  9432. * platform/graphics/MediaPlayer.cpp:
  9433. 2010-05-05 Jian Li <jianli@chromium.org>
  9434. Reviewed by David Levin.
  9435. XMLHttpRequestUpload events do not fire when sending a raw file or FormData object.
  9436. https://bugs.webkit.org/show_bug.cgi?id=37771
  9437. Test: http/tests/local/formdata/upload-events.html
  9438. * xml/XMLHttpRequest.cpp:
  9439. (WebCore::XMLHttpRequest::createRequest):
  9440. 2010-05-05 Csaba Osztrogonác <ossy@webkit.org>
  9441. Reviewed by Simon Hausmann.
  9442. [Qt] Qt port should use its own QUuid class to create UUID string.
  9443. https://bugs.webkit.org/show_bug.cgi?id=38581
  9444. * platform/UUID.cpp:
  9445. (WebCore::createCanonicalUUIDString): Added PLATFORM(QT) case.
  9446. 2010-05-05 Alexey Proskuryakov <ap@apple.com>
  9447. Roll out r58830 for breaking tests.
  9448. Was: https://bugs.webkit.org/show_bug.cgi?id=38546
  9449. Node.focus() fails to move focus from subframe properly
  9450. * html/HTMLFrameElementBase.cpp:
  9451. (WebCore::HTMLFrameElementBase::setFocus):
  9452. 2010-05-05 Jian Li <jianli@chromium.org>
  9453. Reviewed by Adam Barth.
  9454. Implement FileReader class.
  9455. https://bugs.webkit.org/show_bug.cgi?id=38157
  9456. This patch only contains the implementation of FileReader class as defined
  9457. in the File API spec: http://www.w3.org/TR/file-upload/#dfn-filereader.
  9458. New test will be added when a IDL is exposed and the FILE_READER is turned
  9459. on.
  9460. * GNUmakefile.am:
  9461. * WebCore.gypi:
  9462. * WebCore.pro:
  9463. * WebCore.vcproj/WebCore.vcproj:
  9464. * WebCore.xcodeproj/project.pbxproj:
  9465. * dom/EventNames.h:
  9466. * dom/EventTarget.cpp:
  9467. (WebCore::EventTarget::toFileReader):
  9468. * dom/EventTarget.h:
  9469. * html/FileError.h:
  9470. (WebCore::FileError::FileError):
  9471. * html/FileReader.cpp: Added.
  9472. * html/FileReader.h: Added.
  9473. * html/FileStream.cpp:
  9474. (WebCore::FileStream::FileStream):
  9475. (WebCore::FileStream::openForRead):
  9476. (WebCore::FileStream::close):
  9477. (WebCore::FileStream::read):
  9478. * html/FileStream.h:
  9479. 2010-05-05 Steve Falkenburg <sfalken@apple.com>
  9480. Reviewed by Maciej Stachowiak.
  9481. REGRESSION(r57969) Image decoder is repeatedly destroyed/created in CoreGraphics-based Windows WebKit
  9482. https://bugs.webkit.org/show_bug.cgi?id=38595
  9483. * platform/graphics/cg/ImageSourceCG.cpp:
  9484. (WebCore::ImageSource::setData):
  9485. 2010-05-05 Alexey Proskuryakov <ap@apple.com>
  9486. Reviewed by Adele Peterson.
  9487. https://bugs.webkit.org/show_bug.cgi?id=38546
  9488. Node.focus() fails to move focus from subframe properly
  9489. Test: fast/frames/take-focus-from-iframe.html
  9490. * html/HTMLFrameElementBase.cpp: (WebCore::HTMLFrameElementBase::setFocus): Don't clear
  9491. focus if this frame doesn't have it. This can happen if page's and HTMLFrameElement's ideas
  9492. of focused frame get out of sync temporarily.
  9493. 2010-05-05 Alexey Proskuryakov <ap@apple.com>
  9494. Reviewed by Adele Peterson.
  9495. https://bugs.webkit.org/show_bug.cgi?id=26824
  9496. <rdar://problem/7018610> EventHandler can operate on a wrong frame if focus changes during
  9497. keyboard event dispatch.
  9498. EventHandler object is tied to a frame, so it's wrong for it to continue processing a keyboard
  9499. event if focused frame changes between keydown and keypress.
  9500. * manual-tests/focus-change-between-key-events.html: Added.
  9501. * page/EventHandler.cpp: (WebCore::EventHandler::keyEvent): Bail out early if focused frame
  9502. changes while dispatching keydown. Also made similar changes for Windows to maintain matching
  9503. behavior, even though EventHandler was re-entered anyway due to WM_KEYDOWN and WM_CHAR being
  9504. separate events.
  9505. 2010-05-05 Steve Block <steveblock@google.com>
  9506. Reviewed by Adam Barth.
  9507. MediaError.h is missing PassRefPtr.h include
  9508. https://bugs.webkit.org/show_bug.cgi?id=38575
  9509. No new tests, build fix only.
  9510. * html/MediaError.h:
  9511. 2010-05-05 Alexander Pavlov <apavlov@chromium.org>
  9512. Reviewed by Pavel Feldman.
  9513. Web Inspector: Audits panel: Resource counters get reset when switching panels while reloading page
  9514. https://bugs.webkit.org/show_bug.cgi?id=38579
  9515. * inspector/front-end/AuditLauncherView.js:
  9516. (WebInspector.AuditLauncherView.prototype.updateResourceTrackingState):
  9517. (WebInspector.AuditLauncherView.prototype._updateResourceProgress):
  9518. 2010-05-05 Pavel Feldman <pfeldman@chromium.org>
  9519. Reviewed by Joseph Pecoraro.
  9520. Web Inspector: Doubleclick on line number should not trigger source editing.
  9521. https://bugs.webkit.org/show_bug.cgi?id=38588
  9522. * inspector/front-end/TextViewer.js:
  9523. (WebInspector.TextViewer.prototype._handleDoubleClick):
  9524. 2010-05-05 Martin Robinson <mrobinson@webkit.org>
  9525. Reviewed by Gustavo Noronha.
  9526. [GTK] Enable DOM clipboard and drag-and-drop access
  9527. https://bugs.webkit.org/show_bug.cgi?id=30623
  9528. Add support in the PasteboardHelper for images, in preparation for drag-and-drop data.
  9529. No new tests as functionality has not changed.
  9530. * platform/gtk/PasteboardHelper.cpp:
  9531. (WebCore::PasteboardHelper::fillSelectionData): Add support for images here.
  9532. (WebCore::PasteboardHelper::targetListForDataObject): Add support for images here.
  9533. 2010-05-05 Stuart Morgan <stuartmorgan@chromium.org>
  9534. Reviewed by Darin Fisher.
  9535. Add a "focused" parameter to Widget::setFocus, and updates Document
  9536. so that Widget is informed of focus loss as well as focus gain.
  9537. Changes all existing setFocus implementations so that they ignore
  9538. the 'false' case, so no behavior is changed until individual
  9539. platforms are updated to handle the new case (if they want to).
  9540. https://bugs.webkit.org/show_bug.cgi?id=37961
  9541. * dom/Document.cpp:
  9542. (WebCore::Document::setFocusedNode):
  9543. * platform/Widget.h:
  9544. * platform/android/WidgetAndroid.cpp:
  9545. (WebCore::Widget::setFocus):
  9546. * platform/chromium/WidgetChromium.cpp:
  9547. (WebCore::Widget::setFocus):
  9548. * platform/efl/WidgetEfl.cpp:
  9549. (WebCore::Widget::setFocus):
  9550. * platform/gtk/WidgetGtk.cpp:
  9551. (WebCore::Widget::setFocus):
  9552. * platform/haiku/WidgetHaiku.cpp:
  9553. (WebCore::Widget::setFocus):
  9554. * platform/mac/WidgetMac.mm:
  9555. (WebCore::Widget::setFocus):
  9556. * platform/qt/WidgetQt.cpp:
  9557. (WebCore::Widget::setFocus):
  9558. * platform/win/WidgetWin.cpp:
  9559. (WebCore::Widget::setFocus):
  9560. * platform/wx/WidgetWx.cpp:
  9561. (WebCore::Widget::setFocus):
  9562. * plugins/PluginView.h:
  9563. * plugins/PluginViewNone.cpp:
  9564. (WebCore::PluginView::setFocus):
  9565. * plugins/gtk/PluginViewGtk.cpp:
  9566. (WebCore::PluginView::setFocus):
  9567. * plugins/mac/PluginViewMac.cpp:
  9568. (WebCore::PluginView::setFocus):
  9569. * plugins/qt/PluginViewQt.cpp:
  9570. (WebCore::PluginView::setFocus):
  9571. * plugins/symbian/PluginViewSymbian.cpp:
  9572. (WebCore::PluginView::setFocus):
  9573. * plugins/win/PluginViewWin.cpp:
  9574. (WebCore::PluginView::setFocus):
  9575. 2010-05-05 Steve Block <steveblock@google.com>
  9576. Reviewed by Pavel Feldman.
  9577. Move V8 ScriptDebugServer::topStackFrame() to ScriptCallStack
  9578. https://bugs.webkit.org/show_bug.cgi?id=38531
  9579. ScriptCallStack::create() uses ScriptDebugServer::topStackFrame(), but ScriptDebugServer
  9580. is guarded with ENABLE(JAVASCRIPT_DEBUGGER). This prevents ScriptCallStack from being
  9581. built on platforms that do not define ENABLE(JAVASCRIPT_DEBUGGER).
  9582. No new tests, build fix only.
  9583. * bindings/v8/ScriptCallStack.cpp:
  9584. (WebCore::ScriptCallStack::callLocation):
  9585. (WebCore::ScriptCallStack::createUtilityContext): Helper for topStackFrame, moved from ScriptDebugServer
  9586. (WebCore::ScriptCallStack::topStackFrame): Moved from ScriptDebugServer
  9587. * bindings/v8/ScriptCallStack.h:
  9588. (WebCore::ScriptCallStack::utilityContext): Helper for topStackFrame, moved from ScriptDebugServer
  9589. * bindings/v8/ScriptDebugServer.cpp:
  9590. * bindings/v8/ScriptDebugServer.h:
  9591. 2010-05-05 Csaba Osztrogonác <ossy@webkit.org>
  9592. Rubber-stamped by Simon Hausmann.
  9593. [Qt] REGRESSION(r56869): WinCE build is broken
  9594. https://bugs.webkit.org/show_bug.cgi?id=36929
  9595. * WebCore.pro: LIBS += -lOle32 added.
  9596. 2010-05-05 Simon Hausmann <simon.hausmann@nokia.com>
  9597. Reviewed by Tor Arne Vestbø.
  9598. [Qt] Disable Qt Multimedia backend for HTML 5 Audio and Video elements
  9599. Fall back to the Phonon backend until the release situation has been cleared up.
  9600. * WebCore.pro:
  9601. 2010-05-05 Ilya Tikhonovsky <loislo@chromium.org>
  9602. Reviewed by Pavel Feldman.
  9603. WebInspector: Clickable links to resources should be used as 'details' part for the all suitable kinds of records.
  9604. https://bugs.webkit.org/show_bug.cgi?id=38542
  9605. * inspector/front-end/TimelinePanel.js:
  9606. (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
  9607. (WebInspector.TimelineRecordListRow):
  9608. (WebInspector.TimelineRecordListRow.prototype.update):
  9609. (WebInspector.TimelinePanel.FormattedRecord):
  9610. (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
  9611. (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
  9612. (WebInspector.TimelinePanel.PopupContentHelper):
  9613. (WebInspector.TimelinePanel.PopupContentHelper.prototype._createCell):
  9614. (WebInspector.TimelinePanel.PopupContentHelper.prototype._appendTextRow):
  9615. (WebInspector.TimelinePanel.PopupContentHelper.prototype._appendElementRow):
  9616. (WebInspector.TimelinePanel.PopupContentHelper.prototype._appendLinkRow):
  9617. 2010-05-05 Nikolas Zimmermann <nzimmermann@rim.com>
  9618. Not reviewed. Add missing files generated by "run-bindings-test", after the DOMTestCallback.idl addition.
  9619. * bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp: Added.
  9620. (WebKit::kit):
  9621. (webkit_dom_test_callback_callback_with_class1param):
  9622. (webkit_dom_test_callback_callback_with_class2param):
  9623. (webkit_dom_test_callback_callback_with_non_bool_return_type):
  9624. (WebKit::wrapTestCallback):
  9625. (WebKit::core):
  9626. (webkit_dom_test_callback_finalize):
  9627. (webkit_dom_test_callback_set_property):
  9628. (webkit_dom_test_callback_get_property):
  9629. (webkit_dom_test_callback_class_init):
  9630. (webkit_dom_test_callback_init):
  9631. * bindings/scripts/test/GObject/WebKitDOMTestCallback.h: Added.
  9632. * bindings/scripts/test/GObject/WebKitDOMTestCallbackPrivate.h: Added.
  9633. * bindings/scripts/test/ObjC/DOMTestCallback.h: Added.
  9634. * bindings/scripts/test/ObjC/DOMTestCallback.mm: Added.
  9635. (-[DOMTestCallback dealloc]):
  9636. (-[DOMTestCallback finalize]):
  9637. (-[DOMTestCallback callbackWithClass1Param:]):
  9638. (-[DOMTestCallback callbackWithClass2Param:strArg:]):
  9639. (-[DOMTestCallback callbackWithNonBoolReturnType:]):
  9640. (-[DOMTestCallback customCallback:class6Param:]):
  9641. (core):
  9642. (kit):
  9643. * bindings/scripts/test/ObjC/DOMTestCallbackInternal.h: Added.
  9644. 2010-05-05 Joseph Pecoraro <joepeck@webkit.org>
  9645. Reviewed by Pavel Feldman.
  9646. Web Inspector: FontView needs Cleanup
  9647. https://bugs.webkit.org/show_bug.cgi?id=38567
  9648. FontView was missing some of the newer practices for initialization
  9649. that other Resource Views had. Also its width calculations could
  9650. result in a single character wrapping. This is general cleanup.
  9651. * inspector/front-end/FontView.js:
  9652. (WebInspector.FontView): move initialization into contentTabSelected
  9653. (WebInspector.FontView.prototype.contentTabSelected): handle initialization like other Resource Views
  9654. (WebInspector.FontView.prototype.updateFontPreviewSize): use a narrower width to prevent text from widowing
  9655. 2010-05-05 Dirk Schulze <krit@webkit.org>
  9656. Reviewed by Nikolas Zimmermann.
  9657. SVG hit testing is *way* too slow
  9658. https://bugs.webkit.org/show_bug.cgi?id=19312
  9659. Use the cached stroke and fill boundaries in RenderPath as a heuristik to
  9660. speed up SVG's hit testing.
  9661. No new tests added.
  9662. * rendering/RenderPath.cpp:
  9663. (WebCore::RenderPath::fillContains):
  9664. (WebCore::RenderPath::strokeContains):
  9665. 2010-05-04 Dumitru Daniliuc <dumi@chromium.org>
  9666. Reviewed by Adam Barth.
  9667. Auto-generate all Database callbacks.
  9668. https://bugs.webkit.org/show_bug.cgi?id=38503
  9669. * DerivedSources.cpp:
  9670. * DerivedSources.make:
  9671. * GNUmakefile.am:
  9672. * WebCore.gypi:
  9673. * WebCore.pri:
  9674. * WebCore.pro:
  9675. * WebCore.vcproj/WebCore.vcproj:
  9676. * WebCore.xcodeproj/project.pbxproj:
  9677. * bindings/js/JSBindingsAllInOne.cpp:
  9678. * bindings/js/JSCustomSQLStatementCallback.cpp: Removed.
  9679. * bindings/js/JSCustomSQLStatementCallback.h: Removed.
  9680. * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
  9681. (WebCore::JSSQLStatementErrorCallback::handleEvent):
  9682. * bindings/js/JSCustomSQLStatementErrorCallback.h: Removed.
  9683. * bindings/js/JSCustomSQLTransactionCallback.cpp: Removed.
  9684. * bindings/js/JSCustomSQLTransactionCallback.h: Removed.
  9685. * bindings/js/JSCustomSQLTransactionErrorCallback.cpp: Removed.
  9686. * bindings/js/JSCustomSQLTransactionErrorCallback.h: Removed.
  9687. * bindings/js/JSDatabaseCallback.cpp: Removed.
  9688. * bindings/js/JSDatabaseCallback.h: Removed.
  9689. * bindings/js/JSDatabaseCustom.cpp:
  9690. (WebCore::JSDatabase::changeVersion):
  9691. (WebCore::createTransaction):
  9692. * bindings/js/JSSQLTransactionCustom.cpp:
  9693. (WebCore::JSSQLTransaction::executeSql):
  9694. * bindings/scripts/CodeGeneratorJS.pm:
  9695. * bindings/scripts/test/JS/JSTestCallback.cpp:
  9696. * bindings/v8/custom/V8CustomSQLStatementCallback.cpp: Removed.
  9697. * bindings/v8/custom/V8CustomSQLStatementCallback.h: Removed.
  9698. * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp:
  9699. (WebCore::V8SQLStatementErrorCallback::handleEvent):
  9700. * bindings/v8/custom/V8CustomSQLStatementErrorCallback.h: Removed.
  9701. * bindings/v8/custom/V8CustomSQLTransactionCallback.cpp: Removed.
  9702. * bindings/v8/custom/V8CustomSQLTransactionCallback.h: Removed.
  9703. * bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp: Removed.
  9704. * bindings/v8/custom/V8CustomSQLTransactionErrorCallback.h: Removed.
  9705. * bindings/v8/custom/V8DatabaseCallback.cpp: Removed.
  9706. * bindings/v8/custom/V8DatabaseCallback.h: Removed.
  9707. * bindings/v8/custom/V8DatabaseCustom.cpp:
  9708. (WebCore::V8Database::changeVersionCallback):
  9709. (WebCore::createTransaction):
  9710. * bindings/v8/custom/V8SQLTransactionCustom.cpp:
  9711. (WebCore::V8SQLTransaction::executeSqlCallback):
  9712. * storage/DatabaseCallback.h:
  9713. * storage/DatabaseCallback.idl: Added.
  9714. * storage/SQLStatement.cpp:
  9715. (WebCore::SQLStatement::performCallback):
  9716. * storage/SQLStatementCallback.h:
  9717. * storage/SQLStatementCallback.idl: Added.
  9718. * storage/SQLStatementErrorCallback.idl: Added.
  9719. * storage/SQLTransaction.cpp:
  9720. (WebCore::SQLTransaction::deliverTransactionCallback):
  9721. * storage/SQLTransactionCallback.h:
  9722. * storage/SQLTransactionCallback.idl: Added.
  9723. * storage/SQLTransactionErrorCallback.h:
  9724. * storage/SQLTransactionErrorCallback.idl: Added.
  9725. 2010-05-04 Chris Marrin <cmarrin@apple.com>
  9726. Reviewed by Simon Fraser.
  9727. Made composited iframes work on Windows
  9728. https://bugs.webkit.org/show_bug.cgi?id=32446
  9729. This completes the work in http://trac.webkit.org/changeset/57919
  9730. to create compositing layers in the parent document when an iframe has
  9731. a compositing layer. The parent document has a layer for the iframe
  9732. element and builds a layer tree to the page root. The layer tree for the
  9733. iframe document is then parented to the iframe element's GraphicsLayer.
  9734. The RenderLayerCompositor for the iframe document (which owns the
  9735. root of the layer tree) now has a clippingLayer which is the
  9736. parent of the layer tree root so it can be clipped to the parent
  9737. iframe's bounds, taking into account borders, padding, etc. in
  9738. the parent iframe element.
  9739. I also got rid of a no longer used function: RenderLayerCompositor::parentInRootLayer
  9740. Test: compositing/iframes/composited-parent-iframe.html
  9741. * rendering/RenderLayerBacking.cpp:Make calls to RenderLayerCompositor to set the clipping bounds for iframe content
  9742. * rendering/RenderLayerCompositor.cpp:Hook the iframe content to the parent iframe element
  9743. * rendering/RenderLayerCompositor.h:
  9744. 2010-05-03 Alexey Proskuryakov <ap@apple.com>
  9745. Reviewed by Adam Barth.
  9746. https://bugs.webkit.org/show_bug.cgi?id=38497
  9747. <rdar://problem/7759438> Make sure that http URLs always have a host in SecurityOrigin
  9748. This is a hardening fix, and behavior really depends on what an underlying networking layer
  9749. does. So, no test.
  9750. * page/SecurityOrigin.cpp:
  9751. (WebCore::schemeRequiresAuthority): List schemes that need an authority for successful loading.
  9752. (WebCore::SecurityOrigin::SecurityOrigin): Never let e.g. http origins with empty authorities
  9753. have the same security origin.
  9754. 2010-05-04 Zhenyao Mo <zmo@google.com>
  9755. Reviewed by Dimitri Glazkov.
  9756. getFramebufferAttachmentParameter should return the original WebGLTexture/WebGLRenderbuffer instead of creating new ones sharing names.
  9757. https://bugs.webkit.org/show_bug.cgi?id=38236
  9758. * html/canvas/CanvasObject.h: Add type check functions.
  9759. (WebCore::CanvasObject::isBuffer):
  9760. (WebCore::CanvasObject::isFramebuffer):
  9761. (WebCore::CanvasObject::isProgram):
  9762. (WebCore::CanvasObject::isRenderbuffer):
  9763. (WebCore::CanvasObject::isShader):
  9764. (WebCore::CanvasObject::isTexture):
  9765. * html/canvas/WebGLBuffer.h: Add type check functions.
  9766. (WebCore::WebGLBuffer::isBuffer):
  9767. * html/canvas/WebGLFramebuffer.h: Add type check functions.
  9768. (WebCore::WebGLFramebuffer::isFramebuffer):
  9769. * html/canvas/WebGLProgram.h: Add type check functions.
  9770. (WebCore::WebGLProgram::isProgram):
  9771. * html/canvas/WebGLRenderbuffer.cpp: remove constructor using existing name.
  9772. * html/canvas/WebGLRenderbuffer.h: Add type check functions; remove constructor using existing name.
  9773. (WebCore::WebGLRenderbuffer::isRenderbuffer):
  9774. * html/canvas/WebGLRenderingContext.cpp:
  9775. (WebCore::WebGLRenderingContext::getFramebufferAttachmentParameter): Return original Texture/Renderbuffer instead of creating new ones.
  9776. (WebCore::WebGLRenderingContext::findTexture): Find a WebGLTexture using a name.
  9777. (WebCore::WebGLRenderingContext::findRenderbuffer): Find a WebGLRenderbuffer using a name.
  9778. * html/canvas/WebGLRenderingContext.h: Add find* functions.
  9779. * html/canvas/WebGLShader.h: Add type check functions.
  9780. (WebCore::WebGLShader::isShader):
  9781. * html/canvas/WebGLTexture.cpp: remove constructor using existing name.
  9782. * html/canvas/WebGLTexture.h: Add type check functions; remove constructor using existing name.
  9783. (WebCore::WebGLTexture::isTexture):
  9784. 2010-05-04 Luiz Agostini <luiz.agostini@openbossa.org>
  9785. Reviewed by Simon Hausmann.
  9786. [Qt] QT_MOBILE_THEME compile time flag
  9787. https://bugs.webkit.org/show_bug.cgi?id=38439
  9788. Replacing preprocessor conditional used in RenderThemeQt from Q_WS_MAEMO_5 to
  9789. USE(QT_MOBILE_THEME).
  9790. * WebCore.pro:
  9791. * platform/qt/RenderThemeQt.cpp:
  9792. (WebCore::RenderThemeQt::RenderThemeQt):
  9793. (WebCore::RenderThemeQt::qStyle):
  9794. (WebCore::RenderThemeQt::extraDefaultStyleSheet):
  9795. (WebCore::RenderThemeQt::adjustMenuListButtonStyle):
  9796. (WebCore::RenderThemeQt::setPaletteFromPageClientIfExists):
  9797. * platform/qt/RenderThemeQt.h:
  9798. 2010-05-04 Joseph Pecoraro <joepeck@webkit.org>
  9799. Reviewed by Dan Bernstein.
  9800. SVG fonts trigger GlyphPage::fill with null font
  9801. https://bugs.webkit.org/show_bug.cgi?id=38530
  9802. SVG fonts do not use the glyph page cache. This change detects when
  9803. attempting to fill a GlyphPage with an SVG font and indicates that
  9804. the glyphs were not available.
  9805. * platform/graphics/GlyphPageTreeNode.cpp:
  9806. (WebCore::fill): helper method which handles attempts to fill a GlyphPage with SVG or non-SVG fonts
  9807. (WebCore::GlyphPageTreeNode::initializePage): use the helper where appropriate
  9808. 2010-05-04 Kent Tamura <tkent@chromium.org>
  9809. Reviewed by David Levin (and unofficially by Enrica Casucci).
  9810. REGRESSION(r54368): Text drag-and-drop from input/textarea doesn't work
  9811. if the text is like a URL
  9812. https://bugs.webkit.org/show_bug.cgi?id=38374
  9813. Since r54368, documentFragmentFromDragData() creates an <a> element
  9814. with no anchor text for URL-like text dragged from input/textarea
  9815. element. If such text is dropped to input/textarea element, the text
  9816. is not inserted.
  9817. To fix this problem, use the original text or the URL as an anchor
  9818. text.
  9819. Test: editing/pasteboard/drag-drop-url-text.html
  9820. * page/DragController.cpp:
  9821. (WebCore::documentFragmentFromDragData):
  9822. 2010-05-04 Steve Block <steveblock@google.com>
  9823. Reviewed by Darin Adler.
  9824. JavaInstanceJSC.cpp and JNIUtilityPrivate.cpp need to include jni_jsobject.h for jlong_to_pt() and ptr_to_jlong()
  9825. https://bugs.webkit.org/show_bug.cgi?id=38525
  9826. No new tests, build fix only.
  9827. * bridge/jni/jni_jsobject.h: Guard Mac-specific code with PLATFORM(MAC)
  9828. * bridge/jni/jsc/JNIUtilityPrivate.cpp: Include jni_jsobject.h
  9829. * bridge/jni/jsc/JavaInstanceJSC.cpp: Include jni_jsobject.h
  9830. 2010-05-04 Steve Block <steveblock@google.com>
  9831. Reviewed by Darin Adler.
  9832. New FileSystemPOSIX functions cause linker errors on Android
  9833. https://bugs.webkit.org/show_bug.cgi?id=38521
  9834. No new tests, build fix only.
  9835. * platform/android/FileSystemAndroid.cpp: Remove closeFile, which is provided in FileSystemPOSIX.cpp
  9836. * platform/posix/FileSystemPOSIX.cpp: Guard writeToFile with !PLATFORM(ANDROID)
  9837. 2010-05-04 Pavel Feldman <pfeldman@chromium.org>
  9838. Reviewed by Timothy Hatcher.
  9839. Web Inspector: restore main and sidebar scroller positions
  9840. when switching between panels.
  9841. https://bugs.webkit.org/show_bug.cgi?id=38522
  9842. * inspector/front-end/ElementsPanel.js:
  9843. (WebInspector.ElementsPanel.prototype.elementsToRestoreScrollPositionsFor):
  9844. * inspector/front-end/Panel.js:
  9845. (WebInspector.Panel.prototype.show):
  9846. (WebInspector.Panel.prototype.hide):
  9847. (WebInspector.Panel.prototype.elementsToRestoreScrollPositionsFor):
  9848. (WebInspector.Panel.prototype._storeScrollPositions):
  9849. (WebInspector.Panel.prototype._restoreScrollPositions):
  9850. * inspector/front-end/ResourcesPanel.js:
  9851. (WebInspector.ResourcesPanel.prototype.elementsToRestoreScrollPositionsFor):
  9852. * inspector/front-end/ScriptsPanel.js:
  9853. (WebInspector.ScriptsPanel.prototype.elementsToRestoreScrollPositionsFor):
  9854. 2010-05-04 Steven Lai <steven_lai@asia.apple.com>
  9855. Reviewed by Darin Adler.
  9856. https://bugs.webkit.org/show_bug.cgi?id=37900
  9857. <rdar://problem/7806164> cloneNode() does not preserve z-index with more than six digits
  9858. Tests: fast/dom/HTMLInputElement/clone-input-checked.html
  9859. fast/dom/clone-node-z-index.html
  9860. * dom/Element.cpp: undid the order change of calling copyNonAttributeProperties() before setAttributes()
  9861. (WebCore::Element::cloneElementWithoutChildren): uncheck the previous radio button in the same radio button group only when the checked radio box is appended to the dom tree
  9862. * html/HTMLInputElement.cpp:
  9863. (WebCore::HTMLInputElement::updateCheckedRadioButtons):
  9864. (WebCore::HTMLInputElement::attach):
  9865. (WebCore::HTMLInputElement::setChecked):
  9866. * html/HTMLInputElement.h:
  9867. 2010-04-29 John Gregg <johnnyg@google.com>
  9868. Reviewed by Dmitry Titov.
  9869. notifications should have dir and replaceId attributes.
  9870. Note that tests are only enabled in Chromium, skipped elsewhere
  9871. since notifications aren't implemented.
  9872. https://bugs.webkit.org/show_bug.cgi?id=38336
  9873. Tests: fast/notifications/notifications-replace.html
  9874. fast/notifications/notifications-rtl.html
  9875. * notifications/Notification.h:
  9876. (WebCore::Notification::dir):
  9877. (WebCore::Notification::setDir):
  9878. (WebCore::Notification::replaceId):
  9879. (WebCore::Notification::setReplaceId):
  9880. * notifications/Notification.idl:
  9881. 2010-05-04 Alejandro G. Castro <alex@igalia.com>
  9882. Reviewed by Xan Lopez.
  9883. Fixed error defining the float/double minimum in the object
  9884. properties, the smallest value of a float/double is
  9885. -G_MAXDOUBLE/-G_MAXFLOAT.
  9886. * bindings/scripts/CodeGeneratorGObject.pm:
  9887. 2010-05-03 Joseph Pecoraro <joepeck@webkit.org>
  9888. Reviewed by Dan Bernstein.
  9889. REGRESSION: Text clipped in absolutely positioned search inputs
  9890. https://bugs.webkit.org/show_bug.cgi?id=38468
  9891. Previously I incorrectly added x() and y() to the tx and ty positioning.
  9892. This clips a search input like a text input, respecting the vertically
  9893. centered text.
  9894. * rendering/RenderTextControlSingleLine.cpp:
  9895. (WebCore::RenderTextControlSingleLine::layout): only the Y changes, so change setLocation to setY
  9896. (WebCore::RenderTextControlSingleLine::controlClipRect):
  9897. 2010-05-04 Alexander Pavlov <apavlov@chromium.org>
  9898. Reviewed by Timothy Hatcher.
  9899. Web Inspector: REGRESSION: Up/Down, PgUp/PgDown keys do not change numeric style properties
  9900. https://bugs.webkit.org/show_bug.cgi?id=38516
  9901. * inspector/front-end/StylesSidebarPane.js:
  9902. (WebInspector.StylePropertyTreeElement.prototype):
  9903. 2010-05-04 Ben Murdoch <benm@google.com>
  9904. Reviewed by Simon Hausmann.
  9905. Crash in handleTouchEvent: using dangling node ptrs in hashmap
  9906. https://bugs.webkit.org/show_bug.cgi?id=38514
  9907. When navigating away from a page, if you have your finger still
  9908. pressed and then lift it on the new page we see a crash if the
  9909. node got deleted as we still have a dangling pointer in the
  9910. m_originatingTouchPointTargets hashmap and try to use it as the
  9911. receiver to dispatch a touchend event.
  9912. Test: fast/events/touch/touch-stale-node-crash.html
  9913. * page/EventHandler.cpp:
  9914. (WebCore::EventHandler::clear): Clear the hashmap of touch targets.
  9915. 2010-05-04 Joseph Pecoraro <joepeck@webkit.org>
  9916. Reviewed by Pavel Feldman.
  9917. Web Inspector: Drawer Misbehaving when Docking / Undocking in Console Panel
  9918. https://bugs.webkit.org/show_bug.cgi?id=38510
  9919. * inspector/front-end/inspector.js:
  9920. (WebInspector.set attached): resize the drawer after docking/undocking
  9921. 2010-05-04 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  9922. Unreviewed, build fix for Symbian.
  9923. [Symbian] Build fix after r58598.
  9924. Use C99 integer types for the Symbian plugin
  9925. implementation.
  9926. No new tests, as there is no new functionality.
  9927. * plugins/symbian/PluginPackageSymbian.cpp:
  9928. (WebCore::PluginPackage::NPVersion):
  9929. * plugins/symbian/PluginViewSymbian.cpp:
  9930. (WebCore::PluginView::handlePostReadFile):
  9931. 2010-05-04 Nikolas Zimmermann <nzimmermann@rim.com>
  9932. Reviewed by Dirk Schulze.
  9933. Split SVGCharacterLayoutInfo in smaller pieces
  9934. https://bugs.webkit.org/show_bug.cgi?id=38513
  9935. Split SVGCharacterLayoutInfo into SVGCharacterLayoutInfo/SVGCharacterData and SVGTextChunkLayoutInfo.
  9936. This is a preparation for more work in the text area.
  9937. * Android.mk: Add SVGCharacterData.(cpp|h) and SVGTextChunkLayoutInfo.h to build.
  9938. * GNUmakefile.am: Ditto.
  9939. * WebCore.gypi: Ditto.
  9940. * WebCore.pro: Ditto
  9941. * WebCore.vcproj/WebCore.vcproj: Ditto.
  9942. * WebCore.xcodeproj/project.pbxproj: Ditto.
  9943. * rendering/SVGCharacterData.cpp: Copied from rendering/SVGCharacterLayoutInfo.cpp.
  9944. * rendering/SVGCharacterData.h: Copied from rendering/SVGCharacterLayoutInfo.h.
  9945. (WebCore::SVGChar::SVGChar):
  9946. * rendering/SVGCharacterLayoutInfo.cpp:
  9947. (WebCore::SVGCharacterLayoutInfo::isInitialLayout): Introduced new helper function to share code between addLayoutInformation/addStackContent.
  9948. (WebCore::SVGCharacterLayoutInfo::addLayoutInformation): Use new helper function.
  9949. (WebCore::SVGCharacterLayoutInfo::addStackContent): Ditto
  9950. * rendering/SVGCharacterLayoutInfo.h:
  9951. * rendering/SVGRootInlineBox.h: Include new files.
  9952. * rendering/SVGTextChunkLayoutInfo.h: Copied from rendering/SVGCharacterLayoutInfo.h.
  9953. 2010-05-04 Xan Lopez <xlopez@igalia.com>
  9954. Reviewed by Holger Freyther.
  9955. [GTK] GObject DOM bindings
  9956. https://bugs.webkit.org/show_bug.cgi?id=33590
  9957. Use helper functions from CodeGenerator.pm to figure out whether a
  9958. type is "fundamental" or not (basically whether it's anything
  9959. other than a string or a non-pointer type).
  9960. * bindings/scripts/CodeGeneratorGObject.pm:
  9961. 2010-04-30 Alexander Pavlov <apavlov@chromium.org>
  9962. Reviewed by Yury Semikhatsky.
  9963. Web Inspector: REGRESSION: Disabled style properties are absent in Styles sidebar after WebInspector is re-opened
  9964. https://bugs.webkit.org/show_bug.cgi?id=38255
  9965. Moved stylesheet-related mappings into a separate object stored
  9966. in InspectorController rather than InspectorDOMAgent (which gets reset
  9967. on every frontend [dis]connect).
  9968. * GNUmakefile.am:
  9969. * WebCore.gypi:
  9970. * WebCore.pro:
  9971. * WebCore.vcproj/WebCore.vcproj:
  9972. * WebCore.xcodeproj/project.pbxproj:
  9973. * inspector/InspectorCSSStore.cpp: Added.
  9974. (WebCore::InspectorCSSStore::InspectorCSSStore):
  9975. (WebCore::InspectorCSSStore::~InspectorCSSStore):
  9976. (WebCore::InspectorCSSStore::reset):
  9977. * inspector/InspectorCSSStore.h: Added.
  9978. * inspector/InspectorController.cpp:
  9979. (WebCore::InspectorController::InspectorController):
  9980. (WebCore::InspectorController::setFrontend):
  9981. (WebCore::InspectorController::didCommitLoad):
  9982. * inspector/InspectorController.h:
  9983. * inspector/InspectorDOMAgent.cpp:
  9984. (WebCore::InspectorDOMAgent::InspectorDOMAgent):
  9985. (WebCore::InspectorDOMAgent::discardBindings):
  9986. (WebCore::InspectorDOMAgent::applyStyleText):
  9987. (WebCore::InspectorDOMAgent::setStyleText):
  9988. (WebCore::InspectorDOMAgent::setStyleProperty):
  9989. (WebCore::InspectorDOMAgent::toggleStyleEnabled):
  9990. (WebCore::InspectorDOMAgent::setRuleSelector):
  9991. (WebCore::InspectorDOMAgent::addRule):
  9992. (WebCore::InspectorDOMAgent::bindStyle):
  9993. (WebCore::InspectorDOMAgent::bindRule):
  9994. (WebCore::InspectorDOMAgent::buildObjectForStyle):
  9995. (WebCore::InspectorDOMAgent::buildObjectForRule):
  9996. * inspector/InspectorDOMAgent.h:
  9997. (WebCore::InspectorDOMAgent::create):
  9998. (WebCore::InspectorDOMAgent::cssStore):
  9999. 2010-05-04 Mikhail Naganov <mnaganov@chromium.org>
  10000. Reviewed by Pavel Feldman.
  10001. Display "Recording..." item when recording an user-initiated CPU profile.
  10002. https://bugs.webkit.org/show_bug.cgi?id=38043
  10003. * English.lproj/localizedStrings.js:
  10004. * inspector/front-end/ProfilesPanel.js:
  10005. (WebInspector.ProfilesPanel.prototype.addProfileHeader):
  10006. (WebInspector.ProfilesPanel.prototype.removeProfileHeader):
  10007. (WebInspector.ProfilesPanel.prototype.showProfile):
  10008. * inspector/front-end/inspector.js:
  10009. (WebInspector.setRecordingProfile):
  10010. 2010-05-04 Tucker Jay <jay.tucker@nokia.com>
  10011. Reviewed by Holger Freyther.
  10012. Animated GIF images does not animate 10x as expected by default.
  10013. https://bugs.webkit.org/show_bug.cgi?id=36818
  10014. Added test case to existing manual test to test the
  10015. fixed functionality.
  10016. * manual-tests/qt/qt-10loop-anim.gif: Added.
  10017. * manual-tests/qt/qt-gif-test.html:
  10018. * platform/graphics/qt/ImageDecoderQt.cpp:
  10019. (WebCore::ImageDecoderQt::repetitionCount):
  10020. 2010-05-04 Dirk Schulze <krit@webkit.org>
  10021. Unreviewed sort of XCodes project file.
  10022. * WebCore.xcodeproj/project.pbxproj:
  10023. 2010-05-03 Steven Lai <steven_lai@asia.apple.com>
  10024. Reviewed by Brady Eidson.
  10025. Reverted hashchange() event back to async.
  10026. (This change does not update HashChangeEvent to its new proposed interface)
  10027. https://bugs.webkit.org/show_bug.cgi?id=36201
  10028. rdar://problem/7780794
  10029. rdar://problem/7761278 (partial fix)
  10030. Tests: fast/loader/hashchange-event-async.html
  10031. * dom/Document.cpp: reverted hashchange() event back to async
  10032. (WebCore::Document::enqueueHashchangeEvent):
  10033. 2010-05-03 Holger Hans Peter Freyther <zecke@selfish.org>
  10034. Rubber-stamped by Xan Lopez.
  10035. [Cairo,WX] Stop leaking a FontPlatformData.
  10036. https://bugs.webkit.org/show_bug.cgi?id=37500
  10037. Stephan Aßmus pointed out that the pango font backend
  10038. is leaking memory and fixed it. The WX font backend
  10039. and the Cairo/Fontconfig backend have the same snippet
  10040. of code and are leaking memory as well. This commit is
  10041. fixing that.
  10042. * platform/graphics/cairo/SimpleFontDataCairo.cpp:
  10043. (WebCore::SimpleFontData::smallCapsFontData):
  10044. * platform/graphics/wx/SimpleFontDataWx.cpp:
  10045. (WebCore::SimpleFontData::smallCapsFontData):
  10046. 2010-05-03 James Robinson <jamesr@chromium.org>
  10047. Reviewed by Eric Seidel.
  10048. Clean up a few compiler warnings
  10049. https://bugs.webkit.org/show_bug.cgi?id=38073
  10050. * html/TextMetrics.h:
  10051. (WebCore::TextMetrics::width):
  10052. * rendering/style/StyleRareInheritedData.h:
  10053. * rendering/style/StyleRareNonInheritedData.h:
  10054. 2010-05-02 Dumitru Daniliuc <dumi@chromium.org>
  10055. Reviewed by Adam Barth.
  10056. Add the ability to auto-generate callbacks to all code generators.
  10057. https://bugs.webkit.org/show_bug.cgi?id=38414
  10058. * bindings/scripts/CodeGeneratorJS.pm:
  10059. * bindings/scripts/CodeGeneratorV8.pm:
  10060. * bindings/scripts/test/JS/JSTestCallback.cpp: Added.
  10061. (WebCore::JSTestCallback::JSTestCallback):
  10062. (WebCore::JSTestCallback::~JSTestCallback):
  10063. (WebCore::JSTestCallback::callbackWithClass1Param):
  10064. (WebCore::JSTestCallback::callbackWithClass2Param):
  10065. * bindings/scripts/test/JS/JSTestCallback.h: Added.
  10066. (WebCore::JSTestCallback::create):
  10067. * bindings/scripts/test/V8/JSTestCallback.cpp: Added.
  10068. (WebCore::V8TestCallback::V8TestCallback):
  10069. (WebCore::V8TestCallback::~V8TestCallback):
  10070. (WebCore::V8TestCallback::callbackWithClass1Param):
  10071. (WebCore::V8TestCallback::callbackWithClass2Param):
  10072. * bindings/scripts/test/V8/V8TestCallback.h: Added.
  10073. (WebCore::V8TestCallback::create):
  10074. * bindings/scripts/test/TestCallback.idl: Added.
  10075. 2010-05-03 Kevin Watters <kevinwatters@gmail.com>
  10076. Reviewed by Kevin Ollivier.
  10077. [wx] Build and use Mac's ComplexTextController to support complex text in wx.
  10078. https://bugs.webkit.org/show_bug.cgi?id=38482
  10079. * platform/graphics/FloatSize.h:
  10080. * platform/graphics/GlyphBuffer.h:
  10081. (WebCore::GlyphBuffer::advanceAt):
  10082. (WebCore::GlyphBuffer::add):
  10083. * platform/graphics/SimpleFontData.h:
  10084. (WebCore::SimpleFontData::getNSFont):
  10085. * platform/graphics/mac/ComplexTextController.cpp:
  10086. * platform/graphics/mac/ComplexTextController.h:
  10087. * platform/graphics/wx/FontCacheWx.cpp:
  10088. (WebCore::FontCache::getFontDataForCharacters):
  10089. (WebCore::FontCache::getLastResortFallbackFont):
  10090. * platform/graphics/wx/FontPlatformData.h:
  10091. (toCTFontRef):
  10092. (WebCore::FontPlatformData::FontPlatformData):
  10093. (WebCore::FontPlatformData::allowsLigatures):
  10094. * platform/graphics/wx/FontPlatformDataWx.cpp:
  10095. (WebCore::FontPlatformData::FontPlatformData):
  10096. (WebCore::FontPlatformData::cgFont):
  10097. * platform/graphics/wx/FontPlatformDataWxMac.mm: Added.
  10098. (WebCore::FontPlatformData::nsFont):
  10099. (WebCore::FontPlatformData::cacheNSFont):
  10100. * platform/graphics/wx/FontWx.cpp:
  10101. (WebCore::Font::canReturnFallbackFontsForComplexText):
  10102. (WebCore::Font::selectionRectForComplexText):
  10103. (WebCore::Font::drawComplexText):
  10104. (WebCore::Font::floatWidthForComplexText):
  10105. (WebCore::Font::offsetForPositionForComplexText):
  10106. * platform/graphics/wx/SimpleFontDataWx.cpp:
  10107. (WebCore::SimpleFontData::platformInit):
  10108. (WebCore::SimpleFontData::containsCharacters):
  10109. (WebCore::SimpleFontData::platformWidthForGlyph):
  10110. * platform/wx/wxcode/fontprops.h:
  10111. * platform/wx/wxcode/mac/carbon/fontprops.mm:
  10112. (wxFontContainsCharacters):
  10113. (GetTextExtent):
  10114. * platform/wx/wxcode/mac/carbon/non-kerned-drawing.cpp:
  10115. (WebCore::drawTextWithSpacing):
  10116. * platform/wx/wxcode/win/fontprops.cpp:
  10117. (wxFontContainsCharacters):
  10118. * wscript:
  10119. 2010-05-03 Abhishek Arya <inferno@chromium.org>
  10120. Reviewed by Adam Barth.
  10121. Add support for controlling clipboard access from javascript.
  10122. Clipboard access from javascript is disabled by default.
  10123. https://bugs.webkit.org/show_bug.cgi?id=27751
  10124. Test: editing/execCommand/clipboard-access.html
  10125. * WebCore.base.exp:
  10126. * editing/EditorCommand.cpp:
  10127. (WebCore::supportedCopyCut):
  10128. (WebCore::supportedPaste):
  10129. (WebCore::createCommandMap):
  10130. * page/Settings.cpp:
  10131. (WebCore::Settings::Settings):
  10132. (WebCore::Settings::setJavaScriptCanAccessClipboard):
  10133. * page/Settings.h:
  10134. (WebCore::Settings::javaScriptCanAccessClipboard):
  10135. 2010-05-03 Alexey Proskuryakov <ap@apple.com>
  10136. Reviewed by Adam Barth.
  10137. https://bugs.webkit.org/show_bug.cgi?id=38285
  10138. <rdar://problem/7903453> REGRESSION: Javascript command window.open does not work in empty tab
  10139. Cannot be tested, because new windows created in DRT always have an opener, and thus inherit
  10140. its security origin. Only new windows and tabs created by browser chrome had this problem.
  10141. * loader/FrameLoader.cpp: (WebCore::FrameLoader::init): Moved updateSandboxFlags() call to
  10142. the beginning, so that an initial document would get correct flags.
  10143. 2010-05-03 Noam Rosenthal <noam.rosenthal@nokia.com>
  10144. Reviewed by Darin Adler.
  10145. WebGL compile issue.
  10146. Added ExceptionCode.h to JSWebGLArrayBufferConstructor.cpp, for some reason it was missing.
  10147. https://bugs.webkit.org/show_bug.cgi?id=38453
  10148. No new tests: compile fix.
  10149. * bindings/js/JSWebGLArrayBufferConstructor.cpp:
  10150. 2010-05-03 Eric Seidel <eric@webkit.org>
  10151. Unreviewed, rolling out r58685.
  10152. http://trac.webkit.org/changeset/58685
  10153. https://bugs.webkit.org/show_bug.cgi?id=38461
  10154. Broke a test on Gtk
  10155. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  10156. (WebCore::MediaPlayerPrivateGStreamer::updateStates):
  10157. 2010-05-03 Yael Aharon <yael.aharon@nokia.com>
  10158. Reviewed by Darin Adler.
  10159. Use HTML5 number parsing in HTMLProgressElement
  10160. https://bugs.webkit.org/show_bug.cgi?id=38434
  10161. Use parseToDoubleForNumberType instead of toDouble.
  10162. Throw an exception when the number is NaN or Infinity.
  10163. * html/HTMLProgressElement.cpp:
  10164. (WebCore::HTMLProgressElement::value):
  10165. (WebCore::HTMLProgressElement::setValue):
  10166. (WebCore::HTMLProgressElement::max):
  10167. (WebCore::HTMLProgressElement::setMax):
  10168. * html/HTMLProgressElement.h:
  10169. * html/HTMLProgressElement.idl:
  10170. 2010-05-03 Jens Alfke <snej@chromium.org>
  10171. Reviewed by Darin Fisher.
  10172. [chromium] Add "willSendSubmitEvent" hook to WebFrameClient and FrameLoaderClient
  10173. https://bugs.webkit.org/show_bug.cgi?id=38397
  10174. No tests (functionality is exposed only through native WebKit API.)
  10175. * html/HTMLFormElement.cpp:
  10176. (WebCore::HTMLFormElement::prepareSubmit): Call frame loader's dispatchWillSendSubmitEvent
  10177. * loader/EmptyClients.h:
  10178. * loader/FrameLoaderClient.h:
  10179. (WebCore::FrameLoaderClient::dispatchWillSendSubmitEvent): New empty method
  10180. 2010-05-03 Philippe Normand <pnormand@igalia.com>
  10181. Reviewed by Eric Carlson.
  10182. [GStreamer] forgotten call to durationChanged in updateStates()
  10183. https://bugs.webkit.org/show_bug.cgi?id=38461
  10184. Notify MediaPlayer if duration is known after playback started.
  10185. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  10186. (WebCore::MediaPlayerPrivateGStreamer::updateStates):
  10187. 2010-05-03 Ryuan Choi <ryuan.choi@gmail.com>
  10188. Reviewed by Darin Adler.
  10189. fixing build break due to clearWatch() when Geolocation feature is
  10190. disabled.
  10191. https://bugs.webkit.org/show_bug.cgi?id=38091
  10192. no test because this is a build fix only
  10193. * page/Geolocation.cpp:
  10194. (WebCore::Geolocation::clearWatch):
  10195. 2010-05-03 Stephan Aßmus <superstippi@gmx.de>
  10196. Reviewed by Holger Freyther.
  10197. [Gtk] Fix leaking the FontPlatformData instance used to create the the
  10198. small caps font data.
  10199. https://bugs.webkit.org/show_bug.cgi?id=37500
  10200. No new tests needed.
  10201. * platform/graphics/gtk/SimpleFontDataPango.cpp:
  10202. (WebCore::SimpleFontData::smallCapsFontData):
  10203. - Use a stack allocated FontPlatformData instead of a heap allocated
  10204. one that is never freed.
  10205. 2010-05-03 Jarkko Sakkinen <jarkko.j.sakkinen@gmail.com>
  10206. Reviewed by Simon Hausmann.
  10207. [Qt] GraphicsLayer: support webGL
  10208. https://bugs.webkit.org/show_bug.cgi?id=35388
  10209. Added support GraphicsContext3D to GraphicsLayer.
  10210. Added paint method to GraphicsContext3D for Qt platform that
  10211. uses drawTexture() when QGLWidget is used as viewport of
  10212. QGraphicsWebView.
  10213. Fine-tuned texture and handling and image to texture conversion to
  10214. work also when drawTexture() blitting is used.
  10215. * platform/graphics/GraphicsContext3D.h:
  10216. * platform/graphics/qt/GraphicsContext3DQt.cpp:
  10217. (WebCore::GraphicsContext3DInternal::GraphicsContext3DInternal):
  10218. (WebCore::GraphicsContext3D::beginPaint):
  10219. (WebCore::GraphicsContext3D::paint):
  10220. (WebCore::GraphicsContext3D::texImage2D):
  10221. (WebCore::GraphicsContext3D::texSubImage2D):
  10222. (WebCore::GraphicsContext3D::getImageData):
  10223. * platform/graphics/qt/GraphicsLayerQt.cpp:
  10224. (WebCore::GraphicsLayerQtImpl::):
  10225. (WebCore::GraphicsLayerQtImpl::GraphicsLayerQtImpl):
  10226. (WebCore::GraphicsLayerQtImpl::paint):
  10227. (WebCore::GraphicsLayerQtImpl::flushChanges):
  10228. (WebCore::GraphicsLayerQt::setContentsToGraphicsContext3D):
  10229. (WebCore::GraphicsLayerQt::setGraphicsContext3DNeedsDisplay):
  10230. * platform/graphics/qt/GraphicsLayerQt.h:
  10231. 2010-05-03 Janne Koskinen <janne.p.koskinen@digia.com>
  10232. Reviewed by Simon Hausmann.
  10233. [Qt] Fix qtlibraryinfix not to contain space
  10234. List catenation with += adds whitespace cutting the infix
  10235. from the final target.
  10236. * WebCore.pro:
  10237. 2010-05-03 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
  10238. Reviewed by Simon Hausmann.
  10239. [Qt] Fix rendering of <button> elements on Mac OS X
  10240. The <button> element has ButtonPart appearance, not PushButton part,
  10241. so we have to include ButtonPart when we decide if we should draw the
  10242. button as raised on Mac OS X.
  10243. https://bugs.webkit.org/show_bug.cgi?id=38458
  10244. * platform/qt/RenderThemeQt.cpp:
  10245. (WebCore::RenderThemeQt::initializeCommonQStyleOptions):
  10246. 2010-04-30 Philippe Normand <pnormand@igalia.com>
  10247. Reviewed by Eric Seidel.
  10248. [GStreamer] endless loop after playback ended
  10249. https://bugs.webkit.org/show_bug.cgi?id=38384
  10250. At playback end ensure duration() will return a valid duration if
  10251. we managed to calculate it based on current position.
  10252. Test: media/video-duration-known-after-eos.html
  10253. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  10254. (WebCore::MediaPlayerPrivateGStreamer::didEnd):
  10255. 2010-05-03 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
  10256. [Qt] Fix build break on Mac OS X
  10257. * plugins/mac/PluginPackageMac.cpp: Use correct type
  10258. * WebCore.pro: Remove duplicate symbol, we now have a Qt implementation
  10259. 2010-05-03 Thomas Zander <t.zander@nokia.com>
  10260. Reviewed by Simon Hausmann.
  10261. [Qt] Fix library infix usage when compiling inside of Qt
  10262. Don't apply the infix when building inside Qt, as that's done through the
  10263. inclusion of qbase.pri.
  10264. * WebCore.pro:
  10265. 2010-05-02 Dan Bernstein <mitz@apple.com>
  10266. Reviewed by Simon Fraser.
  10267. Another case of <rdar://problem/7552959> REGRESSION: Infinite recursion in Position::getInlineBoxAndOffset()
  10268. https://bugs.webkit.org/show_bug.cgi?id=38445
  10269. Test: editing/selection/mixed-editability-11.html
  10270. * dom/Position.cpp:
  10271. (WebCore::downstreamIgnoringEditingBoundaries): Added. Returns the furthest visually equivalent
  10272. position downstream, crossing any editability boundaries.
  10273. (WebCore::upstreamIgnoringEditingBoundaries): Similarly for upstream.
  10274. (WebCore::Position::getInlineBoxAndOffset): Changed the logic for finding an inline box for positions
  10275. whose node is a block flow. Instead of traversing the DOM, advance downstream or upstream as far as
  10276. possible, crossing any editability boudaries. Infinite recursion is avoided by advancing all the way
  10277. and checking that the new position is different from the starting position. Also replaced the specific
  10278. test for buttons with the generic and more comprehensive canHaveChildrenForEditing().
  10279. 2010-05-02 Tasuku Suzuki <tasuku.suzuki@nokia.com>
  10280. Reviewed by Simon Hausmann.
  10281. [Qt] Fix compilation with QT_NO_BEARERMANAGEMENT
  10282. https://bugs.webkit.org/show_bug.cgi?id=38324
  10283. * platform/network/NetworkStateNotifier.h:
  10284. * platform/network/qt/NetworkStateNotifierQt.cpp:
  10285. 2010-04-29 Janne Koskinen <janne.p.koskinen@digia.com>
  10286. Reviewed by Simon Hausmann.
  10287. [Qt] QtWebKit versioning added
  10288. https://bugs.webkit.org/show_bug.cgi?id=37207
  10289. QtWebkit releases separated from Qt release cycle.
  10290. * WebCore.pro:
  10291. 2010-05-02 Joseph Pecoraro <joepeck@webkit.org>
  10292. Reviewed by Timothy Hatcher.
  10293. Web Inspector: Old Style trimWhitespace() should be trim()
  10294. https://bugs.webkit.org/show_bug.cgi?id=38441
  10295. * inspector/front-end/SourceFrame.js:
  10296. (WebInspector.SourceFrame.prototype._evalSelectionInCallFrame):
  10297. 2010-05-02 Tasuku Suzuki <tasuku.suzuki@nokia.com>
  10298. Reviewed by Simon Hausmann.
  10299. [Qt] Fix compilation with QT_NO_LINEEDIT
  10300. https://bugs.webkit.org/show_bug.cgi?id=38324
  10301. * platform/qt/RenderThemeQt.cpp:
  10302. (WebCore::RenderThemeQt::~RenderThemeQt):
  10303. (WebCore::RenderThemeQt::findFrameLineWidth):
  10304. 2010-05-02 Pavel Feldman <pfeldman@chromium.org>
  10305. Not reviewed: Touch inspector controller to kick windows tests.
  10306. * inspector/InspectorController.cpp:
  10307. 2010-05-02 Pavel Feldman <pfeldman@chromium.org>
  10308. Reviewed by Timothy Hatcher.
  10309. Web Inspector: IMG nodes are being added to the DOM tree late, sometimes hiding the revealed element.
  10310. https://bugs.webkit.org/show_bug.cgi?id=38432
  10311. * inspector/front-end/ElementsTreeOutline.js:
  10312. (WebInspector.ElementsTreeOutline.prototype._onmousemove):
  10313. (WebInspector.ElementsTreeElement.prototype._createTooltipForNode.setTooltip):
  10314. (WebInspector.ElementsTreeElement.prototype._createTooltipForNode):
  10315. (WebInspector.ElementsTreeElement.prototype.updateTitle):
  10316. (WebInspector.ElementsTreeElement.prototype._attributeHTML):
  10317. ():
  10318. 2010-05-02 Dirk Schulze <krit@webkit.org>
  10319. Reviewed by Nikolas Zimmermann.
  10320. SVG hkern implementation incomplete
  10321. https://bugs.webkit.org/show_bug.cgi?id=38407
  10322. Test: svg/text/text-hkern.svg
  10323. The current SVG hkern implementation is incomplete and partly wrong. We pass the ACID3 test
  10324. by accident.
  10325. The new implementation supports all glyph and unicode combinations that are allowed by the Spec
  10326. and fixes various of bugs. The parser moved from SVGFontElement to the general parsing code in
  10327. SVGParserUtilities.
  10328. Some clean-up makes the code more readable and reuseable for the upcoming vkern implementation.
  10329. hkern support for text on path is missing and will be added by a following patch.
  10330. Unicode strings of hkern elements are just parsed once and not on every glyph again anymore.
  10331. * rendering/SVGRootInlineBox.cpp:
  10332. (WebCore::calculateCSSKerning):
  10333. (WebCore::applySVGKerning):
  10334. (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
  10335. * svg/SVGFontElement.cpp:
  10336. (WebCore::stringMatchesUnicodeRange):
  10337. (WebCore::stringMatchesGlyphName):
  10338. (WebCore::matches):
  10339. (WebCore::SVGFontElement::getHorizontalKerningPairForStringsAndGlyphs):
  10340. * svg/SVGFontElement.h:
  10341. * svg/SVGHKernElement.cpp:
  10342. (WebCore::SVGHKernElement::buildHorizontalKerningPair):
  10343. * svg/SVGHKernElement.h:
  10344. * svg/SVGParserUtilities.cpp:
  10345. (WebCore::parseGlyphName):
  10346. (WebCore::parseUnicodeRange):
  10347. (WebCore::parseKerningUnicodeString):
  10348. * svg/SVGParserUtilities.h:
  10349. 2010-05-02 Pavel Feldman <pfeldman@chromium.org>
  10350. Reviewed by Timothy Hatcher.
  10351. Web Inspector: debugger shortcuts are processed twice if source frame has focus.
  10352. https://bugs.webkit.org/show_bug.cgi?id=38431
  10353. * inspector/front-end/SourceFrame.js:
  10354. (WebInspector.SourceFrame):
  10355. (WebInspector.SourceFrame.prototype._createViewerIfNeeded):
  10356. 2010-05-02 Jarkko Sakkinen <jarkko.j.sakkinen@gmail.com>
  10357. Reviewed by Eric Seidel.
  10358. [Qt] Build error in GraphicsContext3DQt.cpp
  10359. https://bugs.webkit.org/show_bug.cgi?id=38382
  10360. Removed duplicate implementation of isGLES2Compliant from
  10361. GraphicsContext3DQt.cpp. Removed deprecated API stuff for
  10362. texImage2D/texSubImage2D.
  10363. * platform/graphics/qt/GraphicsContext3DQt.cpp:
  10364. 2010-05-02 Garret Kelly <gdk@chromium.org>
  10365. Reviewed by David Levin.
  10366. Make the Touch RuntimeEnabledFeature disabled by default.
  10367. https://bugs.webkit.org/show_bug.cgi?id=38392
  10368. * bindings/generic/RuntimeEnabledFeatures.cpp: Disable the Touch feature by default.
  10369. 2010-05-02 Michael Nordman <michaeln@google.com>
  10370. Reviewed by Dmitry Titov.
  10371. Define two new ResourceRequestBase TargetTypes for worker and shared worker
  10372. main resources. Use the new target types where appropiate. Add logic to marshal
  10373. the target type specified by requests initiated on a background worker thread.
  10374. https://bugs.webkit.org/show_bug.cgi?id=38295
  10375. No new tests. This doesn't have script visible artifacts.
  10376. * platform/network/ResourceRequestBase.cpp: marshal the values
  10377. (WebCore::ResourceRequestBase::adopt):
  10378. (WebCore::ResourceRequestBase::copyData):
  10379. * platform/network/ResourceRequestBase.h: define the types
  10380. (WebCore::ResourceRequestBase::):
  10381. * workers/DefaultSharedWorkerRepository.cpp: use TargetIsSharedWorker
  10382. (WebCore::SharedWorkerScriptLoader::load):
  10383. * workers/Worker.cpp: use TargetIsWorker
  10384. (WebCore::Worker::Worker):
  10385. * workers/WorkerContext.cpp: use TargetIsScript for importScripts
  10386. (WebCore::WorkerContext::importScripts):
  10387. * workers/WorkerScriptLoader.cpp: add a data member for the target type
  10388. (WebCore::WorkerScriptLoader::WorkerScriptLoader):
  10389. (WebCore::WorkerScriptLoader::createResourceRequest):
  10390. * workers/WorkerScriptLoader.h:
  10391. 2010-05-02 Noam Rosenthal <noam.rosenthal@nokia.com>
  10392. Reviewed by Adele Peterson.
  10393. Webkit doesn't compile with 3D-canvas enabled and video disabled
  10394. https://bugs.webkit.org/show_bug.cgi?id=38297
  10395. Added a #ifdef ENABLE(VIDEO) to WebGL code
  10396. No new tests: compile fix.
  10397. * bindings/js/JSWebGLRenderingContextCustom.cpp:
  10398. (WebCore::JSWebGLRenderingContext::texImage2D):
  10399. (WebCore::JSWebGLRenderingContext::texSubImage2D):
  10400. 2010-05-01 Evan Stade <estade@chromium.org>
  10401. Reviewed by David Levin.
  10402. [chromium] Skia needs to fade DragImages
  10403. https://bugs.webkit.org/show_bug.cgi?id=38008
  10404. tested by DragImageTest
  10405. * platform/chromium/DragImageChromiumSkia.cpp:
  10406. (WebCore::dissolveDragImageToFraction):implement
  10407. (WebCore::createDragImageFromImage):deep copy instead of shallow
  10408. 2010-05-01 Maciej Stachowiak <mjs@apple.com>
  10409. Reviewed by Sam Weinig.
  10410. REGRESSION (r58273): Visited links do not change color immediately when Cmd-clicked
  10411. https://bugs.webkit.org/show_bug.cgi?id=38422
  10412. <rdar://problem/7921778>
  10413. Tests:
  10414. manual-tests/visited-link-new-window.html
  10415. * css/CSSStyleSelector.cpp:
  10416. (WebCore::CSSStyleSelector::initElement): Only cache the visited link state
  10417. when invoked as part of a helper call to styleForElement or pseudoStyleForElement,
  10418. to avoid caching the visited link state beyond the scope of a single style lookup.
  10419. (WebCore::CSSStyleSelector::styleForElement): Adjust for above change.
  10420. (WebCore::CSSStyleSelector::pseudoStyleForElement): Adjust for above change.
  10421. * css/CSSStyleSelector.h:
  10422. (WebCore::CSSStyleSelector::styleForElement): Change so "visited link helper mode"
  10423. can't accidentally be called from outside CSSStyleSelector itself.
  10424. (WebCore::CSSStyleSelector::pseudoStyleForElement): ditto
  10425. * manual-tests/visited-link-new-window.html: Added. I could not figure out any way
  10426. to make an automated test that supports visited link coloring.
  10427. 2010-05-01 Yael Aharon <yael.aharon@nokia.com>
  10428. Reviewed by Darin Adler.
  10429. Move number parsing code out of HTMLInputElement.
  10430. https://bugs.webkit.org/show_bug.cgi?id=38203
  10431. The numebr parsing code follows HTML5 parsing rules and should be available outside of HTMLInputElement.
  10432. No new tests as no new functionality was introduced.
  10433. * html/HTMLInputElement.cpp:
  10434. * html/HTMLInputElement.h:
  10435. * html/HTMLParser.cpp:
  10436. (WebCore::serializeForNumberType):
  10437. (WebCore::parseToDoubleForNumberType):
  10438. * html/HTMLParser.h:
  10439. * html/StepRange.cpp:
  10440. (WebCore::StepRange::clampValue):
  10441. (WebCore::StepRange::valueFromElement):
  10442. * html/ValidityState.cpp:
  10443. (WebCore::ValidityState::typeMismatch):
  10444. * rendering/RenderSlider.cpp:
  10445. (WebCore::RenderSlider::setValueForPosition):
  10446. 2010-05-01 Xan Lopez <xlopez@igalia.com>
  10447. Reviewed by Oliver Hunt.
  10448. [GTK] GObject DOM bindings
  10449. https://bugs.webkit.org/show_bug.cgi?id=33590
  10450. Unify more logic to skip functions into SkipFunction, and
  10451. whitelist the two [Custom] methods in HTMLCollection.idl.
  10452. * bindings/scripts/CodeGeneratorGObject.pm:
  10453. 2010-05-01 Robert Hogan <robert@webkit.org>
  10454. Reviewed by Simon Hausmann.
  10455. [Qt] Add smart paste support
  10456. https://bugs.webkit.org/show_bug.cgi?id=38136
  10457. * WebCore.pro:
  10458. * editing/qt/SmartReplaceQt.cpp: Added.
  10459. (WebCore::isCharacterSmartReplaceExempt):
  10460. * platform/qt/PasteboardQt.cpp:
  10461. (WebCore::Pasteboard::writeSelection):
  10462. (WebCore::Pasteboard::canSmartReplace):
  10463. 2010-04-30 Yoshiki Hayashi <yhayashi@google.com>
  10464. Reviewed by Shinichiro Hamaji.
  10465. https://bugs.webkit.org/show_bug.cgi?id=38249
  10466. Fixes an issue where border height and padding height are ignored when computing vertically shrinking flexbox's height.
  10467. Test: fast/flexbox/child-flexing.html
  10468. * rendering/RenderFlexibleBox.cpp:
  10469. (WebCore::RenderFlexibleBox::allowedChildFlex):
  10470. 2010-04-30 Shinichiro Hamaji <hamaji@chromium.org>
  10471. Reviewed by Darin Adler.
  10472. Add layoutTestController.setPrinting()
  10473. https://bugs.webkit.org/show_bug.cgi?id=37203
  10474. Use the renderer's width insteead of screen's width as the width of
  10475. a screen depends on machines.
  10476. * rendering/RenderTreeAsText.cpp:
  10477. (WebCore::externalRepresentation):
  10478. 2010-04-30 Joseph Pecoraro <joepeck@webkit.org>
  10479. Reviewed by Timothy Hatcher.
  10480. Web Inspector: Missing INSPECTOR Guard in Console::lastWMLErrorMessage
  10481. https://bugs.webkit.org/show_bug.cgi?id=38366
  10482. Console::lastWMLErrorMessage is only available if WML is enabled, however
  10483. its implementation only makes sense as long as INSPECTOR is enabled
  10484. as well. So this adds the ENABLE(INSPECTOR) guard in the function. A
  10485. browser without ENABLE(INSPECTOR) will always get an empty result.
  10486. * page/Console.cpp:
  10487. 2010-04-28 Joseph Pecoraro <joepeck@webkit.org>
  10488. Reviewed by Oliver Hunt.
  10489. REGRESSION(r58313): Regression evident in pixel tests: the search icon is always clipped at the bottom.
  10490. https://bugs.webkit.org/show_bug.cgi?id=38253
  10491. Test: fast/css/input-search-padding.html
  10492. An <input type="search"> contains an inner block, which is explicitly
  10493. centered in RenderTextControlSingleLine based on the height of the element.
  10494. However, the clipping rect was not using the set location, and instead
  10495. calculated off of the top border and padding alone. This also vertically
  10496. centers the Caps Lock indicator.
  10497. * rendering/RenderTextControl.cpp: moved controlClipRect implementation to RenderTextControlSingleLine
  10498. * rendering/RenderTextControl.h: allow a subclass implementation of controlClipRect, removed redundant hasControlClip implementation, and moved controlClipRect
  10499. * rendering/RenderTextControlSingleLine.cpp:
  10500. (WebCore::RenderTextControlSingleLine::paint): vertically center the Caps Lock indicator
  10501. (WebCore::RenderTextControlSingleLine::controlClipRect): use the set location of the anonymous inner block instead
  10502. * rendering/RenderTextControlSingleLine.h: allow for an implementation of controlClipRect for <input type="search">
  10503. 2010-04-30 Jon Honeycutt <jhoneycutt@apple.com>
  10504. Caret may fail to blink if a focus handler brings up a modal dialog
  10505. https://bugs.webkit.org/show_bug.cgi?id=38372
  10506. Reviewed by Darin Adler.
  10507. * manual-tests/onfocus-alert-blinking-caret.html: Added.
  10508. * page/EventHandler.cpp:
  10509. (WebCore::EventHandler::handleMousePressEvent):
  10510. Moved the call to setCaretBlinkingSuspended() from here...
  10511. (WebCore::EventHandler::handleMousePressEvent):
  10512. ... to here. This makes us suspend caret blinking before dispatching the
  10513. mouse down event. If dispatching the mouse down event allows the message
  10514. loop to run, we want mouse up events received in that message loop to be
  10515. able to resume caret blinking.
  10516. (WebCore::EventHandler::lostMouseCapture):
  10517. We've lost mouse capture and won't be notified of mouse up events;
  10518. resume caret blinking.
  10519. * page/EventHandler.h:
  10520. Declare lostMouseCapture().
  10521. 2010-04-30 Dimitri Glazkov <dglazkov@chromium.org>
  10522. Unreviewed, build fix.
  10523. [Chromium] Added a simple IdentifierRep struct and removed dependency on
  10524. IdentifierRep.h.
  10525. * bindings/v8/V8NPObject.cpp: Added simple IdentifierRep struct.
  10526. 2010-04-30 Dimitri Glazkov <dglazkov@chromium.org>
  10527. Unreviewed, build fix.
  10528. [Chromium] Remove bridge/ from include paths.
  10529. * WebCore.gyp/WebCore.gyp: Removed bridge/ from include path.
  10530. 2010-04-30 Abhishek Arya <inferno@chromium.org>
  10531. Reviewed by David Kilzer.
  10532. Convert m_documentUnderMouse, m_dragInitiator to RefPtr.
  10533. Eliminated unused m_dragInitiator accessor to prevent dereferencing.
  10534. https://bugs.webkit.org/show_bug.cgi?id=37618
  10535. Test: editing/pasteboard/drag-drop-iframe-refresh-crash.html
  10536. * page/DragController.cpp:
  10537. (WebCore::DragController::tryDocumentDrag):
  10538. (WebCore::DragController::concludeEditDrag):
  10539. * page/DragController.h:
  10540. (WebCore::DragController::draggingImageURL):
  10541. (WebCore::DragController::documentUnderMouse):
  10542. 2010-04-29 James Robinson <jamesr@chromium.org>
  10543. Reviewed by Simon Fraser.
  10544. Calls FrameView::scrollPositionChanged whenever a ScrollView is scrolled
  10545. https://bugs.webkit.org/show_bug.cgi?id=38286
  10546. When a ScrollView's scroll position is changed, we have to call
  10547. FrameView::scrollPositionChanged to generate repaint invalidation for
  10548. fixed position elements. This ends up getting called indirectly when
  10549. the ScrollView has a platformWidget through the port layer
  10550. (see WebHTMLView.mm's _frameOrBoundsChanged method for how the mac
  10551. port does it) but not when there is no platformWidget.
  10552. This is tested by the fast/repaint/fixed-* tests when run in pixel
  10553. mode.
  10554. Test: fast/repaint/fixed-move-after-keyboard-scroll.html
  10555. * page/FrameView.h:
  10556. * platform/ScrollView.cpp:
  10557. (WebCore::ScrollView::valueChanged):
  10558. * platform/ScrollView.h:
  10559. (WebCore::ScrollView::scrollPositionChanged):
  10560. 2010-04-30 Anders Carlsson <andersca@apple.com>
  10561. Reviewed by Darin Adler.
  10562. Use C99 integer types in more places.
  10563. * manual-tests/NPN_Invoke/main.c:
  10564. (NPP_New):
  10565. (NPP_NewStream):
  10566. (NPP_WriteReady):
  10567. (NPP_Write):
  10568. (NPP_HandleEvent):
  10569. (functionPointerForTVector):
  10570. * plugins/mac/PluginViewMac.cpp:
  10571. (WebCore::PluginView::platformGetValueStatic):
  10572. (WebCore::PluginView::handlePostReadFile):
  10573. 2010-04-30 Darin Adler <darin@apple.com>
  10574. Reviewed by Oliver Hunt.
  10575. Remove unused scrollRectIntoViewRecursively function
  10576. https://bugs.webkit.org/show_bug.cgi?id=38403
  10577. * page/Chrome.cpp:
  10578. (WebCore::Chrome::scrollRectIntoView): Moved comment here that was previously
  10579. in the scrollRectIntoViewRecursively function.
  10580. * platform/ScrollView.cpp: Get rid scrollRectIntoViewRecursively.
  10581. * platform/ScrollView.h: Ditto. Fix comment that refers to the two functions.
  10582. Also correct all uses of the term "method" to use the C++ term "function" and
  10583. got rid of double spaces after periods.
  10584. 2010-04-30 Anders Carlsson <andersca@apple.com>
  10585. Another Qt build fix.
  10586. * plugins/qt/PluginViewQt.cpp:
  10587. (WebCore::PluginView::platformGetValueStatic):
  10588. 2010-04-30 Anders Carlsson <andersca@apple.com>
  10589. Add back TRUE, FALSE and NULL macros. They were not meant to be removed!
  10590. * bridge/npapi.h:
  10591. 2010-04-30 Anders Carlsson <andersca@apple.com>
  10592. Try to fix the Qt build this time.
  10593. * plugins/qt/PluginPackageQt.cpp:
  10594. (WebCore::staticPluginQuirkRequiresGtkToolKit_NPN_GetValue):
  10595. (WebCore::PluginPackage::NPVersion):
  10596. 2010-04-30 Anders Carlsson <andersca@apple.com>
  10597. Yet another build fix.
  10598. * plugins/gtk/PluginPackageGtk.cpp:
  10599. (WebCore::PluginPackage::NPVersion):
  10600. 2010-04-30 Anders Carlsson <andersca@apple.com>
  10601. Fix build.
  10602. * bridge/npapi.h:
  10603. 2010-04-30 Jian Li <jianli@chromium.org>
  10604. Reviewed by Darin Fisher.
  10605. [chromium] Add WebFileSystem interface and hook up with all FileSystem methods.
  10606. https://bugs.webkit.org/show_bug.cgi?id=38228
  10607. * platform/chromium/ChromiumBridge.h:
  10608. * platform/chromium/FileSystemChromium.cpp:
  10609. (WebCore::openFile):
  10610. (WebCore::closeFile):
  10611. (WebCore::seekFile):
  10612. (WebCore::truncateFile):
  10613. (WebCore::readFromFile):
  10614. (WebCore::writeToFile):
  10615. 2010-04-30 Anders Carlsson <andersca@apple.com>
  10616. Reviewed by Dan Bernstein.
  10617. Final part of
  10618. https://bugs.webkit.org/show_bug.cgi?id=20784
  10619. move npapi.h to C99 integer types
  10620. * bridge/npapi.h:
  10621. Remove the old types.
  10622. 2010-04-30 Sheriff Bot <webkit.review.bot@gmail.com>
  10623. Unreviewed, rolling out r58569.
  10624. http://trac.webkit.org/changeset/58569
  10625. https://bugs.webkit.org/show_bug.cgi?id=38399
  10626. This broke the GTK bots due to bad GC behavior (Requested by
  10627. ericu on #webkit).
  10628. * bindings/js/JSWorkerContextCustom.cpp:
  10629. * bindings/v8/custom/V8WorkerContextCustom.cpp:
  10630. * storage/Database.idl:
  10631. * storage/SQLError.idl:
  10632. * storage/SQLResultSet.idl:
  10633. * storage/SQLResultSetRowList.idl:
  10634. * storage/SQLTransaction.idl:
  10635. * workers/WorkerContext.cpp:
  10636. (WebCore::WorkerContext::openDatabase):
  10637. * workers/WorkerContext.h:
  10638. (WebCore::WorkerContext::databaseExceededQuota):
  10639. * workers/WorkerContext.idl:
  10640. 2010-04-30 Anders Carlsson <andersca@apple.com>
  10641. Fix GTK+ build.
  10642. * plugins/gtk/PluginViewGtk.cpp:
  10643. (WebCore::PluginView::handlePostReadFile):
  10644. (WebCore::PluginView::platformGetValueStatic):
  10645. 2010-04-30 Anders Carlsson <andersca@apple.com>
  10646. Fix Qt build.
  10647. * plugins/qt/PluginViewQt.cpp:
  10648. (WebCore::PluginView::handlePostReadFile):
  10649. (WebCore::PluginView::platformGetValue):
  10650. 2010-04-30 Anders Carlsson <andersca@apple.com>
  10651. Reviewed by Timothy Hatcher.
  10652. Next step towards fixing
  10653. https://bugs.webkit.org/show_bug.cgi?id=20784
  10654. move npapi.h to C99 integer types
  10655. Use the C99 types everywhere. The "old" types are still around but will be removed
  10656. in a subsequent commit.
  10657. * bridge/npapi.h:
  10658. (_NPCocoaEvent::):
  10659. * plugins/PluginPackage.h:
  10660. * plugins/PluginStream.cpp:
  10661. (WebCore::PluginStream::deliverData):
  10662. * plugins/PluginStream.h:
  10663. * plugins/PluginView.cpp:
  10664. (WebCore::PluginView::postURLNotify):
  10665. (WebCore::PluginView::postURL):
  10666. (WebCore::PluginView::write):
  10667. (WebCore::PluginView::handlePost):
  10668. * plugins/PluginView.h:
  10669. * plugins/PluginViewNone.cpp:
  10670. (WebCore::PluginView::handlePostReadFile):
  10671. * plugins/npapi.cpp:
  10672. (NPN_MemAlloc):
  10673. (NPN_MemFlush):
  10674. (NPN_PostURLNotify):
  10675. (NPN_PostURL):
  10676. (NPN_Write):
  10677. * plugins/npfunctions.h:
  10678. * plugins/win/PluginPackageWin.cpp:
  10679. (WebCore::PluginPackage::NPVersion):
  10680. * plugins/win/PluginViewWin.cpp:
  10681. (WebCore::PluginView::handlePostReadFile):
  10682. 2010-04-30 Peter Kasting <pkasting@google.com>
  10683. Reviewed by David Levin.
  10684. Make all image decoders set the "failed" bit if an image could not be
  10685. completely decoded, but no more data is coming. The ICO and BMP
  10686. decoders already did this.
  10687. https://bugs.webkit.org/show_bug.cgi?id=35411
  10688. "Failed" does not cause the image to not be displayed, it simply causes
  10689. us to not bother to try to decode again if future requests are made, and
  10690. for some decoders, lets the decoder clean up some of its temporary
  10691. objects.
  10692. No layout tests because this does not change the visible output of decoding in any way.
  10693. * platform/image-decoders/gif/GIFImageDecoder.cpp:
  10694. (WebCore::GIFImageDecoder::frameComplete): Return whether the frame could be marked as complete.
  10695. (WebCore::GIFImageDecoder::decode): Fail if read() needs more data (and thus returns false) and no more is coming.
  10696. * platform/image-decoders/gif/GIFImageDecoder.h:
  10697. * platform/image-decoders/gif/GIFImageReader.cpp:
  10698. (GIFImageReader::do_lzw): Instead of returning true for buffer underrun and false for failure, return false for both and set the failure flag on failure.
  10699. (GIFImageReader::read): Ditto.
  10700. * platform/image-decoders/gif/GIFImageReader.h:
  10701. * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
  10702. (WebCore::):
  10703. (WebCore::JPEGImageReader::decode): See do_lzw() comment above.
  10704. (WebCore::JPEGImageDecoder::decode): Fail if decode() needs more data (and thus returns false) and no more is coming.
  10705. * platform/image-decoders/jpeg/JPEGImageDecoder.h:
  10706. * platform/image-decoders/png/PNGImageDecoder.cpp:
  10707. (WebCore::PNGImageReader::decode): Return true for decode success, false for buffer underrun or decode failure, and set the failure flag on decode failure.
  10708. (WebCore::PNGImageDecoder::decode): See JPEGImageDecoder::decode() comment above.
  10709. * platform/image-decoders/png/PNGImageDecoder.h:
  10710. 2010-04-30 Brady Eidson <beidson@apple.com>
  10711. Reviewed by Eric Carlson.
  10712. <rdar://problem/7902467> - Audio plays upon loading of npr.org but shouldn't
  10713. No new tests. (Currently no way to test such site specific hack behavior)
  10714. * html/HTMLMediaElement.cpp:
  10715. (WebCore::HTMLMediaElement::HTMLMediaElement):
  10716. (WebCore::HTMLMediaElement::asyncEventTimerFired): If the event to be dispatched is the canplay
  10717. event, wrap the dispatch with m_dispatchingCanPlayEvent set.
  10718. (WebCore::HTMLMediaElement::play): If m_dispatchingCanPlayEvent is true and the site is npr.org,
  10719. don't perform the play().
  10720. * html/HTMLMediaElement.h: Add m_dispatchingCanPlayEvent member.
  10721. 2010-04-30 Dan Bernstein <mitz@apple.com>
  10722. Reviewed by Adele Peterson.
  10723. Part of <rdar://problem/6649734> Text repainting does not account for glyphs which draw outside the typographic bounds of the font
  10724. https://bugs.webkit.org/show_bug.cgi?id=6274
  10725. Account for glyph overflow of characters in the range U+1E00..U+2000, but without sending them
  10726. through the complex text code path. Instead, introduce a variant of the fast path that tracks
  10727. glyph overflow.
  10728. * platform/graphics/Font.cpp:
  10729. (WebCore::Font::drawText): Use codePath().
  10730. (WebCore::Font::floatWidth): Use codePath(). Pass the GlyphOverflow pointer through to
  10731. floatWidthForSimpleText() if the code path is SimpleWithGlyphOverflow.
  10732. (WebCore::Font::selectionRectForText): Use codePath().
  10733. (WebCore::Font::offsetForPosition): Ditto.
  10734. * platform/graphics/Font.h: Replaced canUseGlyphCache() with codePath(). Added a GlyphOverflow
  10735. parameter to floatWidthForSimpleText().
  10736. * platform/graphics/FontFastPath.cpp:
  10737. Removed ROMAN_AND_GREEK_DIACRITICS_CAN_USE_GLYPH_CACHE.
  10738. (WebCore::Font::codePath): Renamed canUseGlyphCache() to this. Where it used to return false,
  10739. it now returns Complex. Where it used to return true, it now returns Simple, except for
  10740. the range U+1E00..U+2000, where it now returns SimpleWithGlyphOverflow.
  10741. (WebCore::Font::floatWidthForSimpleText): Added a GlyphOverflow parameter. If not 0, have the
  10742. width iterator account for glyph bounds, then update the GlyphOverflow accordingly.
  10743. * platform/graphics/WidthIterator.cpp:
  10744. (WebCore::WidthIterator::WidthIterator): Added boolean parameter telling the width iterator
  10745. whether to account for glyph bounds. Initialize m_accountForGlyphBounds accordingly. Initialize
  10746. m_maxGlyphBoundingBoxY, m_minGlyphBoundingBoxY, m_firstGlyphOverflow and m_lastGlyphOverflow.
  10747. (WebCore::WidthIterator::advance): If accounting for glyph bounds, update the above member variables.
  10748. * platform/graphics/WidthIterator.h:
  10749. (WebCore::WidthIterator::maxGlyphBoundingBoxY): Added this accessor.
  10750. (WebCore::WidthIterator::minGlyphBoundingBoxY): Ditto.
  10751. (WebCore::WidthIterator::firstGlyphOverflow): Ditto.
  10752. (WebCore::WidthIterator::lastGlyphOverflow): Ditto.
  10753. 2010-04-30 Chris Marrin <cmarrin@apple.com>
  10754. Reviewed by Simon Fraser.
  10755. Reversed the order of the CSSMatrix.multiply method
  10756. https://bugs.webkit.org/show_bug.cgi?id=38337
  10757. Test: transforms/svg-vs-css.xhtml
  10758. * css/WebKitCSSMatrix.cpp:
  10759. (WebCore::WebKitCSSMatrix::multiply):
  10760. * platform/graphics/transforms/TransformationMatrix.cpp:
  10761. 2010-04-30 Kevin Ollivier <kevino@theolliviers.com>
  10762. Unreviewed. Attempt to fix the Chromium Mac build after the last commit.
  10763. * WebCore.gypi:
  10764. 2010-04-30 Kevin Ollivier <kevino@theolliviers.com>
  10765. Reviewed by Dan Bernstein.
  10766. Allow other ports to compile ATSUI and CoreText functions in SimpleFontData for Mac.
  10767. https://bugs.webkit.org/show_bug.cgi?id=38334
  10768. * WebCore.xcodeproj/project.pbxproj:
  10769. * platform/graphics/mac/SimpleFontDataATSUI.mm: Copied from WebCore/platform/graphics/mac/SimpleFontDataMac.mm.
  10770. * platform/graphics/mac/SimpleFontDataCoreText.cpp: Copied from WebCore/platform/graphics/mac/SimpleFontDataMac.mm.
  10771. * platform/graphics/mac/SimpleFontDataMac.mm:
  10772. 2010-04-30 Shinichiro Hamaji <hamaji@chromium.org>
  10773. Reviewed by Simon Fraser.
  10774. SHOULD NEVER BE REACHED assertion loading forbes.com
  10775. https://bugs.webkit.org/show_bug.cgi?id=38272
  10776. Ignore page media related pseudo classes.
  10777. Test: printing/pseudo-class-outside-page.html
  10778. * css/CSSStyleSelector.cpp:
  10779. (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
  10780. 2010-04-30 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  10781. Unreviewed, build fix.
  10782. Fix compiler warning "suggest parentheses around"
  10783. No new tests as there is no new functionality.
  10784. * svg/SVGAnimateElement.cpp:
  10785. (WebCore::SVGAnimateElement::calculateFromAndToValues):
  10786. 2010-04-30 Kent Tamura <tkent@chromium.org>
  10787. Unreviewed. Regression fix.
  10788. Revert a part of r58564 to be compatible with prior behavior
  10789. https://bugs.webkit.org/show_bug.cgi?id=38383
  10790. * rendering/RenderTextControlSingleLine.cpp:
  10791. (WebCore::RenderTextControlSingleLine::forwardEvent):
  10792. r58564 made a region check for the cancel button stricter, but it
  10793. made some tests failing on Chromium. So, relax the check again.
  10794. 2010-04-29 Jeremy Orlow <jorlow@chromium.org>
  10795. Reviewed by Darin Fisher.
  10796. Change StorageEvent.uri to StorageEvent.url to match the spec
  10797. https://bugs.webkit.org/show_bug.cgi?id=38331
  10798. As I mentioned in http://www.mail-archive.com/public-webapps@w3.org/msg08495.html
  10799. WebKit is the only one who places the document's URL in a 'uri' property
  10800. rather than a 'url' property. Even though we've shipped several versions of
  10801. browsers with the old name, we probably should change this to comply with the
  10802. spec.
  10803. This stuff is covered by existing tests.
  10804. * storage/StorageEvent.cpp:
  10805. (WebCore::StorageEvent::create):
  10806. (WebCore::StorageEvent::StorageEvent):
  10807. (WebCore::StorageEvent::initStorageEvent):
  10808. * storage/StorageEvent.h:
  10809. (WebCore::StorageEvent::url):
  10810. * storage/StorageEvent.idl:
  10811. 2010-04-30 Nikolas Zimmermann <nzimmermann@rim.com>
  10812. Reviewed by Dirk Schulze.
  10813. REGRESSION: RenderPath does not handle repaints correctly anymore if bounds changed
  10814. https://bugs.webkit.org/show_bug.cgi?id=38385
  10815. The last SVG performance patch broke repainting if bounds of a RenderPath get smaller.
  10816. It would only repaint the smaller part, not the original larger bounds.
  10817. Remove all lazy calculation of the repaint rects, instead calculate object/strokeBoundingBox and repaintRectInLocalCoordinates
  10818. once in layout - after LayoutRepainter grabbed the initial bounds, before calling repaintAfterLayout(). We can now inline
  10819. all these functions, and save a lot of m_path.isEmpty() checks, which are expensive. No need to store a seperated markerBoundingBox(),
  10820. combine with strokeBoundingBox() -> save one FloatRect per RenderPath. Move strokeBoundingBox() from SVGRenderBase to RenderObject,
  10821. right next to objectBoundingBox() - to save unnecessary toSVGRenderBase() calls. Completly remove this method.
  10822. Overall this is a regression fix, a performance improvement and saves memory. Something for everyone.
  10823. Tests: svg/custom/repaint-stroke-width-changes.svg
  10824. * rendering/RenderObject.cpp: Added strokeBoundingBox() here, to avoid the toSVGRenderBase() dance.
  10825. (WebCore::RenderObject::strokeBoundingBox):
  10826. * rendering/RenderObject.h: Ditto.
  10827. * rendering/RenderPath.cpp:
  10828. (WebCore::RenderPath::RenderPath):
  10829. (WebCore::RenderPath::layout): Fix regression, do repainting correctly, by recalculating the boundaries, if needed, instead of nulling them.
  10830. (WebCore::RenderPath::paint): Cache SVGRenderStyle in local variable, remove no longer valid FIXME.
  10831. (WebCore::RenderPath::calculateMarkerBoundsIfNeeded): Return a FloatRect, to avoid having to store the marker bounding box seperated.
  10832. (WebCore::RenderPath::styleWillChange): Mark boundaries as dirty.
  10833. (WebCore::RenderPath::updateCachedBoundaries): New function to (re-)calculate all cached boundaries, only called from layout().
  10834. * rendering/RenderPath.h: Rename cached rect variables to have more sensible names.
  10835. (WebCore::RenderPath::objectBoundingBox): Inlined, just returns the cached value - no more lazy creation. Huge speedup as this is hot code.
  10836. (WebCore::RenderPath::strokeBoundingBox): Ditto.
  10837. (WebCore::RenderPath::repaintRectInLocalCoordinates): Ditto.
  10838. * rendering/RenderSVGBlock.h: Remove toSVGRenderBase() method.
  10839. * rendering/RenderSVGImage.h: Ditto.
  10840. * rendering/RenderSVGInline.cpp: No need to call toSVGRenderBase() just to get the strokeBoundingBox(). Unifies code to retrieve bounding boxes.
  10841. (WebCore::RenderSVGInline::strokeBoundingBox):
  10842. * rendering/RenderSVGInline.h: Remove toSVGRenderBase() method.
  10843. * rendering/RenderSVGModelObject.h: Ditto.
  10844. * rendering/RenderSVGResourceFilter.cpp: No need to call toSVGRenderBase() anymore, just grab the strokeBoundingBox() from the RenderObject.
  10845. (WebCore::RenderSVGResourceFilter::applyResource):
  10846. * rendering/RenderSVGText.h: Remove toSVGRenderBase() method.
  10847. * rendering/SVGRenderSupport.h: Ditto. Remove markerBoundingBox() method, now combined with strokeBoundingBox().
  10848. (WebCore::SVGRenderBase::strokeBoundingBox):
  10849. * rendering/SVGRootInlineBox.h: Remove toSVGRenderBase() method.
  10850. * rendering/style/SVGRenderStyle.h: Add hasMarkers() helper method, to avoid doing unnecessary work in RenderPath.
  10851. (WebCore::SVGRenderStyle::hasMarkers):
  10852. 2010-04-30 Eric Uhrhane <ericu@chromium.org>
  10853. Reviewed by Dmitry Titov.
  10854. Add bindings for async DB API in Workers.
  10855. https://bugs.webkit.org/show_bug.cgi?id=34992
  10856. Tests: storage/change-version-handle-reuse-worker.html
  10857. storage/execute-sql-args-worker.html
  10858. * bindings/js/JSWorkerContextCustom.cpp: Add openDatabase binding.
  10859. (WebCore::JSWorkerContext::openDatabase):
  10860. * bindings/v8/custom/V8WorkerContextCustom.cpp: Add openDatabase stub; Chromium will need work both in V8 and in the browser process before we can turn this on there.
  10861. (WebCore::V8WorkerContext::openDatabaseCallback):
  10862. Add NoStaticTables flags to all objects now shared with workers.
  10863. * storage/Database.idl:
  10864. * storage/SQLError.idl:
  10865. * storage/SQLResultSet.idl:
  10866. * storage/SQLResultSetRowList.idl:
  10867. * storage/SQLTransaction.idl:
  10868. * workers/WorkerContext.h: Add databaseExceededQuota.
  10869. * workers/WorkerContext.cpp:
  10870. (WebCore::WorkerContext::databaseExceededQuota): Add stub implementation for testing; you just get 5MB for now.
  10871. (WebCore::WorkerContext::openDatabase): Remove invalid assertion.
  10872. Add the IDL for the call to openDatabase.
  10873. * workers/WorkerContext.idl:
  10874. 2010-04-30 Shinichiro Hamaji <hamaji@chromium.org>
  10875. Reviewed by Darin Adler.
  10876. Unnecessary PrintContext::end() calls
  10877. https://bugs.webkit.org/show_bug.cgi?id=38247
  10878. Refactoring only, so no new tests.
  10879. * page/PrintContext.cpp:
  10880. (WebCore::PrintContext::pageNumberForElement):
  10881. (WebCore::PrintContext::numberOfPages):
  10882. 2010-04-30 Kent Tamura <tkent@chromium.org>
  10883. Reviewed by Adele Peterson.
  10884. Implement interactive behavior of spin buttons.
  10885. https://bugs.webkit.org/show_bug.cgi?id=35686
  10886. Introduce SpinButtonElement. It is a shadow element class for
  10887. spin buttons. If the upper side of the element is clicked, calls
  10888. HTMLInputElement::stepUpFromRenderer(1). If the lower button is
  10889. clicked, calls HTMLInputElement::stepUpFromRenderer(-1).
  10890. SpinButtonElement tracks the mouse pointer position, and
  10891. RenderTheme sets ControlStates::SpinUpState if the pointer is on
  10892. the upper side.
  10893. Test: platform/mac/fast/forms/input-number-click.html
  10894. * dom/Element.h:
  10895. (WebCore::Element::isSpinButtonElement):
  10896. * editing/VisibleSelection.cpp:
  10897. (WebCore::VisibleSelection::adjustSelectionToAvoidCrossingEditingBoundaries):
  10898. Remove an assertion. lastEditablePositionBeforePositionInRoot() can
  10899. return null in a case that m_end is at a shadow element (a spin button)
  10900. and baseRoot is another shadow element (inner text block) in the same
  10901. node (an INPUT element).
  10902. * html/HTMLInputElement.cpp:
  10903. (WebCore::HTMLInputElement::stepUpFromRenderer):
  10904. * html/HTMLInputElement.h:
  10905. (WebCore::HTMLInputElement::hasSpinButton):
  10906. Add types supporting step attribute except RANGE.
  10907. * rendering/RenderTextControlSingleLine.cpp:
  10908. (WebCore::RenderTextControlSingleLine::nodeAtPoint):
  10909. (WebCore::RenderTextControlSingleLine::forwardEvent):
  10910. (WebCore::RenderTextControlSingleLine::preferredContentWidth):
  10911. (WebCore::RenderTextControlSingleLine::createSubtreeIfNeeded):
  10912. * rendering/RenderTextControlSingleLine.h:
  10913. * rendering/RenderTheme.cpp:
  10914. (WebCore::RenderTheme::controlStatesForRenderer):
  10915. (WebCore::RenderTheme::isSpinUpButtonPartPressed):
  10916. (WebCore::RenderTheme::isSpinUpButtonPartHovered):
  10917. * rendering/RenderTheme.h:
  10918. * rendering/TextControlInnerElements.cpp:
  10919. (WebCore::SpinButtonElement::SpinButtonElement):
  10920. (WebCore::SpinButtonElement::defaultEventHandler):
  10921. * rendering/TextControlInnerElements.h:
  10922. (WebCore::SpinButtonElement::isSpinButtonElement):
  10923. (WebCore::SpinButtonElement::isEnabledFormControl):
  10924. (WebCore::SpinButtonElement::onUpButton):
  10925. 2010-04-30 Yael Aharon <yael.aharon@nokia.com>
  10926. Reviewed by Kenneth Rohde Christiansen.
  10927. [Qt] Enable DOMWindow constructor for HTMLProgressElement
  10928. https://bugs.webkit.org/show_bug.cgi?id=38333
  10929. Add ENABLE_PROGRESS_TAG to FEATURES_DEFINES_JAVASCRIPT.
  10930. * WebCore.pri:
  10931. 2010-04-30 Kent Tamura <tkent@chromium.org>
  10932. Reviewed by Adele Peterson.
  10933. Mac implementation of outer-spin-button appearance, and anonymous
  10934. element generation for <input type=number>.
  10935. https://bugs.webkit.org/show_bug.cgi?id=32813
  10936. The implementation uses NSStepperCell. Like the other Mac
  10937. controls, it has only three candidates for sizes.
  10938. The editable block of an input element is shrunk, and the
  10939. anonymous block for a spin button is put on the right of the
  10940. editable block.
  10941. Tests: platform/mac/fast/forms/input-appearance-spinbutton-size.html
  10942. platform/mac/fast/forms/input-appearance-spinbutton.html
  10943. * dom/Element.cpp:
  10944. (WebCore::Element::pseudoStyleCacheIsInvalid):
  10945. * dom/InputElement.h:
  10946. (WebCore::InputElement::hasSpinButton):
  10947. * html/HTMLInputElement.h:
  10948. (WebCore::HTMLInputElement::hasSpinButton): Return true for NUMBER type.
  10949. * platform/mac/ThemeMac.mm:
  10950. (WebCore::sizeFromNSControlSize): Split the main part of sizeFromFont()
  10951. to this in order to use stepperControlSizeForFont() instead of
  10952. controlSizeForFont().
  10953. (WebCore::sizeFromFont): Just calls sizeFromNSControlSize() with
  10954. sizeFromFont(). No behavior changes.
  10955. (WebCore::stepperSizes): Returns sizes for mini, small, and regular.
  10956. (WebCore::stepperControlSizeForFont):
  10957. Dedicated version of controlSizeForFont().
  10958. (WebCore::stepper): Returns NSStepperCell object with specified settings.
  10959. (WebCore::paintStepper):
  10960. (WebCore::ThemeMac::controlSize): Support for OuterSpinButton.
  10961. (WebCore::ThemeMac::minimumControlSize): ditto.
  10962. (WebCore::ThemeMac::inflateControlPaintRect): ditto.
  10963. (WebCore::ThemeMac::paint): ditto.
  10964. * rendering/RenderBox.cpp:
  10965. (WebCore::RenderBox::paintBoxDecorations):
  10966. Move the content to paintBoxDecorationsWithSize().
  10967. (WebCore::RenderBox::paintBoxDecorationsWithSize):
  10968. * rendering/RenderBox.h: Declare paintBoxDecorationsWithSize().
  10969. * rendering/RenderTextControlSingleLine.cpp:
  10970. (WebCore::RenderTextControlSingleLine::~RenderTextControlSingleLine):
  10971. (WebCore::RenderTextControlSingleLine::paintBoxDecorations):
  10972. Call paintBoxDecorationsWithSize() with smaller width by decorationWidthRight().
  10973. (WebCore::RenderTextControlSingleLine::addFocusRingRects):
  10974. Add a rectangle of which width is smaller by decorationWidthRight().
  10975. (WebCore::RenderTextControlSingleLine::layout):
  10976. Adjust m_outerSpinButton position.
  10977. (WebCore::RenderTextControlSingleLine::styleDidChange):
  10978. (WebCore::RenderTextControlSingleLine::textBlockWidth):
  10979. (WebCore::RenderTextControlSingleLine::decorationWidthRight):
  10980. (WebCore::RenderTextControlSingleLine::preferredDecorationWidthRight):
  10981. (WebCore::RenderTextControlSingleLine::createSubtreeIfNeeded):
  10982. Creates an element for m_outerSpinButton if it is needed.
  10983. (WebCore::RenderTextControlSingleLine::createInnerTextStyle):
  10984. (WebCore::RenderTextControlSingleLine::createOuterSpinButtonStyle):
  10985. * rendering/RenderTextControlSingleLine.h: Declare new methods and m_outerSpinButton.
  10986. * rendering/RenderThemeMac.mm:
  10987. (WebCore::RenderThemeMac::adjustRepaintRect): Support for OuterSpinButton.
  10988. 2010-04-29 Adam Barth <abarth@webkit.org>
  10989. Unreviewed. Update JSC CodeGenerator baseline. Not sure how I missed
  10990. this one earlier.
  10991. * bindings/scripts/test/JS/JSTestObj.cpp:
  10992. (WebCore::jsTestObjPrototypeFunctionSerializedValue):
  10993. 2010-04-29 Justin Garcia <justin.garcia@apple.com>
  10994. Reviewed by Adele Peterson.
  10995. Need to updateLayout after typing commands too
  10996. https://bugs.webkit.org/show_bug.cgi?id=38352
  10997. Replaced !m_parent checks in EditCommand.cpp by the more descriptive isTopLevelCommand().
  10998. Move the post editing operation updateLayout() call to {un,re}appliedEditing so that text insertions,
  10999. which don't go through EditCommand::{un,re}apply() can benefit from it too. No test case possible
  11000. since most platforms have a layout performed as a side effect of post operation selection code.
  11001. * editing/EditCommand.cpp:
  11002. (WebCore::EditCommand::apply):
  11003. (WebCore::EditCommand::unapply):
  11004. (WebCore::EditCommand::reapply):
  11005. * editing/EditCommand.h:
  11006. (WebCore::EditCommand::isTopLevelCommand):
  11007. * editing/Editor.cpp:
  11008. (WebCore::Editor::appliedEditing):
  11009. (WebCore::Editor::unappliedEditing):
  11010. (WebCore::Editor::reappliedEditing):
  11011. 2010-04-29 Dan Bernstein <mitz@apple.com>
  11012. Reviewed by Simon Fraser.
  11013. <rdar://problem/7918086> REGRESSION (r57820): Controller is not displayed in window when opening a MP3 file in browser window
  11014. https://bugs.webkit.org/show_bug.cgi?id=38350
  11015. Tests: media/audio-only-video-intrinsic-size.html
  11016. media/media-document-audio-size.html
  11017. * rendering/RenderVideo.cpp:
  11018. (WebCore::RenderVideo::RenderVideo): Until metadata is available, ignore the natural size
  11019. reported by the player.
  11020. (WebCore::RenderVideo::videoSizeChanged): Respect a natural size of zero if reported by the
  11021. player, except in standalone media documents.
  11022. 2010-04-29 Anders Carlsson <andersca@apple.com>
  11023. Reviewed by Dan Bernstein.
  11024. First part of
  11025. https://bugs.webkit.org/show_bug.cgi?id=20784
  11026. move npapi.h to C99 integer types.
  11027. Add nptypes.h to the build.
  11028. * WebCore.xcodeproj/project.pbxproj:
  11029. * bridge/npapi.h:
  11030. * bridge/npruntime.h:
  11031. * bridge/nptypes.h: Added.
  11032. 2010-04-29 Xan Lopez <xlopez@igalia.com>
  11033. Rubber-stamped by Adam Barth.
  11034. Update GObject bindings test results. We are actually moving
  11035. backwards here, but we'll update them again when we figure out
  11036. what broke.
  11037. * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
  11038. (webkit_dom_test_obj_set_property):
  11039. (webkit_dom_test_obj_get_property):
  11040. 2010-04-29 Sam Weinig <sam@webkit.org>
  11041. Reviewed by Anders Carlsson.
  11042. Fix for https://bugs.webkit.org/show_bug.cgi?id=38277
  11043. MiniBrowser: -[WebCoreFlippedView currentEditor]: unrecognized selector
  11044. * platform/mac/ThemeMac.mm:
  11045. (-[WebCoreFlippedView currentEditor]): Added currentEditor nil implementation.
  11046. 2010-04-29 Adam Barth <abarth@webkit.org>
  11047. Reviewed by Eric Seidel.
  11048. CodeGeneratorJS.pm should be consistent about castedThis versus castedThisObj
  11049. https://bugs.webkit.org/show_bug.cgi?id=38338
  11050. Currently CodeGeneratorJS.pm uses castThis for methods and
  11051. castedThisObj for attributes. This inconsistency makes it difficult to
  11052. factor common code genereration code into methods shared by both kinds
  11053. of bindings. This match aligns the names so that a future patch (e.g.,
  11054. in https://bugs.webkit.org/show_bug.cgi?id=38313) can reduce copy/paste
  11055. code.
  11056. * bindings/scripts/CodeGeneratorJS.pm:
  11057. * bindings/scripts/test/JS/JSTestObj.cpp:
  11058. (WebCore::setJSTestObjIntAttr):
  11059. (WebCore::setJSTestObjLongLongAttr):
  11060. (WebCore::setJSTestObjUnsignedLongLongAttr):
  11061. (WebCore::setJSTestObjStringAttr):
  11062. (WebCore::setJSTestObjTestObjAttr):
  11063. (WebCore::setJSTestObjAttrWithException):
  11064. (WebCore::setJSTestObjAttrWithSetterException):
  11065. (WebCore::setJSTestObjAttrWithGetterException):
  11066. (WebCore::jsTestObjPrototypeFunctionVoidMethod):
  11067. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
  11068. (WebCore::jsTestObjPrototypeFunctionIntMethod):
  11069. (WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs):
  11070. (WebCore::jsTestObjPrototypeFunctionObjMethod):
  11071. (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
  11072. (WebCore::jsTestObjPrototypeFunctionMethodWithException):
  11073. (WebCore::jsTestObjPrototypeFunctionCustomMethod):
  11074. (WebCore::jsTestObjPrototypeFunctionCustomMethodWithArgs):
  11075. (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
  11076. (WebCore::jsTestObjPrototypeFunctionAddEventListener):
  11077. (WebCore::jsTestObjPrototypeFunctionRemoveEventListener):
  11078. (WebCore::jsTestObjPrototypeFunctionWithDynamicFrame):
  11079. (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndArg):
  11080. (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndOptionalArg):
  11081. (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture):
  11082. (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD):
  11083. (WebCore::jsTestObjPrototypeFunctionWithScriptStateVoid):
  11084. (WebCore::jsTestObjPrototypeFunctionWithScriptStateObj):
  11085. (WebCore::jsTestObjPrototypeFunctionWithScriptStateVoidException):
  11086. (WebCore::jsTestObjPrototypeFunctionWithScriptStateObjException):
  11087. (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
  11088. (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
  11089. (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
  11090. 2010-04-29 Gustavo Noronha Silva <gustavo.noronhaollabora.co.uk>
  11091. Reviewed by Xan Lopez.
  11092. [GTK] pointerCursor should use the default cursor set for the window, not GDK_LEFT_PTR
  11093. https://bugs.webkit.org/show_bug.cgi?id=36963
  11094. Use the default cursor instead of hard-coding left pointer.
  11095. * platform/gtk/CursorGtk.cpp:
  11096. (WebCore::Cursor::Cursor):
  11097. (WebCore::pointerCursor):
  11098. 2010-04-29 Ilya Tikhonovsky <loislo@chromium.org>
  11099. Reviewed by Yury Semikhatsky.
  11100. WebInspector: If Timeline panel is in recording mode and is not visible and has received
  11101. new events then these events do not appear in the panel when the panel becomes visible.
  11102. Timeline popup may appear in the upper left window corner when you switch to another panel.
  11103. https://bugs.webkit.org/show_bug.cgi?id=38322
  11104. * inspector/front-end/Popover.js:
  11105. (WebInspector.PopoverHelper.prototype._mouseMove.doHide):
  11106. (WebInspector.PopoverHelper.prototype._mouseMove):
  11107. (WebInspector.PopoverHelper.prototype.hidePopup):
  11108. (WebInspector.PopoverHelper.prototype._hidePopup):
  11109. * inspector/front-end/TimelinePanel.js:
  11110. (WebInspector.TimelinePanel.prototype.show):
  11111. (WebInspector.TimelinePanel.prototype._scheduleRefresh):
  11112. (WebInspector.TimelinePanel.prototype._refresh):
  11113. 2010-04-29 Anton Muhin <antonm@chromium.org>
  11114. Reviewed by Darin Adler.
  11115. Let's cache nodelists instead of DynamicNodeList::Caches
  11116. https://bugs.webkit.org/show_bug.cgi?id=33696
  11117. Test: fast/dom/Element/node-list-identity.html
  11118. * bindings/js/JSNodeCustom.cpp:
  11119. (WebCore::JSNode::markChildren): Mark all cached node lists as well
  11120. * dom/ClassNodeList.cpp:
  11121. (WebCore::ClassNodeList::ClassNodeList): Don't need DynamicNodeList::Caches argument any more
  11122. (WebCore::ClassNodeList::~ClassNodeList): Remove from the cache
  11123. * dom/ClassNodeList.h: Added a field with original class names to be used as a key for removal from the cache
  11124. (WebCore::ClassNodeList::create): Don't need DynamicNodeList::Caches argument any more
  11125. * dom/NameNodeList.cpp:
  11126. (WebCore::NameNodeList::NameNodeList): Don't need DynamicNodeList::Caches argument any more
  11127. (WebCore::NameNodeList::~NameNodeList): Remove from the cache
  11128. * dom/NameNodeList.h:
  11129. (WebCore::NameNodeList::create): Don't need DynamicNodeList::Caches argument any more
  11130. * dom/Node.cpp:
  11131. (WebCore::Node::removeCachedClassNodeList): Remove ClassNodeList from the cache
  11132. (WebCore::Node::removeCachedNameNodeList): Remove NameNodeList from the cache
  11133. (WebCore::Node::removeCachedTagNodeList): Remove TagNodeList from the cache
  11134. (WebCore::Node::getElementsByTagNameNS): Switch to caching node lists themselves, not the data
  11135. (WebCore::Node::getElementsByName): Switch to caching node lists themselves, not the data
  11136. (WebCore::Node::getElementsByClassName): Switch to caching node lists themselves, not the data
  11137. (WebCore::NodeListsNodeData::invalidateCaches): Switch to caching node lists themselves, not the data
  11138. (WebCore::NodeListsNodeData::invalidateCachesThatDependOnAttributes): Switch to caching node lists themselves, not the data
  11139. (WebCore::NodeListsNodeData::isEmpty): Switch to caching node lists themselves, not the data
  11140. (WebCore::markNodeLists): Helper to mark all the node lists in the cache
  11141. (WebCore::Node::markCachedNodeListsSlow): Mark all the cached node lists if any could be present
  11142. * dom/Node.h:
  11143. (WebCore::Node::markCachedNodeLists): Fast-path marking of cached node lists---bails out if there is no rare data
  11144. * dom/NodeRareData.h: Changed type of caches to hold raw pointers to node lists, not RefPtr's to data
  11145. * dom/TagNodeList.cpp:
  11146. (WebCore::TagNodeList::TagNodeList): Don't need DynamicNodeList::Caches argument any more
  11147. (WebCore::TagNodeList::~TagNodeList): Remove from the cache
  11148. * dom/TagNodeList.h:
  11149. (WebCore::TagNodeList::create): Don't need DynamicNodeList::Caches argument any more
  11150. 2010-04-29 Mikhail Naganov <mnaganov@chromium.org>
  11151. Reviewed by Yury Semikhatsky.
  11152. [Chromium] Update ScriptProfileNode to retrieve execution time in milliseconds.
  11153. https://bugs.webkit.org/show_bug.cgi?id=38330
  11154. * bindings/v8/ScriptProfileNode.cpp:
  11155. (WebCore::ScriptProfileNode::totalTime):
  11156. (WebCore::ScriptProfileNode::selfTime):
  11157. 2010-04-28 Dimitri Glazkov <dglazkov@chromium.org>
  11158. Reviewed by Darin Adler.
  11159. A form without a submit button unexpectedly performs its action when Return is pressed
  11160. https://bugs.webkit.org/show_bug.cgi?id=9756
  11161. Implemented implicit form submission algorithm as defined in HTML5 spec:
  11162. http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#implicit-submission,
  11163. falling back to match IE's behavior in the edge cases.
  11164. The underlying rules are:
  11165. * If the form has no enabled submit buttons, submit if Enter/Return is pressed on the only single-line text field.
  11166. * Otherwise, submit form using first enabled submit button if Enter/Return is pressed on a field
  11167. that's not a textarea or a select.
  11168. Test: fast/forms/implicit-submission.html
  11169. * dom/SelectElement.cpp:
  11170. (WebCore::SelectElement::menuListDefaultEventHandler): Ripped out implicit submission for select elements.
  11171. (WebCore::SelectElement::listBoxDefaultEventHandler): Ditto.
  11172. (WebCore::SelectElement::defaultEventHandler): Ditto.
  11173. * dom/SelectElement.h: Ditto.
  11174. (WebCore::HTMLFormElement::submitImplicitly): Renamed submitClick to submitImplicitly to better match HTML5 spec
  11175. language, changed the logic to match the rules above.
  11176. * html/HTMLInputElement.cpp:
  11177. (WebCore::HTMLInputElement::defaultEventHandler): Reamed clickDefaultButton to implicitSubmission to better match
  11178. HTML5 spec language, made radio element to trigger implicit submission.
  11179. * html/HTMLSelectElement.cpp:
  11180. (WebCore::HTMLSelectElement::defaultEventHandler): Removed passing of form() as parameter, because it's no longer
  11181. necessary.
  11182. 2010-04-29 Paweł Hajdan, Jr. <phajdan.jr@chromium.org>
  11183. Reviewed by Jeremy Orlow.
  11184. Fix building with libpng-1.4.
  11185. https://bugs.webkit.org/show_bug.cgi?id=33287
  11186. No new tests (no behavior change).
  11187. Original patch by John Bowler <jbowler@acm.org>
  11188. * platform/image-encoders/skia/PNGImageEncoder.cpp:
  11189. (WebCore::PNGImageEncoder::encode):
  11190. 2010-04-29 Adam Langley <agl@chromium.org>
  11191. Reviewed by David Levin.
  11192. This patch adds support for WOFF in Chromium. Since Chromium
  11193. already transcodes all OpenType files for security reasons we
  11194. are adding WOFF support into the transcoder.
  11195. https://bugs.webkit.org/show_bug.cgi?id=38217
  11196. * css/CSSFontFaceSrcValue.cpp:
  11197. (WebCore::CSSFontFaceSrcValue::isSupportedFormat):
  11198. Recognise "woff" as a font-face format value (guarded by
  11199. ENABLE(OPENTYPE_SANITIZER) at this point)
  11200. * platform/graphics/opentype/OpenTypeSanitizer.cpp:
  11201. (WebCore::OpenTypeSanitizer::sanitize):
  11202. Change so that the transcoded font can be larger than the original.
  11203. (WOFF files are compressed, so the transcoded TTF is typically
  11204. larger.)
  11205. 2010-04-29 Alex Milowski <alex@milowski.com>
  11206. Reviewed by Kenneth Rohde Christiansen.
  11207. Updates to the Qt build to enable building MathML support.
  11208. * WebCore.pri:
  11209. * WebCore.pro:
  11210. 2010-04-29 Xan Lopez <xlopez@igalia.com>
  11211. Reviewed by Gustavo Noronha.
  11212. [GTK] GObject DOM bindings
  11213. https://bugs.webkit.org/show_bug.cgi?id=33590
  11214. Do not generate unneeded boilerplate in {get,set}_property methods
  11215. when there are no properties to generate code for. This gets rid
  11216. of lots of compiler warnings.
  11217. * bindings/scripts/CodeGeneratorGObject.pm:
  11218. 2010-04-29 Simon Hausmann <simon.hausmann@nokia.com>
  11219. Reviewed by Kenneth Rohde Christiansen.
  11220. [Qt] Speed up text layouting
  11221. https://bugs.webkit.org/show_bug.cgi?id=31719
  11222. Use QFontMetrics::width() for the text width calculation instead
  11223. of QTextLayout. This avoids expensive bearing calculations and the
  11224. line breaking code.
  11225. * platform/graphics/qt/FontQt.cpp:
  11226. (WebCore::Font::floatWidthForComplexText):
  11227. 2010-04-29 Kwang Yul Seo <skyul@company100.net>
  11228. Reviewed by Simon Hausmann.
  11229. [WINCE] Export g_stackBase with JS_EXPORTDATA
  11230. https://bugs.webkit.org/show_bug.cgi?id=37437
  11231. Declare g_stackBase with JS_EXPORTDATA as it is imported from JavaScriptCore.
  11232. * platform/wince/SharedTimerWince.cpp:
  11233. 2010-04-29 Adam Barth <abarth@webkit.org>
  11234. Reviewed by Maciej Stachowiak.
  11235. Remove custom bindings for PopStateEvent.initPopStateEvent
  11236. https://bugs.webkit.org/show_bug.cgi?id=38311
  11237. Our code generation of SerializedScriptValue was slightly buggy, but
  11238. it's easy to fix. Notice that the conversion to an atomic string is
  11239. handled by the C++ type system and doesn't require logic in the code
  11240. generator.
  11241. * bindings/js/JSPopStateEventCustom.cpp:
  11242. * bindings/scripts/CodeGeneratorJS.pm:
  11243. * bindings/scripts/CodeGeneratorV8.pm:
  11244. * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
  11245. (webkit_dom_test_obj_serialized_value):
  11246. * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
  11247. * bindings/scripts/test/JS/JSTestObj.cpp:
  11248. (WebCore::):
  11249. (WebCore::jsTestObjPrototypeFunctionSerializedValue):
  11250. * bindings/scripts/test/JS/JSTestObj.h:
  11251. * bindings/scripts/test/ObjC/DOMTestObj.h:
  11252. * bindings/scripts/test/ObjC/DOMTestObj.mm:
  11253. (-[DOMTestObj serializedValue:]):
  11254. * bindings/scripts/test/TestObj.idl:
  11255. * bindings/scripts/test/V8/V8TestObj.cpp:
  11256. (WebCore::TestObjInternal::serializedValueCallback):
  11257. (WebCore::ConfigureV8TestObjTemplate):
  11258. * bindings/v8/custom/V8PopStateEventCustom.cpp:
  11259. * dom/PopStateEvent.idl:
  11260. 2010-04-29 Kent Tamura <tkent@chromium.org>
  11261. Reviewed by Darin Adler.
  11262. Fix a bug that selection drag-and-drop doesn't work for input/textarea.
  11263. https://bugs.webkit.org/show_bug.cgi?id=38175
  11264. The code supposed the selected region was in the destination text
  11265. field. It is not true in a case of drag-and-drop.
  11266. Test: editing/pasteboard/drag-drop-input-textarea.html
  11267. * dom/InputElement.cpp:
  11268. (WebCore::InputElement::handleBeforeTextInsertedEvent):
  11269. * html/HTMLTextAreaElement.cpp:
  11270. (WebCore::HTMLTextAreaElement::handleBeforeTextInsertedEvent):
  11271. 2010-04-29 Adam Barth <abarth@webkit.org>
  11272. Reviewed by Maciej Stachowiak.
  11273. Remove custom bindings for NodeFilter.acceptNode
  11274. https://bugs.webkit.org/show_bug.cgi?id=38309
  11275. This "custom" code was just an instance of the CallWith=ScriptState
  11276. pattern. Also, it looks like V8 just had a garbage implemenation that
  11277. did nothing.
  11278. * WebCore.gypi:
  11279. * bindings/js/JSNodeFilterCustom.cpp:
  11280. * bindings/v8/custom/V8NodeFilterCustom.cpp: Removed.
  11281. * dom/NodeFilter.idl:
  11282. 2010-04-29 Noam Rosenthal <noam.rosenthal@nokia.com>
  11283. Reviewed by Laszlo Gombos.
  11284. [Qt] QtWebkit doesn't link with 3D canvas
  11285. https://bugs.webkit.org/show_bug.cgi?id=38299
  11286. Added implementation for GraphicsContext3D::isGLES2Compliant, which returns the correct value based on a Qt #define.
  11287. No new tests: build fix
  11288. * platform/graphics/qt/GraphicsContext3DQt.cpp:
  11289. (WebCore::GraphicsContext3D::isGLES2Compliant):
  11290. 2010-04-29 Simon Hausmann <simon.hausmann@nokia.com>
  11291. Reviewed by Tor Arne Vestbø.
  11292. [Qt] REGRESSION(r57638): tst_qwebframe::objectDeleted() fails
  11293. https://bugs.webkit.org/show_bug.cgi?id=38316
  11294. Accessing properties of a deleted objects doesn't throw an exception
  11295. anymore.
  11296. Continue to expose the QObject class wrapper for objects that
  11297. previously existed but don't exist anymore. QtClass is safe to
  11298. use with a deleted QObject.
  11299. * bridge/qt/qt_instance.cpp:
  11300. (JSC::Bindings::QtInstance::getClass): Return null only if m_class
  11301. doesn't exist yet and there's no m_object.
  11302. 2010-04-29 Noam Rosenthal <noam.rosenthal@nokia.com>
  11303. Reviewed by Simon Hausmann.
  11304. Reverse animations don't work in some use cases
  11305. https://bugs.webkit.org/show_bug.cgi?id=38075
  11306. This was due to a code path special-casing reverse animations, that became obselete when we aligned our animation code
  11307. with the CA implementation. That special case code path is now a bug - and this patch removes it.
  11308. http://staff.washington.edu/fmf/2009/03/25/iphone-3d-css-transformations/ now runs the reverse
  11309. animation correctly.
  11310. * platform/graphics/qt/GraphicsLayerQt.cpp:
  11311. (WebCore::TransformAnimationQt::applyFrame):
  11312. 2010-04-29 Jan Hanssen <jhanssen@codeaurora.org>
  11313. Reviewed by Adam Barth.
  11314. HTMLOptionElement::ownerSelectElement() needs to consider keygen elements
  11315. https://bugs.webkit.org/show_bug.cgi?id=26016
  11316. Patch written by Grace Kloba <klobag@gmail.com>, test fixed by me.
  11317. Test: fast/dom/HTMLKeygenElement/keygen-option-select.html
  11318. * html/HTMLOptionElement.cpp:
  11319. (WebCore::HTMLOptionElement::ownerSelectElement):
  11320. Make HTMLOptionElement::ownerSelectElement() consider the keygen element in addition to the current select element.
  11321. 2010-04-29 Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
  11322. Reviewed by Eric Seidel.
  11323. Add EFL-specific code to Widget.h and move the empty
  11324. frameRectsChanged() definition to Widget.cpp, since the EFL port
  11325. needs to override that.
  11326. http://webkit.org/b/36317
  11327. No new tests required.
  11328. * WebCore.base.exp:
  11329. * platform/Widget.cpp:
  11330. (WebCore::Widget::frameRectsChanged):
  11331. * platform/Widget.h:
  11332. 2010-04-29 Jarkko Sakkinen <jarkko.j.sakkinen@gmail.com>
  11333. Reviewed by Simon Hausmann.
  11334. [Qt] GraphicsContext3DQt.cpp does not implement isGLES2Compliant()
  11335. https://bugs.webkit.org/show_bug.cgi?id=38216
  11336. * platform/graphics/qt/GraphicsContext3DQt.cpp:
  11337. (WebCore::GraphicsContext3D::isGLES2Compliant):
  11338. 2010-04-29 Zhenyao Mo <zmo@google.com>
  11339. Reviewed by Dimitri Glazkov.
  11340. Remove the unnecessary texImage2D function with Image as input in GraphicsContext3D
  11341. https://bugs.webkit.org/show_bug.cgi?id=38235
  11342. * html/canvas/WebGLRenderingContext.cpp:
  11343. (WebCore::WebGLRenderingContext::texImage2D): Add extractImageData; add a common entry point for texImage2D with image input.
  11344. (WebCore::WebGLRenderingContext::texImage2DBase): Add this function as the common entry point for texImage2D.
  11345. (WebCore::WebGLRenderingContext::texSubImage2D): Add extractImageData; add a common entry point for texSubImage2D with image input.
  11346. (WebCore::WebGLRenderingContext::texSubImage2DBase): Add this function as the common entry point for texSubImage2D.
  11347. * html/canvas/WebGLRenderingContext.h: Add tex*Image{Base/Image} function declaration.
  11348. * platform/graphics/GraphicsContext3D.h: Remove tex*Image declaration with Image input.
  11349. * platform/graphics/mac/GraphicsContext3DMac.cpp: Remove tex*Image implementation with Image input.
  11350. (WebCore::GraphicsContext3D::texImage2D):
  11351. (WebCore::GraphicsContext3D::texSubImage2D):
  11352. 2010-04-29 Noam Rosenthal <noam.rosenthal@nokia.com>
  11353. Reviewed by Simon Hausmann.
  11354. [Qt] GraphicsLayer: flicker when starting an animation before the previous one ended.
  11355. https://bugs.webkit.org/show_bug.cgi?id=38076
  11356. This was due to the cude in the removeAnimations functions, which called deleteLater() without stopping the
  11357. animation synchronously. The delay between the call to that function and the actual call to the animation's destructor
  11358. is when the flicker occured. We fix this by calling stop() synchronously, and making sure that the value is reverted
  11359. upon stop (updateState) and not upon the object's destruction.
  11360. http://staff.washington.edu/fmf/2009/03/25/iphone-3d-css-transformations/ now doesn't flicker when
  11361. the animation is toggled frequently.
  11362. * platform/graphics/qt/GraphicsLayerQt.cpp:
  11363. (WebCore::TransformAnimationQt::~TransformAnimationQt):
  11364. (WebCore::TransformAnimationQt::applyFrame):
  11365. (WebCore::TransformAnimationQt::updateState):
  11366. (WebCore::OpacityAnimationQt::~OpacityAnimationQt):
  11367. (WebCore::OpacityAnimationQt::updateState):
  11368. (WebCore::GraphicsLayerQt::removeAnimationsForProperty):
  11369. (WebCore::GraphicsLayerQt::removeAnimationsForKeyframes):
  11370. 2010-04-28 Luiz Agostini <luiz.agostini@openbossa.org>
  11371. Reviewed by Simon Fraser.
  11372. Media queries empty values
  11373. https://bugs.webkit.org/show_bug.cgi?id=38116
  11374. Adding isValid() method to MediaQueryExp to make it possible to differentiate
  11375. between queries with empty values and queries with invalid values.
  11376. Test: fast/media/media-query-invalid-value.html
  11377. * css/MediaQueryEvaluator.cpp:
  11378. (WebCore::MediaQueryEvaluator::eval):
  11379. * css/MediaQueryExp.cpp:
  11380. (WebCore::MediaQueryExp::MediaQueryExp):
  11381. * css/MediaQueryExp.h:
  11382. (WebCore::MediaQueryExp::isValid):
  11383. 2010-04-28 Pavel Feldman <pfeldman@chromium.org>
  11384. Reviewed by Yury Semikhatsky.
  11385. Web Inspector: Allow editing script resources when resource tracking is enabled.
  11386. https://bugs.webkit.org/show_bug.cgi?id=38269
  11387. * inspector/front-end/ScriptView.js:
  11388. * inspector/front-end/ScriptsPanel.js:
  11389. (WebInspector.ScriptsPanel.prototype.canEditScripts):
  11390. (WebInspector.ScriptsPanel.prototype.editScriptSource):
  11391. * inspector/front-end/SourceFrame.js:
  11392. (WebInspector.SourceFrame.prototype.get textModel):
  11393. * inspector/front-end/SourceView.js:
  11394. (WebInspector.SourceView):
  11395. (WebInspector.SourceView.prototype._addBreakpoint):
  11396. (WebInspector.SourceView.prototype._editLine):
  11397. (WebInspector.SourceView.prototype._editLineComplete):
  11398. (WebInspector.SourceView.prototype._sourceIDForLine):
  11399. 2010-04-25 Antonio Gomes <tonikitoo@webkit.org>
  11400. Reviewed by Darin Adler.
  11401. Clicking a scrollbar blurs the currently focused element
  11402. https://bugs.webkit.org/show_bug.cgi?id=16809
  11403. WebKit ports that do not use native (platform) widgets for rendering the scrollbars
  11404. are currently mismatching a common behaviour of other browser vendors (including
  11405. Firefox and Opera): clicking on a frame scrollbar *should not* steal focus from content.
  11406. WebKit browsers based ports that do use WebCore for handling scrollbars, like QtWebKit for
  11407. instance, can observe the opposite behaviour.
  11408. Patch fixes this behaviour by checking if current MouseDown event targets a frame scrollbar.
  11409. If that is the case, it bails out and do not change focus behavior at all.
  11410. It is important to note that the given way this is implemented by this patch, non-frame
  11411. scrollbars (e.g. a vertical scrollbar of an overflowed textareas or divs) will keep working
  11412. in the same way as it works currently.
  11413. Tests: scrollbars/scrollbar-click-does-not-blur-content.html
  11414. scrollbars/scrollbar-iframe-click-does-not-blur-content.html
  11415. * page/EventHandler.cpp:
  11416. (WebCore::EventHandler::dispatchMouseEvent):
  11417. 2010-04-28 Dan Bernstein <mitz@apple.com>
  11418. Rubber-stamped by Maciej Stachowiak.
  11419. Try to fix test failures seen on the Leopard build bot after r58467
  11420. * platform/graphics/SimpleFontData.cpp:
  11421. (WebCore::SimpleFontData::platformGlyphInit): Initialize m_zeroWidthSpaceGlyph before
  11422. calling widthForGlyph(), as the latter uses the former.
  11423. 2010-04-28 Martin Robinson <mrobinson@webkit.org>
  11424. Reviewed by Gustavo Noronha.
  11425. [GTK] Enable DOM clipboard and drag-and-drop access
  11426. https://bugs.webkit.org/show_bug.cgi?id=30623
  11427. Make ClipboardGtk a "live" DataTransfer object, able to modify
  11428. the clipboard when setData(...) is called.
  11429. * platform/gtk/ClipboardGtk.cpp:
  11430. (WebCore::Editor::newGeneralClipboard): Pass the GtkClipboard into the factory method.
  11431. (WebCore::ClipboardGtk::ClipboardGtk): Create two separate constructors, one for DnD data and one for clipboard data.
  11432. (WebCore::dataObjectTypeFromHTMLClipboardType): Added.
  11433. (WebCore::ClipboardGtk::clearData): Clear the member DataObject, optionally write the clipboard.
  11434. (WebCore::ClipboardGtk::clearAllData): Ditto.
  11435. (WebCore::joinURIList): Added.
  11436. (WebCore::ClipboardGtk::getData): Get the data from the clipboard, if possible.
  11437. (WebCore::ClipboardGtk::setData): Write data to the DataObject and maybe the clipboard.
  11438. (WebCore::ClipboardGtk::types): Read the clipboard/DataObject to find applicable types.
  11439. (WebCore::ClipboardGtk::files): Read the clipboard/DataObject to find the files.
  11440. (WebCore::ClipboardGtk::writeURL): Write to the DataObject and maybe the clipboard.
  11441. (WebCore::ClipboardGtk::writeRange): Ditto.
  11442. (WebCore::ClipboardGtk::writePlainText): Ditto.
  11443. (WebCore::ClipboardGtk::hasData): Query the clipboard/DataObject.
  11444. * platform/gtk/ClipboardGtk.h:
  11445. (WebCore::ClipboardGtk::create): Added one factory for pasteboard-backed DataObjects and one for DnD-backed objects.
  11446. * platform/gtk/DataObjectGtk.cpp:
  11447. (WebCore::replaceNonBreakingSpaceWithSpace): Added this helper function to clean &nbsp; from plain text.
  11448. (WebCore::DataObjectGtk::markup): Actually return the range if it's set.
  11449. (WebCore::DataObjectGtk::setText): Clean &nbsp; from plain text.
  11450. (WebCore::DataObjectGtk::clearText): Added.
  11451. (WebCore::DataObjectGtk::clearMarkup): Added.
  11452. * platform/gtk/DataObjectGtk.h:
  11453. (WebCore::DataObjectGtk::clearURIList): Added.
  11454. (WebCore::DataObjectGtk::clearImage): Added.
  11455. * platform/gtk/PasteboardHelper.cpp:
  11456. (WebCore::PasteboardHelper::initializeTargetList): Added target ID's for URI list and Netscape URL targets.
  11457. (WebCore::urisToKURLVector): Added.
  11458. (WebCore::PasteboardHelper::getClipboardContents): Added.
  11459. (WebCore::PasteboardHelper::fillSelectionData): Added logic for URI lists and Netscape URLs.
  11460. (WebCore::PasteboardHelper::targetListForDataObject): Ditto.
  11461. * platform/gtk/PasteboardHelper.h: Added default argument to writeClipboardContents and new method.
  11462. 2010-04-28 Martin Robinson <mrobinson@webkit.org>
  11463. Reviewed by Gustavo Noronha.
  11464. [GTK] Enable DOM clipboard and drag-and-drop access
  11465. https://bugs.webkit.org/show_bug.cgi?id=30623
  11466. Use the length of the UTF-8 markup data in bytes when filling GtkSelectionData.
  11467. No new tests, because pasteboard DataTransfer tests will be enabled
  11468. with the completion of the GTK+ DataTransfer object.
  11469. * platform/gtk/PasteboardGtk.cpp:
  11470. (WebCore::clipboard_get_contents_cb): Use strlen here instead of g_utf8_strlen.
  11471. 2010-04-28 Dan Bernstein <mitz@apple.com>
  11472. Reviewed by Adele Peterson.
  11473. More of <rdar://problem/7855777> REGRESSION: Memory usage increase caused by storing glyph bounds in GlyphMetricsMap
  11474. https://bugs.webkit.org/show_bug.cgi?id=37936
  11475. Assigning zero width and empty bounds to the ZERO WIDTH SPACE glyph often allocates a width map
  11476. page and a bounds map page for the glyph, each of which pages contains 255 unused entries. Save
  11477. this space by not storing the zero width and empty bounds in the metrics maps.
  11478. * platform/graphics/SimpleFontData.cpp:
  11479. (WebCore::SimpleFontData::SimpleFontData): Initialize m_zeroWidthSpaceGlyph.
  11480. (WebCore::SimpleFontData::platformGlyphInit): Set m_zeroWidthSpaceGlyph. Don’t create entries
  11481. for the ZERO WIDTH SPACE glyph in the width map and in the bounds map.
  11482. * platform/graphics/SimpleFontData.h:
  11483. (WebCore::SimpleFontData::boundsForGlyph): Return empty bounds for the ZERO WIDTH SPACE glyph
  11484. without consulting the bounds map.
  11485. (WebCore::SimpleFontData::widthForGlyph): Return zero for the ZERO WIDTH SPACE glyph without
  11486. consulting the width map.
  11487. 2010-04-28 Mark Rowe <mrowe@apple.com>
  11488. Reviewed by Adele Peterson.
  11489. <rdar://problem/7847573> Safari welcome page logs JavaScript exception during page load
  11490. The Safari welcome page runs afoul of the same-origin restriction on access to stylesheet rules
  11491. that was added to address <https://bugs.webkit.org/show_bug.cgi?id=20527>. To work around this we're
  11492. adding a temporary site-specific quirk that relaxes this restriction for the particular cross-origin
  11493. access that occurs on the Safari welcome page.
  11494. * css/CSSStyleSheet.cpp:
  11495. (WebCore::CSSStyleSheet::cssRules):
  11496. 2010-04-28 Mike Thole <mthole@apple.com>
  11497. Reviewed by Mark Rowe.
  11498. Add separate exports file for symbols dependent on WTF_USE_PROTECTION_SPACE_AUTH_CALLBACK.
  11499. * DerivedSources.make: Updated for WebCore.ProtectionSpaceAuthCallback.exp.
  11500. * WebCore.ProtectionSpaceAuthCallback.exp: Added.
  11501. * WebCore.xcodeproj/project.pbxproj:
  11502. 2010-04-28 Evan Martin <evan@chromium.org>
  11503. Reviewed by David Levin.
  11504. [chromium] revert getFontDataForCharacters change in r58341
  11505. https://bugs.webkit.org/show_bug.cgi?id=38288
  11506. It caused a performance regression.
  11507. * platform/chromium/ChromiumBridge.h:
  11508. * platform/graphics/chromium/FontCacheLinux.cpp:
  11509. (WebCore::FontCache::getFontDataForCharacters):
  11510. 2010-04-28 Eric Seidel <eric@webkit.org>
  11511. Unreviewed, rolling out r58441.
  11512. http://trac.webkit.org/changeset/58441
  11513. https://bugs.webkit.org/show_bug.cgi?id=37618
  11514. Broke 3 test on Qt.
  11515. * page/DragController.cpp:
  11516. (WebCore::DragController::tryDocumentDrag):
  11517. (WebCore::DragController::concludeEditDrag):
  11518. * page/DragController.h:
  11519. (WebCore::DragController::setDragInitiator):
  11520. (WebCore::DragController::dragInitiator):
  11521. (WebCore::DragController::documentUnderMouse):
  11522. 2010-04-28 Darin Adler <darin@apple.com>
  11523. Reviewed by Dan Bernstein.
  11524. Remove some obsolete scrolling code
  11525. https://bugs.webkit.org/show_bug.cgi?id=38293
  11526. * page/Chrome.cpp:
  11527. (WebCore::Chrome::scrollRectIntoView): Removed ScrollView* argument.
  11528. * page/Chrome.h: Made scrollRectIntoView non-virtual, and removed ScrollView* argument.
  11529. * page/FrameView.cpp: Removed scrollRectIntoViewRecursively.
  11530. * page/FrameView.h: Removed scrollRectIntoViewRecursively and made
  11531. setScrollPosition non-virtual, since there is no class derived from
  11532. this class, and ScrollView's setScrollPosition is non-virtual.
  11533. * platform/HostWindow.h: Removed scrollRectIntoView.
  11534. * platform/ScrollView.cpp:
  11535. (WebCore::ScrollView::scrollRectIntoViewRecursively): Updated comment
  11536. since I was able to do most of the tasks listed here.
  11537. * rendering/RenderLayer.cpp:
  11538. (WebCore::RenderLayer::scrollRectToVisible): Removed 0 passed for
  11539. ScrollView* argument to Chrome::scrollRectIntoView.
  11540. 2010-04-28 Mike Thole <mthole@apple.com>
  11541. Reviewed by David Kilzer.
  11542. Add canAuthenticateAgainstProtectionSpace() to frame loader so that a protection space
  11543. can be inspected before attempting to authenticate against it
  11544. https://bugs.webkit.org/show_bug.cgi?id=38271
  11545. * loader/EmptyClients.h:
  11546. (WebCore::EmptyFrameLoaderClient::canAuthenticateAgainstProtectionSpace): Added.
  11547. * loader/FrameLoader.cpp:
  11548. (WebCore::FrameLoader::canAuthenticateAgainstProtectionSpace): Added.
  11549. * loader/FrameLoader.h:
  11550. * loader/FrameLoaderClient.h:
  11551. * loader/ResourceLoader.cpp:
  11552. (WebCore::ResourceLoader::canAuthenticateAgainstProtectionSpace): Added.
  11553. * loader/ResourceLoader.h:
  11554. (WebCore::ResourceLoader::canAuthenticateAgainstProtectionSpace): Added.
  11555. * platform/network/ProtectionSpace.h:
  11556. (WebCore::):
  11557. * platform/network/ResourceHandle.h:
  11558. * platform/network/ResourceHandleClient.h:
  11559. (WebCore::ResourceHandleClient::canAuthenticateAgainstProtectionSpace): Added.
  11560. * platform/network/mac/AuthenticationMac.mm:
  11561. (WebCore::mac):
  11562. Add cases for case ProtectionSpaceAuthenticationSchemeServerTrustEvaluationRequested and
  11563. ProtectionSpaceAuthenticationSchemeClientCertificateRequested. Guarded with the
  11564. #if USE(PROTECTION_SPACE_AUTH_CALLBACK) as the new NSURLProtectionSpace constants don't
  11565. exist prior to Mac OS X 10.6.
  11566. (WebCore::core): Ditto.
  11567. * platform/network/mac/ResourceHandleMac.mm:
  11568. (WebCore::ResourceHandle::canAuthenticateAgainstProtectionSpace): Added.
  11569. (-[WebCoreResourceHandleAsDelegate connection:canAuthenticateAgainstProtectionSpace:]): Added.
  11570. 2010-04-28 Abhishek Arya <inferno@chromium.org>
  11571. Reviewed by Eric Seidel.
  11572. Convert m_documentUnderMouse, m_dragInitiator to RefPtr.
  11573. Eliminated unused m_dragInitiator accessor to prevent dereferencing.
  11574. https://bugs.webkit.org/show_bug.cgi?id=37618
  11575. Test: editing/pasteboard/drag-drop-iframe-refresh-crash.html
  11576. * page/DragController.cpp:
  11577. (WebCore::DragController::tryDocumentDrag):
  11578. (WebCore::DragController::concludeEditDrag):
  11579. * page/DragController.h:
  11580. (WebCore::DragController::draggingImageURL):
  11581. (WebCore::DragController::documentUnderMouse):
  11582. 2010-04-28 Dumitru Daniliuc <dumi@chromium.org>
  11583. Unreviewed, fixing a build problem introduced by the previous patch.
  11584. * storage/DatabaseSync.cpp:
  11585. (WebCore::DatabaseSync::openDatabaseSync):
  11586. 2010-04-23 Dumitru Daniliuc <dumi@chromium.org>
  11587. Reviewed by Jeremy Orlow.
  11588. Adding some required classes for the sync WebSQLDatabases API.
  11589. https://bugs.webkit.org/show_bug.cgi?id=34994
  11590. * GNUmakefile.am:
  11591. * WebCore.gypi:
  11592. * WebCore.pro:
  11593. * WebCore.vcproj/WebCore.vcproj:
  11594. * WebCore.xcodeproj/project.pbxproj:
  11595. * storage/DatabaseSync.cpp: Added.
  11596. (WebCore::DatabaseSync::databaseInfoTableName):
  11597. (WebCore::DatabaseSync::setIsAvailable):
  11598. (WebCore::DatabaseSync::isAvailable):
  11599. (WebCore::DatabaseSync::openDatabaseSync):
  11600. (WebCore::DatabaseSync::DatabaseSync):
  11601. (WebCore::DatabaseSync::~DatabaseSync):
  11602. (WebCore::DatabaseSync::version):
  11603. (WebCore::DatabaseSync::changeVersion):
  11604. (WebCore::DatabaseSync::transaction):
  11605. * storage/DatabaseSync.h: Added.
  11606. (WebCore::DatabaseSync::databaseDebugName):
  11607. * storage/SQLTransactionSync.cpp: Added.
  11608. (WebCore::SQLTransactionSync::create):
  11609. (WebCore::SQLTransactionSync::SQLTransactionSync):
  11610. (WebCore::SQLTransactionSync::~SQLTransactionSync):
  11611. (WebCore::SQLTransactionSync::executeSQL):
  11612. * storage/SQLTransactionSync.h: Added.
  11613. (WebCore::SQLTransactionSync::database):
  11614. (WebCore::SQLTransactionSync::isReadOnly):
  11615. * storage/SQLTransactionSyncCallback.h: Added.
  11616. (WebCore::SQLTransactionSyncCallback::~SQLTransactionSyncCallback):
  11617. 2010-04-28 İsmail Dönmez <ismail@namtrac.org>
  11618. Reviewed by Simon Hausmann.
  11619. Fix compilation with QT_NO_CURSOR defined.
  11620. * platform/qt/QWebPageClient.h:
  11621. (QWebPageClient::resetCursor):
  11622. (QWebPageClient::setCursor):
  11623. 2010-04-28 Abhishek Arya <inferno@chromium.org>
  11624. Reviewed by Alexey Proskuryakov.
  11625. Added a check to make sure that resources from a different https origin are not cached.
  11626. https://bugs.webkit.org/show_bug.cgi?id=33456
  11627. Test: http/tests/appcache/different-https-origin-resource-main.html
  11628. * loader/appcache/ManifestParser.cpp:
  11629. (WebCore::parseManifest):
  11630. 2010-04-28 Sam Weinig <sam@webkit.org>
  11631. Reviewed by Mark Rowe.
  11632. Only set -allowable_client WebKit2 for engineering builds on SnowLeopard
  11633. and later.
  11634. * Configurations/WebCore.xcconfig:
  11635. 2010-04-28 Darin Adler <darin@apple.com>
  11636. Reviewed by Adele Peterson.
  11637. REGRESSION: Autoscroll does not work in Mail messages
  11638. https://bugs.webkit.org/show_bug.cgi?id=38267
  11639. rdar://problem/7559799
  11640. Still haven't figured out a good way to test this with DumpRenderTree
  11641. or with Safari. Testing has to be done with Mail for now.
  11642. The machinery to make autoscrolling work on Mac OS X when a WebView is embedded in another
  11643. view had gotten broken in multiple ways. For some reason, a combination of bugs made it
  11644. partly work until around r48064. This brings it back.
  11645. There were three problems:
  11646. 1) Code in EventHandler decided there was nothing to scroll, so didn't start
  11647. the autoscroll timer.
  11648. 2) The wrong rectangle was passed to Chrome::scrollRectIntoView.
  11649. 3) The Mac WebKit implementation of ChromeClient::scrollRectIntoView did incorrect
  11650. coordinate conversion.
  11651. I verified that none of these have any effect on regression tests, or behavior in
  11652. web browsers, or behavior on platforms other than Mac.
  11653. * page/EventHandler.cpp:
  11654. (WebCore::canAutoscroll): Added. Returns true for boxes that can scroll directly
  11655. and for the top level box of the top frame.
  11656. (WebCore::EventHandler::handleMouseDraggedEvent): Use canAutoscroll.
  11657. (WebCore::EventHandler::updateAutoscrollRenderer): Ditto.
  11658. * page/FrameView.cpp:
  11659. (WebCore::FrameView::scrollToAnchor): Fixed comment.
  11660. * platform/ScrollView.cpp:
  11661. (WebCore::ScrollView::scrollRectIntoViewRecursively): Put ASSERT_NOT_REACHED into this
  11662. now-unused function along with some comments about removing some obsolete code.
  11663. * rendering/RenderLayer.cpp:
  11664. (WebCore::RenderLayer::scrollRectToVisible): Removed call to scrollRectIntoViewRecursively
  11665. since from the WebKit point of view this is the topmost scroll view anyway. Instead call
  11666. setScrollPosition. Moved the code to call Chrome::scrollRectIntoView here since it needs
  11667. to use a different rectangle anyway.
  11668. 2010-04-21 Ojan Vafai <ojan@chromium.org>
  11669. Reviewed by Adele Peterson.
  11670. http://trac.webkit.org/changeset/57215 caused perf/memory regressions
  11671. https://bugs.webkit.org/show_bug.cgi?id=37292
  11672. #if out the canUseGlyphCache Changes from r57215 as they caused a
  11673. 8% perf regression on Chromium's international page load tests so that
  11674. the perf regression can be fixed properly without being left in the tree.
  11675. * platform/graphics/FontFastPath.cpp:
  11676. (WebCore::Font::canUseGlyphCache):
  11677. 2010-04-28 Beth Dakin <bdakin@apple.com>
  11678. Reviewed by Darin Adler.
  11679. Fix for <rdar://problem/7474349>
  11680. Add a synchronous display mechanism for WKCACFLayerRenderer.
  11681. * platform/graphics/win/WKCACFLayerRenderer.cpp:
  11682. (WebCore::WKCACFLayerRenderer::setRootContentsAndDisplay): This is
  11683. just like setRootContents(), but it calls paint() instead of
  11684. renderSoon().
  11685. * platform/graphics/win/WKCACFLayerRenderer.h:
  11686. 2010-04-28 Dmitry Titov <dimich@chromium.org>
  11687. Reviewed by Geoffrey Garen.
  11688. REGRESSION: fast/workers/wrapper-map-gc.html crashes on Snow Leopard Release Bot
  11689. https://bugs.webkit.org/show_bug.cgi?id=37554
  11690. The flaky fast/workers/wrapper-map-gc.html will stop being flaky.
  11691. * bindings/js/JSEventListener.cpp:
  11692. (WebCore::JSEventListener::handleEvent):
  11693. check if JS execution was terminated, as in cases of Worker.terminate() or WorkerGlobalScope.close().
  11694. * bindings/js/JSWorkerContextBase.cpp:
  11695. (WebCore::toJS): ASSERT the value of workerContextWrapper, it should never be 0.
  11696. * bindings/js/WorkerScriptController.h:
  11697. (WebCore::WorkerScriptController::workerContextWrapper): remove returning 0 if JS execution was forbidden.
  11698. (WebCore::WorkerScriptController::isExecutionForbidden):
  11699. * bindings/v8/WorkerScriptController.h:
  11700. (WebCore::WorkerScriptController::isExecutionForbidden):
  11701. Add ScriptExecutionContext::isJSExecutionTerminated(), it is always 'false' for Document
  11702. and 'true' for WorkerContext when script is terminated.
  11703. * dom/ScriptExecutionContext.h:
  11704. * dom/Document.h:
  11705. (WebCore::Document::isJSExecutionTerminated):
  11706. * workers/WorkerContext.cpp:
  11707. (WebCore::WorkerContext::isJSExecutionTerminated):
  11708. * workers/WorkerContext.h:
  11709. 2010-04-28 Ilya Tikhonovsky <loislo@chromium.org>
  11710. Reviewed by Yury Semikhatsky.
  11711. WebInspector: Multiple Main Resource Content Loaded marks appear in Resource panel.
  11712. https://bugs.webkit.org/show_bug.cgi?id=38270
  11713. * inspector/front-end/ResourcesPanel.js:
  11714. (WebInspector.ResourcesPanel.prototype.updateGraphDividersIfNeeded):
  11715. 2010-04-28 Ilya Tikhonovsky <loislo@chromium.org>
  11716. Reviewed by Yury Semikhatsky.
  11717. WebInspector: Timeline: We can have precise urls in the EvaluateScript records.
  11718. https://bugs.webkit.org/show_bug.cgi?id=38264
  11719. * inspector/front-end/TimelinePanel.js:
  11720. (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
  11721. (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
  11722. 2010-04-28 Pavel Feldman <pfeldman@chromium.org>
  11723. Reviewed by Timothy Hatcher.
  11724. Web Inspector: Linkify node and function in the event listeners panel.
  11725. https://bugs.webkit.org/show_bug.cgi?id=38251
  11726. * bindings/js/ScriptEventListener.cpp:
  11727. (WebCore::eventListenerHandlerBody):
  11728. (WebCore::eventListenerHandlerLocation):
  11729. * bindings/js/ScriptEventListener.h:
  11730. * bindings/v8/ScriptEventListener.cpp:
  11731. (WebCore::eventListenerHandlerBody):
  11732. (WebCore::eventListenerHandlerLocation):
  11733. * bindings/v8/ScriptEventListener.h:
  11734. * inspector/InspectorDOMAgent.cpp:
  11735. (WebCore::InspectorDOMAgent::buildObjectForEventListener):
  11736. * inspector/front-end/ElementsPanel.js:
  11737. (WebInspector.ElementsPanel.prototype.linkifyNodeReference):
  11738. (WebInspector.ElementsPanel.prototype.linkifyNodeReference.preventDefault):
  11739. * inspector/front-end/EventListenersSidebarPane.js:
  11740. (WebInspector.EventListenersSidebarPane.prototype.update.callback):
  11741. (WebInspector.EventListenersSidebarPane.prototype.update):
  11742. ():
  11743. * inspector/front-end/StylesSidebarPane.js:
  11744. (WebInspector.StylesSidebarPane.prototype._rebuildSectionsForStyleRules):
  11745. * inspector/front-end/inspector.css:
  11746. (.node-link):
  11747. 2010-04-28 Julien Chaffraix <jchaffraix@webkit.org>
  11748. Reviewed by Alexey Proskuryakov.
  11749. [XHR] Cross-Origin synchronous request with credential raises NETWORK_ERR
  11750. https://bugs.webkit.org/show_bug.cgi?id=37781
  11751. <rdar://problem/7905150>
  11752. Tests: http/tests/xmlhttprequest/access-control-preflight-credential-async.html
  11753. http/tests/xmlhttprequest/access-control-preflight-credential-sync.html
  11754. Rolling the patch in as I could not reproduce Qt results locally.
  11755. * loader/DocumentThreadableLoader.cpp:
  11756. (WebCore::DocumentThreadableLoader::DocumentThreadableLoader): Now we remove the
  11757. credential from the request here to avoid forgetting to do so in the different code path.
  11758. (WebCore::DocumentThreadableLoader::makeSimpleCrossOriginAccessRequest): Just add the
  11759. "Origin" header.
  11760. (WebCore::DocumentThreadableLoader::loadRequest): Check here the the credential have
  11761. been removed so that we don't leak them. Also tweaked a comment to make it clear that
  11762. the URL check has issue when credential is involved.
  11763. 2010-04-28 Noam Rosenthal <noam.rosenthal@nokia.com>
  11764. Reviewed by Kenneth Rohde Christiansen.
  11765. [Qt] GraphicsLayer: preserves-3d and backface visibility
  11766. https://bugs.webkit.org/show_bug.cgi?id=35312
  11767. Implement preserves-3d by maintaining the 3D transformation heirarchy inside GraphicsLayerQt, and extrapolating
  11768. the relative QTransform. When the extrapolation fails (un-invertible matrix) we ignore the transformation change.
  11769. WebKitSite/blog-files/3d-transforms test now work with Qt.
  11770. * platform/graphics/qt/GraphicsLayerQt.cpp:
  11771. (WebCore::GraphicsLayerQtImpl::updateTransform):
  11772. (WebCore::GraphicsLayerQtImpl::opaqueArea):
  11773. (WebCore::GraphicsLayerQtImpl::boundingRect):
  11774. (WebCore::GraphicsLayerQtImpl::paint):
  11775. (WebCore::GraphicsLayerQtImpl::flushChanges):
  11776. 2010-04-28 Ilya Tikhonovsky <loislo@chromium.org>
  11777. Reviewed by Yury Semikhatsky.
  11778. Web Inspector: View frame selector for Timeline overview panel is redesigned a bit.
  11779. Now it is possible to adjust view frame by resizer bars and by click-n-drag in overview pane.
  11780. https://bugs.webkit.org/show_bug.cgi?id=38251
  11781. * inspector/front-end/TimelineOverviewPane.js:
  11782. (WebInspector.TimelineOverviewPane):
  11783. (WebInspector.TimelineOverviewPane.prototype.reset):
  11784. (WebInspector.TimelineOverviewPane.prototype._dragWindow):
  11785. (WebInspector.TimelineOverviewPane.prototype._windowSelectorDragging):
  11786. (WebInspector.TimelineOverviewPane.prototype._endWindowSelectorDragging):
  11787. (WebInspector.TimelineOverviewPane.prototype._resizeWindowLeft):
  11788. (WebInspector.TimelineOverviewPane.prototype._resizeWindowRight):
  11789. (WebInspector.TimelineOverviewPane.prototype._setWindowPosition):
  11790. (WebInspector.TimelinePanel.WindowSelector):
  11791. (WebInspector.TimelinePanel.WindowSelector.prototype._createSelectorElement):
  11792. (WebInspector.TimelinePanel.WindowSelector.prototype._close):
  11793. (WebInspector.TimelinePanel.WindowSelector.prototype._updatePosition):
  11794. * inspector/front-end/inspector.css:
  11795. (#timeline-overview-grid):
  11796. (.timeline-window-selector):
  11797. (#timeline-overview-window):
  11798. (.timeline-overview-dividers-background):
  11799. (.timeline-overview-window-rulers):
  11800. (.timeline-window-resizer):
  11801. 2010-04-28 Marcus Bulach <bulach@chromium.org>
  11802. Reviewed by Jeremy Orlow.
  11803. Reverts 58340 (https://bugs.webkit.org/show_bug.cgi?id=38158) due to regression on fast/text/international/khmer-selection.html
  11804. https://bugs.webkit.org/show_bug.cgi?id=38254
  11805. * platform/graphics/chromium/FontLinux.cpp:
  11806. (WebCore::adjustTextRenderMode):
  11807. (WebCore::TextRunWalker::getTextRun):
  11808. (WebCore::TextRunWalker::getNormalizedTextRun):
  11809. (WebCore::TextRunWalker::setGlyphXPositions):
  11810. (WebCore::glyphIndexForXPositionInScriptRun):
  11811. (WebCore::Font::offsetForPositionForComplexText):
  11812. (WebCore::Font::selectionRectForComplexText):
  11813. * platform/graphics/chromium/FontPlatformDataLinux.cpp:
  11814. (WebCore::FontPlatformData::setupPaint):
  11815. * platform/graphics/chromium/HarfbuzzSkia.cpp:
  11816. (WebCore::getOutlinePoint):
  11817. * platform/graphics/skia/GraphicsContext3DSkia.cpp:
  11818. (WebCore::GraphicsContext3D::getImageData):
  11819. * platform/graphics/skia/GraphicsContextSkia.cpp:
  11820. (WebCore::isCoordinateSkiaSafe):
  11821. (WebCore::GraphicsContext::fillRect):
  11822. (WebCore::GraphicsContext::strokePath):
  11823. (WebCore::GraphicsContext::strokeRect):
  11824. 2010-04-28 Andrey Kosyakov <caseq@chromium.org>
  11825. Reviewed by Yury Semikhatsky.
  11826. Log error message to inspector console if a resource fails to load.
  11827. Disable checking of mime-type consistency for failed resources.
  11828. https://bugs.webkit.org/show_bug.cgi?id=37215
  11829. Test: http/tests/inspector/console-resource-errors.html
  11830. * inspector/InspectorController.cpp:
  11831. (WebCore::InspectorController::didReceiveResponse):
  11832. (WebCore::InspectorController::didFailLoading):
  11833. * inspector/front-end/Resource.js:
  11834. (WebInspector.Resource.prototype._mimeTypeIsConsistentWithType):
  11835. * inspector/front-end/ResourcesPanel.js:
  11836. (WebInspector.ResourcesPanel.prototype.recreateViewForResourceIfNeeded):
  11837. 2010-04-28 Yury Semikhatsky <yurys@chromium.org>
  11838. Reviewed by Pavel Feldman.
  11839. Support pause on exceptions in v8 implementation of ScriptDebugServer.
  11840. https://bugs.webkit.org/show_bug.cgi?id=38205
  11841. * bindings/v8/ScriptDebugServer.cpp:
  11842. (WebCore::ScriptDebugServer::addListener):
  11843. (WebCore::ScriptDebugServer::pauseOnExceptionsState):
  11844. (WebCore::ScriptDebugServer::setPauseOnExceptionsState):
  11845. (WebCore::ScriptDebugServer::currentCallFrame):
  11846. (WebCore::ScriptDebugServer::handleV8DebugMessage):
  11847. (WebCore::ScriptDebugServer::dispatchDidParseSource):
  11848. * bindings/v8/ScriptDebugServer.h:
  11849. 2010-04-28 Sheriff Bot <webkit.review.bot@gmail.com>
  11850. Unreviewed, rolling out r58313.
  11851. http://trac.webkit.org/changeset/58313
  11852. https://bugs.webkit.org/show_bug.cgi?id=38253
  11853. Regression evident in pixel tests: the search icon is always
  11854. clipped at the bottom. (Requested by jorlow on #webkit).
  11855. * rendering/RenderTextControl.cpp:
  11856. (WebCore::RenderTextControl::controlClipRect):
  11857. * rendering/RenderTextControl.h:
  11858. (WebCore::RenderTextControl::hasControlClip):
  11859. * rendering/RenderTextControlSingleLine.cpp:
  11860. (WebCore::RenderTextControlSingleLine::paint):
  11861. * rendering/RenderTextControlSingleLine.h:
  11862. 2010-04-28 Justin McPherson <justin.mcpherson@nokia.com>
  11863. Reviewed by Simon Hausmann.
  11864. [Qt] Fix detection of Qt 4.7's multimedia libraries
  11865. QtMultimedia has been split into an additional media services library, which
  11866. we're using. mediaservices depends on multimedia.
  11867. * WebCore.pro:
  11868. 2010-04-28 Shinichiro Hamaji <hamaji@chromium.org>
  11869. Unreviewed attempt to fix the chromium build.
  11870. Add layoutTestController.setPrinting()
  11871. https://bugs.webkit.org/show_bug.cgi?id=37203
  11872. * rendering/RenderTreeAsText.cpp:
  11873. 2010-04-27 Shinichiro Hamaji <hamaji@chromium.org>
  11874. Reviewed by Darin Adler and Eric Seidel.
  11875. Add layoutTestController.setPrinting()
  11876. https://bugs.webkit.org/show_bug.cgi?id=37203
  11877. Added RenderAsTextPrintingMode as a behavior of externalRepresentation.
  11878. Now ~PrintContext() calls end() automatically.
  11879. * page/PrintContext.cpp:
  11880. (WebCore::PrintContext::~PrintContext):
  11881. * rendering/RenderTreeAsText.cpp:
  11882. (WebCore::externalRepresentation):
  11883. * rendering/RenderTreeAsText.h:
  11884. (WebCore::):
  11885. 2010-04-27 Yuzo Fujishima <yuzo@google.com>
  11886. Reviewed by Eric Seidel.
  11887. Enhance CSS parser for Paged Media (Iteration 4)
  11888. Implement page property parsing as specified at http://dev.w3.org/csswg/css3-page/#using-named-pages.
  11889. https://bugs.webkit.org/show_bug.cgi?id=35853
  11890. * css/CSSParser.cpp:
  11891. (WebCore::CSSParser::parseValue):
  11892. (WebCore::CSSParser::parsePage):
  11893. * css/CSSParser.h:
  11894. 2010-04-27 Yuzo Fujishima <yuzo@google.com>
  11895. Reviewed by Dimitri Glazkov.
  11896. Enhance CSS parser for Paged Media (Iteration 3)
  11897. Implement size parameter parsing for Paged Media.
  11898. https://bugs.webkit.org/show_bug.cgi?id=35851
  11899. I believe size property hasn't been used so far because (1) it hasn't been properly parsed and
  11900. (2) a comment in CSSComputedStyleDeclaration::getPropertyCSSValue says so.
  11901. Changing the way of parsing it should not cause any regressions -- no existing tests fail because of this change.
  11902. * css/CSSParser.cpp:
  11903. (WebCore::CSSParser::parseValue):
  11904. (WebCore::CSSParser::parseSize):
  11905. (WebCore::CSSParser::parseSizeParameter):
  11906. * css/CSSParser.h:
  11907. (WebCore::CSSParser::):
  11908. * css/CSSValueKeywords.in:
  11909. 2010-04-27 Yuzo Fujishima <yuzo@google.com>
  11910. Reviewed by Eric Seidel.
  11911. Enhance CSS parser for Paged Media (Iteration 2)
  11912. Parse and hold paged media rules in CSSStyleSelector.
  11913. https://bugs.webkit.org/show_bug.cgi?id=35782
  11914. Test: printing/page-rule-css-text.html
  11915. * css/CSSGrammar.y:
  11916. * css/CSSPageRule.cpp:
  11917. (WebCore::CSSPageRule::CSSPageRule):
  11918. (WebCore::CSSPageRule::selectorText):
  11919. * css/CSSPageRule.h:
  11920. (WebCore::CSSPageRule::create):
  11921. (WebCore::CSSPageRule::isPageRule):
  11922. * css/CSSParser.cpp:
  11923. (WebCore::CSSParser::createPageRule):
  11924. * css/CSSStyleRule.h:
  11925. * css/CSSStyleSelector.cpp:
  11926. (WebCore::CSSRuleSet::getPageRules):
  11927. (WebCore::CSSRuleSet::CSSRuleSet):
  11928. (WebCore::CSSRuleSet::~CSSRuleSet):
  11929. (WebCore::CSSRuleSet::addPageRule):
  11930. (WebCore::CSSRuleSet::addRulesFromSheet):
  11931. * css/CSSStyleSelector.h:
  11932. * css/StyleBase.h:
  11933. (WebCore::StyleBase::isPageRule):
  11934. 2010-04-27 Daniel Bates <dbates@rim.com>
  11935. Reviewed by Oliver Hunt.
  11936. https://bugs.webkit.org/show_bug.cgi?id=37686
  11937. Fixes an issue where the canvas method strokeRect will stroke a
  11938. rectangle whose dimensions are 0 when lineWidth > 1.
  11939. As per the definition of strokeRect in the HTML Canvas 2D Context
  11940. spec. <http://www.w3.org/TR/2dcontext/#dom-context-2d-strokerect>,
  11941. this method should have no effect when both the height and width
  11942. are zero.
  11943. Tests: fast/canvas/canvas-clearRect.html
  11944. fast/canvas/canvas-fillRect.html
  11945. * html/canvas/CanvasRenderingContext2D.cpp:
  11946. (WebCore::validateRectForCanvas): Return false if height, width == 0.
  11947. 2010-04-27 Adam Barth <abarth@webkit.org>
  11948. Reviewed by Eric Seidel.
  11949. Remove obsolete custom bindings file
  11950. https://bugs.webkit.org/show_bug.cgi?id=38223
  11951. We don't need these files anymore because they are empty.
  11952. * Android.jscbindings.mk:
  11953. * GNUmakefile.am:
  11954. * WebCore.pro:
  11955. * WebCore.vcproj/WebCore.vcproj:
  11956. * WebCore.xcodeproj/project.pbxproj:
  11957. * bindings/js/JSAbstractWorkerCustom.cpp: Removed.
  11958. * bindings/js/JSBindingsAllInOne.cpp:
  11959. * bindings/js/JSDocumentFragmentCustom.cpp: Removed.
  11960. * bindings/js/JSEventSourceCustom.cpp: Removed.
  11961. 2010-04-27 Daniel Cheng <dcheng@chromium.org>
  11962. Reviewed by Jian Li.
  11963. [Chromium] Filter out URLs with a file scheme from text/uri-list when dragging.
  11964. https://bugs.webkit.org/show_bug.cgi?id=38227
  11965. Unfortunately, the simple fix of not populating the drag data with file URLs doesn't work
  11966. since the default drop handling uses the drag data URL to navigate to dropped files/URLs.
  11967. For now, we hack around the problem in the Chromium platform, but the proper long term
  11968. solution is to change DragController::performDrag to check dragData::asFilenames().
  11969. No new tests.
  11970. * platform/chromium/ClipboardChromium.cpp:
  11971. (WebCore::ClipboardChromium::getData):
  11972. (WebCore::ClipboardChromium::types):
  11973. 2010-04-27 Simon Fraser <simon.fraser@apple.com>
  11974. Reviewed by the inimitable Dan Bernstein.
  11975. SVG as background image renders incorrectly after zooming
  11976. https://bugs.webkit.org/show_bug.cgi?id=38215
  11977. When doing a partial redraw of an SVGImage used as a CSS background
  11978. image, we're limited to drawing the entire Frame, clipped to the dirty rect.
  11979. Because of this, we need to fix up the CTM so that the origin is at the
  11980. top left of the unclipped image, rather than the top left of the
  11981. portion being redrawn.
  11982. Test: fast/images/svg-background-partial-redraw.html
  11983. * svg/graphics/SVGImage.cpp:
  11984. (WebCore::SVGImage::draw):
  11985. 2010-04-27 Yuzo Fujishima <yuzo@google.com>
  11986. Reviewed by David Hyatt.
  11987. Retry of: Enhance CSS parser for Paged Media (Iteration 1)
  11988. In this change, the grammar is extended and skeletal methods for creating page rules and margin at-rules are defined.
  11989. The contents of the methods should be implemented by other changes.
  11990. https://bugs.webkit.org/show_bug.cgi?id=35329
  11991. Test: fast/css/parsing-page-rule.html
  11992. * css/CSSGrammar.y:
  11993. * css/CSSParser.cpp:
  11994. (WebCore::CSSParser::CSSParser):
  11995. (WebCore::CSSParser::clearProperties):
  11996. (WebCore::CSSParser::createPageRule):
  11997. (WebCore::CSSParser::createMarginAtRule):
  11998. (WebCore::CSSParser::startDeclarationsForMarginBox):
  11999. (WebCore::CSSParser::endDeclarationsForMarginBox):
  12000. * css/CSSParser.h:
  12001. * css/CSSSelector.cpp:
  12002. (WebCore::CSSSelector::pseudoId):
  12003. (WebCore::nameToPseudoTypeMap):
  12004. (WebCore::CSSSelector::extractPseudoType):
  12005. * css/CSSSelector.h:
  12006. (WebCore::CSSSelector::):
  12007. * css/tokenizer.flex:
  12008. 2010-04-27 Julien Chaffraix <jchaffraix@webkit.org>
  12009. Unreviewed, rolling out my changes as it rendered the Qt bot unreliable.
  12010. * loader/DocumentThreadableLoader.cpp:
  12011. (WebCore::DocumentThreadableLoader::DocumentThreadableLoader):
  12012. (WebCore::DocumentThreadableLoader::makeSimpleCrossOriginAccessRequest):
  12013. (WebCore::DocumentThreadableLoader::loadRequest):
  12014. 2010-04-27 Julien Chaffraix <jchaffraix@webkit.org>
  12015. Reviewed by Alexey Proskuryakov.
  12016. [XHR] Cross-Origin synchronous request with credential raises NETWORK_ERR
  12017. https://bugs.webkit.org/show_bug.cgi?id=37781
  12018. <rdar://problem/7905150>
  12019. Tests: http/tests/xmlhttprequest/access-control-preflight-credential-async.html
  12020. http/tests/xmlhttprequest/access-control-preflight-credential-sync.html
  12021. * loader/DocumentThreadableLoader.cpp:
  12022. (WebCore::DocumentThreadableLoader::DocumentThreadableLoader): Now we remove the
  12023. credential from the request here to avoid forgetting to do so in the different code path.
  12024. (WebCore::DocumentThreadableLoader::makeSimpleCrossOriginAccessRequest): Just add the
  12025. "Origin" header.
  12026. (WebCore::DocumentThreadableLoader::loadRequest): Check here the the credential have
  12027. been removed so that we don't leak them. Also tweaked a comment to make it clear that
  12028. the URL check has issue when credential is involved.
  12029. 2010-04-27 Sam Weinig <sam@webkit.org>
  12030. Reviewed by Maciej Stachowiak.
  12031. Fix for https://bugs.webkit.org/show_bug.cgi?id=38238
  12032. Allow both WebKit and WebKit2 to link to the same WebCore.framework
  12033. * Configurations/WebCore.xcconfig: Use -allowable_client WebKit2 to add
  12034. WebKit2 to the list of frameworks that can link directly to WebCore. It
  12035. is not necessary for it to be an umbrella since we don't need to reexport
  12036. any symbols.
  12037. 2010-04-27 Dumitru Daniliuc <dumi@chromium.org>
  12038. Reviewed by David Levin.
  12039. Turn on AUTO_VACUUM = INCREMENTAL for all HTML5 databases.
  12040. https://bugs.webkit.org/show_bug.cgi?id=38191
  12041. Vacuum all databases when the number of free pages is at least 10%
  12042. of the number of total pages. Also, add a guard against a bug that
  12043. was fixed in SQLite only starting with version 3.6.16.
  12044. * platform/sql/SQLiteDatabase.cpp:
  12045. (WebCore::SQLiteDatabase::maximumSize):
  12046. (WebCore::SQLiteDatabase::freeSpaceSize):
  12047. (WebCore::SQLiteDatabase::totalSize):
  12048. (WebCore::SQLiteDatabase::runIncrementalVacuumCommand):
  12049. (WebCore::SQLiteDatabase::turnOnIncrementalAutoVacuum):
  12050. * platform/sql/SQLiteDatabase.h:
  12051. (WebCore::SQLiteDatabase::):
  12052. * platform/sql/SQLiteStatement.cpp:
  12053. (WebCore::SQLiteStatement::prepare):
  12054. (WebCore::SQLiteStatement::step):
  12055. * storage/Database.cpp:
  12056. (WebCore::Database::performOpenAndVerify):
  12057. (WebCore::Database::incrementalVacuumIfNeeded):
  12058. * storage/Database.h:
  12059. * storage/SQLTransaction.cpp:
  12060. (WebCore::SQLTransaction::postflightAndCommit):
  12061. 2010-04-27 Garret Kelly <gdk@chromium.org>
  12062. Reviewed by Darin Fisher.
  12063. Turn all of the touch event handlers into RuntimeEnabledFeatures, and
  12064. modify the createEvent methond on Document so that it won't create a
  12065. TouchEvent if the feature is disabled.
  12066. https://bugs.webkit.org/show_bug.cgi?id=37485
  12067. * bindings/generic/RuntimeEnabledFeatures.cpp:
  12068. * bindings/generic/RuntimeEnabledFeatures.h:
  12069. (WebCore::RuntimeEnabledFeatures::touchEnabled):
  12070. (WebCore::RuntimeEnabledFeatures::setTouchEnabled):
  12071. (WebCore::RuntimeEnabledFeatures::ontouchstartEnabled):
  12072. (WebCore::RuntimeEnabledFeatures::ontouchmoveEnabled):
  12073. (WebCore::RuntimeEnabledFeatures::ontouchendEnabled):
  12074. (WebCore::RuntimeEnabledFeatures::ontouchcancelEnabled):
  12075. * dom/Document.cpp:
  12076. (WebCore::Document::createEvent):
  12077. * dom/Document.idl:
  12078. * dom/Element.idl:
  12079. * page/DOMWindow.idl:
  12080. 2010-04-27 Jens Alfke <snej@chromium.org>
  12081. Reviewed by Darin Fisher.
  12082. [Chromium] Add some notifications and an accessor to WebKit API
  12083. https://bugs.webkit.org/show_bug.cgi?id=37625
  12084. * dom/Node.cpp:
  12085. (WebCore::Node::hasNonEmptyBoundingBox): New method.
  12086. * dom/Node.h:
  12087. * html/HTMLAnchorElement.cpp:
  12088. (WebCore::HTMLAnchorElement::isKeyboardFocusable): Moved part of method into new Node method
  12089. 2010-04-27 Jochen Eisinger <jochen@chromium.org>
  12090. Reviewed by Shinichiro Hamaji.
  12091. Fix gyp build on Mac OS X with enable_svg=0.
  12092. https://bugs.webkit.org/show_bug.cgi?id=38192
  12093. * WebCore.gyp/WebCore.gyp: Only generate SVG symbols if enable_svg!=0.
  12094. * css/CSSComputedStyleDeclaration.cpp:
  12095. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Add missing unimplemented CSS properties to switch statement.
  12096. 2010-04-27 Kinuko Yasuda <kinuko@chromium.org>
  12097. Reviewed by Jian Li.
  12098. [V8] Handle OR ('|') conditional in action_derivedsourcesallinone.py
  12099. https://bugs.webkit.org/show_bug.cgi?id=38207
  12100. No new tests.
  12101. * WebCore.gyp/scripts/action_derivedsourcesallinone.py:
  12102. 2010-04-27 François Sausset <sausset@gmail.com>
  12103. Reviewed by Kenneth Rohde Christiansen.
  12104. Implementation of the MathML mroot & msqrt elements.
  12105. https://bugs.webkit.org/show_bug.cgi?id=37044
  12106. Test: mathml/presentation/roots.xhtml
  12107. * WebCore.xcodeproj/project.pbxproj:
  12108. * css/mathml.css:
  12109. (mroot):
  12110. (mroot > * + *):
  12111. (mroot > * + mrow, mroot > * + mfenced):
  12112. * mathml/MathMLInlineContainerElement.cpp:
  12113. (WebCore::MathMLInlineContainerElement::createRenderer):
  12114. * mathml/RenderMathMLRoot.cpp: Added.
  12115. (WebCore::RenderMathMLRoot::RenderMathMLRoot):
  12116. (WebCore::RenderMathMLRoot::addChild):
  12117. (WebCore::RenderMathMLRoot::paint):
  12118. (WebCore::RenderMathMLRoot::layout):
  12119. * mathml/RenderMathMLRoot.h: Added.
  12120. * mathml/RenderMathMLSquareRoot.cpp: Added.
  12121. (WebCore::RenderMathMLSquareRoot::RenderMathMLSquareRoot):
  12122. (WebCore::RenderMathMLSquareRoot::paint):
  12123. (WebCore::RenderMathMLSquareRoot::layout):
  12124. * mathml/RenderMathMLSquareRoot.h: Added.
  12125. 2010-04-27 Darin Adler <darin@apple.com>
  12126. Reviewed by Maciej Stachowiak.
  12127. I noticed an unused forwarding header.
  12128. * ForwardingHeaders/runtime/PropertyMap.h: Removed.
  12129. 2010-04-27 James Robinson <jamesr@chromium.org>
  12130. Reviewed by Adam Barth.
  12131. Fix gcc 4.4.1 warnings on Linux in the chromium V8 bindings code.
  12132. https://bugs.webkit.org/show_bug.cgi?id=38153
  12133. * bindings/scripts/CodeGeneratorV8.pm:
  12134. * bindings/v8/V8Proxy.cpp:
  12135. (WebCore::V8Proxy::callFunction):
  12136. 2010-04-27 Eric Seidel <eric@webkit.org>
  12137. Unreviewed, rolling out r58318.
  12138. http://trac.webkit.org/changeset/58318
  12139. https://bugs.webkit.org/show_bug.cgi?id=37215
  12140. Broke test on Tiger. Might just need updated results,
  12141. unclear.
  12142. * inspector/InspectorController.cpp:
  12143. (WebCore::InspectorController::didReceiveResponse):
  12144. (WebCore::InspectorController::didFailLoading):
  12145. * inspector/front-end/Resource.js:
  12146. (WebInspector.Resource.prototype._mimeTypeIsConsistentWithType):
  12147. * inspector/front-end/ResourcesPanel.js:
  12148. (WebInspector.ResourcesPanel.prototype.recreateViewForResourceIfNeeded):
  12149. 2010-04-27 Evan Martin <evan@chromium.org>
  12150. Reviewed by David Levin.
  12151. [chromium] bold bengali text not rendered properly on Linux
  12152. https://bugs.webkit.org/show_bug.cgi?id=37904
  12153. We must let Skia do font fallback, rather than picking a font name
  12154. then handing that to Skia. For example, if we have Bengali text and
  12155. choose FreeSans + fake bold, and then later reuse the name, Skia will
  12156. helpfully use FreeSansBold (which doesn't cover Bengali).
  12157. Test: fast/text/international/bold-bengali.html
  12158. * platform/graphics/chromium/FontCacheLinux.cpp:
  12159. (WebCore::FontCache::getFontDataForCharacters):
  12160. 2010-04-27 James Robinson <jamesr@chromium.org>
  12161. Reviewed by Darin Adler.
  12162. Fix warnings emitted by gcc 4.4.1 on linux in chromium-specific platform graphics files.
  12163. https://bugs.webkit.org/show_bug.cgi?id=38158
  12164. Most of the issues are signed/unsigned mismatches, but there are a few unusued variables
  12165. and functions mixed in.
  12166. * platform/graphics/chromium/FontLinux.cpp:
  12167. (WebCore::adjustTextRenderMode):
  12168. (WebCore::TextRunWalker::getTextRun):
  12169. (WebCore::TextRunWalker::getNormalizedTextRun):
  12170. (WebCore::TextRunWalker::setGlyphXPositions):
  12171. (WebCore::glyphIndexForXPositionInScriptRun):
  12172. (WebCore::Font::offsetForPositionForComplexText):
  12173. (WebCore::Font::selectionRectForComplexText):
  12174. * platform/graphics/chromium/FontPlatformDataLinux.cpp:
  12175. (WebCore::FontPlatformData::setupPaint):
  12176. * platform/graphics/chromium/HarfbuzzSkia.cpp:
  12177. (WebCore::getOutlinePoint):
  12178. * platform/graphics/skia/GraphicsContext3DSkia.cpp:
  12179. (WebCore::GraphicsContext3D::getImageData):
  12180. * platform/graphics/skia/GraphicsContextSkia.cpp:
  12181. (WebCore::isCoordinateSkiaSafe):
  12182. (WebCore::GraphicsContext::fillRect):
  12183. (WebCore::GraphicsContext::strokePath):
  12184. (WebCore::GraphicsContext::strokeRect):
  12185. 2010-04-27 Jian Li <jianli@chromium.org>
  12186. Reviewed by Darin Adler.
  12187. Sending a package file using FormData crashes WebKit on Mac.
  12188. https://bugs.webkit.org/show_bug.cgi?id=37882
  12189. Can't add a layout test because DRT does not support generating the file name.
  12190. * loader/FrameLoader.cpp:
  12191. (WebCore::FrameLoader::submitForm):
  12192. (WebCore::FrameLoader::navigateToDifferentDocument):
  12193. * platform/network/FormData.cpp:
  12194. (WebCore::FormData::appendDOMFormData):
  12195. * platform/network/FormData.h:
  12196. * xml/XMLHttpRequest.cpp:
  12197. (WebCore::XMLHttpRequest::send):
  12198. 2010-04-27 Adam Barth <abarth@webkit.org>
  12199. Reviewed by Eric Seidel.
  12200. Remove custom NodeIterator bindings
  12201. https://bugs.webkit.org/show_bug.cgi?id=38188
  12202. Another example of CallWith=ScriptState. This case shows us the right
  12203. way to handle the interaction with exception codes.
  12204. In my previous patch, I put the exception code handling after the
  12205. ScriptState exception handling. It turns out this was a mistake
  12206. (although a harmless one at the time because no IDL caused us to
  12207. generate that code). Now that we're generating both kinds of exception
  12208. handling, we need to generate them in the right order.
  12209. * WebCore.gypi:
  12210. * bindings/js/JSNodeIteratorCustom.cpp:
  12211. * bindings/scripts/CodeGeneratorJS.pm:
  12212. * bindings/scripts/CodeGeneratorV8.pm:
  12213. * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
  12214. (webkit_dom_test_obj_with_script_state_void_exception):
  12215. (webkit_dom_test_obj_with_script_state_obj_exception):
  12216. * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
  12217. * bindings/scripts/test/JS/JSTestObj.cpp:
  12218. (WebCore::):
  12219. (WebCore::jsTestObjPrototypeFunctionWithScriptStateVoidException):
  12220. (WebCore::jsTestObjPrototypeFunctionWithScriptStateObjException):
  12221. * bindings/scripts/test/JS/JSTestObj.h:
  12222. * bindings/scripts/test/ObjC/DOMTestObj.h:
  12223. * bindings/scripts/test/ObjC/DOMTestObj.mm:
  12224. (-[DOMTestObj withScriptStateVoidException]):
  12225. (-[DOMTestObj withScriptStateObjException]):
  12226. * bindings/scripts/test/TestObj.idl:
  12227. * bindings/scripts/test/V8/V8TestObj.cpp:
  12228. (WebCore::TestObjInternal::withScriptStateVoidCallback):
  12229. (WebCore::TestObjInternal::withScriptStateObjCallback):
  12230. (WebCore::TestObjInternal::withScriptStateVoidExceptionCallback):
  12231. (WebCore::TestObjInternal::withScriptStateObjExceptionCallback):
  12232. (WebCore::):
  12233. * bindings/v8/custom/V8NodeIteratorCustom.cpp: Removed.
  12234. * dom/NodeIterator.idl:
  12235. 2010-04-27 Adam Barth <abarth@webkit.org>
  12236. Reviewed by Darin Adler.
  12237. Remove copy/paste addEventListener "custom" bindings via code generation
  12238. https://bugs.webkit.org/show_bug.cgi?id=38210
  12239. It's somewhat lame to special case addEventListener and
  12240. removeEventListener in the code generator, but it saves a large amount
  12241. of boilerplate "custom" bindings code.
  12242. Idea shamelessly stolen from the V8 code generator.
  12243. This patch points to some good refactoring opportunities in
  12244. CodeGeneratorJS.pm, but I'm going to hold off on those for a future
  12245. patch. By generating test coverage for the code generator, we make
  12246. these future refactorings easier.
  12247. * bindings/js/JSAbstractWorkerCustom.cpp:
  12248. * bindings/js/JSDOMApplicationCacheCustom.cpp:
  12249. * bindings/js/JSDesktopNotificationsCustom.cpp:
  12250. * bindings/js/JSEventSourceCustom.cpp:
  12251. * bindings/js/JSMessagePortCustom.cpp:
  12252. * bindings/js/JSNodeCustom.cpp:
  12253. * bindings/js/JSSVGElementInstanceCustom.cpp:
  12254. * bindings/js/JSWebSocketCustom.cpp:
  12255. * bindings/js/JSWorkerContextCustom.cpp:
  12256. * bindings/js/JSXMLHttpRequestCustom.cpp:
  12257. * bindings/js/JSXMLHttpRequestUploadCustom.cpp:
  12258. * bindings/scripts/CodeGeneratorJS.pm:
  12259. * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
  12260. * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
  12261. * bindings/scripts/test/JS/JSTestObj.cpp:
  12262. (WebCore::):
  12263. (WebCore::jsTestObjPrototypeFunctionAddEventListener):
  12264. (WebCore::jsTestObjPrototypeFunctionRemoveEventListener):
  12265. * bindings/scripts/test/JS/JSTestObj.h:
  12266. * bindings/scripts/test/ObjC/DOMTestObj.h:
  12267. * bindings/scripts/test/ObjC/DOMTestObj.mm:
  12268. (-[DOMTestObj addEventListener:listener:useCapture:]):
  12269. (-[DOMTestObj removeEventListener:listener:useCapture:]):
  12270. * bindings/scripts/test/TestObj.idl:
  12271. * bindings/scripts/test/V8/V8TestObj.cpp:
  12272. (WebCore::TestObjInternal::addEventListenerCallback):
  12273. (WebCore::TestObjInternal::removeEventListenerCallback):
  12274. (WebCore::):
  12275. * dom/MessagePort.idl:
  12276. * dom/Node.idl:
  12277. * loader/appcache/DOMApplicationCache.idl:
  12278. * notifications/Notification.idl:
  12279. * page/EventSource.idl:
  12280. * svg/SVGElementInstance.idl:
  12281. * websockets/WebSocket.idl:
  12282. * workers/AbstractWorker.idl:
  12283. * workers/WorkerContext.idl:
  12284. * xml/XMLHttpRequest.idl:
  12285. * xml/XMLHttpRequestUpload.idl:
  12286. 2010-04-27 Sam Weinig <sam@webkit.org>
  12287. Rubber-stamped by Beth Dakin.
  12288. Remove now unnecessary EXPERIMENTAL_SINGLE_VIEW_MODE #define.
  12289. * page/EventHandler.cpp:
  12290. (WebCore::EventHandler::EventHandler):
  12291. (WebCore::EventHandler::clearDragState):
  12292. * page/EventHandler.h:
  12293. * page/mac/DragControllerMac.mm:
  12294. * page/mac/EventHandlerMac.mm:
  12295. * platform/mac/PopupMenuMac.mm:
  12296. 2010-04-27 Ben Murdoch <benm@google.com>
  12297. Reviewed by Simon Hausmann.
  12298. The TouchStationary state of WebCore::PlatformTouchPoint is not handled inside the touch event handler.
  12299. https://bugs.webkit.org/show_bug.cgi?id=37609
  12300. No new tests required, only updating documentation.
  12301. * page/EventHandler.cpp:
  12302. (WebCore::EventHandler::handleTouchEvent): Improve the documentation for handling
  12303. the TouchStationary state as a result of discussions in bug 37609.
  12304. 2010-04-27 Simon Fraser <simon.fraser@apple.com>
  12305. Reviewed by Darin Adler, Maciej Stachowiak.
  12306. REGRESSION (r57919): Some pages opened in background tabs don't render the first time you activate their tab
  12307. https://bugs.webkit.org/show_bug.cgi?id=38183
  12308. Rather than sprinkle PLATFORM #ifdefs around, add a new method,
  12309. RenderLayerCompositor::shouldPropagateCompositingToIFrameParent(), that indicates whether
  12310. an iframe with composited content should trigger compositing mode in the enclosing document
  12311. (a behavior that differs between platforms).
  12312. Use this new method to determine whether to trigger a style recalc in the parent document
  12313. when an iframe becomes composited.
  12314. Move the code formerly in RenderView::compositingStateChanged() into RenderLayerCompositor().
  12315. * manual-tests/compositing/accel-comp-iframe-tab-repaint.html: Added.
  12316. * manual-tests/compositing/resources/flash-frame.html: Added.
  12317. * manual-tests/compositing/resources/tab-repaint-part-2.html: Added.
  12318. * rendering/RenderLayerCompositor.cpp:
  12319. (WebCore::RenderLayerCompositor::enableCompositingMode):
  12320. (WebCore::RenderLayerCompositor::shouldPropagateCompositingToIFrameParent):
  12321. (WebCore::RenderLayerCompositor::requiresCompositingForIFrame):
  12322. * rendering/RenderLayerCompositor.h:
  12323. * rendering/RenderView.cpp:
  12324. * rendering/RenderView.h:
  12325. 2010-04-27 Andrey Kosyakov <caseq@chromium.org>
  12326. Reviewed by Yury Semikhatsky.
  12327. Log error message to inspector console if a resource fails to load.
  12328. Disable checking of mime-type consistency for failed resources.
  12329. https://bugs.webkit.org/show_bug.cgi?id=37215
  12330. Test: http/tests/inspector/console-resource-errors.html
  12331. * inspector/InspectorController.cpp:
  12332. (WebCore::InspectorController::didReceiveResponse):
  12333. (WebCore::InspectorController::didFailLoading):
  12334. * inspector/front-end/Resource.js:
  12335. (WebInspector.Resource.prototype._mimeTypeIsConsistentWithType):
  12336. * inspector/front-end/ResourcesPanel.js:
  12337. (WebInspector.ResourcesPanel.prototype.recreateViewForResourceIfNeeded):
  12338. 2010-04-27 Vitaly Repeshko <vitalyr@chromium.org>
  12339. Reviewed by Nate Chapin.
  12340. [V8] Fix XHR memory leak in GC controller.
  12341. https://bugs.webkit.org/show_bug.cgi?id=38202
  12342. http://trac.webkit.org/changeset/55798 simplified processing of
  12343. active DOM objects but introduced a subtle bug in garbage
  12344. collection of XHRs. ActiveDOMObject is not a direct base class of
  12345. XHR and so upcasting changes pointer identity and breaks DOM
  12346. maps. This leads to forever live persistent handles to XHR that
  12347. had pending activity while V8 GC happened.
  12348. * bindings/v8/V8GCController.cpp:
  12349. (WebCore::GCEpilogueVisitor::visitDOMWrapper):
  12350. 2010-04-27 Adam Barth <abarth@webkit.org>
  12351. Unreviewed. Regenerate reference bindings code generator output.
  12352. * bindings/scripts/test/V8/V8TestObj.cpp:
  12353. (WebCore::TestObjInternal::withScriptStateVoidCallback):
  12354. (WebCore::TestObjInternal::withScriptStateObjCallback):
  12355. 2010-04-27 Joseph Pecoraro <joepeck@webkit.org>
  12356. Reviewed by Dan Bernstein.
  12357. <input type="search"> with uneven padding causes text clipping
  12358. https://bugs.webkit.org/show_bug.cgi?id=38160
  12359. Test: fast/css/input-search-padding.html
  12360. An <input type="search"> contains an inner block, which is explicitly
  12361. centered in RenderTextControlSingleLine based on the height of the element.
  12362. However, the clipping rect was not using the set location, and instead
  12363. calculated off of the top border and padding alone. This also vertically
  12364. centers the Caps Lock indicator.
  12365. * rendering/RenderTextControl.cpp: moved controlClipRect implementation to RenderTextControlSingleLine
  12366. * rendering/RenderTextControl.h: allow a subclass implementation of controlClipRect, removed redundant hasControlClip implementation, and moved controlClipRect
  12367. * rendering/RenderTextControlSingleLine.cpp:
  12368. (WebCore::RenderTextControlSingleLine::paint): vertically center the Caps Lock indicator
  12369. (WebCore::RenderTextControlSingleLine::controlClipRect): use the set location of the anonymous inner block instead
  12370. * rendering/RenderTextControlSingleLine.h: allow for an implementation of controlClipRect for <input type="search">
  12371. 2010-04-27 Thomas Zander <t.zander@nokia.com>
  12372. Reviewed by Simon Hausmann.
  12373. [Qt] Fix linking on Symbian on Linux using the Makefile based mkspec.
  12374. Disable thumb mode due to library size limitations, just like it's done
  12375. for the sbs/sbsv2 based build system.
  12376. * WebCore.pro:
  12377. 2010-04-21 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
  12378. Reviewed by Kenneth Rohde Christiansen.
  12379. [Qt] Make sure WebKit is not compiled using C++0x.
  12380. https://bugs.webkit.org/show_bug.cgi?id=37867
  12381. As the rest of Qt compiles in the C++0x mode, people might start
  12382. compiling it in this mode. WebKit don't support this yet.
  12383. Patch by Thiago Macieira <thiago.macieira@nokia.com>
  12384. * WebCore.pro:
  12385. 2010-04-27 Jeremy Orlow <jorlow@chromium.org>
  12386. Unreviewed build fix.
  12387. Revert 58274 and 58269 (WebSQLDatabase changes)
  12388. https://bugs.webkit.org/show_bug.cgi?id=38191
  12389. Chromium bots are hitting ASSERTS when running layout tests.
  12390. * platform/sql/SQLiteDatabase.cpp:
  12391. (WebCore::SQLiteDatabase::maximumSize):
  12392. (WebCore::SQLiteDatabase::freeSpaceSize):
  12393. * platform/sql/SQLiteDatabase.h:
  12394. * platform/sql/SQLiteStatement.cpp:
  12395. (WebCore::SQLiteStatement::prepare):
  12396. * storage/Database.cpp:
  12397. (WebCore::Database::performOpenAndVerify):
  12398. * storage/Database.h:
  12399. * storage/SQLTransaction.cpp:
  12400. (WebCore::SQLTransaction::postflightAndCommit):
  12401. 2010-04-27 Yuzo Fujishima <yuzo@google.com>
  12402. Unreviewed, fix build breakage by reverting r58299.
  12403. * css/CSSGrammar.y:
  12404. * css/CSSParser.cpp:
  12405. (WebCore::CSSParser::CSSParser):
  12406. (WebCore::CSSParser::clearProperties):
  12407. * css/CSSParser.h:
  12408. * css/CSSSelector.cpp:
  12409. (WebCore::CSSSelector::pseudoId):
  12410. (WebCore::nameToPseudoTypeMap):
  12411. (WebCore::CSSSelector::extractPseudoType):
  12412. * css/CSSSelector.h:
  12413. (WebCore::CSSSelector::):
  12414. * css/tokenizer.flex:
  12415. 2010-04-27 Yuzo Fujishima <yuzo@google.com>
  12416. Reviewed by Shinichiro Hamaji.
  12417. WebCore::CSSSelector::RareData::parseNth doesn't check whether the search for '-' in the argument was successful.
  12418. This results in incorrect parsing.
  12419. For example, '3n' is parsed as if it were '3n-3'. The code has been working OK just accidentally.
  12420. https://bugs.webkit.org/show_bug.cgi?id=37787
  12421. No new tests are added because the original behavior is accidentally OK.
  12422. * css/CSSSelector.cpp:
  12423. (WebCore::CSSSelector::RareData::parseNth):
  12424. 2010-04-27 Yuzo Fujishima <yuzo@google.com>
  12425. Reviewed by David Hyatt.
  12426. Enhance CSS parser for Paged Media (Iteration 1)
  12427. In this change, the grammar is extended and skeletal methods for creating page rules and margin at-rules are defined.
  12428. The contents of the methods should be implemented by other changes.
  12429. https://bugs.webkit.org/show_bug.cgi?id=35329
  12430. Test: fast/css/parsing-page-rule.html
  12431. * css/CSSGrammar.y:
  12432. * css/CSSParser.cpp:
  12433. (WebCore::CSSParser::CSSParser):
  12434. (WebCore::CSSParser::clearProperties):
  12435. (WebCore::CSSParser::lex):
  12436. (WebCore::CSSParser::text):
  12437. (WebCore::CSSParser::createPageRule):
  12438. (WebCore::CSSParser::createMarginAtRule):
  12439. (WebCore::CSSParser::startDeclarationsForMarginBox):
  12440. (WebCore::CSSParser::endDeclarationsForMarginBox):
  12441. * css/CSSParser.h:
  12442. * css/CSSSelector.cpp:
  12443. (WebCore::CSSSelector::extractPseudoType):
  12444. * css/CSSSelector.h:
  12445. (WebCore::CSSSelector::):
  12446. * css/tokenizer.flex:
  12447. 2010-04-27 Adam Barth <abarth@webkit.org>
  12448. Reviewed by Eric Seidel.
  12449. Remove custom bindings for TreeWalker
  12450. https://bugs.webkit.org/show_bug.cgi?id=38182
  12451. This custom code is just CallWith=ScriptState.
  12452. * WebCore.gypi:
  12453. * bindings/js/JSTreeWalkerCustom.cpp:
  12454. (WebCore::JSTreeWalker::markChildren):
  12455. * bindings/scripts/CodeGeneratorJS.pm:
  12456. * bindings/scripts/CodeGeneratorV8.pm:
  12457. * bindings/scripts/test/TestObj.idl:
  12458. * bindings/v8/custom/V8TreeWalkerCustom.cpp: Removed.
  12459. * dom/TreeWalker.idl:
  12460. 2010-04-27 Eric Seidel <eric@webkit.org>
  12461. Reviewed by Adam Barth.
  12462. Move code out of GenerateImplementation to make it more smaller
  12463. https://bugs.webkit.org/show_bug.cgi?id=38176
  12464. * bindings/scripts/CodeGeneratorJS.pm:
  12465. - Move some code into a new GenerateAttributesHashTable method.
  12466. 2010-04-26 Adam Barth <abarth@webkit.org>
  12467. Reviewed by Eric Seidel.
  12468. Add CallWith=DynamicFrame to CodeGenerator
  12469. https://bugs.webkit.org/show_bug.cgi?id=38174
  12470. I've only used this in one instance, but this is infrastructure that I
  12471. think will help remove a bunch of custom bindings code. Also, added a
  12472. few tests of tricky argument cases.
  12473. * bindings/js/JSHTMLFormElementCustom.cpp:
  12474. * bindings/scripts/CodeGeneratorJS.pm:
  12475. * bindings/scripts/CodeGeneratorV8.pm:
  12476. * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
  12477. (webkit_dom_test_obj_with_dynamic_frame):
  12478. (webkit_dom_test_obj_with_dynamic_frame_and_arg):
  12479. (webkit_dom_test_obj_with_dynamic_frame_and_optional_arg):
  12480. (webkit_dom_test_obj_with_dynamic_frame_and_user_gesture):
  12481. (webkit_dom_test_obj_with_dynamic_frame_and_user_gesture_asad):
  12482. * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
  12483. * bindings/scripts/test/JS/JSTestObj.cpp:
  12484. (WebCore::):
  12485. (WebCore::jsTestObjPrototypeFunctionWithDynamicFrame):
  12486. (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndArg):
  12487. (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndOptionalArg):
  12488. (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture):
  12489. (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD):
  12490. * bindings/scripts/test/JS/JSTestObj.h:
  12491. * bindings/scripts/test/ObjC/DOMTestObj.h:
  12492. * bindings/scripts/test/ObjC/DOMTestObj.mm:
  12493. (-[DOMTestObj withDynamicFrame]):
  12494. (-[DOMTestObj withDynamicFrameAndArg:]):
  12495. (-[DOMTestObj withDynamicFrameAndOptionalArg:optionalArg:]):
  12496. (-[DOMTestObj withDynamicFrameAndUserGesture:]):
  12497. (-[DOMTestObj withDynamicFrameAndUserGestureASAD:optionalArg:]):
  12498. * bindings/scripts/test/TestObj.idl:
  12499. * bindings/scripts/test/V8/V8TestObj.cpp:
  12500. (WebCore::TestObjInternal::withDynamicFrameCallback):
  12501. (WebCore::TestObjInternal::withDynamicFrameAndArgCallback):
  12502. (WebCore::TestObjInternal::withDynamicFrameAndOptionalArgCallback):
  12503. (WebCore::TestObjInternal::withDynamicFrameAndUserGestureCallback):
  12504. (WebCore::TestObjInternal::withDynamicFrameAndUserGestureASADCallback):
  12505. (WebCore::):
  12506. * bindings/v8/custom/V8HTMLFormElementCustom.cpp:
  12507. * html/HTMLFormElement.idl:
  12508. 2010-04-26 Adam Barth <abarth@webkit.org>
  12509. Unreviewed. Update comment to better reflect reality.
  12510. * bindings/scripts/test/TestObj.idl:
  12511. 2010-04-26 Adam Barth <abarth@webkit.org>
  12512. Reviewed by Eric Seidel.
  12513. Add ObjC and GObject to run-bindings-test
  12514. https://bugs.webkit.org/show_bug.cgi?id=38168
  12515. Added expected results.
  12516. * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: Added.
  12517. (WebKit::kit):
  12518. (webkit_dom_test_obj_void_method):
  12519. (webkit_dom_test_obj_void_method_with_args):
  12520. (webkit_dom_test_obj_int_method):
  12521. (webkit_dom_test_obj_int_method_with_args):
  12522. (webkit_dom_test_obj_obj_method):
  12523. (webkit_dom_test_obj_obj_method_with_args):
  12524. (webkit_dom_test_obj_method_with_exception):
  12525. (webkit_dom_test_obj_method_with_optional_arg):
  12526. (webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg):
  12527. (webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args):
  12528. (webkit_dom_test_obj_get_read_only_int_attr):
  12529. (webkit_dom_test_obj_get_read_only_string_attr):
  12530. (webkit_dom_test_obj_get_read_only_test_obj_attr):
  12531. (webkit_dom_test_obj_get_int_attr):
  12532. (webkit_dom_test_obj_set_int_attr):
  12533. (webkit_dom_test_obj_get_string_attr):
  12534. (webkit_dom_test_obj_set_string_attr):
  12535. (webkit_dom_test_obj_get_test_obj_attr):
  12536. (webkit_dom_test_obj_set_test_obj_attr):
  12537. (webkit_dom_test_obj_get_attr_with_exception):
  12538. (webkit_dom_test_obj_set_attr_with_exception):
  12539. (webkit_dom_test_obj_get_attr_with_setter_exception):
  12540. (webkit_dom_test_obj_set_attr_with_setter_exception):
  12541. (webkit_dom_test_obj_get_attr_with_getter_exception):
  12542. (webkit_dom_test_obj_set_attr_with_getter_exception):
  12543. (WebKit::wrapTestObj):
  12544. (WebKit::core):
  12545. (webkit_dom_test_obj_finalize):
  12546. (webkit_dom_test_obj_set_property):
  12547. (webkit_dom_test_obj_get_property):
  12548. (webkit_dom_test_obj_class_init):
  12549. (webkit_dom_test_obj_init):
  12550. * bindings/scripts/test/GObject/WebKitDOMTestObj.h: Added.
  12551. * bindings/scripts/test/GObject/WebKitDOMTestObjPrivate.h: Added.
  12552. * bindings/scripts/test/ObjC/DOMTestObj.h: Added.
  12553. * bindings/scripts/test/ObjC/DOMTestObj.mm: Added.
  12554. (-[DOMTestObj dealloc]):
  12555. (-[DOMTestObj finalize]):
  12556. (-[DOMTestObj readOnlyIntAttr]):
  12557. (-[DOMTestObj readOnlyStringAttr]):
  12558. (-[DOMTestObj readOnlyTestObjAttr]):
  12559. (-[DOMTestObj intAttr]):
  12560. (-[DOMTestObj setIntAttr:]):
  12561. (-[DOMTestObj stringAttr]):
  12562. (-[DOMTestObj setStringAttr:]):
  12563. (-[DOMTestObj testObjAttr]):
  12564. (-[DOMTestObj setTestObjAttr:]):
  12565. (-[DOMTestObj attrWithException]):
  12566. (-[DOMTestObj setAttrWithException:]):
  12567. (-[DOMTestObj attrWithSetterException]):
  12568. (-[DOMTestObj setAttrWithSetterException:]):
  12569. (-[DOMTestObj attrWithGetterException]):
  12570. (-[DOMTestObj setAttrWithGetterException:]):
  12571. (-[DOMTestObj customAttr]):
  12572. (-[DOMTestObj setCustomAttr:]):
  12573. (-[DOMTestObj voidMethod]):
  12574. (-[DOMTestObj voidMethodWithArgs:strArg:objArg:]):
  12575. (-[DOMTestObj intMethod]):
  12576. (-[DOMTestObj intMethodWithArgs:strArg:objArg:]):
  12577. (-[DOMTestObj objMethod]):
  12578. (-[DOMTestObj objMethodWithArgs:strArg:objArg:]):
  12579. (-[DOMTestObj methodWithException]):
  12580. (-[DOMTestObj customMethod]):
  12581. (-[DOMTestObj customMethodWithArgs:strArg:objArg:]):
  12582. (-[DOMTestObj methodWithOptionalArg:]):
  12583. (-[DOMTestObj methodWithNonOptionalArgAndOptionalArg:opt:]):
  12584. (-[DOMTestObj methodWithNonOptionalArgAndTwoOptionalArgs:opt1:opt2:]):
  12585. (core):
  12586. (kit):
  12587. * bindings/scripts/test/ObjC/DOMTestObjInternal.h: Added.
  12588. 2010-04-26 Adam Barth <abarth@webkit.org>
  12589. Reviewed by Eric Seidel.
  12590. Add testing infrastructure for JSC bindings generator
  12591. https://bugs.webkit.org/show_bug.cgi?id=38167
  12592. This required moving the test files around a bit more.
  12593. * bindings/scripts/test/JS/JSTestObj.cpp: Added.
  12594. (WebCore::):
  12595. (WebCore::JSTestObjConstructor::JSTestObjConstructor):
  12596. (WebCore::JSTestObjConstructor::classInfo):
  12597. (WebCore::JSTestObjConstructor::createStructure):
  12598. (WebCore::JSTestObjConstructor::getOwnPropertySlot):
  12599. (WebCore::JSTestObjConstructor::getOwnPropertyDescriptor):
  12600. (WebCore::JSTestObjPrototype::self):
  12601. (WebCore::JSTestObjPrototype::getOwnPropertySlot):
  12602. (WebCore::JSTestObjPrototype::getOwnPropertyDescriptor):
  12603. (WebCore::JSTestObj::JSTestObj):
  12604. (WebCore::JSTestObj::~JSTestObj):
  12605. (WebCore::JSTestObj::createPrototype):
  12606. (WebCore::JSTestObj::getOwnPropertySlot):
  12607. (WebCore::JSTestObj::getOwnPropertyDescriptor):
  12608. (WebCore::jsTestObjReadOnlyIntAttr):
  12609. (WebCore::jsTestObjReadOnlyStringAttr):
  12610. (WebCore::jsTestObjReadOnlyTestObjAttr):
  12611. (WebCore::jsTestObjIntAttr):
  12612. (WebCore::jsTestObjStringAttr):
  12613. (WebCore::jsTestObjTestObjAttr):
  12614. (WebCore::jsTestObjAttrWithException):
  12615. (WebCore::jsTestObjAttrWithSetterException):
  12616. (WebCore::jsTestObjAttrWithGetterException):
  12617. (WebCore::jsTestObjCustomAttr):
  12618. (WebCore::jsTestObjConstructor):
  12619. (WebCore::JSTestObj::put):
  12620. (WebCore::setJSTestObjIntAttr):
  12621. (WebCore::setJSTestObjStringAttr):
  12622. (WebCore::setJSTestObjTestObjAttr):
  12623. (WebCore::setJSTestObjAttrWithException):
  12624. (WebCore::setJSTestObjAttrWithSetterException):
  12625. (WebCore::setJSTestObjAttrWithGetterException):
  12626. (WebCore::setJSTestObjCustomAttr):
  12627. (WebCore::JSTestObj::getConstructor):
  12628. (WebCore::jsTestObjPrototypeFunctionVoidMethod):
  12629. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
  12630. (WebCore::jsTestObjPrototypeFunctionIntMethod):
  12631. (WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs):
  12632. (WebCore::jsTestObjPrototypeFunctionObjMethod):
  12633. (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
  12634. (WebCore::jsTestObjPrototypeFunctionMethodWithException):
  12635. (WebCore::jsTestObjPrototypeFunctionCustomMethod):
  12636. (WebCore::jsTestObjPrototypeFunctionCustomMethodWithArgs):
  12637. (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
  12638. (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
  12639. (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
  12640. (WebCore::toJS):
  12641. (WebCore::toTestObj):
  12642. * bindings/scripts/test/JS/JSTestObj.h: Added.
  12643. (WebCore::JSTestObj::classInfo):
  12644. (WebCore::JSTestObj::createStructure):
  12645. (WebCore::JSTestObj::impl):
  12646. (WebCore::JSTestObjPrototype::classInfo):
  12647. (WebCore::JSTestObjPrototype::createStructure):
  12648. (WebCore::JSTestObjPrototype::JSTestObjPrototype):
  12649. * bindings/scripts/test/TestObj.idl:
  12650. * bindings/scripts/test/V8/V8TestObj.cpp: Renamed from WebCore/bindings/scripts/test/V8TestObj.cpp.
  12651. (WebCore::):
  12652. (WebCore::TestObjInternal::V8_USE):
  12653. (WebCore::TestObjInternal::readOnlyIntAttrAttrGetter):
  12654. (WebCore::TestObjInternal::readOnlyStringAttrAttrGetter):
  12655. (WebCore::TestObjInternal::readOnlyTestObjAttrAttrGetter):
  12656. (WebCore::TestObjInternal::intAttrAttrGetter):
  12657. (WebCore::TestObjInternal::intAttrAttrSetter):
  12658. (WebCore::TestObjInternal::stringAttrAttrGetter):
  12659. (WebCore::TestObjInternal::stringAttrAttrSetter):
  12660. (WebCore::TestObjInternal::testObjAttrAttrGetter):
  12661. (WebCore::TestObjInternal::testObjAttrAttrSetter):
  12662. (WebCore::TestObjInternal::attrWithExceptionAttrGetter):
  12663. (WebCore::TestObjInternal::attrWithExceptionAttrSetter):
  12664. (WebCore::TestObjInternal::attrWithSetterExceptionAttrGetter):
  12665. (WebCore::TestObjInternal::attrWithSetterExceptionAttrSetter):
  12666. (WebCore::TestObjInternal::attrWithGetterExceptionAttrGetter):
  12667. (WebCore::TestObjInternal::attrWithGetterExceptionAttrSetter):
  12668. (WebCore::TestObjInternal::voidMethodCallback):
  12669. (WebCore::TestObjInternal::voidMethodWithArgsCallback):
  12670. (WebCore::TestObjInternal::intMethodCallback):
  12671. (WebCore::TestObjInternal::intMethodWithArgsCallback):
  12672. (WebCore::TestObjInternal::objMethodCallback):
  12673. (WebCore::TestObjInternal::objMethodWithArgsCallback):
  12674. (WebCore::TestObjInternal::methodWithExceptionCallback):
  12675. (WebCore::TestObjInternal::methodWithOptionalArgCallback):
  12676. (WebCore::TestObjInternal::methodWithNonOptionalArgAndOptionalArgCallback):
  12677. (WebCore::TestObjInternal::methodWithNonOptionalArgAndTwoOptionalArgsCallback):
  12678. (WebCore::TestObjInternal::overloadedMethod1Callback):
  12679. (WebCore::TestObjInternal::overloadedMethod2Callback):
  12680. (WebCore::TestObjInternal::overloadedMethod3Callback):
  12681. (WebCore::TestObjInternal::overloadedMethod4Callback):
  12682. (WebCore::TestObjInternal::overloadedMethodCallback):
  12683. (WebCore::ConfigureV8TestObjTemplate):
  12684. (WebCore::V8TestObj::GetRawTemplate):
  12685. (WebCore::V8TestObj::GetTemplate):
  12686. (WebCore::V8TestObj::toNative):
  12687. (WebCore::V8TestObj::HasInstance):
  12688. (WebCore::V8TestObj::wrap):
  12689. (WebCore::toV8):
  12690. (WebCore::V8TestObj::derefObject):
  12691. * bindings/scripts/test/V8/V8TestObj.h: Renamed from WebCore/bindings/scripts/test/V8TestObj.h.
  12692. 2010-04-26 Oliver Hunt <oliver@apple.com>
  12693. Reviewed by Gavin Barraclough.
  12694. Need to support more efficient dispatch of lightweight builtins
  12695. https://bugs.webkit.org/show_bug.cgi?id=38155
  12696. Update bindings generation to include new thunk generator field
  12697. in the property map hash tables.
  12698. * bindings/scripts/CodeGeneratorJS.pm:
  12699. 2010-04-26 Adam Barth <abarth@webkit.org>
  12700. Reviewed by Eric Seidel.
  12701. Move bindings test directory into the scripts directory
  12702. https://bugs.webkit.org/show_bug.cgi?id=38161
  12703. This test is really of the bindings scripts not of the bindings
  12704. themselves. By moving the files into the scripts directory, we'll be
  12705. able to test JSC as well.
  12706. * bindings/scripts/test/TestObj.idl: Renamed from WebCore/bindings/v8/test/TestObj.idl.
  12707. * bindings/scripts/test/V8TestObj.cpp: Renamed from WebCore/bindings/v8/test/V8TestObj.cpp.
  12708. (WebCore::):
  12709. (WebCore::TestObjInternal::V8_USE):
  12710. (WebCore::TestObjInternal::readOnlyIntAttrAttrGetter):
  12711. (WebCore::TestObjInternal::readOnlyStringAttrAttrGetter):
  12712. (WebCore::TestObjInternal::readOnlyTestObjAttrAttrGetter):
  12713. (WebCore::TestObjInternal::intAttrAttrGetter):
  12714. (WebCore::TestObjInternal::intAttrAttrSetter):
  12715. (WebCore::TestObjInternal::stringAttrAttrGetter):
  12716. (WebCore::TestObjInternal::stringAttrAttrSetter):
  12717. (WebCore::TestObjInternal::testObjAttrAttrGetter):
  12718. (WebCore::TestObjInternal::testObjAttrAttrSetter):
  12719. (WebCore::TestObjInternal::attrWithExceptionAttrGetter):
  12720. (WebCore::TestObjInternal::attrWithExceptionAttrSetter):
  12721. (WebCore::TestObjInternal::attrWithSetterExceptionAttrGetter):
  12722. (WebCore::TestObjInternal::attrWithSetterExceptionAttrSetter):
  12723. (WebCore::TestObjInternal::attrWithGetterExceptionAttrGetter):
  12724. (WebCore::TestObjInternal::attrWithGetterExceptionAttrSetter):
  12725. (WebCore::TestObjInternal::voidMethodCallback):
  12726. (WebCore::TestObjInternal::voidMethodWithArgsCallback):
  12727. (WebCore::TestObjInternal::intMethodCallback):
  12728. (WebCore::TestObjInternal::intMethodWithArgsCallback):
  12729. (WebCore::TestObjInternal::objMethodCallback):
  12730. (WebCore::TestObjInternal::objMethodWithArgsCallback):
  12731. (WebCore::TestObjInternal::methodWithExceptionCallback):
  12732. (WebCore::TestObjInternal::methodWithOptionalArgCallback):
  12733. (WebCore::TestObjInternal::methodWithNonOptionalArgAndOptionalArgCallback):
  12734. (WebCore::TestObjInternal::methodWithNonOptionalArgAndTwoOptionalArgsCallback):
  12735. (WebCore::TestObjInternal::overloadedMethod1Callback):
  12736. (WebCore::TestObjInternal::overloadedMethod2Callback):
  12737. (WebCore::TestObjInternal::overloadedMethod3Callback):
  12738. (WebCore::TestObjInternal::overloadedMethod4Callback):
  12739. (WebCore::TestObjInternal::overloadedMethodCallback):
  12740. (WebCore::ConfigureV8TestObjTemplate):
  12741. (WebCore::V8TestObj::GetRawTemplate):
  12742. (WebCore::V8TestObj::GetTemplate):
  12743. (WebCore::V8TestObj::toNative):
  12744. (WebCore::V8TestObj::HasInstance):
  12745. (WebCore::V8TestObj::wrap):
  12746. (WebCore::toV8):
  12747. (WebCore::V8TestObj::derefObject):
  12748. * bindings/scripts/test/V8TestObj.h: Renamed from WebCore/bindings/v8/test/V8TestObj.h.
  12749. 2010-04-26 Daniel Cheng <dcheng@chromium.org>
  12750. Reviewed by Jian Li.
  12751. [chromium] Fix ChromiumDataObject::setURL to not populate its internal URL list with empty URLs.
  12752. https://bugs.webkit.org/show_bug.cgi?id=38159
  12753. No new tests.
  12754. * platform/chromium/ChromiumDataObject.h:
  12755. (WebCore::ChromiumDataObject::setURL):
  12756. 2010-04-26 Daniel Cheng <dcheng@chromium.org>
  12757. Reviewed by Jian Li.
  12758. [Chromium] Don't make file paths available in text/uri-list when dragging files.
  12759. https://bugs.webkit.org/show_bug.cgi?id=25882
  12760. Test will be checked in with WebCore/platform/mac fix.
  12761. * platform/chromium/ClipboardChromium.cpp:
  12762. (WebCore::ClipboardChromium::getData):
  12763. (WebCore::ClipboardChromium::types):
  12764. 2010-04-26 Maciej Stachowiak <mjs@apple.com>
  12765. Reviewed by Darin Adler.
  12766. REGRESSION (r57292): 1.5% page load speed regression from visited link information leak fix
  12767. https://bugs.webkit.org/show_bug.cgi?id=38131
  12768. I did a number of separate optimizations which speed up style
  12769. resolution enough to more than make up for the regression. This
  12770. measures as a total PLT speedup of somewhere between 1.5% and
  12771. 3.7%.
  12772. Optimizations done:
  12773. - Cache determineLinkState results, to avoid the need to repeatedly compute
  12774. the visited link hash for the same element. This directly addresses much
  12775. of the slowdown, since all elements get their style computed twice now.
  12776. - Added a fast way to get the length of a CSSMutableStyleDeclaration, and use
  12777. in CSSStyleSelector::matchRulesForList, since it was hot there.
  12778. - Hoist some loop invariant code that's not detected by the compiler out of the
  12779. main loop in matchRulesForList
  12780. - inline CSSStyleSelector::initElement and locateSharedStyle,
  12781. since there is only one call site in each case
  12782. - Inline the common non-line fast case of determineLinkState, and split the rest into
  12783. out-of-line determineLinkStateSlowCase.
  12784. - Added inline versions of the functions called by
  12785. visitedLinkHash (the version called by determineLinkState).
  12786. * css/CSSMutableStyleDeclaration.cpp:
  12787. (WebCore::CSSMutableStyleDeclaration::length): Implemented in terms of new
  12788. inline nonvirtual mutableLength().
  12789. * css/CSSMutableStyleDeclaration.h:
  12790. (WebCore::CSSMutableStyleDeclaration::mutableLength): Added new nonvirtual
  12791. inline way to get the length if you know you have a mutable style decl.
  12792. * css/CSSStyleSelector.cpp:
  12793. (WebCore::CSSStyleSelector::init): Clear cached link state.
  12794. (WebCore::CSSStyleSelector::matchRulesForList): hoist some code out of the main
  12795. loop and get style decl length more efficiently.
  12796. (WebCore::CSSStyleSelector::initElement): inline (only one call site)
  12797. (WebCore::CSSStyleSelector::SelectorChecker::determineLinkState): Inline fast
  12798. case, call slow case.
  12799. (WebCore::CSSStyleSelector::SelectorChecker::determineLinkStateSlowCase): Split
  12800. most of the above function into this slow case helper.
  12801. (WebCore::CSSStyleSelector::canShareStyleWithElement): Use the cache-enabled
  12802. way to get the current link state.
  12803. (WebCore::CSSStyleSelector::locateSharedStyle): inline
  12804. (WebCore::CSSStyleSelector::styleForElement): Use the cache-enabled way
  12805. to get the current link state.
  12806. * css/CSSStyleSelector.h:
  12807. (WebCore::CSSStyleSelector::currentElementLinkState): inline way to
  12808. get link state for the current element; manages the cache
  12809. * platform/LinkHash.cpp:
  12810. (WebCore::visitedLinkHashInline): inline version of below function
  12811. (WebCore::visitedLinkHash): call the inline version
  12812. (WebCore::visitedURLInline): inline version of below function
  12813. (WebCore::visitedURL): call the inline version
  12814. (WebCore::visitedURL): call inline versions of above two functions
  12815. 2010-04-26 Sam Weinig <sam@webkit.org>
  12816. Reviewed by Alexey Proskuryakov.
  12817. Remove last use of WEB_THREAD.
  12818. * platform/mac/WebCoreObjCExtras.mm:
  12819. (WebCoreObjCScheduleDeallocateOnMainThread): This can always use
  12820. isMainThread().
  12821. 2010-04-26 Dumitru Daniliuc <dumi@chromium.org>
  12822. Reviewed by Dimitri Glazkov.
  12823. Turn on AUTO_VACUUM = INCREMENTAL for all HTML5 databases, and
  12824. vacuum all databases when the number of free pages is at least 10%
  12825. of the number of total pages. Also, adding a guard against a bug
  12826. that was fixed in SQLite only starting with version 3.6.16.
  12827. https://bugs.webkit.org/show_bug.cgi?id=36251
  12828. * platform/sql/SQLiteDatabase.cpp:
  12829. (WebCore::SQLiteDatabase::totalSize):
  12830. (WebCore::SQLiteDatabase::runIncrementalVacuumCommand):
  12831. (WebCore::SQLiteDatabase::turnOnIncrementalAutoVacuum):
  12832. * platform/sql/SQLiteDatabase.h:
  12833. * platform/sql/SQLiteStatement.cpp:
  12834. (WebCore::SQLiteStatement::prepare):
  12835. * storage/Database.cpp:
  12836. (WebCore::Database::performOpenAndVerify):
  12837. (WebCore::Database::incrementalVacuumIfNeeded):
  12838. * storage/Database.h:
  12839. * storage/SQLTransaction.cpp:
  12840. (WebCore::SQLTransaction::postflightAndCommit):
  12841. 2010-04-26 Geoffrey Garen <ggaren@apple.com>
  12842. Reviewed by Sam Weinig.
  12843. <rdar://problem/7766413>
  12844. Fixed a crash seen when using the JavaScriptCore API with WebKit.
  12845. No layout test because DumpRenderTree doesn't use the JavaScriptCore API
  12846. in this way.
  12847. * bindings/js/JSEventListener.cpp:
  12848. (WebCore::JSEventListener::JSEventListener): Don't assign 0 to a WeakGCPtr.
  12849. JavaScriptCore no longer allows this.
  12850. * bindings/js/ScriptWrappable.h:
  12851. (WebCore::ScriptWrappable::setWrapper): No need to initialize a WeakGCPtr
  12852. to 0, or ASSERT a non-0 value before assigning to a WeakGCPtr -- both are
  12853. default behaviors.
  12854. 2010-04-25 Sam Weinig <sam@webkit.org>
  12855. Reviewed by Maciej Stachowiak.
  12856. Fix for https://bugs.webkit.org/show_bug.cgi?id=38097
  12857. Disentangle initializing the main thread from initializing threading
  12858. * WebCore.xcodeproj/project.pbxproj: Sort files.
  12859. * accessibility/mac/AccessibilityObjectWrapper.mm: Remove unnessary
  12860. +initialize method. The AccessibilityObjectWrapper has no data members
  12861. that need to be derefed, so it does not need to be finalized on the main
  12862. thread.
  12863. * bindings/js/ScriptController.cpp:
  12864. (WebCore::ScriptController::initializeThreading): Add call to initializeMainThread.
  12865. * bindings/objc/WebScriptObject.mm:
  12866. (+[WebScriptObject initialize]): Add call to initializeMainThreadToProcessMainThread.
  12867. * bindings/v8/ScriptController.cpp:
  12868. (WebCore::ScriptController::initializeThreading): Add call to initializeMainThread.
  12869. * platform/mac/SharedBufferMac.mm:
  12870. (+[WebCoreSharedBufferData initialize]): Add call to initializeMainThreadToProcessMainThread.
  12871. 2010-04-26 Yongjun Zhang <yongjun_zhang@apple.com>
  12872. Reviewed by Alexey Proskuryakov.
  12873. https://bugs.webkit.org/show_bug.cgi?id=38128
  12874. Don't add empty credential to CredentialStorage.
  12875. An empty credential is currently regarded as a invalid login because it means a missing value in
  12876. protectionSpaceToCredentialMap. This change makes it consistent with current WebCore's behavior
  12877. by ignoring empty credentials.
  12878. No new tests added since this only affects credential entered by user from credential dialog,
  12879. which is not testable in DRT.
  12880. * platform/network/mac/ResourceHandleMac.mm:
  12881. (WebCore::ResourceHandle::receivedCredential):
  12882. 2010-04-26 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  12883. Reviewed by Simon Hausmann.
  12884. [Qt] Clean-up WebCore.pro after now that JavaScriptCore is built separately
  12885. https://bugs.webkit.org/show_bug.cgi?id=38123
  12886. HAVE_STDINT_H, and HAVE_PTHREAD_NP_H no longer needs to be defined
  12887. for QtWebKit as JavaScriptCore is built separately. These defines are only
  12888. used by JavaScriptCore and for JavaScriptCore these are already
  12889. properly defined in JavaScriptCore/config.h.
  12890. No new tests, no new functionality.
  12891. * WebCore.pro:
  12892. 2010-04-26 Roman Gershman <romange@google.com>
  12893. Reviewed by Adam Barth.
  12894. [Chromium] Font size in suggestions popup menu should be correlated with the font size of its text field.
  12895. The following manual test checks for desired behavior.
  12896. https://bugs.webkit.org/show_bug.cgi?id=37977
  12897. * manual-tests/chromium/suggestions-popup-font-change.html: Added.
  12898. 2010-04-26 Luiz Agostini <luiz.agostini@openbossa.org>
  12899. Reviewed by Kenneth Rohde Christiansen.
  12900. View modes names in CSSValueKeywords.in
  12901. https://bugs.webkit.org/show_bug.cgi?id=38125
  12902. View mode names has changed in previous patch but CSSValueKeywords.in file was
  12903. not updated.
  12904. * css/CSSValueKeywords.in:
  12905. 2010-04-26 Simon Hausmann <simon.hausmann@nokia.com>
  12906. Reviewed by Kenneth Rohde Christiansen.
  12907. [Qt] Fix compilation with RVCT 4
  12908. https://bugs.webkit.org/show_bug.cgi?id=37727
  12909. Swap extern and declspec to fix visibility of symbol imported from QtGui.
  12910. * page/qt/EventHandlerQt.cpp:
  12911. 2010-04-26 Ruben Van Boxem <vanboxem.ruben@gmail.com>
  12912. Reviewed by Adam Roben.
  12913. Fixes for Win64 compilation under gcc (mingw-w64)
  12914. * WebCore/bridge/npapi.h: for win64 compatibility, mirroring mozilla-central, see Mozilla bug 560298
  12915. * WebCore/platform/Arena.h: uword is used to cast from pointers here. unsigned long is 32-bit on Windows (but 64-bit on mac), and too small to hold a pointer. uintptr_t is 32-bit on 32-bit systems (mac, linux and windows) and 64-bit on all 64-bit systems
  12916. * WebCore/platform/graphics/transforms/TransformationMatrix.h: let mingw-w64/w32 use MSVC codepath
  12917. * WebCore/platform/text/TextStream.cpp: let mingw-w64 use MSVC codepath
  12918. * WebCore/platform/text/TextStream.h: let mingw-w64 use MSVC codepath
  12919. * WebCore/plugins/PluginView.cpp: fix pointer casts on WIN64 and let mingw-w64 use MSVC codepath
  12920. * WebCore/plugins/win/PluginViewWin.cpp: fix pointer casts on WIN64
  12921. 2010-04-26 Markus Goetz <Markus.Goetz@nokia.com>
  12922. Reviewed by Simon Hausmann.
  12923. [Qt] HTTP pipelining efficiency increase
  12924. https://bugs.webkit.org/show_bug.cgi?id=38062
  12925. Increase number of network requests that are fed into
  12926. QNetworkAccessManager.
  12927. * platform/network/qt/ResourceRequestQt.cpp:
  12928. (WebCore::initializeMaximumHTTPConnectionCountPerHost):
  12929. 2010-04-26 Ilya Tikhonovsky <loislo@chromium.org>
  12930. Reviewed by Yury Semikhatsky.
  12931. Web Inspector: undefined shows up on inspector.
  12932. https://bugs.webkit.org/show_bug.cgi?id=38120
  12933. * inspector/front-end/ScriptsPanel.js:
  12934. (WebInspector.ScriptsPanel.prototype.hide):
  12935. * inspector/front-end/SourceFrame.js:
  12936. (WebInspector.SourceFrame.prototype.set visible):
  12937. 2010-04-26 Bruno Schmidt <bruno.schmidt@gmail.com>
  12938. Reviewed by Kenneth Rohde Christiansen.
  12939. [Qt] Exposing an QVariantMap containing QObjectStar to Javascript
  12940. causes Segmentation Fault
  12941. https://bugs.webkit.org/show_bug.cgi?id=34729
  12942. If an QVariantMap containing QObjectStar is added to the to QtWebkit
  12943. Javascript, it's use causes Segmentation Fault.
  12944. It happens because, in the case QMetaType::QVariantMap, the "root"
  12945. object that is inside of a PassRefPtr is passed recursively inside a
  12946. loop to recover the content of the map, but the PassRefPtr semantics
  12947. prohibit its use inside a loop, so the "root" object mus be passed
  12948. using the method "PassRefPtr::get" in order to keep the current
  12949. reference.
  12950. * bridge/qt/qt_runtime.cpp:
  12951. (JSC::Bindings::convertValueToQVariant):
  12952. (JSC::Bindings::convertQVariantToValue): change to root.get()
  12953. 2010-04-26 Pavel Feldman <pfeldman@chromium.org>
  12954. Reviewed by Yury Semikhatsky.
  12955. Web Inspector: Render clip in summary bar using "arc", not "quadraticCurveTo".
  12956. https://bugs.webkit.org/show_bug.cgi?id=38107
  12957. * inspector/front-end/SummaryBar.js:
  12958. (WebInspector.SummaryBar.prototype._drawSummaryGraph.drawPill):
  12959. (WebInspector.SummaryBar.prototype._drawSummaryGraph):
  12960. 2010-04-26 Andreas Kling <andreas.kling@nokia.com>
  12961. Reviewed by Tor Arne Vestbø.
  12962. [Qt] Fix compilation against Qt 4.7
  12963. Some QtMultimedia things have been moved into QtMediaServices
  12964. https://bugs.webkit.org/show_bug.cgi?id=38111
  12965. * WebCore.pro:
  12966. * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
  12967. (WebCore::MediaPlayerPrivate::supportsType):
  12968. (WebCore::MediaPlayerPrivate::totalBytes):
  12969. 2010-04-26 Zoltan Herczeg <zherczeg@webkit.org>
  12970. Reviewed by Dirk Schulze.
  12971. Call setStrokeStyle in applyStrokeStyleToContext
  12972. https://bugs.webkit.org/show_bug.cgi?id=37849
  12973. Not all platforms set the stroke style to solid if they
  12974. get an empty line dash array. Some just ignore the operation.
  12975. * rendering/SVGRenderSupport.cpp:
  12976. (WebCore::applyStrokeStyleToContext):
  12977. 2010-04-23 Ilya Tikhonovsky <loislo@chromium.org>
  12978. Reviewed by Pavel Feldman.
  12979. WebInspector: Aggregated stats of time spent in children records should be visible
  12980. in the popup panel of parent record. Crash in pushGCEventRecord also was fixed.
  12981. https://bugs.webkit.org/show_bug.cgi?id=37820
  12982. * English.lproj/localizedStrings.js:
  12983. * inspector/InspectorTimelineAgent.cpp:
  12984. (WebCore::InspectorTimelineAgent::pushGCEventRecords):
  12985. * inspector/front-end/TimelinePanel.js:
  12986. (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
  12987. (WebInspector.TimelinePanel.prototype._createRootRecord):
  12988. (WebInspector.TimelinePanel.prototype._showPopover):
  12989. (WebInspector.TimelineCalculator.prototype.computeBarGraphPercentages):
  12990. (WebInspector.TimelineCalculator.prototype.computeBarGraphWindowPosition):
  12991. (WebInspector.TimelineRecordGraphRow):
  12992. (WebInspector.TimelineRecordGraphRow.prototype.update):
  12993. (WebInspector.TimelinePanel.FormattedRecord):
  12994. (WebInspector.TimelinePanel.FormattedRecord.prototype._generateAggregatedInfo):
  12995. (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
  12996. (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
  12997. (WebInspector.TimelinePanel.FormattedRecord.prototype._calculateAggregatedStats):
  12998. * inspector/front-end/inspector.css:
  12999. (.timeline-graph-bar.with-children):
  13000. (.timeline-graph-bar.cpu):
  13001. (.timeline-aggregated-category):
  13002. (.timeline-loading):
  13003. (.timeline-scripting):
  13004. (.timeline-rendering):
  13005. (.popover .timeline-aggregated-category.timeline-loading):
  13006. (.timeline-details-title):
  13007. 2010-04-25 Kent Tamura <tkent@chromium.org>
  13008. Reviewed by Darin Adler.
  13009. WebKit crashes with deeply nested divs
  13010. https://bugs.webkit.org/show_bug.cgi?id=18282
  13011. The HTML parser caps a tree depth by MAX_DOM_TREE_DEPTH defined in
  13012. TreeDepthLimit.h. This is performance-efficient, but does not work for
  13013. DOM operations such as Node.appendChild().
  13014. Test: fast/parser/element-nesting-cap.html
  13015. * dom/Node.h:
  13016. * dom/XMLTokenizer.cpp:
  13017. (WebCore::XMLTokenizer::pushCurrentNode):
  13018. * html/HTMLParser.cpp:
  13019. * GNUmakefile.am:
  13020. * WebCore.gypi:
  13021. * WebCore.pro:
  13022. * WebCore.vcproj/WebCore.vcproj:
  13023. * WebCore.xcodeproj/project.pbxproj:
  13024. * dom/TreeDepthLimit.h:
  13025. Added. Define MAX_DOM_TREE_DEPTH. The default value is 5000.
  13026. * dom/XMLTokenizer.cpp: Use maxDOMTreeDepth.
  13027. (WebCore::XMLTokenizer::pushCurrentNode):
  13028. * html/HTMLParser.cpp:
  13029. Introduce m_treeDepth, which counts the depth of the tree.
  13030. Unlike m_blocksInStack, it contains the number of non-block nodes.
  13031. (WebCore::HTMLParser::HTMLParser):
  13032. (WebCore::HTMLParser::reset):
  13033. (WebCore::HTMLParser::limitDepth):
  13034. Renamed from limitBlockDepth. Add check for m_nodeDepth.
  13035. (WebCore::HTMLParser::insertNodeAfterLimitDepth):
  13036. Renamed from insertNodeAfterLimitBlockDepth.
  13037. (WebCore::HTMLParser::parseToken):
  13038. (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
  13039. (WebCore::HTMLParser::pushBlock):
  13040. (WebCore::HTMLParser::popOneBlockCommon):
  13041. (WebCore::HTMLParser::freeBlock):
  13042. * html/HTMLParser.h:
  13043. 2010-04-25 Andrey Kosyakov <caseq@chromium.org>
  13044. Reviewed by Adam Barth.
  13045. Get context properly when event handler was created on
  13046. the main world.
  13047. https://bugs.webkit.org/show_bug.cgi?id=37947
  13048. Test: http/tests/security/isolatedWorld/dispatchEvent.html
  13049. * bindings/v8/WorldContextHandle.cpp:
  13050. (WebCore::WorldContextHandle::adjustedContext):
  13051. 2010-04-25 yael aharon <yael.aharon@nokia.com>
  13052. Reviewed by Adele Peterson.
  13053. Allow styling of HTMLProgressElement.
  13054. https://bugs.webkit.org/show_bug.cgi?id=37901
  13055. Added a new pseudo element to represent the value portion of the progress element.
  13056. Web developers can style this pseudo element separate from the rest of the progress element.
  13057. Test: fast/dom/HTMLProgressElement/progress-bar-value-pseudo-element.html
  13058. * css/CSSPrimitiveValueMappings.h:
  13059. (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
  13060. * css/CSSSelector.cpp:
  13061. (WebCore::CSSSelector::pseudoId):
  13062. (WebCore::nameToPseudoTypeMap):
  13063. (WebCore::CSSSelector::extractPseudoType):
  13064. * css/CSSSelector.h:
  13065. * css/CSSValueKeywords.in:
  13066. * platform/ThemeTypes.h:
  13067. * rendering/RenderProgress.cpp:
  13068. (WebCore::ProgressValueElement::isShadowNode):
  13069. (WebCore::ProgressValueElement::shadowParentNode):
  13070. (WebCore::ProgressValueElement::ProgressValueElement):
  13071. (WebCore::RenderProgress::RenderProgress):
  13072. (WebCore::RenderProgress::~RenderProgress):
  13073. (WebCore::RenderProgress::layout):
  13074. (WebCore::RenderProgress::styleDidChange):
  13075. (WebCore::RenderProgress::updateFromElement):
  13076. (WebCore::RenderProgress::updateValuePartState):
  13077. (WebCore::RenderProgress::createStyleForValuePart):
  13078. (WebCore::RenderProgress::updateAnimationState):
  13079. * rendering/RenderTheme.cpp:
  13080. (WebCore::RenderTheme::isControlStyled):
  13081. * rendering/RenderProgress.h:
  13082. * rendering/style/RenderStyleConstants.h:
  13083. 2010-04-24 Simon Fraser <simon.fraser@apple.com>
  13084. Reviewed by Dan Bernstein.
  13085. Don't propagate compositing out of iframes on Mac
  13086. https://bugs.webkit.org/show_bug.cgi?id=38072
  13087. Propagating compositing out of iframes caused too many regressions on Mac,
  13088. so only do it for other platforms that may need to hook compositing layers
  13089. together across iframe boundaries.
  13090. * rendering/RenderLayerCompositor.cpp:
  13091. (WebCore::RenderLayerCompositor::requiresCompositingForIFrame):
  13092. 2010-04-24 Anton Muhin <antonm@chromium.org>
  13093. Reviewed by Darin Adler.
  13094. Allow to construct HashTraits<WebCore::QualifiedName>::constructDeletedValue
  13095. Former implementation attempted to use AtomicString(HashTableDeletedValue)
  13096. however those values cannot be used that way: one cannot construct
  13097. QualifiedNameImpl out of such AtomicString as we'll try to lookup this string
  13098. in the table, for example.
  13099. https://bugs.webkit.org/show_bug.cgi?id=37722
  13100. * dom/QualifiedName.cpp:
  13101. (WebCore::QualifiedName::deref): check that hash table deleted values never derefed
  13102. * dom/QualifiedName.h:
  13103. (WebCore::QualifiedName::QualifiedName): add a constructor to create hash table deleted values
  13104. (WebCore::QualifiedName::isHashTableDeletedValue): add a check if given instance is hash table deleted value
  13105. (WTF::):
  13106. 2010-04-24 Julien Chaffraix <jchaffraix@webkit.org>
  13107. Reviewed by Alexey Proskuryakov.
  13108. protocolHostAndPortEquals host check makes a wrong assumption
  13109. https://bugs.webkit.org/show_bug.cgi?id=37777
  13110. The host check assumed that both host started at the same position. This is true
  13111. if both URL are the same but sometimes one has credential and the other does not.
  13112. In this case, the method would compare invalid positions.
  13113. Test: http/tests/appcache/credential-url.html
  13114. * platform/KURL.cpp:
  13115. (WebCore::protocolHostAndPortAreEqual):
  13116. * platform/KURLGoogle.cpp:
  13117. (WebCore::protocolHostAndPortAreEqual):
  13118. Fix the host check to take both URL's credential into account.
  13119. 2010-04-24 Nikolas Zimmermann <nzimmermann@rim.com>
  13120. Not reviewed. Fix linkage on several bots (no idea, why it worked in a from-scratch rebuild on Leopard on my machine!) -> include NodeRenderStyle.h
  13121. Having to include NodeRenderStyle.h just to pull in the renderStyle() is a crazy concept, but I see what it tries to avoid (including RenderObject.h in Node.h)
  13122. * rendering/SVGRenderSupport.cpp:
  13123. 2010-04-24 Nikolas Zimmermann <nzimmermann@rim.com>
  13124. Not reviewed. Fix release builds, wrap resourceMode assertion in NDEBUG blocks, use UNUSED_PARAM() otherwhise.
  13125. * rendering/RenderSVGResourceClipper.cpp:
  13126. (WebCore::RenderSVGResourceClipper::applyResource):
  13127. * rendering/RenderSVGResourceFilter.cpp:
  13128. (WebCore::RenderSVGResourceFilter::applyResource):
  13129. (WebCore::RenderSVGResourceFilter::postApplyResource):
  13130. * rendering/RenderSVGResourceMasker.cpp:
  13131. (WebCore::RenderSVGResourceMasker::applyResource):
  13132. 2010-04-24 Nikolas Zimmermann <nzimmermann@rim.com>
  13133. Reviewed by Dirk Schulze.
  13134. SVGPaintServer needs to be converted to the new RenderSVGResource* system
  13135. https://bugs.webkit.org/show_bug.cgi?id=37986
  13136. Huge speedup for SVG painting using paint servers (gradient/patterns). Cache underlying
  13137. WebCore::Gradient/Pattern datastructures, do not rebuild them on every painting. This marks
  13138. the finish of the SVGResource -> RenderSVGResource transition.
  13139. Outline of same key changes:
  13140. - RenderSVGResource is an abstract base class now, and the previous class is now named RenderSVGResourceContainer
  13141. All resources except RenderSVGResourceSolidColor now inherit from RenderSVGResourceContainer, as they are all
  13142. associated with a SVG*Element class. RenderSVGResourceSolidColor inherits from RenderSVGResource, and is not
  13143. associated with any SVG*Element class. RenderSVGResourceSolidColor is not a render tree object, despite its name.
  13144. The reason for that is consistency with all other painting resources.
  13145. - RenderSVGResourceSolidColor does not live in the render tree, and exists only as static object, which is shared
  13146. and always used when filling/stroking with solid colors - just like the old SVGPaintServerSolid.
  13147. - RenderSVGResourceGradient/RenderSVGResourcePattern now store the underlying WebCore::Gradient/Pattern object
  13148. instead of rebuilding it everytime we're asked to paint -> this is the main difference with the old concept, leading
  13149. to much faster speed.
  13150. - SVGResource has vanished. All resources (clipper/filter/marker/masker/gradient/pattern) now share the same codepaths
  13151. to handle updates and client invalidation - which is a huge benefit, and makes the code easier to understand.
  13152. * Android.mk: Remove svg/graphics/SVGResource*, svg/graphics/SVGPaintServer.h from build.
  13153. * GNUmakefile.am: Ditto.
  13154. * WebCore.gypi: Ditto.
  13155. * WebCore.pro: Ditto.
  13156. * WebCore.vcproj/WebCore.vcproj: Ditto.
  13157. * WebCore.xcodeproj/project.pbxproj: Ditto.
  13158. * platform/graphics/Gradient.cpp: Add addColorStop() method taking a ColorStop const-reference.
  13159. (WebCore::Gradient::addColorStop):
  13160. * platform/graphics/Gradient.h: Ditto.
  13161. * platform/graphics/TextRun.h: Rename SVGPaintServer to RenderSVGResource
  13162. (WebCore::TextRun::TextRun):
  13163. (WebCore::TextRun::activePaintingResource): Renamed from activePaintServer.
  13164. (WebCore::TextRun::setActivePaintingResource): Renamed from setActivePaintServer.
  13165. * platform/graphics/win/GraphicsContextWin.cpp: Remove references to SVGResourceImage, which was removed a long time ago.
  13166. * rendering/RenderObject.cpp:
  13167. (WebCore::RenderObject::toRenderSVGResourceContainer): Renamed from toRenderSVGResource().
  13168. * rendering/RenderObject.h:
  13169. (WebCore::RenderObject::isSVGGradientStop): Added.
  13170. (WebCore::RenderObject::isSVGResourceContainer): Renamed from isSVGResource().
  13171. * rendering/RenderPath.cpp: Utilize RenderSVGResource::fill/strokePaintingResource to request paint servers, instead of SVGPaintServer.
  13172. (WebCore::RenderPath::fillContains): Adapt to new concept.
  13173. (WebCore::RenderPath::strokeContains): Ditto.
  13174. (WebCore::fillAndStrokePath): Ditto.
  13175. (WebCore::RenderPath::paint): Ditto.
  13176. * rendering/RenderSVGGradientStop.cpp:
  13177. (WebCore::RenderSVGGradientStop::styleDidChange): Ditto.
  13178. * rendering/RenderSVGGradientStop.h: Fixed indention.
  13179. * rendering/RenderSVGResource.cpp: Refactored old SVGPaintServer code to request fill/stroke painting resources, splitted up in several methods to aid readability.
  13180. (WebCore::registerPendingResource):
  13181. (WebCore::adjustColorForPseudoRules):
  13182. (WebCore::RenderSVGResource::fillPaintingResource):
  13183. (WebCore::RenderSVGResource::strokePaintingResource):
  13184. (WebCore::RenderSVGResource::sharedSolidPaintingResource):
  13185. (WebCore::RenderSVGResource::markForLayoutAndResourceInvalidation):
  13186. * rendering/RenderSVGResource.h: Make RenderSVGResource an abstract base class, see above for the reasoning.
  13187. (WebCore::RenderSVGResource::RenderSVGResource):
  13188. (WebCore::RenderSVGResource::~RenderSVGResource):
  13189. (WebCore::RenderSVGResource::postApplyResource):
  13190. * rendering/RenderSVGResourceClipper.cpp: Inherit from RenderSVGResourceContainer instead of RenderSVGResource.
  13191. (WebCore::RenderSVGResourceClipper::RenderSVGResourceClipper):
  13192. (WebCore::RenderSVGResourceClipper::invalidateClient):
  13193. (WebCore::RenderSVGResourceClipper::applyResource): Adapt to signature changes (add RenderStyle* and resource mode parameters)
  13194. (WebCore::RenderSVGResourceClipper::applyClippingToContext):
  13195. * rendering/RenderSVGResourceClipper.h:
  13196. * rendering/RenderSVGResourceContainer.h: Added. Renamed from RenderSVGResource. Now inherits from RenderSVGHiddenContainer and RenderSVGResource.
  13197. (WebCore::RenderSVGResourceContainer::RenderSVGResourceContainer):
  13198. (WebCore::RenderSVGResourceContainer::~RenderSVGResourceContainer):
  13199. (WebCore::RenderSVGResourceContainer::idChanged):
  13200. (WebCore::RenderSVGResourceContainer::isSVGResourceContainer):
  13201. (WebCore::RenderSVGResourceContainer::drawsContents):
  13202. (WebCore::RenderSVGResourceContainer::toRenderSVGResourceContainer):
  13203. (WebCore::getRenderSVGResourceContainerById):
  13204. (WebCore::getRenderSVGResourceById):
  13205. * rendering/RenderSVGResourceFilter.cpp: Inherit from RenderSVGResourceContainer instead of RenderSVGResource.
  13206. (WebCore::RenderSVGResourceFilter::RenderSVGResourceFilter):
  13207. (WebCore::RenderSVGResourceFilter::invalidateClient):
  13208. (WebCore::RenderSVGResourceFilter::applyResource): Adapt to signature changes (add RenderStyle* and resource mode parameters)
  13209. (WebCore::RenderSVGResourceFilter::postApplyResource):
  13210. * rendering/RenderSVGResourceFilter.h:
  13211. * rendering/RenderSVGResourceGradient.cpp: Moved from SVGPaintServerGradient, cleaned up and refactored.
  13212. (WebCore::RenderSVGResourceGradient::RenderSVGResourceGradient):
  13213. (WebCore::RenderSVGResourceGradient::~RenderSVGResourceGradient):
  13214. (WebCore::RenderSVGResourceGradient::invalidateClients):
  13215. (WebCore::RenderSVGResourceGradient::invalidateClient):
  13216. (WebCore::createMaskAndSwapContextForTextGradient):
  13217. (WebCore::clipToTextMask):
  13218. (WebCore::RenderSVGResourceGradient::applyResource):
  13219. * rendering/RenderSVGResourceGradient.h:
  13220. (WebCore::RenderSVGResourceGradient::resourceBoundingBox):
  13221. * rendering/RenderSVGResourceLinearGradient.cpp: Moved from SVGPaintServerLinearGradient, cleaned up and refactored.
  13222. (WebCore::RenderSVGResourceLinearGradient::RenderSVGResourceLinearGradient):
  13223. (WebCore::RenderSVGResourceLinearGradient::~RenderSVGResourceLinearGradient):
  13224. (WebCore::RenderSVGResourceLinearGradient::buildGradient):
  13225. * rendering/RenderSVGResourceLinearGradient.h:
  13226. (WebCore::RenderSVGResourceLinearGradient::renderName):
  13227. (WebCore::RenderSVGResourceLinearGradient::resourceType):
  13228. * rendering/RenderSVGResourceMarker.cpp: Inherit from RenderSVGResourceContainer instead of RenderSVGResource.
  13229. (WebCore::RenderSVGResourceMarker::RenderSVGResourceMarker):
  13230. (WebCore::RenderSVGResourceMarker::invalidateClient):
  13231. * rendering/RenderSVGResourceMarker.h:
  13232. (WebCore::RenderSVGResourceMarker::applyResource):
  13233. * rendering/RenderSVGResourceMasker.cpp: Inherit from RenderSVGResourceContainer instead of RenderSVGResource.
  13234. (WebCore::RenderSVGResourceMasker::RenderSVGResourceMasker):
  13235. (WebCore::RenderSVGResourceMasker::invalidateClient):
  13236. (WebCore::RenderSVGResourceMasker::applyResource):
  13237. * rendering/RenderSVGResourceMasker.h:
  13238. (WebCore::MaskerData::MaskerData):
  13239. * rendering/RenderSVGResourcePattern.cpp: Moved from SVGPaintServerPattern, cleaned up and refactored.
  13240. (WebCore::RenderSVGResourcePattern::RenderSVGResourcePattern):
  13241. (WebCore::RenderSVGResourcePattern::~RenderSVGResourcePattern):
  13242. (WebCore::RenderSVGResourcePattern::invalidateClients):
  13243. (WebCore::RenderSVGResourcePattern::invalidateClient):
  13244. (WebCore::RenderSVGResourcePattern::applyResource):
  13245. (WebCore::RenderSVGResourcePattern::postApplyResource):
  13246. (WebCore::calculatePatternBoundaries):
  13247. (WebCore::RenderSVGResourcePattern::calculatePatternBoundariesIncludingOverflow):
  13248. (WebCore::RenderSVGResourcePattern::createTileImage):
  13249. (WebCore::RenderSVGResourcePattern::buildPattern):
  13250. * rendering/RenderSVGResourcePattern.h:
  13251. (WebCore::RenderSVGResourcePattern::renderName):
  13252. (WebCore::RenderSVGResourcePattern::resourceBoundingBox):
  13253. (WebCore::RenderSVGResourcePattern::resourceType):
  13254. * rendering/RenderSVGResourceRadialGradient.cpp: Moved from SVGPaintServerRadialGradient, cleaned up and refactored.
  13255. (WebCore::RenderSVGResourceRadialGradient::RenderSVGResourceRadialGradient):
  13256. (WebCore::RenderSVGResourceRadialGradient::~RenderSVGResourceRadialGradient):
  13257. (WebCore::RenderSVGResourceRadialGradient::buildGradient):
  13258. * rendering/RenderSVGResourceRadialGradient.h:
  13259. (WebCore::RenderSVGResourceRadialGradient::renderName):
  13260. (WebCore::RenderSVGResourceRadialGradient::resourceType):
  13261. * rendering/RenderSVGResourceSolidColor.cpp: Moved from SVGPaintServerSolid, cleaned up and refactored.
  13262. (WebCore::RenderSVGResourceSolidColor::RenderSVGResourceSolidColor):
  13263. (WebCore::RenderSVGResourceSolidColor::~RenderSVGResourceSolidColor):
  13264. (WebCore::RenderSVGResourceSolidColor::applyResource):
  13265. (WebCore::RenderSVGResourceSolidColor::postApplyResource):
  13266. * rendering/RenderSVGResourceSolidColor.h:
  13267. (WebCore::RenderSVGResourceSolidColor::invalidateClients):
  13268. (WebCore::RenderSVGResourceSolidColor::invalidateClient):
  13269. (WebCore::RenderSVGResourceSolidColor::resourceBoundingBox):
  13270. (WebCore::RenderSVGResourceSolidColor::resourceType):
  13271. (WebCore::RenderSVGResourceSolidColor::color):
  13272. (WebCore::RenderSVGResourceSolidColor::setColor):
  13273. * rendering/RenderSVGText.cpp:
  13274. (WebCore::RenderSVGText::paint): Early exit if painting is disabled.
  13275. * rendering/RenderTreeAsText.cpp:
  13276. (WebCore::write): Add RenderSVGGradientStop dumping.
  13277. (WebCore::externalRepresentation): Remove SVGResource dumping.
  13278. * rendering/SVGInlineTextBox.cpp: Adapt to SVGPaintServer changes (paint server request).
  13279. (WebCore::SVGInlineTextBox::paintCharacters):
  13280. (WebCore::SVGInlineTextBox::paintDecoration):
  13281. * rendering/SVGInlineTextBox.h: Ditto.
  13282. (WebCore::SVGTextPaintInfo::SVGTextPaintInfo):
  13283. * rendering/SVGRenderSupport.cpp: Ditto.
  13284. (WebCore::SVGRenderBase::prepareToRenderSVGContent):
  13285. (WebCore::SVGRenderBase::finishRenderSVGContent):
  13286. (WebCore::invalidatePaintingResource):
  13287. (WebCore::deregisterFromResources):
  13288. (WebCore::dashArrayFromRenderingStyle): Moved here from SVGPaintServer.
  13289. (WebCore::applyStrokeStyleToContext): Ditto.
  13290. * rendering/SVGRenderSupport.h:
  13291. * rendering/SVGRenderTreeAsText.cpp: Add new gradient/pattern dumping code. Stops are now properly dumped as well!
  13292. (WebCore::operator<<):
  13293. (WebCore::writeSVGPaintingResource):
  13294. (WebCore::writeStyle):
  13295. (WebCore::boundingBoxModeString):
  13296. (WebCore::writeCommonGradientProperties):
  13297. (WebCore::writeSVGResourceContainer):
  13298. (WebCore::writeSVGGradientStop):
  13299. * rendering/SVGRenderTreeAsText.h:
  13300. * rendering/SVGRootInlineBox.cpp: Adapt to SVGPaintServer changes (paint server request).
  13301. (WebCore::SVGRootInlineBoxPaintWalker::SVGRootInlineBoxPaintWalker):
  13302. (WebCore::SVGRootInlineBoxPaintWalker::~SVGRootInlineBoxPaintWalker):
  13303. (WebCore::SVGRootInlineBoxPaintWalker::teardownFillPaintServer):
  13304. (WebCore::SVGRootInlineBoxPaintWalker::teardownStrokePaintServer):
  13305. (WebCore::SVGRootInlineBoxPaintWalker::setupBackground):
  13306. (WebCore::SVGRootInlineBoxPaintWalker::setupFill):
  13307. (WebCore::SVGRootInlineBoxPaintWalker::setupFillSelection):
  13308. (WebCore::SVGRootInlineBoxPaintWalker::setupStroke):
  13309. (WebCore::SVGRootInlineBoxPaintWalker::setupStrokeSelection):
  13310. (WebCore::SVGRootInlineBoxPaintWalker::setupForeground):
  13311. (WebCore::SVGRootInlineBoxPaintWalker::activePaintingResource):
  13312. (WebCore::SVGRootInlineBoxPaintWalker::paintChunk):
  13313. * svg/GradientAttributes.h: Remove SVGGradientStop, use Gradient::ColorStop vector. Cleanup.
  13314. (WebCore::GradientAttributes::stops):
  13315. (WebCore::GradientAttributes::setStops):
  13316. * svg/LinearGradientAttributes.h: Move ENABLE(SVG) guard to correct location.
  13317. * svg/PatternAttributes.h: Add missing includes and class forwards.
  13318. * svg/RadialGradientAttributes.h: Move ENABLE(SVG) guard to correct location.
  13319. * svg/SVGClipPathElement.cpp: Rename invalidateCanvasResources() to invalidateResourceClients().
  13320. (WebCore::SVGClipPathElement::svgAttributeChanged):
  13321. (WebCore::SVGClipPathElement::childrenChanged): Only call invalidateResourceClients() when !changedByParser is set.
  13322. * svg/SVGClipPathElement.h:
  13323. * svg/SVGDocumentExtensions.cpp: Change HashMaps to hash AtomicStrings instead of Strings. Rename RenderSVGResource to RenderSVGResourceContainer.
  13324. (WebCore::SVGDocumentExtensions::addResource):
  13325. (WebCore::SVGDocumentExtensions::removeResource):
  13326. (WebCore::SVGDocumentExtensions::resourceById):
  13327. (WebCore::SVGDocumentExtensions::addPendingResource):
  13328. * svg/SVGDocumentExtensions.h:
  13329. * svg/SVGElement.cpp:
  13330. (WebCore::SVGElement::insertedIntoDocument): Remove reference to SVGResource::invalidateClients(), handled differently now.
  13331. (WebCore::SVGElement::updateAnimatedSVGAttribute): Change assertion, that is incorrect now.
  13332. * svg/SVGElement.h: Make updateAnimatedSVGAttribute() public.
  13333. * svg/SVGFont.cpp: Adapt to SVGPaintServer changes (paint server request).
  13334. (WebCore::Font::drawTextUsingSVGFont):
  13335. * svg/SVGGElement.cpp: If style()->display() is NONE, create a RenderSVGHiddenContainer, removing hacks in SVGStopElement for pservers-grad-19-b.svg (yes, SVG is crazy.)
  13336. (WebCore::SVGGElement::createRenderer):
  13337. * svg/SVGGElement.h: Remove childrenChanged() method which _always_ called renderer->setNeedsLayout(true), which is completly wrong and unnecessary.
  13338. (WebCore::SVGGElement::rendererIsNeeded): Always return true.
  13339. * svg/SVGGradientElement.cpp: Adapt to new RenderSVGResourceGradient code.
  13340. (WebCore::SVGGradientElement::svgAttributeChanged):
  13341. (WebCore::SVGGradientElement::childrenChanged): Only call invalidateResourceClients() when !changedByParser is set.
  13342. (WebCore::SVGGradientElement::buildStops):
  13343. * svg/SVGGradientElement.h:
  13344. * svg/SVGLinearGradientElement.cpp: Adapt to new RenderSVGResourceLinearGradient code.
  13345. (WebCore::SVGLinearGradientElement::svgAttributeChanged):
  13346. (WebCore::SVGLinearGradientElement::createRenderer):
  13347. (WebCore::SVGLinearGradientElement::collectGradientProperties):
  13348. (WebCore::SVGLinearGradientElement::calculateStartEndPoints):
  13349. * svg/SVGLinearGradientElement.h:
  13350. * svg/SVGMarkerElement.cpp: Rename invalidateCanvasResources() to invalidateResourceClients().
  13351. (WebCore::SVGMarkerElement::svgAttributeChanged):
  13352. (WebCore::SVGMarkerElement::childrenChanged): Only call invalidateResourceClients() when !changedByParser is set.
  13353. (WebCore::SVGMarkerElement::setOrientToAuto):
  13354. (WebCore::SVGMarkerElement::setOrientToAngle):
  13355. * svg/SVGMaskElement.cpp: Rename invalidateCanvasResources() to invalidateResourceClients().
  13356. (WebCore::SVGMaskElement::svgAttributeChanged):
  13357. (WebCore::SVGMaskElement::childrenChanged): Only call invalidateResourceClients() when !changedByParser is set.
  13358. * svg/SVGPatternElement.cpp: Rename invalidateCanvasResources() to invalidateResourceClients().
  13359. (WebCore::SVGPatternElement::svgAttributeChanged):
  13360. (WebCore::SVGPatternElement::childrenChanged): Only call invalidateResourceClients() when !changedByParser is set.
  13361. (WebCore::SVGPatternElement::createRenderer):
  13362. * svg/SVGPatternElement.h:
  13363. * svg/SVGPolyElement.h: Remove unneded rendererIsNeeded() override.
  13364. * svg/SVGRadialGradientElement.cpp: Adapt to new RenderSVGResourceRadialGradient code.
  13365. (WebCore::SVGRadialGradientElement::svgAttributeChanged):
  13366. (WebCore::SVGRadialGradientElement::createRenderer):
  13367. (WebCore::SVGRadialGradientElement::collectGradientProperties):
  13368. (WebCore::SVGRadialGradientElement::calculateFocalCenterPointsAndRadius):
  13369. * svg/SVGRadialGradientElement.h:
  13370. * svg/SVGStopElement.cpp: Clean up code, moved stop color calculation from SVGGradientElement to here, where it belongs.
  13371. (WebCore::SVGStopElement::parseMappedAttribute):
  13372. (WebCore::SVGStopElement::stopColorIncludingOpacity):
  13373. * svg/SVGStopElement.h:
  13374. * svg/SVGStyledElement.cpp:
  13375. (WebCore::SVGStyledElement::~SVGStyledElement):
  13376. (WebCore::SVGStyledElement::svgAttributeChanged): Only invalidateResourcesInAncestorChain()/deregisterFromResources() when we're not parsing.
  13377. (WebCore::SVGStyledElement::invalidateResourcesInAncestorChain): Early exit if we find a parent resources, there is no resource nesting.
  13378. (WebCore::SVGStyledElement::invalidateResourceClients): Renamed from invalidateCanvasResources()
  13379. (WebCore::SVGStyledElement::childrenChanged): Only invalidate SVGElementInstances when !changedByParser is set.
  13380. * svg/SVGStyledElement.h: Remove canvasResource() logic, remove detach() method.
  13381. * svg/SVGTextPathElement.h:
  13382. * svg/graphics/SVGPaintServer.h: Removed.
  13383. * svg/graphics/SVGResource.cpp: Removed.
  13384. * svg/graphics/SVGResource.h: Removed.
  13385. 2010-04-23 Zhenyao Mo <zmo@google.com>
  13386. Reviewed by Darin Fisher.
  13387. Add isGLES2Compliant to GraphicsContext3D: make the method const.
  13388. https://bugs.webkit.org/show_bug.cgi?id=37872
  13389. * platform/graphics/GraphicsContext3D.h: Make isGLES2Compliant() const.
  13390. * platform/graphics/mac/GraphicsContext3DMac.cpp: Ditto.
  13391. (WebCore::GraphicsContext3D::isGLES2Compliant):
  13392. 2010-04-23 Qi Zhang <qi.2.zhang@nokia.com>
  13393. Reviewed by Laszlo Gombos.
  13394. [Qt] LayoutTests/fast/canvas/pointInPath.html passed, actually it failed
  13395. https://bugs.webkit.org/show_bug.cgi?id=37276
  13396. QPainterPath::contains doesn't count the point on the bound.
  13397. * platform/graphics/qt/PathQt.cpp:
  13398. (WebCore::isPointOnPathBorder):
  13399. (WebCore::Path::contains):
  13400. 2010-04-23 Sam Weinig <sam@webkit.org>
  13401. Reviewed by David Levin.
  13402. Fix for https://bugs.webkit.org/show_bug.cgi?id=38060
  13403. Split up Threading.h
  13404. Add necessary forwarding headers.
  13405. * ForwardingHeaders/wtf/Atomics.h: Added.
  13406. * ForwardingHeaders/wtf/ThreadSafeShared.h: Added.
  13407. * ForwardingHeaders/wtf/ThreadingPrimitives.h: Added.
  13408. 2010-04-23 Rafael Weinstein <rafaelw@grafaelw.sfo.corp.google.com>
  13409. Reviewed by Darin Fisher.
  13410. This patch adds a vector of additionalFeatures to WindowFeatures
  13411. and populates it with any feature strings that evaluate to "yes"
  13412. and aren't directly observed in WindowFeatures. This allows
  13413. clients to capture experimental window features.
  13414. https://bugs.webkit.org/show_bug.cgi?id=38013
  13415. * page/WindowFeatures.cpp:
  13416. (WebCore::WindowFeatures::setWindowFeature):
  13417. * page/WindowFeatures.h:
  13418. 2010-04-23 Dan Bernstein <mitz@apple.com>
  13419. Reviewed by Simon Fraser.
  13420. <rdar://problem/7898436> :after content is duplicated
  13421. Test: fast/css-generated-content/after-duplicated-after-split.html
  13422. * rendering/RenderInline.cpp:
  13423. (WebCore::RenderInline::splitInlines): Pass the correct owner of the child list.
  13424. 2010-04-23 Adele Peterson <adele@apple.com>
  13425. Fixing the Tiger build for real.
  13426. * platform/graphics/mac/SimpleFontDataMac.mm:
  13427. 2010-04-23 Adele Peterson <adele@apple.com>
  13428. Fixing the Tiger build.
  13429. * platform/graphics/mac/SimpleFontDataMac.mm:
  13430. (WebCore::SimpleFontData::platformBoundsForGlyph):
  13431. 2010-04-23 Jian Li <jianli@chromium.org>
  13432. Reviewed by Dmitry Titov.
  13433. Add FileError for File API.
  13434. https://bugs.webkit.org/show_bug.cgi?id=37840
  13435. The test will be added when implementing FileReader and FilerWriter.
  13436. * Android.derived.jscbindings.mk:
  13437. * Android.derived.v8bindings.mk:
  13438. * DerivedSources.cpp:
  13439. * DerivedSources.make:
  13440. * GNUmakefile.am:
  13441. * WebCore.gypi:
  13442. * WebCore.pri:
  13443. * WebCore.pro:
  13444. * WebCore.vcproj/WebCore.vcproj:
  13445. * WebCore.xcodeproj/project.pbxproj:
  13446. * dom/ExceptionCode.h:
  13447. (WebCore::):
  13448. * html/FileError.h: Added.
  13449. * html/FileError.idl: Added.
  13450. * page/DOMWindow.idl:
  13451. 2010-04-23 Jian Li <jianli@chromium.org>
  13452. Reviewed by Adam Barth.
  13453. Improve code generator scripts to handle OR ('|') condition in the
  13454. extended attributes.
  13455. https://bugs.webkit.org/show_bug.cgi?id=37998
  13456. * bindings/scripts/CodeGeneratorJS.pm:
  13457. * bindings/scripts/CodeGeneratorObjC.pm:
  13458. * bindings/scripts/CodeGeneratorV8.pm:
  13459. * bindings/scripts/IDLStructure.pm:
  13460. 2010-04-23 Adele Peterson <adele@apple.com>
  13461. Reviewed by Dan Bernstein.
  13462. Fix for <rdar://problem/7855777> REGRESSION: Memory usage increase caused by storing glyph bounds in GlyphMetricsMap
  13463. https://bugs.webkit.org/show_bug.cgi?id=37936
  13464. This change breaks the GlyphMetricsMap into two maps - one for width and one for bounds, so that we don't store
  13465. a FloatRect for the glyph bounds unless we need to.
  13466. Covered by existing tests. This should not cause any change in functionality.
  13467. Updated for removal of GlyphMetricsMap.cpp
  13468. * Android.mk:
  13469. * GNUmakefile.am:
  13470. * WebCore.gypi:
  13471. * WebCore.vcproj/WebCore.vcproj:
  13472. * WebCore.xcodeproj/project.pbxproj:
  13473. Made GlyphMetricsMap a template, so it can be used for separate width and bounds maps.
  13474. * platform/graphics/GlyphMetricsMap.cpp: Removed.
  13475. * platform/graphics/GlyphMetricsMap.h:
  13476. (WebCore::GlyphMetricsMap::metricsForGlyph):
  13477. (WebCore::GlyphMetricsMap::setMetricsForGlyph):
  13478. (WebCore::GlyphMetricsMap::GlyphMetricsPage::metricsForGlyph):
  13479. (WebCore::GlyphMetricsMap::GlyphMetricsPage::setMetricsForGlyph):
  13480. (WebCore::GlyphMetricsMap::GlyphMetricsPage::setMetricsForIndex):
  13481. (WebCore::::unknownMetrics):
  13482. (WebCore::::locatePageSlowCase):
  13483. * platform/graphics/mac/ComplexTextController.cpp: (WebCore::ComplexTextController::adjustGlyphsAndAdvances):
  13484. Call boundsForGlyph instead of metricsForGlyph.
  13485. * platform/graphics/win/UniscribeController.cpp: (WebCore::UniscribeController::shapeAndPlaceItem):
  13486. ditto.
  13487. * platform/graphics/SimpleFontData.cpp: (WebCore::SimpleFontData::platformGlyphInit):
  13488. Call setMetricsForGlyph for both glyph maps.
  13489. Break getters and setters for metricsForGlyph into widthForGlyph and boundsForGlyph, maintaining present behavior.
  13490. * platform/graphics/SimpleFontData.h:
  13491. (WebCore::):
  13492. (WebCore::SimpleFontData::boundsForGlyph):
  13493. (WebCore::SimpleFontData::widthForGlyph):
  13494. * platform/graphics/cairo/SimpleFontDataCairo.cpp:
  13495. (WebCore::SimpleFontData::platformBoundsForGlyph):
  13496. (WebCore::SimpleFontData::platformWidthForGlyph):
  13497. * platform/graphics/chromium/SimpleFontDataChromiumWin.cpp:
  13498. (WebCore::SimpleFontData::platformBoundsForGlyph):
  13499. (WebCore::SimpleFontData::platformWidthForGlyph):
  13500. * platform/graphics/chromium/SimpleFontDataLinux.cpp:
  13501. (WebCore::SimpleFontData::platformBoundsForGlyph):
  13502. (WebCore::SimpleFontData::platformWidthForGlyph):
  13503. * platform/graphics/gtk/SimpleFontDataPango.cpp:
  13504. (WebCore::SimpleFontData::platformBoundsForGlyph):
  13505. (WebCore::SimpleFontData::platformWidthForGlyph):
  13506. * platform/graphics/mac/SimpleFontDataMac.mm:
  13507. (WebCore::SimpleFontData::platformBoundsForGlyph):
  13508. (WebCore::SimpleFontData::platformWidthForGlyph):
  13509. * platform/graphics/win/SimpleFontDataCGWin.cpp:
  13510. (WebCore::SimpleFontData::platformBoundsForGlyph):
  13511. (WebCore::SimpleFontData::platformWidthForGlyph):
  13512. * platform/graphics/win/SimpleFontDataCairoWin.cpp:
  13513. (WebCore::SimpleFontData::platformBoundsForGlyph):
  13514. * platform/graphics/win/SimpleFontDataWin.cpp:
  13515. (WebCore::SimpleFontData::boundsForGDIGlyph):
  13516. (WebCore::SimpleFontData::widthForGDIGlyph):
  13517. * platform/graphics/wince/SimpleFontDataWince.cpp:
  13518. (WebCore::SimpleFontData::platformBoundsForGlyph):
  13519. * platform/graphics/wx/SimpleFontDataWx.cpp:
  13520. (WebCore::SimpleFontData::platformBoundsForGlyph):
  13521. (WebCore::SimpleFontData::platformWidthForGlyph):
  13522. 2010-04-23 Xiaomei Ji <xji@chromium.org>
  13523. Reviewed by Dan Bernstein and Darin Adler
  13524. Fix issue "caret does not paint after type in characters in right
  13525. aligned div or after delete all characters in RTL div or
  13526. 0px right padding RTL textarea"
  13527. https://bugs.webkit.org/show_bug.cgi?id=25319
  13528. Test: editing/inserting/caret-position.html
  13529. * rendering/RenderText.cpp:
  13530. (WebCore::RenderText::localCaretRect):
  13531. 2010-04-23 No'am Rosenthal <noam.rosenthal@nokia.com>
  13532. Reviewed by Kenneth Rohde Christiansen.
  13533. [Qt] [Performance] GraphicsLayer: constructing the layers takes too long
  13534. https://bugs.webkit.org/show_bug.cgi?id=36365
  13535. The issue came from using QGraphicsView's cache as is. The problem is that
  13536. several code-paths require re-rendering of the item, but not re-rendering
  13537. of the web content into the cache.
  13538. The way to solve it is by having GraphicsLayerQt manage the cache directly
  13539. via QPixmapCache, instead of using QGraphicsItem cache modes.
  13540. FPS measurement shows significant improvement (20FPS before, 40FPS after)
  13541. on several use-cases, including blog-files/leaves on a desktop environment.
  13542. * platform/graphics/qt/GraphicsLayerQt.cpp:
  13543. (WebCore::GraphicsLayerQtImpl::GraphicsLayerQtImpl):
  13544. (WebCore::GraphicsLayerQtImpl::recache):
  13545. (WebCore::GraphicsLayerQtImpl::paint):
  13546. (WebCore::GraphicsLayerQtImpl::flushChanges):
  13547. 2010-04-23 James Robinson <jamesr@chromium.org>
  13548. Reviewed by Dimitri Glazkov.
  13549. Avoid marking symbols as dllexport in chromium win builds
  13550. https://bugs.webkit.org/show_bug.cgi?id=38058
  13551. No new tests.
  13552. * config.h:
  13553. 2010-04-23 MORITA Hajime <morrita@google.com>
  13554. Reviewed by Nikolas Zimmermann.
  13555. https://bugs.webkit.org/show_bug.cgi?id=37187
  13556. SVG <use href="foo"> is interpreted as <use href="#foo">
  13557. getTarget() did return url parameter as is if doesn't have
  13558. fragment identifier. So fixed to return empty string in such case
  13559. because we need to distinguish "yyy.html" from "xxx.svg#yyy.html".
  13560. Test: svg/custom/broken-internal-references.svg
  13561. * svg/SVGElement.cpp:
  13562. (WebCore::SVGElement::insertedIntoDocument):
  13563. * svg/SVGURIReference.cpp:
  13564. (WebCore::SVGURIReference::getTarget):
  13565. 2010-04-23 Simon Fraser <simon.fraser@apple.com>
  13566. Reviewed by Dan Bernstein.
  13567. ASSERT(willBeComposited == needsToBeComposited(layer)); on gmail.com
  13568. https://bugs.webkit.org/show_bug.cgi?id=38066
  13569. When a layer goes into compositing mode because it has a negative z-index child that is going
  13570. into compositing mode, then set willBeComposited to true. Also add another assertion to catch
  13571. any other cases where the state of willBeComposited is mismanaged.
  13572. Test: compositing/composited-negative-zindex-child.html
  13573. * rendering/RenderLayerCompositor.cpp:
  13574. (WebCore::RenderLayerCompositor::computeCompositingRequirements):
  13575. 2010-04-23 Simon Fraser <simon.fraser@apple.com>
  13576. Reviewed by Dan Bernstein.
  13577. When webkitAnimationEnd event fires, on-screen rendering should show the last frame of animation
  13578. https://bugs.webkit.org/show_bug.cgi?id=37955
  13579. After r37484, animation and transition end events were fired on a timer, after the animation/transition
  13580. ended. This opened up one event loop cycle in which the non-animating state of the element was visible
  13581. before the event fired, resulting in flashes in content that reset style from the event handler.
  13582. Fix by firing these events in the same event cycle as the animation end, once all animations
  13583. have been updated. This also required moving the place that start animations are fixed until
  13584. a later state in the state machine, so that animations have their start time set at the point
  13585. the event is fired (to avoid an assertion when using the freeze API in DRT).
  13586. Not testable, since the flash is very transitory and cannot be captured in a pixel test.
  13587. * page/animation/AnimationBase.cpp:
  13588. (WebCore::AnimationBase::updateStateMachine): Move the firing of 'start' events into the state
  13589. where the start time is known.
  13590. * page/animation/AnimationControllerPrivate.h:
  13591. * page/animation/AnimationController.cpp:
  13592. (WebCore::AnimationControllerPrivate::updateStyleIfNeededDispatcherFired): Call the new fireEventsAndUpdateStyle()
  13593. method.
  13594. (WebCore::AnimationControllerPrivate::fireEventsAndUpdateStyle): New method to share code that used to be in
  13595. updateStyleIfNeededDispatcherFired().
  13596. (WebCore::AnimationControllerPrivate::animationTimerFired): Call fireEventsAndUpdateStyle() once we've
  13597. processed all animations.
  13598. 2010-04-23 Simon Fraser <simon.fraser@apple.com>
  13599. Reviewed by Dan Bernstein.
  13600. CompositeAnimation::updateKeyframeAnimations() can make a KeyframeAnimation for animation "none"
  13601. https://bugs.webkit.org/show_bug.cgi?id=38017
  13602. Check to see if the animation name is "none", and don't fire off a keyframe animation in
  13603. that case.
  13604. * page/animation/CompositeAnimation.cpp:
  13605. (WebCore::CompositeAnimation::updateKeyframeAnimations):
  13606. 2010-04-23 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  13607. Reviewed by Kenneth Rohde Christiansen.
  13608. [Qt] Disable Netscape plugin support for minimal configuration
  13609. https://bugs.webkit.org/show_bug.cgi?id=38026
  13610. No new tests, as there is no new functionality.
  13611. * WebCore.pri:
  13612. 2010-04-23 Shinichiro Hamaji <hamaji@chromium.org>
  13613. Reviewed by Darin Adler.
  13614. Need borderAndPadding(Width|Height)
  13615. https://bugs.webkit.org/show_bug.cgi?id=38046
  13616. Refactoring only, so no new tests.
  13617. * rendering/InlineBox.cpp:
  13618. (WebCore::InlineBox::height):
  13619. * rendering/RenderApplet.cpp:
  13620. (WebCore::RenderApplet::createWidgetIfNecessary):
  13621. * rendering/RenderBlock.cpp:
  13622. (WebCore::RenderBlock::isSelfCollapsingBlock):
  13623. (WebCore::RenderBlock::calcPrefWidths):
  13624. * rendering/RenderBox.cpp:
  13625. (WebCore::RenderBox::calcBorderBoxWidth):
  13626. (WebCore::RenderBox::calcBorderBoxHeight):
  13627. (WebCore::RenderBox::calcContentBoxWidth):
  13628. (WebCore::RenderBox::calcContentBoxHeight):
  13629. (WebCore::RenderBox::calcWidth):
  13630. (WebCore::RenderBox::calcHeight):
  13631. (WebCore::RenderBox::calcPercentageHeight):
  13632. (WebCore::RenderBox::calcReplacedHeightUsing):
  13633. (WebCore::RenderBox::availableHeightUsing):
  13634. (WebCore::RenderBox::calcAbsoluteHorizontal):
  13635. (WebCore::RenderBox::calcAbsoluteVertical):
  13636. (WebCore::RenderBox::calcAbsoluteHorizontalReplaced):
  13637. (WebCore::RenderBox::calcAbsoluteVerticalReplaced):
  13638. (WebCore::RenderBox::positionForPoint):
  13639. * rendering/RenderBoxModelObject.h:
  13640. (WebCore::RenderBoxModelObject::borderAndPaddingHeight):
  13641. (WebCore::RenderBoxModelObject::borderAndPaddingWidth):
  13642. * rendering/RenderDataGrid.cpp:
  13643. (WebCore::RenderDataGrid::calcPrefWidths):
  13644. * rendering/RenderFieldset.cpp:
  13645. (WebCore::RenderFieldset::calcPrefWidths):
  13646. * rendering/RenderFileUploadControl.cpp:
  13647. (WebCore::RenderFileUploadControl::calcPrefWidths):
  13648. * rendering/RenderFlexibleBox.cpp:
  13649. (WebCore::RenderFlexibleBox::calcPrefWidths):
  13650. (WebCore::RenderFlexibleBox::allowedChildFlex):
  13651. * rendering/RenderImage.cpp:
  13652. (WebCore::RenderImage::calcPrefWidths):
  13653. * rendering/RenderLayer.cpp:
  13654. (WebCore::RenderLayer::resize):
  13655. * rendering/RenderListBox.cpp:
  13656. (WebCore::RenderListBox::calcPrefWidths):
  13657. (WebCore::RenderListBox::calcHeight):
  13658. * rendering/RenderMenuList.cpp:
  13659. (WebCore::RenderMenuList::calcPrefWidths):
  13660. * rendering/RenderReplaced.cpp:
  13661. (WebCore::RenderReplaced::calcPrefWidths):
  13662. * rendering/RenderSVGRoot.cpp:
  13663. (WebCore::RenderSVGRoot::calcPrefWidths):
  13664. * rendering/RenderSlider.cpp:
  13665. (WebCore::RenderSlider::calcPrefWidths):
  13666. (WebCore::RenderSlider::layout):
  13667. * rendering/RenderTableCell.cpp:
  13668. (WebCore::RenderTableCell::styleOrColWidth):
  13669. * rendering/RenderTextControl.cpp:
  13670. (WebCore::RenderTextControl::textBlockHeight):
  13671. (WebCore::RenderTextControl::textBlockWidth):
  13672. (WebCore::RenderTextControl::calcHeight):
  13673. (WebCore::RenderTextControl::calcPrefWidths):
  13674. * rendering/RenderTextControlSingleLine.cpp:
  13675. (WebCore::RenderTextControlSingleLine::layout):
  13676. * rendering/RenderWidget.cpp:
  13677. (WebCore::RenderWidget::updateWidgetPosition):
  13678. 2010-04-23 David Kilzer <ddkilzer@apple.com>
  13679. Size mismatch between format string and argument in dumpTextEncodingNameMap()
  13680. Reviewed by Darin Adler.
  13681. See Bug 38030 and r58157.
  13682. * platform/text/TextEncodingRegistry.cpp:
  13683. (WebCore::dumpTextEncodingNameMap): Assigned
  13684. textEncodingNameMap->size() to an unsigned variable before using
  13685. it in the fprintf() statement.
  13686. 2010-04-23 David Kilzer <ddkilzer@apple.com>
  13687. BUILD FIX: Attempt to fix Windows build after Bug 36187 landed in r58168
  13688. * DerivedSources.cpp: Changed include of JSMedia.cpp to
  13689. JSStyleMedia.cpp.
  13690. 2010-04-23 David Kilzer <ddkilzer@apple.com>
  13691. BUILD FIX: Fix Mac build after Bug 36187 landed in r58168
  13692. * WebCore.xcodeproj/project.pbxproj: Renamed DOMMedia.h,
  13693. DOMMedia.mm, DOMMediaInternal.h to DOMStyleMedia.h,
  13694. DOMStyleMedia.mm, DOMStyleMediaInternal.h.
  13695. 2010-04-23 Kenneth Rohde Christiansen <kenneth@webkit.org>
  13696. Unreviewed build fix.
  13697. Change Media to StyleMedia
  13698. * DerivedSources.make:
  13699. 2010-04-23 Xan Lopez <xlopez@igalia.com>
  13700. Try to fix the GTK+ bots.
  13701. * GNUmakefile.am:
  13702. 2010-04-22 Kenneth Rohde Christiansen <kenneth@webkit.org>
  13703. Reviewed by Laszlo Gombos.
  13704. Rename window.media to window.styleMedia
  13705. https://bugs.webkit.org/show_bug.cgi?id=36187
  13706. Rename the interface Media to StyleMedia as required by the
  13707. new CSSOM View spec.
  13708. * Android.derived.jscbindings.mk:
  13709. * Android.derived.v8bindings.mk:
  13710. * GNUmakefile.am:
  13711. * WebCore.gypi:
  13712. * WebCore.pri:
  13713. * WebCore.pro:
  13714. * WebCore.vcproj/WebCore.vcproj:
  13715. * WebCore.xcodeproj/project.pbxproj:
  13716. * css/Media.cpp: Removed.
  13717. * css/Media.h: Removed.
  13718. * css/Media.idl: Removed.
  13719. * css/StyleMedia.cpp: Added.
  13720. (WebCore::StyleMedia::StyleMedia):
  13721. (WebCore::StyleMedia::type):
  13722. (WebCore::StyleMedia::matchMedium):
  13723. * css/StyleMedia.h: Added.
  13724. (WebCore::StyleMedia::create):
  13725. (WebCore::StyleMedia::disconnectFrame):
  13726. * css/StyleMedia.idl: Added.
  13727. * page/DOMWindow.cpp:
  13728. (WebCore::DOMWindow::styleMedia):
  13729. * page/DOMWindow.h:
  13730. (WebCore::DOMWindow::optionalMedia):
  13731. * page/DOMWindow.idl:
  13732. 2010-04-23 Yury Semikhatsky <yurys@chromium.org>
  13733. Reviewed by Pavel Feldman.
  13734. Web Inspector: provide JSC implementation for scopeType method on
  13735. call frame and use same jsvascript code for JSC and v8 when collecting
  13736. scope chain data.
  13737. https://bugs.webkit.org/show_bug.cgi?id=37663
  13738. * bindings/js/JSInjectedScriptHostCustom.cpp:
  13739. (WebCore::JSInjectedScriptHost::currentCallFrame):
  13740. * bindings/js/JSJavaScriptCallFrameCustom.cpp:
  13741. (WebCore::JSJavaScriptCallFrame::scopeType):
  13742. * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
  13743. (WebCore::V8InjectedScriptHost::currentCallFrameCallback):
  13744. * inspector/InjectedScriptHost.idl:
  13745. * inspector/front-end/InjectedScript.js:
  13746. (injectedScriptConstructor.):
  13747. 2010-04-23 Alexander Pavlov <apavlov@chromium.org>
  13748. Reviewed by Pavel Feldman.
  13749. Web Inspector: Audits (Image Dimensions): full image URLs are prefixed with the hosting page name
  13750. https://bugs.webkit.org/show_bug.cgi?id=37988
  13751. * inspector/front-end/AuditRules.js:
  13752. (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun):
  13753. 2010-04-23 Ilya Tikhonovsky <loislo@chromium.org>
  13754. Reviewed by Yury Semikhatsky.
  13755. WebInspector: Flaky Inspector tests.
  13756. https://bugs.webkit.org/show_bug.cgi?id=36217
  13757. * inspector/InspectorController.cpp:
  13758. (WebCore::InspectorController::didCommitLoad):
  13759. 2010-04-23 Yaar Schnitman <yaar@chromium.org>
  13760. Reviewed by Adam Barth.
  13761. Auto-generate WebGLRenderingContext overloads in V8
  13762. https://bugs.webkit.org/show_bug.cgi?id=37818
  13763. * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
  13764. * html/canvas/WebGLRenderingContext.cpp: Added missing overloads for the following:.
  13765. (WebCore::WebGLRenderingContext::texImage2D)
  13766. (WebCore::WebGLRenderingContext::texSubImage2D)
  13767. * html/canvas/WebGLRenderingContext.h: Added missing overloads.
  13768. * html/canvas/WebGLRenderingContext.idl: IDL definition of overloads.
  13769. 2010-04-23 Jeff Schiller <codedread@gmail.com>
  13770. Reviewed by Nikolas Zimmermann.
  13771. Display tooltips when hovering over SVG elements, Bug 16854
  13772. https://bugs.webkit.org/show_bug.cgi?id=16854
  13773. Manual test added for verifying tooltips.
  13774. * manual-tests/svg-tooltip.svg: Added.
  13775. * svg/SVGAElement.cpp:
  13776. (WebCore::SVGAElement::title): xlink:title takes precedence, otherwise SVGStyledElement::title() is used
  13777. * svg/SVGStyledElement.cpp:
  13778. (WebCore::SVGStyledElement::title): checks for a shadow parent and uses that title, otherwise uses the content's title
  13779. * svg/SVGStyledElement.h: add title() method declaration
  13780. 2010-04-23 David Kilzer <ddkilzer@apple.com>
  13781. <http://webkit.org/b/38032> No need to content sniff 304 responses
  13782. <rdar://problem/7891726>
  13783. Reviewed by Brady Eidson.
  13784. * platform/network/mac/ResourceHandleMac.mm:
  13785. (-[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:]):
  13786. No need to adjust the MIME type on 304 responses since they're
  13787. only used to determine if the resource needs to be refetched.
  13788. 2010-04-23 David Kilzer <ddkilzer@apple.com>
  13789. <http://webkit.org/b/38030> Add WebCore::dumpTextEncodingNameMap() to dump text encoding map on debug builds
  13790. Reviewed by Alexey Proskuryakov.
  13791. * platform/text/TextEncodingRegistry.cpp:
  13792. (WebCore::dumpTextEncodingNameMap): Added.
  13793. * platform/text/TextEncodingRegistry.h:
  13794. (WebCore::dumpTextEncodingNameMap): Added declaration.
  13795. 2010-04-22 Tony Chang <tony@chromium.org>
  13796. Reviewed by Dan Bernstein.
  13797. Crash in WebCore::TextIterator::handleTextNode() encountered in Google rich-text products
  13798. https://bugs.webkit.org/show_bug.cgi?id=37950
  13799. Test: editing/text-iterator/rtl-selection-crash.html
  13800. * editing/TextIterator.cpp:
  13801. (WebCore::TextIterator::handleTextNode):
  13802. 2010-04-22 Maciej Stachowiak <mjs@apple.com>
  13803. Reviewed by Dan Bernstein and Beth Dakin.
  13804. Links around blocks (e.g. divs) results in too many VoiceOver call outs
  13805. https://bugs.webkit.org/show_bug.cgi?id=37079
  13806. <rdar://problem/7234118>
  13807. The basic change is to modify the AccessibilityRenderObject tree
  13808. traversal methods to account for inline continuations in the
  13809. render tree and make the accessibility tree look as if
  13810. continuations didn't exist - the same as if CSS blocks could just
  13811. sit in CSS inlines. This is slightly tricky code but creates a
  13812. much saner accessibility tree.
  13813. Tests: accessibility/image-link-inline-cont.html
  13814. accessibility/image-link.html
  13815. accessibility/inline-continuations.html
  13816. * accessibility/AccessibilityRenderObject.cpp:
  13817. (WebCore::isInlineWithContinuation): Helper function for traversal functions to use in accounting for continuations.
  13818. (WebCore::firstChildInContinuation): ditto
  13819. (WebCore::firstChildConsideringContinuation): ditto
  13820. (WebCore::lastChildConsideringContinuation): ditto
  13821. (WebCore::startOfContinuations): ditto
  13822. (WebCore::endOfContinuations): ditto
  13823. (WebCore::childBeforeConsideringContinuations): ditto
  13824. (WebCore::firstChildIsInlineContinuation): ditto
  13825. (WebCore::lastChildHasContinuation): ditto
  13826. (WebCore::AccessibilityRenderObject::firstChild): Account for inline continuations.
  13827. (WebCore::AccessibilityRenderObject::lastChild): ditto
  13828. (WebCore::AccessibilityRenderObject::previousSibling): Account for inline continuations
  13829. and their anonymous block parents.
  13830. (WebCore::AccessibilityRenderObject::nextSibling): ditto
  13831. (WebCore::AccessibilityRenderObject::parentObjectIfExists): Account for inline continuations.
  13832. (WebCore::AccessibilityRenderObject::parentObject): Account for inline continuations.
  13833. * rendering/RenderInline.h: Make RenderInline::inlineContinuation public.
  13834. 2010-04-22 Shinichiro Hamaji <hamaji@chromium.org>
  13835. Reviewed by Darin Adler.
  13836. REGRESSION: TextIterator may use freed memory
  13837. https://bugs.webkit.org/show_bug.cgi?id=37973
  13838. Added TextIterator::m_text to hold the returned String.
  13839. No new tests because there are no behavior change, but
  13840. copy-backslash-with-euc.html on chromium-win should test this.
  13841. * editing/TextIterator.cpp:
  13842. (WebCore::TextIterator::emitText):
  13843. * editing/TextIterator.h:
  13844. 2010-04-22 Michael Forney <mforney@mforney.org>
  13845. Reviewed by Adam Barth.
  13846. https://bugs.webkit.org/show_bug.cgi?id=37761
  13847. Only include JSDatabase.h and JSDatabaseCallback.h when database is
  13848. enabled. This partially fixes building with --disable-database.
  13849. * bindings/js/JSDOMWindowCustom.cpp: Add a check for database around
  13850. database-related headers.
  13851. 2010-04-22 Ray Rischpater <Raymond.Rischpater@Nokia.com>
  13852. Reviewed by Darin Adler.
  13853. In HTMLInputElement.cpp, shouldUseInputMethod does not return true for
  13854. some text input types (TELEPHONE, NUMBER, URL, and EMAIL). Addressed
  13855. this by changing shouldUseInputMethod to use internal methods to
  13856. check that the field is a text field that isn't a password field.
  13857. No new tests.
  13858. Fixes <https://bugs.webkit.org/show_bug.cgi?id=37719>
  13859. * html/HTMLInputElement.cpp:
  13860. (WebCore::HTMLInputElement::shouldUseInputMethod):
  13861. 2010-04-22 Yaar Schnitman <yaar@chromium.org>
  13862. Reviewed by Adam Barth.
  13863. Integrate v8 testing utility with webkit tests
  13864. https://bugs.webkit.org/show_bug.cgi?id=37731
  13865. * bindings/v8/test/run_tests.py: Removed.
  13866. 2010-04-22 Zhenyao Mo <zmo@google.com>
  13867. Reviewed by Darin Fisher.
  13868. Add isGLES2Compliant to GraphicsContext3D
  13869. https://bugs.webkit.org/show_bug.cgi?id=37872
  13870. * html/canvas/WebGLRenderingContext.cpp: Add isGLES2Compliant().
  13871. (WebCore::WebGLRenderingContext::isGLES2Compliant):
  13872. * html/canvas/WebGLRenderingContext.h: Ditto.
  13873. * platform/graphics/GraphicsContext3D.h: Ditto.
  13874. * platform/graphics/mac/GraphicsContext3DMac.cpp: Ditto.
  13875. (WebCore::GraphicsContext3D::isGLES2Compliant):
  13876. 2010-04-22 Fumitoshi Ukai <ukai@chromium.org>
  13877. Reviewed by Adam Barth.
  13878. MD5 is required for WebSocket new protocol implementation
  13879. https://bugs.webkit.org/show_bug.cgi?id=37913
  13880. * ForwardingHeaders/wtf/MD5.h: Added.
  13881. 2010-04-22 Alexey Proskuryakov <ap@apple.com>
  13882. Reviewed by Darin Adler.
  13883. https://bugs.webkit.org/show_bug.cgi?id=38012
  13884. REGRESSION: Ctrl- and Option- shortcuts get wrong keyCode on non-QWERTY keyboard
  13885. * platform/mac/KeyEventMac.mm: (WebCore::windowsKeyCodeForKeyEvent): Also look at unmodified
  13886. characters, to avoid falling through to virtual key code lookup for Roman characters.
  13887. 2010-04-22 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
  13888. Reviewed by Darin Adler.
  13889. Fix the MSVC 64bit build.
  13890. https://bugs.webkit.org/show_bug.cgi?id=37980
  13891. * platform/text/TextStream.cpp:
  13892. * platform/text/TextStream.h:
  13893. * plugins/win/PluginViewWin.cpp:
  13894. (WebCore::PluginView::platformStart):
  13895. 2010-04-22 Dave Moore <davemoore@chromium.org>
  13896. Reviewed by Dimitri Glazkov.
  13897. Added notification when the favicons for a page are changed
  13898. from a script.
  13899. The Document object will notify the frame loader, which will
  13900. notify the client. Implementations of FrameLoaderClient will
  13901. have to add one method; dispatchDidChangeIcons().
  13902. https://bugs.webkit.org/show_bug.cgi?id=33812
  13903. Test: fast/dom/icon-url-property.html
  13904. * dom/Document.cpp:
  13905. (WebCore::Document::setIconURL):
  13906. * loader/DocumentLoader.cpp:
  13907. (WebCore::DocumentLoader::setIconURL):
  13908. * loader/DocumentLoader.h:
  13909. (WebCore::DocumentLoader::iconURL):
  13910. * loader/EmptyClients.h:
  13911. (WebCore::EmptyFrameLoaderClient::dispatchDidChangeIcons):
  13912. * loader/FrameLoader.cpp:
  13913. (WebCore::FrameLoader::setIconURL):
  13914. (WebCore::FrameLoader::didChangeIcons):
  13915. * loader/FrameLoader.h:
  13916. * loader/FrameLoaderClient.h:
  13917. 2010-04-22 Xan Lopez <xlopez@igalia.com>
  13918. Reviewed by Gustavo Noronha.
  13919. [GTK] GObject DOM bindings
  13920. https://bugs.webkit.org/show_bug.cgi?id=33590
  13921. Extend the bindings to cover most of Document.idl
  13922. * GNUmakefile.am:
  13923. * bindings/gobject/WebKitDOMBinding.cpp:
  13924. (WebKit::createWrapper):
  13925. (WebKit::kit):
  13926. * bindings/gobject/WebKitDOMBinding.h:
  13927. * bindings/gobject/WebKitHTMLElementWrapperFactory.cpp: Added.
  13928. (WebKit::createAnchorWrapper):
  13929. (WebKit::createAppletWrapper):
  13930. (WebKit::createAreaWrapper):
  13931. (WebKit::createBaseWrapper):
  13932. (WebKit::createBaseFontWrapper):
  13933. (WebKit::createBlockquoteWrapper):
  13934. (WebKit::createBodyWrapper):
  13935. (WebKit::createBRWrapper):
  13936. (WebKit::createButtonWrapper):
  13937. (WebKit::createCanvasWrapper):
  13938. (WebKit::createTableCaptionWrapper):
  13939. (WebKit::createTableColWrapper):
  13940. (WebKit::createModWrapper):
  13941. (WebKit::createDirectoryWrapper):
  13942. (WebKit::createDivWrapper):
  13943. (WebKit::createDListWrapper):
  13944. (WebKit::createEmbedWrapper):
  13945. (WebKit::createFieldSetWrapper):
  13946. (WebKit::createFontWrapper):
  13947. (WebKit::createFormWrapper):
  13948. (WebKit::createFrameWrapper):
  13949. (WebKit::createFrameSetWrapper):
  13950. (WebKit::createHeadingWrapper):
  13951. (WebKit::createHeadWrapper):
  13952. (WebKit::createHRWrapper):
  13953. (WebKit::createHtmlWrapper):
  13954. (WebKit::createIFrameWrapper):
  13955. (WebKit::createImageWrapper):
  13956. (WebKit::createInputWrapper):
  13957. (WebKit::createIsIndexWrapper):
  13958. (WebKit::createLabelWrapper):
  13959. (WebKit::createLegendWrapper):
  13960. (WebKit::createLIWrapper):
  13961. (WebKit::createLinkWrapper):
  13962. (WebKit::createMapWrapper):
  13963. (WebKit::createMarqueeWrapper):
  13964. (WebKit::createMenuWrapper):
  13965. (WebKit::createMetaWrapper):
  13966. (WebKit::createObjectWrapper):
  13967. (WebKit::createOListWrapper):
  13968. (WebKit::createOptGroupWrapper):
  13969. (WebKit::createOptionWrapper):
  13970. (WebKit::createParagraphWrapper):
  13971. (WebKit::createParamWrapper):
  13972. (WebKit::createPreWrapper):
  13973. (WebKit::createQuoteWrapper):
  13974. (WebKit::createScriptWrapper):
  13975. (WebKit::createSelectWrapper):
  13976. (WebKit::createStyleWrapper):
  13977. (WebKit::createTableWrapper):
  13978. (WebKit::createTableSectionWrapper):
  13979. (WebKit::createTableCellWrapper):
  13980. (WebKit::createTextAreaWrapper):
  13981. (WebKit::createTitleWrapper):
  13982. (WebKit::createTableRowWrapper):
  13983. (WebKit::createUListWrapper):
  13984. (WebKit::createHTMLElementWrapper):
  13985. * bindings/gobject/WebKitHTMLElementWrapperFactory.h: Added.
  13986. * bindings/scripts/CodeGeneratorGObject.pm:
  13987. * dom/Node.idl:
  13988. 2010-04-22 Eric Carlson <eric.carlson@apple.com>
  13989. Reviewed by Simon Fraser.
  13990. Do not pause movie when readyState drops below HAVE_FUTURE_DATA
  13991. https://bugs.webkit.org/show_bug.cgi?id=37991
  13992. <rdar://problem/7893937>
  13993. No new tests, we don't have infrastructure in DRT to test with streamed
  13994. movies.
  13995. * html/HTMLMediaElement.cpp:
  13996. (WebCore::HTMLMediaElement::HTMLMediaElement): Initialize m_readyStateMaximum.
  13997. (WebCore::HTMLMediaElement::prepareForLoad): Reset m_readyStateMaximum.
  13998. (WebCore::HTMLMediaElement::setReadyState): Maintain m_readyStateMaximum.
  13999. (WebCore::HTMLMediaElement::potentiallyPlaying): Also return true if the readyState was
  14000. previously >= HAVE_FUTURE_DATA.
  14001. * html/HTMLMediaElement.h:
  14002. 2010-04-22 Zhenyao Mo <zmo@google.com>
  14003. Reviewed by Dimitri Glazkov.
  14004. Regression: framebufferRenderbuffer crashes with null renderBuffer
  14005. https://bugs.webkit.org/show_bug.cgi?id=37963
  14006. * html/canvas/WebGLRenderingContext.cpp:
  14007. (WebCore::WebGLRenderingContext::framebufferRenderbuffer): Dealing with null renderbuffer input.
  14008. 2010-04-22 Zhenyao Mo <zmo@google.com>
  14009. Reviewed by Dimitri Glazkov.
  14010. Emulate GL_IMPLEMENTATION_COLOR_READ_FORMAT/TYPE for glGet
  14011. https://bugs.webkit.org/show_bug.cgi?id=37281
  14012. * html/canvas/WebGLRenderingContext.cpp:
  14013. (WebCore::WebGLRenderingContext::WebGLRenderingContext): Remove error check because two enums are supported now.
  14014. (WebCore::WebGLRenderingContext::getParameter): Add two enums.
  14015. (WebCore::WebGLRenderingContext::readPixels): Fix a tiny bug.
  14016. * platform/graphics/mac/GraphicsContext3DMac.cpp:
  14017. (WebCore::GraphicsContext3D::getIntegerv): Emulate two enums.
  14018. 2010-04-22 Diego Escalante Urrelo <descalante@igalia.com>
  14019. Reviewed by Xan Lopez.
  14020. [GTK] Mute/unmute button on <video> elements are backwards
  14021. https://bugs.webkit.org/show_bug.cgi?id=33967
  14022. Fix mute/unmute buttons icons-action relation and explain why their
  14023. variable names and corresponding icons seem to be misleading but are
  14024. actually right. Original patch by Mike Hommey.
  14025. * platform/gtk/RenderThemeGtk.cpp:
  14026. (WebCore::RenderThemeGtk::initMediaStyling):
  14027. 2010-04-22 Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
  14028. Reviewed by Eric Seidel.
  14029. Fix build if NPAPI support is disabled
  14030. https://bugs.webkit.org/show_bug.cgi?id=36621
  14031. No new tests, this is a build fix.
  14032. Re-submit r58043 with fix for EFL.
  14033. * plugins/PluginViewNone.cpp:
  14034. 2010-04-22 Diego Escalante Urrelo <descalante@igalia.com>
  14035. Reviewed by Xan Lopez.
  14036. [Gtk] Evaluate and create tests for all the AtkRole's implemented by
  14037. WebKitGtk
  14038. https://bugs.webkit.org/show_bug.cgi?id=34449
  14039. Implement ATK_ROLE_COMBO_BOX.
  14040. * accessibility/gtk/AccessibilityObjectAtk.cpp:
  14041. (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):
  14042. * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
  14043. (atkRole):
  14044. 2010-04-22 Nikolas Zimmermann <nzimmermann@rim.com>
  14045. Reviewed by Dirk Schulze.
  14046. SVGPaintServer needs to be converted to the new RenderSVGResource* system
  14047. https://bugs.webkit.org/show_bug.cgi?id=37986
  14048. No functional changes, just move the SVGPaintServer* classes from svg/graphics/ to rendering/, the new location for the RenderSVGResource* classes.
  14049. This is a preparation for the real patch which follows soon.
  14050. * Android.mk: Rename files and move to the right location.
  14051. * GNUmakefile.am: Ditto.
  14052. * WebCore.gypi: Ditto.
  14053. * WebCore.pro: Ditto.
  14054. * WebCore.vcproj/WebCore.vcproj: Ditto.
  14055. * WebCore.xcodeproj/project.pbxproj: Ditto.
  14056. * rendering/RenderSVGResource.cpp: Copied from svg/graphics/SVGPaintServer.cpp.
  14057. * rendering/RenderSVGResourceGradient.cpp: Copied from svg/graphics/SVGPaintServerGradient.cpp.
  14058. * rendering/RenderSVGResourceGradient.h: Copied from svg/graphics/SVGPaintServerGradient.h.
  14059. * rendering/RenderSVGResourceLinearGradient.cpp: Copied from svg/graphics/SVGPaintServerLinearGradient.cpp.
  14060. * rendering/RenderSVGResourceLinearGradient.h: Copied from svg/graphics/SVGPaintServerLinearGradient.h.
  14061. * rendering/RenderSVGResourcePattern.cpp: Copied from svg/graphics/SVGPaintServerPattern.cpp.
  14062. * rendering/RenderSVGResourcePattern.h: Copied from svg/graphics/SVGPaintServerPattern.h.
  14063. * rendering/RenderSVGResourceRadialGradient.cpp: Copied from svg/graphics/SVGPaintServerRadialGradient.cpp.
  14064. * rendering/RenderSVGResourceRadialGradient.h: Copied from svg/graphics/SVGPaintServerRadialGradient.h.
  14065. * rendering/RenderSVGResourceSolidColor.cpp: Copied from svg/graphics/SVGPaintServerSolid.cpp.
  14066. * rendering/RenderSVGResourceSolidColor.h: Copied from svg/graphics/SVGPaintServerSolid.h.
  14067. * rendering/SVGRenderTreeAsText.cpp: Change include file names.
  14068. * svg/SVGFont.cpp: Ditto.
  14069. * svg/SVGGradientElement.cpp: Ditto.
  14070. * svg/SVGGradientElement.h: Ditto.
  14071. * svg/SVGLinearGradientElement.cpp: Ditto.
  14072. * svg/SVGPatternElement.cpp: Ditto.
  14073. * svg/SVGPatternElement.h: Ditto.
  14074. * svg/SVGRadialGradientElement.cpp: Ditto.
  14075. * svg/graphics/SVGPaintServer.cpp: Removed.
  14076. * svg/graphics/SVGPaintServerGradient.cpp: Removed.
  14077. * svg/graphics/SVGPaintServerGradient.h: Removed.
  14078. * svg/graphics/SVGPaintServerLinearGradient.cpp: Removed.
  14079. * svg/graphics/SVGPaintServerLinearGradient.h: Removed.
  14080. * svg/graphics/SVGPaintServerPattern.cpp: Removed.
  14081. * svg/graphics/SVGPaintServerPattern.h: Removed.
  14082. * svg/graphics/SVGPaintServerRadialGradient.cpp: Removed.
  14083. * svg/graphics/SVGPaintServerRadialGradient.h: Removed.
  14084. * svg/graphics/SVGPaintServerSolid.cpp: Removed.
  14085. * svg/graphics/SVGPaintServerSolid.h: Removed.
  14086. * svg/graphics/SVGResourceListener.h: Removed.
  14087. 2010-04-22 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
  14088. Reviewed by Simon Hausmann.
  14089. [Qt] Hide the OpenGL and QtMultimedia dependencies from syncqt.
  14090. This prevents the dependent headers from being included by
  14091. qt/include/QtWebKit/QtWebKit
  14092. * WebCore.pro:
  14093. 2010-04-22 Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
  14094. Reviewed by Adam Roben.
  14095. EFL does not support PluginDatabase yet.
  14096. http://webkit.org/b/37854
  14097. No behavior changes, so no new tests were added.
  14098. * loader/FrameLoader.cpp:
  14099. (WebCore::FrameLoader::defaultObjectContentType):
  14100. 2010-04-22 Ilya Tikhonovsky <loislo@chromium.org>
  14101. Reviewed by Yury Semikhatsky.
  14102. Web Inspector: Timeline scrolling speed is slow if it has more than 1k timeline marks.
  14103. https://bugs.webkit.org/show_bug.cgi?id=37924
  14104. * inspector/front-end/TimelineGrid.js:
  14105. (WebInspector.TimelineGrid.prototype.updateDividers):
  14106. (WebInspector.TimelineGrid.prototype.addEventDividers):
  14107. * inspector/front-end/TimelineOverviewPane.js:
  14108. (WebInspector.TimelineOverviewPane.prototype.updateEventDividers):
  14109. * inspector/front-end/TimelinePanel.js:
  14110. (WebInspector.TimelinePanel.prototype._updateEventDividers):
  14111. (WebInspector.TimelinePanel.prototype._refresh):
  14112. 2010-04-22 Kenneth Rohde Christiansen <kenneth@webkit.org>
  14113. Reviewed by Simon Fraser.
  14114. Rename window.media to window.styleMedia
  14115. https://bugs.webkit.org/show_bug.cgi?id=36187
  14116. It has been defined that the AbstractView media extension
  14117. defined in the CSSOM View spec should be renamed to styleMedia.
  14118. This patch does that and updates the current layout tests
  14119. making use of it.
  14120. * page/AbstractView.idl:
  14121. * page/DOMWindow.cpp:
  14122. (WebCore::DOMWindow::styleMedia):
  14123. * page/DOMWindow.h:
  14124. * page/DOMWindow.idl:
  14125. 2010-04-22 Anton Muhin <antonm@chromium.org>
  14126. Reviewed by Adam Barth.
  14127. [v8] Do not pass empty handle into SetHiddenValue which would crash.
  14128. https://bugs.webkit.org/show_bug.cgi?id=37801
  14129. * bindings/v8/V8AbstractEventListener.cpp:
  14130. (WebCore::V8AbstractEventListener::handleEvent): add couple of asserts to check for unexpected paths
  14131. (WebCore::V8AbstractEventListener::invokeEventHandler): bail out of jsEvent is empty handle
  14132. 2010-04-22 Stephan Aßmus <superstippi@gmx.de>
  14133. Reviewed by David Levin.
  14134. [Haiku] Implement ImageBuffer support
  14135. https://bugs.webkit.org/show_bug.cgi?id=35288
  14136. Covered by existing tests.
  14137. Complete implementation of ImageBuffer for Haiku. Uses StillImage
  14138. class to export a WebCore::Image and associated GraphicsContext
  14139. to perform arbitrary drawing in the offscreen BBitmap buffer.
  14140. * platform/graphics/haiku/ImageBufferData.h:
  14141. * platform/graphics/haiku/ImageBufferHaiku.cpp,
  14142. (WebCore::ImageBufferData::ImageBufferData),
  14143. (WebCore::ImageBufferData::~ImageBufferData),
  14144. (WebCore::ImageBuffer::ImageBuffer),
  14145. (WebCore::ImageBuffer::~ImageBuffer),
  14146. (WebCore::ImageBuffer::context),
  14147. (WebCore::ImageBuffer::image):
  14148. Implementation uses offscreen BBitmap and BView, wraps StillImage
  14149. around those to provide WebCore::Image interface.
  14150. (WebCore::ImageBuffer::platformTransformColorSpace):
  14151. (WebCore::convertFromData):
  14152. Method just performs BGRA <-> RGBA conversion.
  14153. (WebCore::convertFromInternalData):
  14154. Method just performs BGRA <-> RGBA conversion and handles
  14155. pre-multiplying the color values if requested.
  14156. (WebCore::convertToInternalData):
  14157. Method just performs BGRA <-> RGBA conversion and handles
  14158. de.multiplying the color values if requested.
  14159. (WebCore::getImageData):
  14160. Common code for the next two methods.
  14161. (WebCore::ImageBuffer::getUnmultipliedImageData),
  14162. (WebCore::ImageBuffer::getPremultipliedImageData):
  14163. Implemented.
  14164. (WebCore::putImageData):
  14165. Common code for the next two methods.
  14166. (WebCore::ImageBuffer::putUnmultipliedImageData),
  14167. (WebCore::ImageBuffer::putPremultipliedImageData):
  14168. Implemented.
  14169. (WebCore::ImageBuffer::toDataURL):
  14170. Uses Haiku "Translation Kit" to convert image data to data
  14171. of the requested mime type.
  14172. 2010-04-22 Adam Barth <abarth@webkit.org>
  14173. Unreviewed, rolling out r58069.
  14174. http://trac.webkit.org/changeset/58069
  14175. https://bugs.webkit.org/show_bug.cgi?id=27751
  14176. Broke compile on Windows.
  14177. * WebCore.base.exp:
  14178. * editing/EditorCommand.cpp:
  14179. (WebCore::supportedPaste):
  14180. (WebCore::createCommandMap):
  14181. * page/Settings.cpp:
  14182. (WebCore::Settings::Settings):
  14183. * page/Settings.h:
  14184. 2010-04-22 Abhishek Arya <inferno@chromium.org>
  14185. Reviewed by Adam Barth.
  14186. Add support for controlling clipboard access from javascript.
  14187. Clipboard access from javascript is disabled by default.
  14188. https://bugs.webkit.org/show_bug.cgi?id=27751
  14189. Test: editing/execCommand/clipboard-access.html
  14190. * WebCore.base.exp:
  14191. * editing/EditorCommand.cpp:
  14192. (WebCore::supportedCopyCut):
  14193. (WebCore::supportedPaste):
  14194. (WebCore::createCommandMap):
  14195. * page/Settings.cpp:
  14196. (WebCore::Settings::Settings):
  14197. (WebCore::Settings::setJavaScriptCanAccessClipboard):
  14198. * page/Settings.h:
  14199. (WebCore::Settings::javaScriptCanAccessClipboard):
  14200. 2010-04-22 Stephan Aßmus <superstippi@gmx.de>
  14201. Reviewed by David Levin.
  14202. [Haiku] Improve SimpleFontDataHaiku
  14203. https://bugs.webkit.org/show_bug.cgi?id=37411
  14204. Covered by existing tests.
  14205. * platform/graphics/haiku/SimpleFontDataHaiku.cpp:
  14206. - Cleaned up includes
  14207. - Removed prototype "charUnicodeToUTF8HACK"
  14208. (WebCore::SimpleFontData::platformInit):
  14209. - Use const BFont pointer
  14210. (WebCore::SimpleFontData::smallCapsFontData):
  14211. - "fontPlatformData" was leaked. It is only
  14212. used as the key for the font cache lookup.
  14213. (WebCore::SimpleFontData::platformMetricsForGlyph):
  14214. - Use existing WebCore encoding infrastructure
  14215. instead of adding a hack for Haiku.
  14216. 2010-04-21 Steve Block <steveblock@google.com>
  14217. Reviewed by Kenneth Rohde Christiansen.
  14218. Replace Geolocation::suspend()/resume() which are required by Android.
  14219. https://bugs.webkit.org/show_bug.cgi?id=37942
  14220. These methods were removed in Bug 36255.
  14221. Build fix only, no new tests.
  14222. * page/Geolocation.cpp:
  14223. (WebCore::Geolocation::suspend):
  14224. (WebCore::Geolocation::resume):
  14225. * page/Geolocation.h:
  14226. 2010-04-21 Ray Rischpater <Raymond.Rischpater@Nokia.com>
  14227. In HTMLInputElement.cpp there are numerous style
  14228. violations.
  14229. This patch includes style changes to fix existing style
  14230. deviations in this file.
  14231. Rubber stamped by Darin Adler.
  14232. Fixes <https://bugs.webkit.org/show_bug.cgi?id=37881>
  14233. * html/HTMLInputElement.cpp:
  14234. 2010-04-21 Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
  14235. Reviewed by Adam Roben.
  14236. Add missing EFL WebCore file.
  14237. http://webkit.org/b/37854
  14238. No behavior changes, so no new tests were added.
  14239. * bindings/js/ScriptControllerEfl.cpp: Added.
  14240. (WebCore::ScriptController::createScriptInstanceForWidget):
  14241. 2010-04-21 Simon Fraser <simon.fraser@apple.com>
  14242. Reviewed by Dan Bernstein.
  14243. Printing Core Animation-based plug-ins is broken
  14244. https://bugs.webkit.org/show_bug.cgi?id=37967
  14245. When we do a "flattening" paint because of printing, we need to stash
  14246. the flattening flag in the FrameView's m_paintBehavior, because
  14247. WebBaseNetscapePluginView needs to find it there to decide whether
  14248. to grab a bitmap for printing, for CA plug-ins.
  14249. * page/FrameView.cpp:
  14250. (WebCore::FrameView::paintContents):
  14251. 2010-04-21 François Sausset <sausset@gmail.com>
  14252. Reviewed by Kenneth Rohde Christiansen.
  14253. Fix to take into account a change made in "StringImpl".
  14254. https://bugs.webkit.org/show_bug.cgi?id=37763
  14255. * mathml/RenderMathMLOperator.cpp:
  14256. (WebCore::RenderMathMLOperator::updateFromElement):
  14257. 2010-04-21 Andy Estes <aestes@apple.com>
  14258. Reviewed by Darin Adler.
  14259. Create a template for creating reference-counted Windows GDI handles.
  14260. Refactor RefCountedHFONT to use this template.
  14261. https://bugs.webkit.org/show_bug.cgi?id=37952
  14262. No change in behavior.
  14263. * WebCore.vcproj/WebCore.vcproj: Add RefCountedHFONT.h
  14264. * platform/graphics/cairo/FontPlatformData.h:
  14265. (WebCore::FontPlatformData::hfont): Refactor to return m_hfont->handle() instead of m_hfont->hfont().
  14266. * platform/graphics/cg/FontPlatformData.h:
  14267. (WebCore::FontPlatformData::hfont): Same.
  14268. * platform/graphics/win/FontPlatformDataCGWin.cpp:
  14269. (WebCore::FontPlatformData::FontPlatformData): Instantiate m_hfont with a RefCountedGDIHandle<HFONT>.
  14270. * platform/graphics/win/FontPlatformDataWin.cpp:
  14271. (WebCore::FontPlatformData::FontPlatformData): Same.
  14272. * platform/graphics/win/RefCountedGDIHandle.h: Added. Interface is identical to RefCountedHFONT with exception of renaming hfont() to handle().
  14273. (WebCore::RefCountedGDIHandle::create):
  14274. (WebCore::RefCountedGDIHandle::createDeleted):
  14275. (WebCore::RefCountedGDIHandle::~RefCountedGDIHandle):
  14276. (WebCore::RefCountedGDIHandle::handle): Return the GDI handle.
  14277. (WebCore::RefCountedGDIHandle::hash):
  14278. (WebCore::RefCountedGDIHandle::RefCountedGDIHandle):
  14279. * platform/graphics/win/RefCountedHFONT.h: Removed.
  14280. 2010-04-21 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  14281. Reviewed by Darin Adler.
  14282. Fix build if NPAPI support is disabled
  14283. https://bugs.webkit.org/show_bug.cgi?id=36621
  14284. No new tests, this is a build fix.
  14285. Re-submit r56585 with fix for Chromium.
  14286. * plugins/PluginView.cpp: Guard getValueStatic() with
  14287. NETSCAPE_PLUGIN_API
  14288. (WebCore::PluginView::getValue):
  14289. * plugins/PluginView.h: Guard getValue() with NETSCAPE_PLUGIN_API
  14290. * plugins/PluginViewNone.cpp: Guard platformGetValue() and
  14291. platformGetValueStatic with NETSCAPE_PLUGIN_API;
  14292. Guard privateBrowsingStateChanged() and setJavaScriptPaused() with
  14293. PLATFORM(MAC) or PLATFORM(CHROMIUM)
  14294. 2010-04-21 David Yonge-Mallo <davinci@chromium.org>
  14295. Reviewed by Dan Bernstein.
  14296. ZWNJ - Display non-printing, invisible character
  14297. https://bugs.webkit.org/show_bug.cgi?id=16131
  14298. Fix the (non)display of glyphs for ZWJ and ZWNJ in simple font code path.
  14299. Tests: fast/text/format-control.html
  14300. fast/text/zero-width-characters.html
  14301. * platform/graphics/Font.h:
  14302. (WebCore::Font::operator!=):
  14303. (WebCore::Font::treatAsZeroWidthSpace): treat ZWNJ and ZWJ as ZWSP.
  14304. * platform/graphics/GlyphPageTreeNode.cpp:
  14305. (WebCore::GlyphPageTreeNode::initializePage): added ZWNJ and ZWJ.
  14306. * platform/text/CharacterNames.h: added ZWNJ and ZWJ.
  14307. 2010-04-21 Charles Wei <charles.wei@torchmobile.com.cn>
  14308. Reviewed by George Staikos.
  14309. Fix webkit build problem when xhtmlmp enabled, which is introduced by revision 57927, for
  14310. bug fix of 37175 , which seperates DocumentWriter from FrameLoader
  14311. https://bugs.webkit.org/show_bug.cgi?id=37915
  14312. No new tests since this only fixes the build problem.
  14313. * dom/Document.cpp:
  14314. (WebCore::Document::isXHTMLMPDocument):
  14315. 2010-04-21 Shinichiro Hamaji <hamaji@chromium.org>
  14316. Reviewed by Darin Adler.
  14317. Call sites of TextIterator constructor are difficult to read
  14318. https://bugs.webkit.org/show_bug.cgi?id=37909
  14319. Now we use enum parameters instead of boolean parameters and
  14320. boolean version of constructors are eliminated.
  14321. This change also changes the names of boolean members so they are
  14322. now third person singular.
  14323. No new tests because this is just a refactoring.
  14324. * WebCore.base.exp:
  14325. * editing/TextIterator.cpp:
  14326. (WebCore::TextIterator::TextIterator):
  14327. (WebCore::TextIterator::advance):
  14328. (WebCore::TextIterator::handleReplacedElement):
  14329. (WebCore::TextIterator::shouldRepresentNodeOffsetZero):
  14330. (WebCore::TextIterator::shouldEmitSpaceBeforeAndAfterNode):
  14331. (WebCore::TextIterator::handleNonTextNode):
  14332. (WebCore::TextIterator::exitNode):
  14333. (WebCore::TextIterator::emitCharacter):
  14334. (WebCore::TextIterator::emitText):
  14335. (WebCore::CharacterIterator::CharacterIterator):
  14336. (WebCore::TextIterator::rangeLength):
  14337. (WebCore::TextIterator::rangeFromLocationAndLength):
  14338. (WebCore::findPlainText):
  14339. * editing/TextIterator.h:
  14340. (WebCore::):
  14341. * editing/VisibleSelection.cpp:
  14342. (WebCore::VisibleSelection::appendTrailingWhitespace):
  14343. * editing/visible_units.cpp:
  14344. (WebCore::nextBoundary):
  14345. 2010-04-21 Jesus Sanchez-Palencia <jesus@webkit.org>
  14346. Reviewed by Kenneth Rohde Christiansen.
  14347. Add PageClientQt files.
  14348. [Qt] PageClientQt specific implementation for QWidget
  14349. https://bugs.webkit.org/show_bug.cgi?id=37858
  14350. * WebCore.pro:
  14351. 2010-04-21 Diego Escalante Urrelo <descalante@igalia.com>
  14352. Reviewed by Xan Lopez.
  14353. [Gtk] Evaluate and create tests for all the AtkRole's implemented by
  14354. WebKitGtk
  14355. https://bugs.webkit.org/show_bug.cgi?id=34449
  14356. Implement ATK_ROLE_SEPARATOR.
  14357. * accessibility/AccessibilityRenderObject.cpp:
  14358. (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
  14359. * accessibility/gtk/AccessibilityObjectAtk.cpp:
  14360. (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):
  14361. 2010-04-21 David Leong <david.leong@nokia.com>
  14362. Reviewed by Simon Hausmann.
  14363. [Qt] Symbian apps crash on exit due to a bad qObject_cast.
  14364. https://bugs.webkit.org/show_bug.cgi?id=37303
  14365. Added check for NULL to avoid the crash. Reworked to fix memory leak
  14366. * plugins/symbian/PluginViewSymbian.cpp:
  14367. (WebCore::PluginView::platformDestroy):
  14368. 2009-04-21 Chris Fleizach <cfleizach@apple.com>
  14369. Reviewed by Alexey Proskuryakov.
  14370. aria-liveregion-notifications.html fails on leopard release bot
  14371. https://bugs.webkit.org/show_bug.cgi?id=37112
  14372. Change the method that DRT uses to monitor AX notifications so that its robust
  14373. by just sending out NSNotification that can be listened to by anyone, instead
  14374. of keeping a static function pointer around.
  14375. This change is aimed to avoid flakiness seen in DRT when the notification handlers
  14376. are not being called at the appropriate time.
  14377. Tests: platform/mac/accessibility/aria-liveregions-addedelement.html
  14378. platform/mac/accessibility/aria-liveregions-changedalt.html
  14379. platform/mac/accessibility/aria-liveregions-changedtext.html
  14380. platform/mac/accessibility/aria-liveregions-removedelement.html
  14381. * accessibility/mac/AccessibilityObjectWrapper.h:
  14382. * accessibility/mac/AccessibilityObjectWrapper.mm:
  14383. (-[AccessibilityObjectWrapper accessibilitySetShouldRepostNotifications:]):
  14384. (-[AccessibilityObjectWrapper accessibilityPostedNotification:]):
  14385. 2010-04-21 Gavin Barraclough <barraclough@apple.com>
  14386. Reviewed by NOBODY (Leopard build fix).
  14387. Remove old exports.
  14388. * WebCore.base.exp:
  14389. 2010-04-21 Gavin Barraclough <barraclough@apple.com>
  14390. Reviewed by Darin Adler.
  14391. Bug 37949 - Do no copy strings into a shared buffer when converting UStrings to Strings
  14392. UString and String now have the same internal representation; Just re-wrap the internal impl.
  14393. * bindings/js/JSDOMBinding.cpp:
  14394. (WebCore::jsStringSlowCase):
  14395. * bindings/js/JSDOMBinding.h:
  14396. (WebCore::ustringToString):
  14397. (WebCore::stringToUString):
  14398. (WebCore::identifierToString):
  14399. (WebCore::ustringToAtomicString):
  14400. (WebCore::identifierToAtomicString):
  14401. 2010-04-21 Mark Rowe <mrowe@apple.com>
  14402. Reviewed by Eric Carlson.
  14403. <rdar://problem/7313430> Many crashes in Safari inside Flip4Mac below -[NSAlert didEndAlert:returnCode:contextInfo:]
  14404. A manual test case is required here as the Flip4Mac plug-in displays an alert, and some manual tweaking of the plug-in's
  14405. preference file on disk is often required to reproduce the bug.
  14406. * manual-tests/plugins/flip4mac-update-alert-over-navigation.html: Added.
  14407. 2010-04-21 Mark Rowe <mrowe@apple.com>
  14408. Reviewed by Maciej Stachowiak.
  14409. <rdar://problem/7856151> REGRESSION: NPP_Destroy is not called when page navigates when plug-in is displaying modal dialog
  14410. This is a manual test case as I was not able to construct an automated test that reproduced the same issue without displaying
  14411. a modal dialog on-screen.
  14412. * manual-tests/plugins/timeout-dialog-displayed-over-navigation.html: Added.
  14413. * manual-tests/plugins/timeout-dialog-displayed-over-navigation.swf: Added.
  14414. 2010-04-21 Sam Weinig <sam@webkit.org>
  14415. Reviewed by Geoffrey Garen.
  14416. Fix for https://bugs.webkit.org/show_bug.cgi?id=37937
  14417. Wean JavaScriptCore off calls to isMainThread()
  14418. No change in behavior.
  14419. * bindings/js/JSDOMWindowBase.cpp:
  14420. (WebCore::JSDOMWindowBase::commonJSGlobalData):
  14421. Explicitly set a large stack type for the common JSGlobalData and
  14422. set the currently running thread as the exclusive thread for its
  14423. execution.
  14424. * bindings/js/WorkerScriptController.cpp:
  14425. (WebCore::WorkerScriptController::WorkerScriptController):
  14426. Explicitly set a small stack type for the workers JSGlobalData.
  14427. 2010-04-21 Gavin Barraclough <barraclough@apple.com>
  14428. Reviewed by NOBODY (Qt build fix).
  14429. * WebCore.gypi:
  14430. * WebCore.pro:
  14431. * platform/text/qt/StringQt.cpp: Removed.
  14432. 2010-04-20 Gavin Barraclough <barraclough@apple.com>
  14433. Reviewed by Oliver Hunt, Darin Adler.
  14434. Bug 37906 - Remove JSC::UStringImpl; unify with StringImpl.
  14435. Add include for StringHash.h.
  14436. * WebCore.xcodeproj/project.pbxproj:
  14437. * bridge/c/c_class.cpp:
  14438. 2010-04-21 Alexey Proskuryakov <ap@apple.com>
  14439. Tiger build fix.
  14440. * platform/network/mac/ResourceHandleMac.mm:
  14441. (WebCore::createNSURLConnection): Fixed a typo, named an argument.
  14442. (WebCore::ResourceHandle::start): Moved shouldUseCredentialStorage out of #if, since it's
  14443. now passed to createNSURLConneciton() on all platforms (and then ignored on Tiger).
  14444. 2010-04-21 Alexey Proskuryakov <ap@apple.com>
  14445. Reviewed by Adam Roben.
  14446. Windows build fix.
  14447. * platform/network/cf/ResourceHandleCFNet.cpp: Declare CFURLConnectionCreateWithProperties
  14448. for now, as it's mistakenly missing from WebKitSupportLibrary headers.
  14449. 2010-04-21 Dimitri Glazkov <dglazkov@chromium.org>
  14450. Reviewed by Darin Adler.
  14451. REGRESSION(r57292): Safari/Win and Chromium/Win no longer pass the acid3 test.
  14452. https://bugs.webkit.org/show_bug.cgi?id=37902
  14453. The issue is due to MSVC creating enums as signed. The fix is to store the value
  14454. as unsigned.
  14455. Test: http://acid3.acidtests.org/
  14456. * rendering/style/RenderStyle.h:
  14457. (WebCore::InheritedFlags): Changed type of _insideLink to unsigned.
  14458. 2010-04-21 Alexey Proskuryakov <ap@apple.com>
  14459. Reviewed by Brady Eidson.
  14460. https://bugs.webkit.org/show_bug.cgi?id=37933
  14461. <rdar://problem/7719540> XMLHttpRequest.withCredentials should be better enforced.
  14462. Test: http/tests/xmlhttprequest/cross-origin-authorization-with-embedder.html
  14463. This improves integration between ResourceHandle and Apple networking libraries.
  14464. * platform/network/cf/ResourceHandleCFNet.cpp:
  14465. (WebCore::createConnectionProperties): A new helper for creating connection properties dictionary.
  14466. (WebCore::ResourceHandle::start): Pass connection properties.
  14467. (WebCore::WebCoreSynchronousLoader::load): Ditto.
  14468. * platform/network/mac/ResourceHandleMac.mm:
  14469. (WebCore::createNSURLConnection): Factor out OS version dependent code for creating
  14470. NSURLConnection. Tell NSURLConnection about credential policy upfront.
  14471. (WebCore::ResourceHandle::start): Use the new function.
  14472. (+[WebCoreSynchronousLoader loadRequest:allowStoredCredentials:returningResponse:error:]): Ditto.
  14473. 2010-04-21 Xiaomei Ji <xji@chromium.org>
  14474. Reviewed by Dimitri Glazkov
  14475. This patch fixes [chromium] RTL <select> dropdown box expands to right
  14476. instead of left.
  14477. https://bugs.webkit.org/show_bug.cgi?id=37232
  14478. No automatic test is possible.
  14479. * manual-tests/select_dropdown_box_alignment.html: Added.
  14480. * platform/chromium/PopupMenuChromium.cpp:
  14481. (WebCore::PopupContainer::layout): Adjust the x-axis of dropdown box
  14482. for RTL.
  14483. 2010-04-21 anton muhin <antonm@google.com>
  14484. Reviewed by Adam Barth.
  14485. [v8] Bail out if fetching of Object.prototype fails.
  14486. https://bugs.webkit.org/show_bug.cgi?id=37661
  14487. If for any reason we failed to fetch Object.prototype, context cannot
  14488. be properly initialized and we bail out.
  14489. * bindings/v8/V8DOMWindowShell.cpp:
  14490. (WebCore::V8DOMWindowShell::initContextIfNeeded): bail out if installHiddenObjectPrototype failed
  14491. (WebCore::V8DOMWindowShell::installHiddenObjectPrototype): bail out if failed to fetch Object.prototype
  14492. * bindings/v8/V8DOMWindowShell.h: return false if installHiddenObjectPrototype failed
  14493. 2010-04-21 Timothy Hatcher <timothy@apple.com>
  14494. Make UserContentURLPattern correctly check for subdomains and the URL
  14495. has the same suffix as the pattern. Also improve the parsing of the host.
  14496. https://bugs.webkit.org/show_bug.cgi?id=37357
  14497. Reviewed by Darin Adler.
  14498. * page/UserContentURLPattern.cpp:
  14499. (WebCore::UserContentURLPattern::parse): Simplify the subdomain pattern parsing to
  14500. simply check for "*" only or a "*." prefix and then do a substring.
  14501. (WebCore::UserContentURLPattern::matchesHost): Check that the host has a "." in the
  14502. position before the suffix to ensure it a subdomain and not just a suffix match.
  14503. 2010-04-21 Xan Lopez <xlopez@igalia.com>
  14504. Try to fix compilation on GTK+ debug bots.
  14505. * bindings/gobject/WebKitDOMBinding.cpp:
  14506. (WebKit::createWrapper):
  14507. 2010-04-21 Jakub Wieczorek <jwieczorek@webkit.org>
  14508. Reviewed by Darin Adler.
  14509. List item markers are not always updated after changes in the DOM.
  14510. https://bugs.webkit.org/show_bug.cgi?id=37060
  14511. In particular, they would not be updated when adding/removing an item
  14512. that is not a direct child of the list element.
  14513. Tests: fast/lists/ol-nested-items-dynamic-insert.html
  14514. fast/lists/ol-nested-items-dynamic-remove.html
  14515. fast/lists/ol-nested-items.html
  14516. fast/lists/ol-nested-list-dynamic-insert.html
  14517. fast/lists/ol-nested-list-dynamic-remove.html
  14518. fast/lists/ol-nested-list.html
  14519. * rendering/RenderListItem.cpp:
  14520. (WebCore::updateListMarkerNumbers): Change it to traverse the whole subtree of a list, not only siblings of an item.
  14521. * rendering/RenderListItem.h:
  14522. * rendering/RenderObject.cpp: Move the updateListMarkerNumbers function to RenderListItem.cpp.
  14523. (WebCore::RenderObject::addChild): Move the code updating list markers to RenderObjectChildList for consistency.
  14524. * rendering/RenderObjectChildList.cpp: Move the updateListMarkerNumbers function to RenderListItem.cpp.
  14525. (WebCore::RenderObjectChildList::removeChildNode): Pass the actual node being removed, not the next sibling.
  14526. (WebCore::RenderObjectChildList::appendChildNode): Pass the actual node being added, not the next sibling.
  14527. (WebCore::RenderObjectChildList::insertChildNode): Pass the actual node being added, not the next sibling.
  14528. * rendering/RenderTreeAsText.cpp:
  14529. (WebCore::markerTextForListItem):
  14530. 2010-04-21 Xan Lopez <xlopez@igalia.com>
  14531. Reviewed by Adam Barth.
  14532. [GTK] GObject DOM bindings
  14533. https://bugs.webkit.org/show_bug.cgi?id=33590
  14534. Initial version of the GObject DOM bindings.
  14535. Only bindings for Node.idl and a few of its dependencies are
  14536. provided, without public API to access them at the
  14537. moment. References to the Document interfaces and to
  14538. EventListeners in Node.idl are ignored for GObject to make the
  14539. initial patch as small as possible, but will be enabled in a
  14540. follow-up patch.
  14541. * GNUmakefile.am:
  14542. * bindings/gobject/ConvertToUTF8String.cpp: Added.
  14543. (convertToUTF8String):
  14544. * bindings/gobject/ConvertToUTF8String.h: Added.
  14545. * bindings/gobject/WebKitDOMBinding.cpp: Added.
  14546. (WebKit::domObjects):
  14547. (WebKit::DOMObjectCache::get):
  14548. (WebKit::DOMObjectCache::put):
  14549. (WebKit::DOMObjectCache::forget):
  14550. (WebKit::createWrapper):
  14551. (WebKit::kit):
  14552. * bindings/gobject/WebKitDOMBinding.h: Added.
  14553. * bindings/gobject/WebKitDOMObject.cpp: Added.
  14554. (webkit_dom_object_init):
  14555. (webkit_dom_object_class_init):
  14556. * bindings/gobject/WebKitDOMObject.h: Added.
  14557. * bindings/scripts/CodeGeneratorGObject.pm: Added.
  14558. * bindings/scripts/gobject-generate-headers.pl: Added.
  14559. * dom/Node.idl:
  14560. 2010-04-21 Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
  14561. Reviewed by Xan Lopez.
  14562. Wrong header being included in FontPlatformDataCairo.cpp
  14563. https://bugs.webkit.org/show_bug.cgi?id=37829
  14564. No behavior changes, so no new tests were added.
  14565. * platform/graphics/cairo/FontPlatformDataCairo.cpp:
  14566. 2010-04-21 Adam Roben <aroben@apple.com>
  14567. Fix leaks of FilterData/SVGFilterBuilder in RenderSVGResourceFilter
  14568. Fixes <http://webkit.org/b/37922>.
  14569. Reviewed by Dave Hyatt.
  14570. * rendering/RenderSVGResourceFilter.cpp:
  14571. (WebCore::RenderSVGResourceFilter::applyResource): Use an OwnPtr to
  14572. hold the heap-allocated FilterData object, so that we won't leak it
  14573. when we bail out of this function on error.
  14574. 2010-04-21 Zoltan Herczeg <zherczeg@webkit.org>
  14575. Reviewed by Kenneth Rohde Christiansen.
  14576. [Qt] startAnimation() is not needed to preceede nativeImageForCurrentFrame()
  14577. https://bugs.webkit.org/show_bug.cgi?id=37844
  14578. nativeImageForCurrentFrame() resets the m_decoder parameter under Qt,
  14579. which is required by startAnimation() to detect frame and repetition counts.
  14580. Hence, Image::drawTiled cannot start animations under Qt:
  14581. <html><body background="animated.gif"></body></html> does not work
  14582. * platform/graphics/qt/ImageDecoderQt.cpp:
  14583. (WebCore::ImageDecoderQt::internalHandleCurrentImage):
  14584. 2010-04-21 Benjamin Poulain <ikipou@gmail.com>
  14585. Reviewed by Simon Fraser.
  14586. Update of fixed elements is not made correctly when the page has been scrolled
  14587. https://bugs.webkit.org/show_bug.cgi?id=36783
  14588. When a fixed element was updated, the old geometry was not repainted correctly
  14589. because the repaint rect was cached during the layout and not updated when
  14590. scrolling.
  14591. The rect is now updated while scrolling so the region updated correspond to the
  14592. region of the element on the screen.
  14593. The method RenderLayer::updateRepaintRectsAfterScroll() updates
  14594. the repaint rect of all fixed tree after scroll.
  14595. Tests: fast/repaint/fixed-child-move-after-scroll.html
  14596. fast/repaint/fixed-child-of-fixed-move-after-scroll.html
  14597. fast/repaint/fixed-child-of-transformed-move-after-scroll.html
  14598. fast/repaint/fixed-move-after-scroll.html
  14599. * page/FrameView.cpp:
  14600. (WebCore::FrameView::scrollPositionChanged):
  14601. * rendering/RenderLayer.cpp:
  14602. (WebCore::RenderLayer::updateRepaintRectsAfterScroll):
  14603. * rendering/RenderLayer.h:
  14604. 2010-04-21 Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
  14605. Reviewed by Adam Roben.
  14606. Update EFL port to match recent API changes.
  14607. http://webkit.org/b/37853
  14608. No behavior changes, so no new tests were added.
  14609. * platform/efl/FileSystemEfl.cpp:
  14610. * platform/efl/LocalizedStringsEfl.cpp:
  14611. (WebCore::missingPluginText):
  14612. (WebCore::crashedPluginText):
  14613. * platform/efl/MIMETypeRegistryEfl.cpp:
  14614. (WebCore::MIMETypeRegistry::isApplicationPluginMIMEType):
  14615. * platform/graphics/efl/ImageEfl.cpp:
  14616. 2010-04-21 Avi Drissman <avi@chromium.org>
  14617. Reviewed by Simon Fraser.
  14618. JPG images fail to print in Chromium
  14619. https://bugs.webkit.org/show_bug.cgi?id=37796
  14620. Image sources of JPG data with final=false fail to draw into PDF contexts even if later updated (<rdar://problem/7874035>). Therefore, destroy and re-create the image source when the final data arrives.
  14621. * platform/graphics/cg/ImageSourceCG.cpp:
  14622. (WebCore::ImageSource::setData):
  14623. 2010-04-21 Marcus Bulach <bulach@chromium.org>
  14624. Reviewed by Nate Chapin.
  14625. EventSource needs to be marked as an ActiveDomType.
  14626. https://bugs.webkit.org/show_bug.cgi?id=37857
  14627. Existing layout tests (fast/eventsource and http/tests/eventsource/) should pass when compiling with eventsource enabled.
  14628. * bindings/scripts/CodeGeneratorV8.pm:
  14629. * bindings/v8/V8DOMWrapper.cpp:
  14630. * bindings/v8/custom/V8EventSourceConstructor.cpp:
  14631. (WebCore::V8EventSource::constructorCallback):
  14632. 2010-04-21 Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
  14633. Reviewed by Nikolas Zimmermann.
  14634. Add missing includes to platform/posix/FileSystemPOSIX.cpp
  14635. https://bugs.webkit.org/show_bug.cgi?id=37861
  14636. No behavior changes, so no new tests were added.
  14637. * platform/posix/FileSystemPOSIX.cpp:
  14638. 2010-04-21 No'am Rosenthal <noam.rosenthal@nokia.com>
  14639. Reviewed by Simon Fraser.
  14640. [Qt] Fix or remove the runtime flag for accelerated compositing.
  14641. This adds a way for a chrome client to disallow layers from becoming composited,
  14642. even if the settings enable accelerated compositing. This is necessary for platforms
  14643. where different views can be applied with the same settings to the same page.
  14644. We enable an API through ChromeClient to ask the chrome-client whether or not
  14645. it can render composited layers, which is taken into account when the compositor
  14646. decides whether or not to start compositing.
  14647. https://bugs.webkit.org/show_bug.cgi?id=37313
  14648. Pages under LayoutTests/compositing now work under QWebView, even when
  14649. QWebSettings::AcceleratedCompositingEnabled is on.
  14650. * page/ChromeClient.h:
  14651. (WebCore::ChromeClient::allowsAcceleratedCompositing):
  14652. * platform/qt/QWebPageClient.h:
  14653. (QWebPageClient::allowsAcceleratedCompositing):
  14654. * rendering/RenderLayerCompositor.cpp:
  14655. (WebCore::RenderLayerCompositor::canBeComposited):
  14656. 2010-04-21 Ryosuke Niwa <rniwa@webkit.org>
  14657. No review. Spurious whitespace was removed from project file.
  14658. * WebCore.xcodeproj/project.pbxproj:
  14659. 2010-04-20 Ryosuke Niwa <rniwa@webkit.org>
  14660. Reviewed by Eric Seidel.
  14661. [Qt] Build fix: warning on L933 of CompositeEditCommand.cpp
  14662. https://bugs.webkit.org/show_bug.cgi?id=37912
  14663. Replaced the ternary operator by an if statement because GCC was confused by the use of
  14664. ternary operator and producing warnings on Qt builds.
  14665. * WebCore.xcodeproj/project.pbxproj:
  14666. * editing/CompositeEditCommand.cpp:
  14667. (WebCore::CompositeEditCommand::moveParagraphs):
  14668. 2010-04-20 Ryosuke Niwa <rniwa@webkit.org>
  14669. Reviewed by Justin Garcia.
  14670. Nested <ul>s are mishandled when converted to <ol> using execCommand('insertorderedlist')
  14671. https://bugs.webkit.org/show_bug.cgi?id=19539
  14672. Fixes a bug where two consecutive lists are not merged if they have been converted
  14673. from ordered/unordered lists inside another list.
  14674. The bug was caused by InsertListCommand::doApply where it did not merge a newly inserted
  14675. list element and its neighbors. This patch adds code to doApply so that after inserting
  14676. the list element, it updates previousList and nextList to the outermost list elements around
  14677. insertionPos under the same enclosing list. Because the next and the previous list elements
  14678. are not necessarily visually next to the newly inserted element before moveParagraph moves
  14679. the paragraph into the new list element, doApply merges lists after moveParagraph is called.
  14680. Test: editing/execCommand/insert-lists-inside-another-list.html
  14681. * editing/InsertListCommand.cpp:
  14682. (WebCore::InsertListCommand::doApply): Modified as described above
  14683. * editing/htmlediting.cpp:
  14684. (WebCore::outermostEnclosingList): Added rootNode. Returns the outermost list element,
  14685. which is a descendent of rootNode.
  14686. * editing/htmlediting.h:
  14687. 2010-04-20 Alexey Proskuryakov <ap@apple.com>
  14688. Reviewed by Darin Adler.
  14689. https://bugs.webkit.org/show_bug.cgi?id=37776
  14690. <rdar://problem/7877716> REGRESSION: When using dvorak, keydown/keyup reports qwerty keyCodes
  14691. * platform/cocoa/KeyEventCocoa.mm: (WebCore::windowsKeyCodeForCharCode): Re-added mapping
  14692. for Roman letters and punctuation.
  14693. * platform/mac/KeyEventMac.mm: (WebCore::windowsKeyCodeForKeyEvent): Improved approximation
  14694. of IE behavior. Keyboard layouts that change location of Roman letters (like AZERTY or Dvorak)
  14695. also switch their keycodes. Also, restored Safari 4 behavior for punctuation. It's difficult
  14696. to match Windows for punctuation exactly, because keyboard layouts make arbitrary changes
  14697. to their keycodes.
  14698. 2010-04-20 Shinichiro Hamaji <hamaji@chromium.org>
  14699. Reviewed by Darin Adler and Alexey Proskuryakov.
  14700. A backslash in EUC-JP becomes to a yen sign when it is copied
  14701. https://bugs.webkit.org/show_bug.cgi?id=36419
  14702. Tests: editing/execCommand/transpose-backslash-with-euc.html
  14703. editing/pasteboard/copy-backslash-with-euc.html
  14704. * editing/Editor.cpp: Remove an unnecessary displayStringModifiedByEncoding calls.
  14705. (WebCore::Editor::addToKillRing):
  14706. * editing/TextIterator.cpp: TextIterator can use RenderText::textWithoutTranscoding and now plainText() uses this version
  14707. (WebCore::TextIterator::TextIterator):
  14708. (WebCore::TextIterator::init):
  14709. (WebCore::TextIterator::emitText):
  14710. (WebCore::plainTextToMallocAllocatedBuffer):
  14711. * editing/TextIterator.h:
  14712. (WebCore::):
  14713. * platform/mac/PasteboardMac.mm: Remove an unnecessary displayStringModifiedByEncoding call.
  14714. (WebCore::Pasteboard::writeSelection):
  14715. * platform/text/TextEncoding.h: Make backslashAsCurrencySymbol public.
  14716. * rendering/RenderText.cpp: Add RenderText::textWithoutTranscoding
  14717. (WebCore::RenderText::RenderText):
  14718. (WebCore::RenderText::updateNeedsTranscoding):
  14719. (WebCore::RenderText::styleDidChange):
  14720. (WebCore::isInlineFlowOrEmptyText):
  14721. (WebCore::RenderText::previousCharacter):
  14722. (WebCore::RenderText::setTextInternal):
  14723. (WebCore::RenderText::textWithoutTranscoding):
  14724. (WebCore::RenderText::transformText):
  14725. * rendering/RenderText.h:
  14726. * rendering/RenderTextControl.cpp: Remove an unnecessary displayStringModifiedByEncoding call.
  14727. (WebCore::RenderTextControl::setInnerTextValue):
  14728. (WebCore::RenderTextControl::finishText):
  14729. * rendering/RenderTextFragment.cpp:
  14730. (WebCore::RenderTextFragment::previousCharacter):
  14731. * rendering/RenderTextFragment.h:
  14732. 2010-04-20 Nate Chapin <japhet@chromium.org>
  14733. Reviewed by Dimitri Glazkov.
  14734. https://bugs.webkit.org/show_bug.cgi?id=37367
  14735. Fix style violations in code generated by CodeGeneratorV8.pm.
  14736. * bindings/scripts/CodeGeneratorV8.pm:
  14737. * bindings/v8/test/V8TestObj.cpp:
  14738. * bindings/v8/test/V8TestObj.h:
  14739. 2010-04-20 Sheriff Bot <webkit.review.bot@gmail.com>
  14740. Unreviewed, rolling out r57924.
  14741. http://trac.webkit.org/changeset/57924
  14742. https://bugs.webkit.org/show_bug.cgi?id=37898
  14743. It broke 3-4 test on all bot (Requested by Ossy on #webkit).
  14744. * page/AbstractView.idl:
  14745. * page/DOMWindow.cpp:
  14746. (WebCore::DOMWindow::media):
  14747. * page/DOMWindow.h:
  14748. * page/DOMWindow.idl:
  14749. 2010-04-20 Gavin Barraclough <barraclough@apple.com>
  14750. Reviewed by Oliver Hunt.
  14751. Bug 37895 - Share common code from UStringImplBase with StringImpl
  14752. Add forwarding header.
  14753. * ForwardingHeaders/wtf/text/StringImplBase.h: Added.
  14754. 2010-04-20 Adam Barth <abarth@webkit.org>
  14755. Unreviewed build fix fro Chromium.
  14756. * loader/DocumentWriter.cpp:
  14757. 2010-04-20 Pavel Feldman <pfeldman@chromium.org>
  14758. Reviewed by Timothy Hatcher.
  14759. Web Inspector: Support live edit while on a breakpoint, preserve breakpoints when adding new lines.
  14760. https://bugs.webkit.org/show_bug.cgi?id=37820
  14761. * inspector/front-end/ScriptsPanel.js:
  14762. (WebInspector.ScriptsPanel.prototype.editScriptLine.mycallback):
  14763. (WebInspector.ScriptsPanel.prototype.editScriptLine):
  14764. * inspector/front-end/TextViewer.js:
  14765. (WebInspector.TextViewer.prototype._handleDoubleClick):
  14766. (WebInspector.TextViewer.prototype._cancelEditingLine):
  14767. 2010-04-20 Adam Barth <abarth@webkit.org>
  14768. Reviewed by Eric Seidel.
  14769. Factor DocumentWriter out of FrameLoader
  14770. https://bugs.webkit.org/show_bug.cgi?id=37175
  14771. This patch separates the begin/write/end cycle of decoding network
  14772. bytes and putting them into a document from the rest of the loading
  14773. machinery. The code and state required to write bytes into a document
  14774. doesn't interact very much with the rest of the loading machinery.
  14775. No tests because there is no behavior change (hopefully!).
  14776. * Android.mk:
  14777. * GNUmakefile.am:
  14778. * WebCore.base.exp:
  14779. * WebCore.gypi:
  14780. * WebCore.pro:
  14781. * WebCore.vcproj/WebCore.vcproj:
  14782. * WebCore.xcodeproj/project.pbxproj:
  14783. * bindings/ScriptControllerBase.cpp:
  14784. (WebCore::ScriptController::executeIfJavaScriptURL):
  14785. * dom/Document.cpp:
  14786. (WebCore::Document::close):
  14787. * dom/ProcessingInstruction.cpp:
  14788. (WebCore::ProcessingInstruction::checkStyleSheet):
  14789. * dom/ScriptElement.cpp:
  14790. (WebCore::ScriptElementData::scriptCharset):
  14791. * html/HTMLLinkElement.cpp:
  14792. (WebCore::HTMLLinkElement::process):
  14793. * loader/DocLoader.cpp:
  14794. (WebCore::DocLoader::requestPreload):
  14795. * loader/DocumentLoader.cpp:
  14796. (WebCore::DocumentLoader::finishedLoading):
  14797. (WebCore::DocumentLoader::setupForReplaceByMIMEType):
  14798. * loader/DocumentWriter.cpp: Added.
  14799. * loader/DocumentWriter.h: Added.
  14800. * loader/FrameLoader.cpp:
  14801. (WebCore::FrameLoader::FrameLoader):
  14802. (WebCore::FrameLoader::init):
  14803. (WebCore::FrameLoader::clear):
  14804. (WebCore::FrameLoader::receivedFirstData):
  14805. (WebCore::FrameLoader::setURL):
  14806. (WebCore::FrameLoader::didBeginDocument):
  14807. (WebCore::FrameLoader::didEndDocument):
  14808. (WebCore::FrameLoader::willSetEncoding):
  14809. (WebCore::FrameLoader::addData):
  14810. (WebCore::FrameLoader::transitionToCommitted):
  14811. (WebCore::FrameLoader::open):
  14812. (WebCore::FrameLoader::finishedLoadingDocument):
  14813. (WebCore::FrameLoader::addExtraFieldsToRequest):
  14814. * loader/FrameLoader.h:
  14815. (WebCore::FrameLoader::writer):
  14816. (WebCore::FrameLoader::isDisplayingInitialEmptyDocument):
  14817. * loader/MediaDocument.cpp:
  14818. (WebCore::MediaDocument::replaceMediaElementTimerFired):
  14819. * loader/PluginDocument.cpp:
  14820. (WebCore::PluginTokenizer::createDocumentStructure):
  14821. * platform/network/FormDataBuilder.cpp:
  14822. (WebCore::FormDataBuilder::dataEncoding):
  14823. * svg/graphics/SVGImage.cpp:
  14824. (WebCore::SVGImage::dataChanged):
  14825. 2010-04-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
  14826. Reviewed by Simon Fraser.
  14827. Rename window.media to window.styleMedia
  14828. https://bugs.webkit.org/show_bug.cgi?id=36187
  14829. It has been defined that the AbstractView media extension
  14830. defined in the CSSOM View spec should be renamed to styleMedia.
  14831. This patch does that and updates the current layout tests
  14832. making use of it.
  14833. * page/AbstractView.idl:
  14834. * page/DOMWindow.cpp:
  14835. (WebCore::DOMWindow::styleMedia):
  14836. * page/DOMWindow.h:
  14837. * page/DOMWindow.idl:
  14838. 2010-04-20 Timothy Hatcher <timothy@apple.com>
  14839. Fix matching of "file:///*" patterns by not trying to compare the host. The host is
  14840. irrelevant for file URLs.
  14841. Also fix comparisons to be case insensitive.
  14842. https://bugs.webkit.org/show_bug.cgi?id=37889
  14843. Reviewed by Dave Hyatt.
  14844. * page/UserContentURLPattern.cpp:
  14845. (WebCore::UserContentURLPattern::parse): Use equalIgnoringCase when comparing for "file" schemes.
  14846. (WebCore::UserContentURLPattern::matches): Use equalIgnoringCase when comparing schemes. Only call
  14847. matchesHost if the scheme isn't "file".
  14848. (WebCore::UserContentURLPattern::matchesHost): Call equalIgnoringCase when comparing hosts. The endsWith
  14849. was already doing a case-insensitive compare, so existing tests worked though this path.
  14850. 2010-04-20 Justin Schuh <jschuh@chromium.org>
  14851. Reviewed by Adam Barth.
  14852. Invalid cast due to <video> inside <foreignObject> inside <svg> inside <img>
  14853. https://bugs.webkit.org/show_bug.cgi?id=37331
  14854. Added a setting to enable/disable media per-page and have the SVGImage
  14855. disable media for its dummy page. Also found and fixed a related bad
  14856. cast in the V8 bindings (JSC had a custom wrapper for this already).
  14857. Tests: media/svg-as-image-with-media-blocked.html
  14858. * dom/make_names.pl: Added media enabled check and V8 cast wrapper
  14859. * page/Settings.cpp: Added m_isMediaEnabled (defaults to true)
  14860. (WebCore::Settings::Settings):
  14861. (WebCore::Settings::setMediaEnabled):
  14862. * page/Settings.h:
  14863. (WebCore::Settings::isMediaEnabled):
  14864. * svg/graphics/SVGImage.cpp: Disables media in dummy page
  14865. (WebCore::SVGImage::dataChanged):
  14866. 2010-04-19 Antonio Gomes <tonikitoo@webkit.org>
  14867. Reviewed by Simon Fraser.
  14868. Spatial Navigation: at @updateFocusCandidateIfCloser make an assignment shortcut when FocusCandidate is null
  14869. https://bugs.webkit.org/show_bug.cgi?id=37802
  14870. In updateFocusCandidateIfCloser method, we do all bail out checks in the begining of
  14871. the method body. If after those bail out checks, no "best FocusCandidate" has been taken
  14872. yet (i.e. focusCandidate.isNull() == true), we can safely take the current candidate,
  14873. and exit earlier.
  14874. No behavior change, it is just a safe assignment shortcut.
  14875. * page/FocusController.cpp:
  14876. (WebCore::updateFocusCandidateIfCloser):
  14877. 2010-04-20 Simon Fraser <simon.fraser@apple.com>
  14878. Reviewed by Dan Bernstein.
  14879. Hook compositing layers together across iframes
  14880. https://bugs.webkit.org/show_bug.cgi?id=37878
  14881. First step: if an iframe's document goes into compositing mode, also throw the parent
  14882. document into compositing mode (all the way up to the root). This is required both
  14883. to preserve layering (since parent document content can obscure iframe content),
  14884. and so that we can eventually hook the layer trees together.
  14885. Test: compositing/iframes/composited-iframe.html
  14886. * rendering/RenderIFrame.h:
  14887. * rendering/RenderIFrame.cpp:
  14888. (WebCore::RenderIFrame::requiresLayer): In order to make an iframe composited, it also has to have
  14889. a RenderLayer, so must return |true| from requiresLayer().
  14890. (WebCore::RenderIFrame::requiresAcceleratedCompositing): Returns true if the content document
  14891. is in compositing mode.
  14892. (WebCore::RenderIFrame::isRenderIFrame): Required so that RenderLayerCompositor can check
  14893. if a renderer is an iframe.
  14894. (WebCore::toRenderIFrame): Required so that RenderLayerCompositor can cast to a RenderIFrame.
  14895. * rendering/RenderLayerCompositor.h:
  14896. * rendering/RenderLayerCompositor.cpp:
  14897. (WebCore::RenderLayerCompositor::enableCompositingMode): Call out to the RenderView when
  14898. the compositing mode changes, so that the parent document can update its compositing status.
  14899. (WebCore::RenderLayerCompositor::requiresCompositingLayer): Call requiresCompositingForIFrame().
  14900. (WebCore::RenderLayerCompositor::requiresCompositingForIFrame): Check to see if the iframe
  14901. wants to be composited.
  14902. * rendering/RenderObject.h:
  14903. (WebCore::RenderObject::isRenderIFrame): Base class returns false.
  14904. * rendering/RenderView.h:
  14905. * rendering/RenderView.cpp:
  14906. (WebCore::RenderView::compositingStateChanged): New method that allows an iframe to notify
  14907. its parent document that a recalcStyle is required, to update compositing state.
  14908. 2010-04-20 Gavin Barraclough <barraclough@apple.com>
  14909. Reviewed by NOBODY (build fix).
  14910. Speculative tiger build fix.
  14911. * WebCore.NPAPI.exp:
  14912. * WebCore.PluginHostProcess.exp:
  14913. * WebCore.base.exp:
  14914. 2010-04-20 Pavel Feldman <pfeldman@chromium.org>
  14915. Reviewed by Timothy Hatcher.
  14916. Web Inspector: add basic script editing capabilities to the front-end.
  14917. https://bugs.webkit.org/show_bug.cgi?id=37875
  14918. * bindings/js/ScriptDebugServer.cpp:
  14919. (WebCore::ScriptDebugServer::setBreakpoint):
  14920. (WebCore::ScriptDebugServer::removeBreakpoint):
  14921. * inspector/front-end/ScriptView.js:
  14922. (WebInspector.ScriptView):
  14923. (WebInspector.ScriptView.prototype._editLine):
  14924. (WebInspector.ScriptView.prototype._editLineComplete):
  14925. * inspector/front-end/ScriptsPanel.js:
  14926. (WebInspector.ScriptsPanel.prototype._resourceLoadingFinished):
  14927. (WebInspector.ScriptsPanel.prototype.canEditScripts):
  14928. (WebInspector.ScriptsPanel.prototype.editScriptLine):
  14929. * inspector/front-end/SourceFrame.js:
  14930. (WebInspector.SourceFrame):
  14931. (WebInspector.SourceFrame.prototype.updateContent):
  14932. (WebInspector.SourceFrame.prototype._createViewerIfNeeded):
  14933. * inspector/front-end/TextEditorHighlighter.js:
  14934. (WebInspector.TextEditorHighlighter):
  14935. (WebInspector.TextEditorHighlighter.prototype.reset):
  14936. * inspector/front-end/TextEditorModel.js:
  14937. (WebInspector.TextEditorModel.prototype.copyRange):
  14938. * inspector/front-end/TextViewer.js:
  14939. (WebInspector.TextViewer):
  14940. (WebInspector.TextViewer.prototype.set editCallback):
  14941. (WebInspector.TextViewer.prototype._buildChunks):
  14942. (WebInspector.TextViewer.prototype._handleKeyDown):
  14943. (WebInspector.TextViewer.prototype._handleDoubleClick):
  14944. (WebInspector.TextViewer.prototype._commitEditingLine):
  14945. (WebInspector.TextViewer.prototype._cancelEditingLine):
  14946. * inspector/front-end/inspector.js:
  14947. (WebInspector.documentKeyDown):
  14948. (WebInspector.log.logMessage):
  14949. (WebInspector.log):
  14950. (WebInspector.isEditingAnyField):
  14951. (WebInspector.startEditing.cleanUpAfterEditing):
  14952. 2010-04-20 Gavin Barraclough <barraclough@apple.com>
  14953. Reviewed by Geoff Garen.
  14954. Add forwarding header.
  14955. * ForwardingHeaders/runtime/RopeImpl.h: Added.
  14956. 2010-04-20 Gavin Barraclough <barraclough@apple.com>
  14957. Reviewed by Geoff Garen.
  14958. Bug 37828 - Move WebCore's String classes to WTF
  14959. Move these classes up to WTF so they are available to all clients of WTF (in
  14960. particular JSC).
  14961. As a first patch, making the most minimal change possible, since this patch
  14962. could easily grow rather large since we'll have to change every class forward
  14963. declaration ( e.g. every "namespace WebCore { class String; }" much change to
  14964. "namespace WTF { class String; }").
  14965. Moving the files, but leaving the classes logically in the WebCore namespace -
  14966. which is technically a layering violation - I'll come back and fix this up in a
  14967. subsequent patch.
  14968. * Android.mk:
  14969. * ForwardingHeaders/wtf/StaticConstructors.h: Added.
  14970. * ForwardingHeaders/wtf/text/AtomicString.h: Added.
  14971. * ForwardingHeaders/wtf/text/AtomicStringImpl.h: Added.
  14972. * ForwardingHeaders/wtf/text/StringBuffer.h: Added.
  14973. * ForwardingHeaders/wtf/text/StringHash.h: Added.
  14974. * ForwardingHeaders/wtf/text/StringImpl.h: Added.
  14975. * ForwardingHeaders/wtf/text/WTFString.h: Added.
  14976. * GNUmakefile.am:
  14977. * WebCore.gypi:
  14978. * WebCore.pro:
  14979. * WebCore.vcproj/WebCore.vcproj:
  14980. * WebCore.xcodeproj/project.pbxproj:
  14981. * css/MediaFeatureNames.cpp:
  14982. * dom/QualifiedName.cpp:
  14983. * dom/make_names.pl:
  14984. * platform/StaticConstructors.h: Removed.
  14985. * platform/text/AtomicString.cpp: Removed.
  14986. * platform/text/AtomicString.h:
  14987. * platform/text/AtomicStringImpl.h:
  14988. * platform/text/PlatformString.h:
  14989. * platform/text/String.cpp:
  14990. * platform/text/StringHash.h:
  14991. * platform/text/StringImpl.cpp: Removed.
  14992. * platform/text/StringImpl.h:
  14993. 2010-04-20 Kent Tamura <tkent@chromium.org>
  14994. Reviewed by Darin Adler.
  14995. Change a parameter type of chooseIconForFiles()
  14996. https://bugs.webkit.org/show_bug.cgi?id=37504
  14997. Change PassRefPtr<FileChooser> parameter of chooseIconForFiles()
  14998. to FileChooser*. Though an implementation of chooseIconForFiles()
  14999. might have ownership of the FileChooser instance, we don't need to
  15000. use PassRefPtr<> in this case.
  15001. * loader/EmptyClients.h:
  15002. (WebCore::EmptyChromeClient::chooseIconForFiles):
  15003. * page/Chrome.cpp:
  15004. (WebCore::Chrome::chooseIconForFiles):
  15005. * page/Chrome.h:
  15006. * page/ChromeClient.h:
  15007. 2010-04-20 Diego Escalante Urrelo <descalante@igalia.com>
  15008. Reviewed by Xan Lopez.
  15009. [Gtk] Evaluate and create tests for all the AtkRole's implemented by
  15010. WebKitGtk
  15011. https://bugs.webkit.org/show_bug.cgi?id=34449
  15012. Implement ATK_ROLE_FORM.
  15013. * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
  15014. (webkit_accessible_get_role):
  15015. 2010-04-20 Martin Robinson <mrobinson@webkit.org>
  15016. Reviewed by Gustavo Noronha Silva.
  15017. [GTK] Enable DOM clipboard and drag-and-drop access
  15018. https://bugs.webkit.org/show_bug.cgi?id=30623
  15019. Move most of the PasteboardHelper logic into WebCore. This helps
  15020. prepare for WebKit2 and leads to a clearer separation of concerns
  15021. between the WebKit and WebCore layers.
  15022. No new tests as functionality has not changed.
  15023. * GNUmakefile.am: Add PastboardHelper.cpp to list of sources.
  15024. * platform/Pasteboard.h: Added a getter for the PasteboardHelper and made the member private.
  15025. * platform/gtk/PasteboardGtk.cpp: Update PasteboardHelper method calls to use new naming.
  15026. (WebCore::clipboard_get_contents_cb): Ditto.
  15027. (WebCore::Pasteboard::helper): Added, member is now private.
  15028. (WebCore::Pasteboard::writeURL): Ditto.
  15029. (WebCore::Pasteboard::documentFragment): Update to reflect method renaming.
  15030. (WebCore::Pasteboard::plainText): Ditto.
  15031. * platform/gtk/PasteboardHelper.cpp: Added.
  15032. (WebCore::PasteboardHelper::PasteboardHelper): Added.
  15033. (WebCore::PasteboardHelper::~PasteboardHelper): Added.
  15034. (WebCore::PasteboardHelper::initializeTargetList): Added, originally from WebKit.
  15035. (WebCore::widgetFromFrame): Added helper function.
  15036. (WebCore::PasteboardHelper::getCurrentClipboard): Added, originally from WebKit.
  15037. (WebCore::PasteboardHelper::getClipboard): Ditto.
  15038. (WebCore::PasteboardHelper::getPrimarySelectionClipboard): Ditto.
  15039. (WebCore::PasteboardHelper::targetList): Ditto.
  15040. (WebCore::PasteboardHelper::fillSelectionData): Ditto.
  15041. (WebCore::PasteboardHelper::targetListForDataObject): Ditto.
  15042. (WebCore::getClipboardContentsCallback): Ditto.
  15043. (WebCore::clearClipboardContentsCallback): Ditto.
  15044. (WebCore::PasteboardHelper::writeClipboardContents): Ditto.
  15045. * platform/gtk/PasteboardHelper.h: Moved methods from WebKit to WebCore.
  15046. 2010-04-20 Simon Fraser <simon.fraser@apple.com>
  15047. Reviewed by Anders Carlsson.
  15048. backgroundColor is oddly indented in layer tree dump
  15049. https://bugs.webkit.org/show_bug.cgi?id=37885
  15050. The writeIndent() was mistakenly outside the LayerTreeAsTextDebug clause, causing indents
  15051. to be written twice.
  15052. * platform/graphics/GraphicsLayer.cpp:
  15053. (WebCore::GraphicsLayer::dumpProperties):
  15054. 2010-04-20 Simon Fraser <simon.fraser@apple.com>
  15055. Reviewed by Dimitri Glazkov.
  15056. Clean up RenderPart/RenderPartObject/RenderFrame/RenderEmbeddedObject
  15057. https://bugs.webkit.org/show_bug.cgi?id=37741
  15058. RenderPartObject is a useless intermediate class between RenderPart and
  15059. RenderEmbeddedObject, and we can now remove it. Its only method, viewCleared(),
  15060. applies to objects and embeds when the content is a FrameView, so can move
  15061. to RenderEmbeddedObject.
  15062. * Android.mk:
  15063. * GNUmakefile.am:
  15064. * WebCore.gypi:
  15065. * WebCore.pro:
  15066. * WebCore.vcproj/WebCore.vcproj:
  15067. * WebCore.xcodeproj/project.pbxproj:
  15068. * rendering/RenderEmbeddedObject.cpp:
  15069. (WebCore::RenderEmbeddedObject::RenderEmbeddedObject):
  15070. (WebCore::RenderEmbeddedObject::requiresLayer):
  15071. (WebCore::RenderEmbeddedObject::paint):
  15072. (WebCore::RenderEmbeddedObject::viewCleared):
  15073. * rendering/RenderEmbeddedObject.h:
  15074. * rendering/RenderFrameBase.h:
  15075. * rendering/RenderPart.cpp:
  15076. (WebCore::RenderPart::RenderPart):
  15077. * rendering/RenderPart.h:
  15078. * rendering/RenderPartObject.cpp: Removed.
  15079. * rendering/RenderPartObject.h: Removed.
  15080. 2010-04-20 Robin Cao <robin.webkit@gmail.com>
  15081. Reviewed by Dirk Schulze.
  15082. SVG no AnimateColor for stroke or fill if they are set to none on target.
  15083. https://bugs.webkit.org/show_bug.cgi?id=36718
  15084. SVGAnimateElement::resetToBaseValue reset 'm_propertyType' in the process of animation.
  15085. This will cause problems when attributes 'fill' and 'stroke' have the value 'none', because in this case
  15086. the property type determined by base value may be different from the one determined by 'fromTo' values.
  15087. No new tests. The test suite in svg/animation is not working for target element with attribute 'fill' set to 'none'.
  15088. Now animateColor on target element with attributes 'fill' and 'stroke' set to 'none' is possible.
  15089. * svg/SVGAnimateElement.cpp:
  15090. (WebCore::SVGAnimateElement::calculateFromAndToValues):
  15091. (WebCore::SVGAnimateElement::resetToBaseValue):
  15092. 2010-04-20 Sheriff Bot <webkit.review.bot@gmail.com>
  15093. Unreviewed, rolling out r57892.
  15094. http://trac.webkit.org/changeset/57892
  15095. https://bugs.webkit.org/show_bug.cgi?id=37864
  15096. Caused an assertion in Mac builds (Requested by smfr on
  15097. #webkit).
  15098. * WebCore.xcodeproj/project.pbxproj:
  15099. * editing/Editor.cpp:
  15100. (WebCore::Editor::insideVisibleArea):
  15101. * page/Frame.cpp:
  15102. (WebCore::Frame::ownerRenderer):
  15103. * page/Frame.h:
  15104. * page/FrameView.cpp:
  15105. (WebCore::FrameView::~FrameView):
  15106. (WebCore::FrameView::clear):
  15107. (WebCore::FrameView::invalidateRect):
  15108. (WebCore::FrameView::createScrollbar):
  15109. * rendering/RenderFrameBase.h:
  15110. * rendering/RenderObject.h:
  15111. 2010-04-20 Jakub Wieczorek <jwieczorek@webkit.org>
  15112. Reviewed by Darin Adler.
  15113. RenderListItem: change enclosingList() to only traverse the render tree.
  15114. https://bugs.webkit.org/show_bug.cgi?id=37319
  15115. This makes the function safe to use for items with nodes that are detached from
  15116. the DOM tree and simplifies the code quite a bit.
  15117. Covered by existing tests.
  15118. * rendering/RenderListItem.cpp:
  15119. (WebCore::enclosingList):
  15120. (WebCore::previousListItem):
  15121. (WebCore::RenderListItem::explicitValueChanged):
  15122. 2010-04-20 Simon Fraser <simon.fraser@apple.com>
  15123. Reviewed by Dan Bernstein.
  15124. Clean up RenderPart/RenderPartObject/RenderFrame/RenderEmbeddedObject
  15125. https://bugs.webkit.org/show_bug.cgi?id=37741
  15126. Make Frame::ownerRenderer() return a RenderFrameBase* rather than a
  15127. RenderPart*, and add the necessary toRenderFrameBase() and isRenderFrameBase().
  15128. * WebCore.xcodeproj/project.pbxproj:
  15129. * editing/Editor.cpp:
  15130. (WebCore::Editor::insideVisibleArea):
  15131. * page/Frame.cpp:
  15132. (WebCore::Frame::ownerRenderer):
  15133. * page/Frame.h:
  15134. * page/FrameView.cpp:
  15135. (WebCore::FrameView::~FrameView):
  15136. (WebCore::FrameView::clear):
  15137. (WebCore::FrameView::invalidateRect):
  15138. (WebCore::FrameView::createScrollbar):
  15139. * rendering/RenderFrameBase.h:
  15140. (WebCore::RenderFrameBase::isRenderFrameBase):
  15141. (WebCore::toRenderFrameBase):
  15142. * rendering/RenderObject.h:
  15143. (WebCore::RenderObject::isRenderFrameBase):
  15144. 2010-04-20 Jay Civelli <jcivelli@chromium.org>
  15145. Reviewed by Dimitri Glazkov.
  15146. [chromium] Pressing tab now closes the select popup as it should.
  15147. https://bugs.webkit.org/show_bug.cgi?id=37721
  15148. * platform/chromium/PopupMenuChromium.cpp:
  15149. (WebCore::PopupListBox::handleKeyEvent):
  15150. 2010-04-20 Yaar Schnitman <yaar@chromium.org>
  15151. Reviewed by Nate Chapin.
  15152. Null value should be legit value for wrapped types. This requires some cleanup in canvas which was missing built-in null argument checks;
  15153. https://bugs.webkit.org/show_bug.cgi?id=37810
  15154. * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
  15155. (WebCore::JSCanvasRenderingContext2D::drawImage): Passes ec to drawImage(3) too
  15156. * bindings/scripts/CodeGeneratorV8.pm: A null value is now legit value for wrapped types.
  15157. * bindings/v8/test/V8TestObj.cpp:
  15158. (WebCore::TestObjInternal::overloadedMethodCallback):
  15159. * html/canvas/CanvasRenderingContext2D.cpp:
  15160. (WebCore::CanvasRenderingContext2D::drawImage): Added null checks.
  15161. (WebCore::CanvasRenderingContext2D::createPattern): Added null checks.
  15162. * html/canvas/CanvasRenderingContext2D.h: Added needed raises "DOMException".
  15163. * html/canvas/CanvasRenderingContext2D.idl: Added needed raises "DOMException".
  15164. 2010-04-20 Evan Stade <estade@chromium.org>
  15165. Reviewed by David Levin.
  15166. [chromium] crash when dragging images
  15167. https://bugs.webkit.org/show_bug.cgi?id=37715
  15168. NULL check the return value of nativeImageForCurrentFrame(),
  15169. and NULL check Image just for good measure.
  15170. Tested by new DragImageTest unit test.
  15171. * platform/chromium/DragImageChromiumSkia.cpp:
  15172. (WebCore::createDragImageFromImage):
  15173. 2010-04-20 Dirk Schulze <krit@webkit.org>
  15174. Reviewed by Nikolas Zimmermann.
  15175. SVGResourceFilter needs to be moved to under Renderers
  15176. https://bugs.webkit.org/show_bug.cgi?id=35320
  15177. This patch adds a renderer for SVGFilterElement. SVGFilterElement is now independent
  15178. from the SVGResources.
  15179. A clean-up solves the dependencies between SVGFilterElement, the filter primitives
  15180. and SVGResources. This shall make the filter code more readable and better maintable.
  15181. The Filter primitives get dumped now, as long as they have externalRepresentation
  15182. implemented.
  15183. No behavior changes, so no new tests were added.
  15184. * Android.mk:
  15185. * GNUmakefile.am:
  15186. * WebCore.gypi:
  15187. * WebCore.pro:
  15188. * WebCore.vcproj/WebCore.vcproj:
  15189. * WebCore.xcodeproj/project.pbxproj:
  15190. * rendering/RenderPath.cpp:
  15191. (WebCore::RenderPath::paint):
  15192. * rendering/RenderSVGContainer.cpp:
  15193. (WebCore::RenderSVGContainer::selfWillPaint):
  15194. (WebCore::RenderSVGContainer::paint):
  15195. * rendering/RenderSVGImage.cpp:
  15196. (WebCore::RenderSVGImage::paint):
  15197. * rendering/RenderSVGResource.h:
  15198. (WebCore::):
  15199. (WebCore::RenderSVGResource::postApplyResource):
  15200. * rendering/RenderSVGResourceClipper.cpp:
  15201. (WebCore::RenderSVGResourceClipper::applyResource):
  15202. * rendering/RenderSVGResourceClipper.h:
  15203. * rendering/RenderSVGResourceFilter.cpp: Added.
  15204. (WebCore::RenderSVGResourceFilter::RenderSVGResourceFilter):
  15205. (WebCore::RenderSVGResourceFilter::~RenderSVGResourceFilter):
  15206. (WebCore::RenderSVGResourceFilter::invalidateClients):
  15207. (WebCore::RenderSVGResourceFilter::invalidateClient):
  15208. (WebCore::RenderSVGResourceFilter::buildPrimitives):
  15209. (WebCore::RenderSVGResourceFilter::fitsInMaximumImageSize):
  15210. (WebCore::RenderSVGResourceFilter::applyResource):
  15211. (WebCore::RenderSVGResourceFilter::postApplyResource):
  15212. (WebCore::RenderSVGResourceFilter::resourceBoundingBox):
  15213. * rendering/RenderSVGResourceFilter.h: Added.
  15214. (WebCore::FilterData::FilterData):
  15215. (WebCore::RenderSVGResourceFilter::renderName):
  15216. (WebCore::RenderSVGResourceFilter::filterUnits):
  15217. (WebCore::RenderSVGResourceFilter::primitiveUnits):
  15218. (WebCore::RenderSVGResourceFilter::resourceType):
  15219. * rendering/RenderSVGResourceMarker.h:
  15220. (WebCore::RenderSVGResourceMarker::applyResource):
  15221. * rendering/RenderSVGResourceMasker.cpp:
  15222. (WebCore::RenderSVGResourceMasker::applyResource):
  15223. * rendering/RenderSVGResourceMasker.h:
  15224. * rendering/RenderSVGRoot.cpp:
  15225. (WebCore::RenderSVGRoot::selfWillPaint):
  15226. (WebCore::RenderSVGRoot::paint):
  15227. * rendering/RenderSVGText.cpp:
  15228. * rendering/SVGRenderSupport.cpp:
  15229. (WebCore::SVGRenderBase::prepareToRenderSVGContent):
  15230. (WebCore::SVGRenderBase::finishRenderSVGContent):
  15231. (WebCore::SVGRenderBase::filterBoundingBoxForRenderer):
  15232. (WebCore::deregisterFromResources):
  15233. * rendering/SVGRenderSupport.h:
  15234. * rendering/SVGRenderTreeAsText.cpp:
  15235. (WebCore::writeStyle):
  15236. (WebCore::writeSVGResource):
  15237. (WebCore::writeResources):
  15238. (WebCore::writeRenderResources):
  15239. * rendering/SVGRootInlineBox.cpp:
  15240. (WebCore::SVGRootInlineBoxPaintWalker::SVGRootInlineBoxPaintWalker):
  15241. (WebCore::SVGRootInlineBox::paint):
  15242. * svg/SVGFEBlendElement.cpp:
  15243. (WebCore::SVGFEBlendElement::build):
  15244. * svg/SVGFEBlendElement.h:
  15245. * svg/SVGFEColorMatrixElement.cpp:
  15246. (WebCore::SVGFEColorMatrixElement::build):
  15247. * svg/SVGFEColorMatrixElement.h:
  15248. * svg/SVGFEComponentTransferElement.cpp:
  15249. (WebCore::SVGFEComponentTransferElement::build):
  15250. * svg/SVGFEComponentTransferElement.h:
  15251. * svg/SVGFECompositeElement.cpp:
  15252. (WebCore::SVGFECompositeElement::build):
  15253. * svg/SVGFECompositeElement.h:
  15254. * svg/SVGFEDiffuseLightingElement.cpp:
  15255. (WebCore::SVGFEDiffuseLightingElement::build):
  15256. * svg/SVGFEDiffuseLightingElement.h:
  15257. * svg/SVGFEDisplacementMapElement.cpp:
  15258. (WebCore::SVGFEDisplacementMapElement::build):
  15259. * svg/SVGFEDisplacementMapElement.h:
  15260. * svg/SVGFEFloodElement.cpp:
  15261. (WebCore::SVGFEFloodElement::build):
  15262. * svg/SVGFEFloodElement.h:
  15263. * svg/SVGFEGaussianBlurElement.cpp:
  15264. (WebCore::SVGFEGaussianBlurElement::build):
  15265. * svg/SVGFEGaussianBlurElement.h:
  15266. * svg/SVGFEImageElement.cpp:
  15267. (WebCore::SVGFEImageElement::build):
  15268. * svg/SVGFEImageElement.h:
  15269. * svg/SVGFEMergeElement.cpp:
  15270. (WebCore::SVGFEMergeElement::build):
  15271. * svg/SVGFEMergeElement.h:
  15272. * svg/SVGFEMorphologyElement.cpp:
  15273. (WebCore::SVGFEMorphologyElement::build):
  15274. * svg/SVGFEMorphologyElement.h:
  15275. * svg/SVGFEOffsetElement.cpp:
  15276. (WebCore::SVGFEOffsetElement::build):
  15277. * svg/SVGFEOffsetElement.h:
  15278. * svg/SVGFESpecularLightingElement.cpp:
  15279. (WebCore::SVGFESpecularLightingElement::build):
  15280. * svg/SVGFESpecularLightingElement.h:
  15281. * svg/SVGFETileElement.cpp:
  15282. (WebCore::SVGFETileElement::build):
  15283. * svg/SVGFETileElement.h:
  15284. * svg/SVGFETurbulenceElement.cpp:
  15285. (WebCore::SVGFETurbulenceElement::build):
  15286. * svg/SVGFETurbulenceElement.h:
  15287. (WebCore::):
  15288. * svg/SVGFilterElement.cpp:
  15289. (WebCore::SVGFilterElement::createRenderer):
  15290. * svg/SVGFilterElement.h:
  15291. * svg/SVGFilterPrimitiveStandardAttributes.cpp:
  15292. (WebCore::SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
  15293. * svg/SVGFilterPrimitiveStandardAttributes.h:
  15294. (WebCore::SVGFilterPrimitiveStandardAttributes::isFilterEffect):
  15295. (WebCore::SVGFilterPrimitiveStandardAttributes::rendererIsNeeded):
  15296. * svg/SVGStyledElement.cpp:
  15297. (WebCore::SVGStyledElement::invalidateResources):
  15298. * svg/graphics/SVGResource.cpp:
  15299. * svg/graphics/SVGResource.h:
  15300. (WebCore::):
  15301. (WebCore::SVGResource::isPaintServer):
  15302. * svg/graphics/SVGResourceFilter.cpp: Removed.
  15303. * svg/graphics/SVGResourceFilter.h: Removed.
  15304. * svg/graphics/filters/SVGFEDisplacementMap.cpp:
  15305. (WebCore::FEDisplacementMap::externalRepresentation):
  15306. * svg/graphics/filters/SVGFilterBuilder.h:
  15307. (WebCore::SVGFilterBuilder::namedEffects):
  15308. 2010-04-20 Sheriff Bot <webkit.review.bot@gmail.com>
  15309. Unreviewed, rolling out r57880.
  15310. http://trac.webkit.org/changeset/57880
  15311. https://bugs.webkit.org/show_bug.cgi?id=37846
  15312. Broke several bots, FEDisplacmentMap dumps includes pointers,
  15313. no one noticed. Dirk will upload a new patch later. (Requested
  15314. by WildFox on #webkit).
  15315. * Android.mk:
  15316. * GNUmakefile.am:
  15317. * WebCore.gypi:
  15318. * WebCore.pro:
  15319. * WebCore.vcproj/WebCore.vcproj:
  15320. * WebCore.xcodeproj/project.pbxproj:
  15321. * rendering/RenderPath.cpp:
  15322. (WebCore::RenderPath::paint):
  15323. * rendering/RenderSVGContainer.cpp:
  15324. (WebCore::RenderSVGContainer::selfWillPaint):
  15325. (WebCore::RenderSVGContainer::paint):
  15326. * rendering/RenderSVGImage.cpp:
  15327. (WebCore::RenderSVGImage::paint):
  15328. * rendering/RenderSVGResource.h:
  15329. (WebCore::):
  15330. * rendering/RenderSVGResourceClipper.cpp:
  15331. (WebCore::RenderSVGResourceClipper::applyResource):
  15332. * rendering/RenderSVGResourceClipper.h:
  15333. * rendering/RenderSVGResourceFilter.cpp: Removed.
  15334. * rendering/RenderSVGResourceFilter.h: Removed.
  15335. * rendering/RenderSVGResourceMarker.h:
  15336. (WebCore::RenderSVGResourceMarker::applyResource):
  15337. * rendering/RenderSVGResourceMasker.cpp:
  15338. (WebCore::RenderSVGResourceMasker::applyResource):
  15339. * rendering/RenderSVGResourceMasker.h:
  15340. * rendering/RenderSVGRoot.cpp:
  15341. (WebCore::RenderSVGRoot::selfWillPaint):
  15342. (WebCore::RenderSVGRoot::paint):
  15343. * rendering/RenderSVGText.cpp:
  15344. * rendering/SVGRenderSupport.cpp:
  15345. (WebCore::SVGRenderBase::prepareToRenderSVGContent):
  15346. (WebCore::SVGRenderBase::finishRenderSVGContent):
  15347. (WebCore::SVGRenderBase::filterBoundingBoxForRenderer):
  15348. (WebCore::deregisterFromResources):
  15349. * rendering/SVGRenderSupport.h:
  15350. * rendering/SVGRenderTreeAsText.cpp:
  15351. (WebCore::writeStyle):
  15352. (WebCore::writeSVGResource):
  15353. (WebCore::writeResources):
  15354. (WebCore::writeRenderResources):
  15355. * rendering/SVGRootInlineBox.cpp:
  15356. (WebCore::SVGRootInlineBoxPaintWalker::SVGRootInlineBoxPaintWalker):
  15357. (WebCore::SVGRootInlineBox::paint):
  15358. * svg/SVGFEBlendElement.cpp:
  15359. (WebCore::SVGFEBlendElement::build):
  15360. * svg/SVGFEBlendElement.h:
  15361. * svg/SVGFEColorMatrixElement.cpp:
  15362. (WebCore::SVGFEColorMatrixElement::build):
  15363. * svg/SVGFEColorMatrixElement.h:
  15364. * svg/SVGFEComponentTransferElement.cpp:
  15365. (WebCore::SVGFEComponentTransferElement::build):
  15366. * svg/SVGFEComponentTransferElement.h:
  15367. * svg/SVGFECompositeElement.cpp:
  15368. (WebCore::SVGFECompositeElement::build):
  15369. * svg/SVGFECompositeElement.h:
  15370. * svg/SVGFEDiffuseLightingElement.cpp:
  15371. (WebCore::SVGFEDiffuseLightingElement::build):
  15372. * svg/SVGFEDiffuseLightingElement.h:
  15373. * svg/SVGFEDisplacementMapElement.cpp:
  15374. (WebCore::SVGFEDisplacementMapElement::build):
  15375. * svg/SVGFEDisplacementMapElement.h:
  15376. * svg/SVGFEFloodElement.cpp:
  15377. (WebCore::SVGFEFloodElement::build):
  15378. * svg/SVGFEFloodElement.h:
  15379. * svg/SVGFEGaussianBlurElement.cpp:
  15380. (WebCore::SVGFEGaussianBlurElement::build):
  15381. * svg/SVGFEGaussianBlurElement.h:
  15382. * svg/SVGFEImageElement.cpp:
  15383. (WebCore::SVGFEImageElement::build):
  15384. * svg/SVGFEImageElement.h:
  15385. * svg/SVGFEMergeElement.cpp:
  15386. (WebCore::SVGFEMergeElement::build):
  15387. * svg/SVGFEMergeElement.h:
  15388. * svg/SVGFEMorphologyElement.cpp:
  15389. (WebCore::SVGFEMorphologyElement::build):
  15390. * svg/SVGFEMorphologyElement.h:
  15391. * svg/SVGFEOffsetElement.cpp:
  15392. (WebCore::SVGFEOffsetElement::build):
  15393. * svg/SVGFEOffsetElement.h:
  15394. * svg/SVGFESpecularLightingElement.cpp:
  15395. (WebCore::SVGFESpecularLightingElement::build):
  15396. * svg/SVGFESpecularLightingElement.h:
  15397. * svg/SVGFETileElement.cpp:
  15398. (WebCore::SVGFETileElement::build):
  15399. * svg/SVGFETileElement.h:
  15400. * svg/SVGFETurbulenceElement.cpp:
  15401. (WebCore::SVGFETurbulenceElement::build):
  15402. * svg/SVGFETurbulenceElement.h:
  15403. (WebCore::):
  15404. * svg/SVGFilterElement.cpp:
  15405. (WebCore::SVGFilterElement::buildFilter):
  15406. (WebCore::SVGFilterElement::canvasResource):
  15407. * svg/SVGFilterElement.h:
  15408. (WebCore::SVGFilterElement::rendererIsNeeded):
  15409. * svg/SVGFilterPrimitiveStandardAttributes.cpp:
  15410. (WebCore::SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
  15411. * svg/SVGFilterPrimitiveStandardAttributes.h:
  15412. (WebCore::SVGFilterPrimitiveStandardAttributes::isFilterEffect):
  15413. (WebCore::SVGFilterPrimitiveStandardAttributes::rendererIsNeeded):
  15414. * svg/SVGStyledElement.cpp:
  15415. (WebCore::SVGStyledElement::invalidateResources):
  15416. * svg/graphics/SVGResource.cpp:
  15417. * svg/graphics/SVGResource.h:
  15418. (WebCore::):
  15419. (WebCore::SVGResource::isFilter):
  15420. * svg/graphics/SVGResourceFilter.cpp: Added.
  15421. (WebCore::SVGResourceFilter::SVGResourceFilter):
  15422. (WebCore::SVGResourceFilter::~SVGResourceFilter):
  15423. (WebCore::SVGResourceFilter::filterBoundingBox):
  15424. (WebCore::shouldProcessFilter):
  15425. (WebCore::SVGResourceFilter::addFilterEffect):
  15426. (WebCore::SVGResourceFilter::fitsInMaximumImageSize):
  15427. (WebCore::SVGResourceFilter::prepareFilter):
  15428. (WebCore::SVGResourceFilter::applyFilter):
  15429. (WebCore::SVGResourceFilter::externalRepresentation):
  15430. (WebCore::getFilterById):
  15431. * svg/graphics/SVGResourceFilter.h: Added.
  15432. (WebCore::SVGResourceFilter::create):
  15433. (WebCore::SVGResourceFilter::resourceType):
  15434. (WebCore::SVGResourceFilter::setFilterResolution):
  15435. (WebCore::SVGResourceFilter::setHasFilterResolution):
  15436. (WebCore::SVGResourceFilter::filterBoundingBoxMode):
  15437. (WebCore::SVGResourceFilter::setFilterBoundingBoxMode):
  15438. (WebCore::SVGResourceFilter::effectBoundingBoxMode):
  15439. (WebCore::SVGResourceFilter::setEffectBoundingBoxMode):
  15440. (WebCore::SVGResourceFilter::filterRect):
  15441. (WebCore::SVGResourceFilter::setFilterRect):
  15442. (WebCore::SVGResourceFilter::scaleX):
  15443. (WebCore::SVGResourceFilter::scaleY):
  15444. (WebCore::SVGResourceFilter::setFilterBoundingBox):
  15445. (WebCore::SVGResourceFilter::builder):
  15446. * svg/graphics/filters/SVGFilterBuilder.h:
  15447. 2010-04-20 Dirk Schulze <krit@webkit.org>
  15448. Reviewed by Nikolas Zimmermann.
  15449. SVGResourceFilter needs to be moved to under Renderers
  15450. https://bugs.webkit.org/show_bug.cgi?id=35320
  15451. This patch adds a renderer for SVGFilterElement. SVGFilterElement is now independent
  15452. from the SVGResources.
  15453. A clean-up solves the dependencies between SVGFilterElement, the filter primitives
  15454. and SVGResources. This shall make the filter code more readable and better maintable.
  15455. The Filter primitives get dumped now, as long as they have externalRepresentation
  15456. implemented.
  15457. No behavior changes, so no new tests were added.
  15458. * Android.mk:
  15459. * GNUmakefile.am:
  15460. * WebCore.gypi:
  15461. * WebCore.pro:
  15462. * WebCore.vcproj/WebCore.vcproj:
  15463. * WebCore.xcodeproj/project.pbxproj:
  15464. * rendering/RenderPath.cpp:
  15465. (WebCore::RenderPath::paint):
  15466. * rendering/RenderSVGContainer.cpp:
  15467. (WebCore::RenderSVGContainer::selfWillPaint):
  15468. (WebCore::RenderSVGContainer::paint):
  15469. * rendering/RenderSVGImage.cpp:
  15470. (WebCore::RenderSVGImage::paint):
  15471. * rendering/RenderSVGResource.h:
  15472. (WebCore::):
  15473. * rendering/RenderSVGResourceClipper.cpp:
  15474. (WebCore::RenderSVGResourceClipper::applyResource):
  15475. * rendering/RenderSVGResourceClipper.h:
  15476. * rendering/RenderSVGResourceFilter.cpp: Added.
  15477. (WebCore::RenderSVGResourceFilter::RenderSVGResourceFilter):
  15478. (WebCore::RenderSVGResourceFilter::~RenderSVGResourceFilter):
  15479. (WebCore::RenderSVGResourceFilter::invalidateClients):
  15480. (WebCore::RenderSVGResourceFilter::invalidateClient):
  15481. (WebCore::RenderSVGResourceFilter::buildPrimitives):
  15482. (WebCore::RenderSVGResourceFilter::fitsInMaximumImageSize):
  15483. (WebCore::RenderSVGResourceFilter::applyResource):
  15484. (WebCore::RenderSVGResourceFilter::postApplyResource):
  15485. (WebCore::RenderSVGResourceFilter::resourceBoundingBox):
  15486. * rendering/RenderSVGResourceFilter.h: Added.
  15487. (WebCore::FilterData::FilterData):
  15488. (WebCore::RenderSVGResourceFilter::renderName):
  15489. (WebCore::RenderSVGResourceFilter::filterUnits):
  15490. (WebCore::RenderSVGResourceFilter::primitiveUnits):
  15491. (WebCore::RenderSVGResourceFilter::resourceType):
  15492. * rendering/RenderSVGResourceMarker.h:
  15493. (WebCore::RenderSVGResourceMarker::applyResource):
  15494. * rendering/RenderSVGResourceMasker.cpp:
  15495. (WebCore::RenderSVGResourceMasker::applyResource):
  15496. * rendering/RenderSVGResourceMasker.h:
  15497. * rendering/RenderSVGRoot.cpp:
  15498. (WebCore::RenderSVGRoot::selfWillPaint):
  15499. (WebCore::RenderSVGRoot::paint):
  15500. * rendering/RenderSVGText.cpp:
  15501. * rendering/SVGRenderSupport.cpp:
  15502. (WebCore::SVGRenderBase::prepareToRenderSVGContent):
  15503. (WebCore::SVGRenderBase::finishRenderSVGContent):
  15504. (WebCore::SVGRenderBase::filterBoundingBoxForRenderer):
  15505. (WebCore::deregisterFromResources):
  15506. * rendering/SVGRenderSupport.h:
  15507. * rendering/SVGRenderTreeAsText.cpp:
  15508. (WebCore::writeStyle):
  15509. (WebCore::writeSVGResource):
  15510. (WebCore::writeResources):
  15511. (WebCore::writeRenderResources):
  15512. * rendering/SVGRootInlineBox.cpp:
  15513. (WebCore::SVGRootInlineBoxPaintWalker::SVGRootInlineBoxPaintWalker):
  15514. (WebCore::SVGRootInlineBox::paint):
  15515. * svg/SVGFEBlendElement.cpp:
  15516. (WebCore::SVGFEBlendElement::build):
  15517. * svg/SVGFEBlendElement.h:
  15518. * svg/SVGFEColorMatrixElement.cpp:
  15519. (WebCore::SVGFEColorMatrixElement::build):
  15520. * svg/SVGFEColorMatrixElement.h:
  15521. * svg/SVGFEComponentTransferElement.cpp:
  15522. (WebCore::SVGFEComponentTransferElement::build):
  15523. * svg/SVGFEComponentTransferElement.h:
  15524. * svg/SVGFECompositeElement.cpp:
  15525. (WebCore::SVGFECompositeElement::build):
  15526. * svg/SVGFECompositeElement.h:
  15527. * svg/SVGFEDiffuseLightingElement.cpp:
  15528. (WebCore::SVGFEDiffuseLightingElement::build):
  15529. * svg/SVGFEDiffuseLightingElement.h:
  15530. * svg/SVGFEDisplacementMapElement.cpp:
  15531. (WebCore::SVGFEDisplacementMapElement::build):
  15532. * svg/SVGFEDisplacementMapElement.h:
  15533. * svg/SVGFEFloodElement.cpp:
  15534. (WebCore::SVGFEFloodElement::build):
  15535. * svg/SVGFEFloodElement.h:
  15536. * svg/SVGFEGaussianBlurElement.cpp:
  15537. (WebCore::SVGFEGaussianBlurElement::build):
  15538. * svg/SVGFEGaussianBlurElement.h:
  15539. * svg/SVGFEImageElement.cpp:
  15540. (WebCore::SVGFEImageElement::build):
  15541. * svg/SVGFEImageElement.h:
  15542. * svg/SVGFEMergeElement.cpp:
  15543. (WebCore::SVGFEMergeElement::build):
  15544. * svg/SVGFEMergeElement.h:
  15545. * svg/SVGFEMorphologyElement.cpp:
  15546. (WebCore::SVGFEMorphologyElement::build):
  15547. * svg/SVGFEMorphologyElement.h:
  15548. * svg/SVGFEOffsetElement.cpp:
  15549. (WebCore::SVGFEOffsetElement::build):
  15550. * svg/SVGFEOffsetElement.h:
  15551. * svg/SVGFESpecularLightingElement.cpp:
  15552. (WebCore::SVGFESpecularLightingElement::build):
  15553. * svg/SVGFESpecularLightingElement.h:
  15554. * svg/SVGFETileElement.cpp:
  15555. (WebCore::SVGFETileElement::build):
  15556. * svg/SVGFETileElement.h:
  15557. * svg/SVGFETurbulenceElement.cpp:
  15558. (WebCore::SVGFETurbulenceElement::build):
  15559. * svg/SVGFETurbulenceElement.h:
  15560. (WebCore::):
  15561. * svg/SVGFilterElement.cpp:
  15562. (WebCore::SVGFilterElement::createRenderer):
  15563. * svg/SVGFilterElement.h:
  15564. * svg/SVGFilterPrimitiveStandardAttributes.cpp:
  15565. (WebCore::SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
  15566. * svg/SVGFilterPrimitiveStandardAttributes.h:
  15567. (WebCore::SVGFilterPrimitiveStandardAttributes::isFilterEffect):
  15568. (WebCore::SVGFilterPrimitiveStandardAttributes::rendererIsNeeded):
  15569. * svg/SVGStyledElement.cpp:
  15570. (WebCore::SVGStyledElement::invalidateResources):
  15571. * svg/graphics/SVGResource.cpp:
  15572. * svg/graphics/SVGResource.h:
  15573. (WebCore::):
  15574. (WebCore::SVGResource::isPaintServer):
  15575. * svg/graphics/SVGResourceFilter.cpp: Removed.
  15576. * svg/graphics/SVGResourceFilter.h: Removed.
  15577. * svg/graphics/filters/SVGFilterBuilder.h:
  15578. (WebCore::SVGFilterBuilder::namedEffects):
  15579. 2010-04-20 Gavin Barraclough <barraclough@apple.com>
  15580. Rubber stamped by Maciej Stachowiak (relanding r57829).
  15581. Added missing JS_EXPORTDATA
  15582. * ForwardingHeaders/wtf/WTFThreadData.h: Copied from WebCore/ForwardingHeaders/wtf/WTFThreadData.h.
  15583. * platform/ThreadGlobalData.cpp:
  15584. (WebCore::ThreadGlobalData::ThreadGlobalData):
  15585. (WebCore::ThreadGlobalData::~ThreadGlobalData):
  15586. * platform/ThreadGlobalData.h:
  15587. (WebCore::ThreadGlobalData::eventNames):
  15588. * platform/text/AtomicString.cpp:
  15589. (WebCore::AtomicStringTable::create):
  15590. (WebCore::AtomicStringTable::table):
  15591. (WebCore::AtomicStringTable::destroy):
  15592. (WebCore::stringTable):
  15593. 2010-04-20 No'am Rosenthal <noam.rosenthal@nokia.com>
  15594. Reviewed by Antti Koivisto.
  15595. [Qt] GraphicsLayer: support fill-modes
  15596. https://bugs.webkit.org/show_bug.cgi?id=36216
  15597. Implement the CSS-animation "fill mode" concept in GraphicsLayerQt. The concept
  15598. enables a key-frame animation to go to the animation's starting point before the delay,
  15599. and/or to stay at the animation's ending point after its ended, without reverting to the default
  15600. value.
  15601. We do that by manually setting the value to keyframe-0 before the delay if fill-mode is backwards/both,
  15602. and manually modifying the default value to the animated value as we animate, with fill-mode forwards/both.
  15603. * platform/graphics/qt/GraphicsLayerQt.cpp:
  15604. (WebCore::AnimationQtBase::AnimationQtBase):
  15605. (WebCore::TransformAnimationQt::~TransformAnimationQt):
  15606. (WebCore::TransformAnimationQt::applyFrame):
  15607. (WebCore::GraphicsLayerQt::addAnimation):
  15608. 2010-04-19 Leandro Pereira <leandro@profusion.mobi>
  15609. Reviewed by David Hyatt.
  15610. Add missing dummy implementations in PluginPackageNone and PluginViewNone.
  15611. http://webkit.org/b/37478
  15612. * plugins/PluginPackageNone.cpp:
  15613. (WebCore::PluginPackage::NPVersion): Add dummy implementation.
  15614. * plugins/PluginViewNone.cpp:
  15615. (WebCore::PluginView::handleFocusInEvent): Add dummy implementation.
  15616. (WebCore::PluginView::handleFocusOutEvent): Add dummy implementation.
  15617. 2010-04-19 Simon Fraser <simon.fraser@apple.com>
  15618. Reviewed by Geoff Garen.
  15619. Clean up RenderPart/RenderPartObject/RenderFrame/RenderEmbeddedObject
  15620. https://bugs.webkit.org/show_bug.cgi?id=37741
  15621. Move m_hasFallbackContent from RenderPart to RenderEmbeddedObject,
  15622. since it's only used for <object> fallback.
  15623. * rendering/RenderEmbeddedObject.cpp:
  15624. (WebCore::RenderEmbeddedObject::RenderEmbeddedObject):
  15625. * rendering/RenderEmbeddedObject.h:
  15626. (WebCore::RenderEmbeddedObject::hasFallbackContent):
  15627. * rendering/RenderPart.cpp:
  15628. (WebCore::RenderPart::RenderPart):
  15629. * rendering/RenderPart.h:
  15630. 2010-04-19 Simon Fraser <simon.fraser@apple.com>
  15631. Reviewed by Darin Adler.
  15632. Clean up RenderPart/RenderPartObject/RenderFrame/RenderEmbeddedObject
  15633. https://bugs.webkit.org/show_bug.cgi?id=37741
  15634. Add a new renderer for iframes, named RenderIFrame. Add a new shared base class
  15635. between this and RenderFrame, called RenderFrameBase (following the existing HTMLFrameElementBase),
  15636. and move code from RenderPart and RenderPartObject into these new classes.
  15637. There should be no functionality difference with this change, so no new tests.
  15638. Fixing up renderer names in the layout tests will be done in a later pass.
  15639. Fix build systems to include the new files.
  15640. * Android.mk:
  15641. * GNUmakefile.am:
  15642. * WebCore.gypi:
  15643. * WebCore.pro:
  15644. * WebCore.vcproj/WebCore.vcproj:
  15645. * WebCore.xcodeproj/project.pbxproj:
  15646. * html/HTMLIFrameElement.cpp:
  15647. (WebCore::HTMLIFrameElement::createRenderer):
  15648. * rendering/RenderEmbeddedObject.h:
  15649. * rendering/RenderFrame.cpp:
  15650. (WebCore::RenderFrame::RenderFrame):
  15651. * rendering/RenderFrame.h:
  15652. * rendering/RenderFrameBase.cpp: Added.
  15653. (WebCore::RenderFrameBase::RenderFrameBase):
  15654. (WebCore::RenderFrameBase::layoutWithFlattening):
  15655. * rendering/RenderFrameBase.h: Added.
  15656. * rendering/RenderIFrame.cpp: Added.
  15657. (WebCore::RenderIFrame::RenderIFrame):
  15658. (WebCore::RenderIFrame::calcHeight):
  15659. (WebCore::RenderIFrame::calcWidth):
  15660. (WebCore::RenderIFrame::flattenFrame):
  15661. (WebCore::RenderIFrame::layout):
  15662. * rendering/RenderIFrame.h: Added.
  15663. (WebCore::RenderIFrame::renderName):
  15664. * rendering/RenderPart.cpp:
  15665. * rendering/RenderPart.h:
  15666. * rendering/RenderPartObject.cpp:
  15667. * rendering/RenderPartObject.h:
  15668. 2010-04-19 Dumitru Daniliuc <dumi@chromium.org>
  15669. Reviewed by Geoffrey Garen.
  15670. Bindings clean-up.
  15671. https://bugs.webkit.org/show_bug.cgi?id=37833
  15672. Move some WebSQLDatabases logic out of the bindings into
  15673. DOMWindow.cpp where it should be.
  15674. * bindings/js/JSDOMWindowCustom.cpp:
  15675. (WebCore::JSDOMWindow::openDatabase):
  15676. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  15677. (WebCore::V8DOMWindow::openDatabaseCallback):
  15678. * page/DOMWindow.cpp:
  15679. (WebCore::DOMWindow::openDatabase):
  15680. 2010-04-19 Kevin Ollivier <kevino@theolliviers.com>
  15681. Fix the Mac builders for now by restoring the keepAlive function.
  15682. * plugins/PluginViewNone.cpp:
  15683. (WebCore::PluginView::keepAlive):
  15684. 2010-04-19 Kevin Ollivier <kevino@theolliviers.com>
  15685. [wx] Build fix, remove a method that has been moved to PluginView.cpp.
  15686. * plugins/PluginViewNone.cpp:
  15687. 2010-04-19 Gavin Barraclough <barraclough@apple.com>
  15688. Reviewed by NOBODY (rolling out r57829).
  15689. This broke windows.
  15690. * ForwardingHeaders/wtf/WTFThreadData.h: Removed.
  15691. * platform/ThreadGlobalData.cpp:
  15692. (WebCore::ThreadGlobalData::ThreadGlobalData):
  15693. (WebCore::ThreadGlobalData::~ThreadGlobalData):
  15694. * platform/ThreadGlobalData.h:
  15695. (WebCore::ThreadGlobalData::atomicStringTable):
  15696. * platform/text/AtomicString.cpp:
  15697. (WebCore::stringTable):
  15698. 2010-04-19 Mark Rowe <mrowe@apple.com>
  15699. Build fix.
  15700. * platform/graphics/mac/GraphicsContext3DMac.cpp:
  15701. 2010-04-19 Chris Fleizach <cfleizach@apple.com>
  15702. Reviewed by Beth Dakin.
  15703. AX: aria-haspopup needs to be exposed
  15704. https://bugs.webkit.org/show_bug.cgi?id=37808
  15705. Test: platform/mac/accessibility/element-haspopup.html
  15706. * accessibility/AccessibilityObject.h:
  15707. (WebCore::AccessibilityObject::ariaHasPopup):
  15708. * accessibility/AccessibilityRenderObject.cpp:
  15709. (WebCore::AccessibilityRenderObject::ariaHasPopup):
  15710. (WebCore::AccessibilityRenderObject::determineAriaRoleAttribute):
  15711. * accessibility/AccessibilityRenderObject.h:
  15712. * accessibility/mac/AccessibilityObjectWrapper.mm:
  15713. (-[AccessibilityObjectWrapper additionalAccessibilityAttributeNames]):
  15714. (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
  15715. 2010-04-19 Anders Carlsson <andersca@apple.com>
  15716. Reviewed by Sam Weinig.
  15717. Fix a crash when rendering <select> elements with WebKit2.
  15718. * rendering/RenderThemeMac.mm:
  15719. (WebCore::RenderThemeMac::paintMenuList):
  15720. Set the current NSGraphicsContext before calling out to AppKit, otherwise the current graphics context
  15721. could point to a CGContext whose memory has been freed.
  15722. 2010-04-08 Dimitri Glazkov <dglazkov@chromium.org>
  15723. Reviewed by Darin Adler.
  15724. Manipulating document fragment members while adding it to tree may result in loss of tree integrity.
  15725. https://bugs.webkit.org/show_bug.cgi?id=36031
  15726. Changes the logic of appending/inserting document fragment to first stashing all of its children
  15727. to a vector, then processing the vector. This avoids ghastliness that would be caused by mutation
  15728. events mucking with the document fragment while it's being appended/inserted.
  15729. Test: fast/dom/Node/fragment-mutation.html
  15730. * dom/ContainerNode.cpp:
  15731. (WebCore::targetNodes): Added method to populate a vector of nodes (targets) to be used in
  15732. inserting/appending operation.
  15733. (WebCore::ContainerNode::insertBefore): Changed to use vector-based iteration.
  15734. (WebCore::ContainerNode::appendChild): Ditto.
  15735. * dom/Node.cpp:
  15736. (WebCore::Node::checkReplaceChild): Cleaned up comments.
  15737. (WebCore::Node::checkAddChild): Ditto.
  15738. 2010-04-19 Eric Carlson <eric.carlson@apple.com>
  15739. Reviewed by Simon Fraser.
  15740. Fix regression introduced in r57820.
  15741. * html/HTMLMediaElement.cpp:
  15742. (WebCore::HTMLMediaElement::loadNextSourceChild): Create a new MediaPlayer instead of
  15743. just setting a URL on the one used for the previous <source> element. This restores
  15744. the behavior prior to the changes for https://bugs.webkit.org/show_bug.cgi?id=37728.
  15745. 2010-04-19 Gavin Barraclough <barraclough@apple.com>
  15746. Reviewed by Sam Weinig.
  15747. https://bugs.webkit.org/show_bug.cgi?id=37745
  15748. Move string uniquing tables to (new) WTFThreadData class.
  15749. Remove AtomicString's dependency on ThreadGlobalData so that we can move
  15750. WebCore's string classes up to WTF.
  15751. * ForwardingHeaders/wtf/WTFThreadData.h: Added.
  15752. * platform/ThreadGlobalData.cpp: Remove m_atomicStringTable, all wtfThreadData() to ensure threadsafely initialized.
  15753. (WebCore::ThreadGlobalData::ThreadGlobalData):
  15754. (WebCore::ThreadGlobalData::~ThreadGlobalData):
  15755. * platform/ThreadGlobalData.h: Remove m_atomicStringTable.
  15756. (WebCore::ThreadGlobalData::eventNames):
  15757. * platform/text/AtomicString.cpp:
  15758. (WebCore::AtomicStringTable::create):
  15759. (WebCore::AtomicStringTable::table):
  15760. (WebCore::AtomicStringTable::destroy):
  15761. (WebCore::stringTable): Access the AtomicStringTable on wtfThreadData() rather then threadGlobalData().
  15762. 2010-04-19 Ada Chan <adachan@apple.com>
  15763. Build fix: wrap Settings::setLocalStorageQuota() and Settings::setSessionStorageQuota()
  15764. in #if ENABLE(DOM_STORAGE).
  15765. * page/Settings.cpp:
  15766. (WebCore::Settings::Settings):
  15767. * page/Settings.h:
  15768. 2010-04-19 Dave Moore <davemoore@chromium.org>
  15769. Reviewed by Dimitri Glazkov.
  15770. Added notification when the favicons for a page are changed
  15771. from a script.
  15772. The Document object will notify the frame loader, which will
  15773. notify the client. Implementations of FrameLoaderClient will
  15774. have to add one method; dispatchDidChangeIcons().
  15775. https://bugs.webkit.org/show_bug.cgi?id=33812
  15776. Test: fast/dom/icon-url-property.html
  15777. * dom/Document.cpp:
  15778. (WebCore::Document::setIconURL):
  15779. * loader/DocumentLoader.cpp:
  15780. (WebCore::DocumentLoader::setIconURL):
  15781. * loader/DocumentLoader.h:
  15782. (WebCore::DocumentLoader::iconURL):
  15783. * loader/EmptyClients.h:
  15784. (WebCore::EmptyFrameLoaderClient::dispatchDidChangeIcons):
  15785. * loader/FrameLoader.cpp:
  15786. (WebCore::FrameLoader::setIconURL):
  15787. (WebCore::FrameLoader::didChangeIcons):
  15788. * loader/FrameLoader.h:
  15789. * loader/FrameLoaderClient.h:
  15790. 2010-04-19 Ada Chan <adachan@apple.com>
  15791. Reviewed by Jeremy Orlow.
  15792. https://bugs.webkit.org/show_bug.cgi?id=37717
  15793. Allow clients concerned with memory consumption to set a quota on session storage
  15794. since the memory used won't be released until the Page is destroyed.
  15795. The default is noQuota, which matches the current behavior.
  15796. * WebCore.base.exp: Export Settings::setSessionStorageQuota().
  15797. * page/Page.cpp:
  15798. (WebCore::Page::sessionStorage):
  15799. * page/Settings.cpp:
  15800. (WebCore::Settings::Settings):
  15801. (WebCore::Settings::setSessionStorageQuota):
  15802. * page/Settings.h:
  15803. (WebCore::Settings::sessionStorageQuota):
  15804. * storage/StorageNamespace.cpp:
  15805. (WebCore::StorageNamespace::sessionStorageNamespace):
  15806. * storage/StorageNamespace.h:
  15807. * storage/StorageNamespaceImpl.cpp:
  15808. (WebCore::StorageNamespaceImpl::sessionStorageNamespace):
  15809. * storage/StorageNamespaceImpl.h:
  15810. 2010-04-19 Eric Carlson <eric.carlson@apple.com>
  15811. Reviewed by Simon Fraser.
  15812. Setting media element 'src' attribute should trigger immediate load
  15813. https://bugs.webkit.org/show_bug.cgi?id=37728
  15814. * html/HTMLMediaElement.cpp:
  15815. (WebCore::HTMLMediaElement::attributeChanged): Schedule load every time 'src' attribute
  15816. changes unless it is missing.
  15817. (WebCore::HTMLMediaElement::prepareForLoad): Include steps 3 to 6 from loadInternal.
  15818. (WebCore::HTMLMediaElement::loadInternal): Steps 3 to 6 are now in prepareForLoad.
  15819. (WebCore::HTMLMediaElement::loadResource): MediaPlayer is now allocated in prepareForLoad
  15820. so the previously loading file, if any, is cancelled there.
  15821. 2010-04-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
  15822. Reviewed by Simon Hausmann.
  15823. [Qt] Fix compilation against namespaced Qt.
  15824. * platform/graphics/GraphicsLayer.h:
  15825. * platform/graphics/Tile.h:
  15826. * platform/graphics/qt/MediaPlayerPrivateQt.h:
  15827. * platform/network/qt/NetworkStateNotifierPrivate.h:
  15828. 2010-04-19 Balazs Kelemen <kb@inf.u-szeged.hu>
  15829. Reviewed by Kenneth Rohde Christiansen.
  15830. [Qt] Destroy SharedTimerQt before destruction of QCoreApplication.
  15831. To avoid unsafe situations caused by running WebCore code (through firing timers) when destruction of QCoreApplication
  15832. has been started, we should explicitly destroy the SharedTimerQt instance on application exit.
  15833. We can achieve that through installing a self-destroying slot for the QCoreApplication::aboutToQuit() signal
  15834. into the SharedTimerQt instance.
  15835. https://bugs.webkit.org/show_bug.cgi?id=36832
  15836. No functional change so no new tests.
  15837. * platform/qt/SharedTimerQt.cpp:
  15838. (WebCore::SharedTimerQt::SharedTimerQt):
  15839. (WebCore::SharedTimerQt::destroy):
  15840. (WebCore::SharedTimerQt::inst):
  15841. 2010-04-19 Dan Bernstein <mitz@apple.com>
  15842. Reviewed by Darin Adler.
  15843. Make the fix for <rdar://problem/7873647> from r57759 more robust.
  15844. * rendering/RenderLayer.cpp:
  15845. (WebCore::RenderLayer::updateHoverActiveState): Use RefPtrs for the Nodes.
  15846. 2010-04-19 Yury Semikhatsky <yurys@chromium.org>
  15847. Unreviewed. Chromium build fix.
  15848. * bindings/v8/JavaScriptCallFrame.h:
  15849. 2010-04-19 Yury Semikhatsky <yurys@chromium.org>
  15850. Reviewed by Pavel Feldman.
  15851. Web Inspector: implement JavaScriptCallFrame that works for v8.
  15852. Implementing this binding for v8 allows to make evaluations on
  15853. call frames and protects access to the debugger context from
  15854. inspected context.
  15855. https://bugs.webkit.org/show_bug.cgi?id=37755
  15856. * WebCore.gyp/WebCore.gyp:
  15857. * WebCore.gypi:
  15858. * bindings/js/JSJavaScriptCallFrameCustom.cpp:
  15859. (WebCore::JSJavaScriptCallFrame::scopeType):
  15860. * bindings/v8/JavaScriptCallFrame.cpp: Added.
  15861. (WebCore::JavaScriptCallFrame::JavaScriptCallFrame):
  15862. (WebCore::JavaScriptCallFrame::~JavaScriptCallFrame):
  15863. (WebCore::JavaScriptCallFrame::caller):
  15864. (WebCore::JavaScriptCallFrame::sourceID):
  15865. (WebCore::JavaScriptCallFrame::line):
  15866. (WebCore::JavaScriptCallFrame::functionName):
  15867. (WebCore::JavaScriptCallFrame::scopeChain):
  15868. (WebCore::JavaScriptCallFrame::scopeType):
  15869. (WebCore::JavaScriptCallFrame::thisObject):
  15870. (WebCore::JavaScriptCallFrame::evaluate):
  15871. * bindings/v8/JavaScriptCallFrame.h: Added.
  15872. (WebCore::JavaScriptCallFrame::create):
  15873. * bindings/v8/ScriptDebugServer.cpp:
  15874. (WebCore::ScriptDebugServer::currentCallFrame):
  15875. * bindings/v8/ScriptDebugServer.h:
  15876. * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
  15877. (WebCore::V8InjectedScriptHost::currentCallFrameCallback):
  15878. * bindings/v8/custom/V8JavaScriptCallFrameCustom.cpp: Added.
  15879. (WebCore::V8JavaScriptCallFrame::evaluateCallback):
  15880. (WebCore::V8JavaScriptCallFrame::scopeChainAccessorGetter):
  15881. (WebCore::V8JavaScriptCallFrame::scopeTypeCallback):
  15882. (WebCore::V8JavaScriptCallFrame::thisObjectAccessorGetter):
  15883. (WebCore::V8JavaScriptCallFrame::typeAccessorGetter):
  15884. * inspector/JavaScriptCallFrame.idl:
  15885. * inspector/front-end/InjectedScript.js:
  15886. (injectedScriptConstructor.):
  15887. 2010-04-19 Jessie Berlin <jberlin@webkit.org>
  15888. Rubber Stamped by Adam Roben
  15889. Chromium Release Build Fix.
  15890. * css/CSSSelector.cpp:
  15891. (WebCore::CSSSelector::pseudoId):
  15892. In the case where the DATALIST is not enabled, fall through to NOPSEUDO instead of omitting PseudoInputListButton entirely from the switch.
  15893. 2010-04-19 Jessie Berlin <jberlin@webkit.org>
  15894. Reviewed by Dave Hyatt.
  15895. First steps towards fixing bug 24021 - pseudo-element styles not accessible / retrievable via DOM methods.
  15896. https://bugs.webkit.org/show_bug.cgi?id=24021
  15897. Allows access to the computed styles for the pseudo-elements through the second argument to getComputedStyle.
  15898. This approach does not provide the correct values for 'length' properties and does not work for the ':selection' pseudo-element and will instead return results similiar to those returned by Firefox. This approach also requires waiting until at least one iteration of a hardware accelerated composited animation to return the correct values for the "opacity" and "transform" properties of a pseudo-element associated with the element being animated.
  15899. Those values need to be retrieved from the renderer for the pseudo-element as opposed to the cached RenderStyle for the element on which the pseudo-element is defined, which is further complicated by the fact that not all elements have renderers.
  15900. Test: fast/css/getComputedStyle/getComputedStyle-with-pseudo-element.html
  15901. * WebCore.base.exp:
  15902. * css/CSSComputedStyleDeclaration.cpp:
  15903. (WebCore::CSSComputedStyleDeclaration::CSSComputedStyleDeclaration):
  15904. Parse the and store the pseudo-element specifier from the string provided by the user.
  15905. (WebCore::CSSComputedStyleDeclaration::getFontSizeCSSValuePreferringKeyword):
  15906. Get the computed style for the pseudo-element if it has been specified.
  15907. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  15908. Get the computed style for the pseudo-element if it has been specified, with a FIXME noting that the values returned for the "opacity" and "transform" properties of a pseudo-element associated with an element being animated and using hardware accelerated compositing will not be correct until after the first iteration of the animation.
  15909. (WebCore::CSSComputedStyleDeclaration::length):
  15910. Get the computed style for the pseudo-element if it has been specified.
  15911. (WebCore::CSSComputedStyleDeclaration::cssPropertyMatches):
  15912. Ditto.
  15913. * css/CSSComputedStyleDeclaration.h:
  15914. (WebCore::computedStyle):
  15915. Take into consideration the pseudo-element.
  15916. * css/CSSSelector.cpp:
  15917. (WebCore::CSSSelector::pseudoId):
  15918. Return the PseudoId that corresponds to the given PseudoType. If there is no corresponding PseudoId, returns NOPSEUDO.
  15919. (WebCore::nameToPseudoTypeMap):
  15920. Create and return the mapping between string names and PseudoTypes.
  15921. (WebCore::CSSSelector::parsePseudoType):
  15922. Parse and the given string into a PseudoType.
  15923. (WebCore::CSSSelector::extractPseudoType):
  15924. Refactored to use parsePseudoType.
  15925. * css/CSSSelector.h:
  15926. * css/CSSStyleSelector.cpp:
  15927. (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
  15928. Refactored to use pseudoId.
  15929. * dom/Element.cpp:
  15930. (WebCore::Element::computedStyle):
  15931. If the pseudo-element is specified, then return the cached RenderStyle for that PseudoId. Added a FIXME to find the actual renders of the pseudo-elements instead of just the cached RenderStyle of the RenderStyle for the associated element.
  15932. * dom/Element.h:
  15933. (WebCore::Element::virtualComputedStyle):
  15934. Because Element::computedStyle is used so often, don't make it virtual. Instead, provide a virtualComputedStyle method in the Node.h class andmake computedStyle non-virtual. That way the Element version and the Node version of computedStyle will have the same name and look the same at the call site, but the Element version will be more efficient.
  15935. * dom/Node.h:
  15936. (WebCore::Node::computedStyle):
  15937. Ditto.
  15938. * dom/Node.cpp:
  15939. (WebCore::Node::virtualComputedStyle):
  15940. Get the computed style for the pseudo-element if it has been specified.
  15941. * page/DOMWindow.cpp:
  15942. (WebCore::DOMWindow::getComputedStyle):
  15943. Ditto.
  15944. 2010-04-18 Simon Hausmann <simon.hausmann@nokia.com>
  15945. Reviewed by Laszlo Gombos.
  15946. [Qt] Fix JavaScriptCore's include path for WinCE builds
  15947. https://bugs.webkit.org/show_bug.cgi?id=36751
  15948. * WebCore.pro:
  15949. 2010-04-17 Alexey Proskuryakov <ap@apple.com>
  15950. Reviewed by Adam Barth.
  15951. https://bugs.webkit.org/show_bug.cgi?id=37720
  15952. <rdar://problem/7873752> HTMLFrameSetElement-window-eventListener-attributes.html sometimes
  15953. crashes on SnowLeopard Release
  15954. Tests:
  15955. * fast/dom/Window/HTMLBodyElement-window-eventListener-attributes.html:
  15956. * fast/dom/Window/HTMLFrameSetElement-window-eventListener-attributes.html:
  15957. * bindings/scripts/CodeGeneratorJS.pm: Use global object as a wrapper for window event
  15958. listeners set via document.body. The body wrapper can go away if nothing else references it.
  15959. * html/HTMLBodyElement.idl: Override listeners that exist on Element with custom implementations,
  15960. because we need to use window object as a wrapper, not the element. Marked all window event
  15961. listeners as such for code generator.
  15962. * html/HTMLFrameSetElement.idl: Ditto.
  15963. 2010-04-17 Juan C. Montemayor <jmonte03@cs.tufts.edu>
  15964. Reviewed by Joseph Pecoraro.
  15965. Databases pane doesn't recognize table creation/deletion
  15966. https://bugs.webkit.org/show_bug.cgi?id=20219
  15967. * inspector/front-end/DatabaseQueryView.js:
  15968. (WebInspector.DatabaseQueryView.prototype._queryFinished):
  15969. 2010-04-17 Yaar Schnitman <yaar@chromium.org>
  15970. Reviewed by Adam Barth.
  15971. Auto-generate V8 bindings for canvas.* overloads
  15972. https://bugs.webkit.org/show_bug.cgi?id=37453
  15973. * bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp: Deleted custom code that is now auto-generated.
  15974. * bindings/scripts/CodeGeneratorV8.pm: Not generating custom signatures for overloaded methods and accepting Object as a string input.
  15975. * html/canvas/CanvasRenderingContext2D.cpp:
  15976. (WebCore::CanvasRenderingContext2D::drawImage): Added missing 9-arguments overloads for drawImage.
  15977. * html/canvas/CanvasRenderingContext2D.h:
  15978. * html/canvas/CanvasRenderingContext2D.idl: Overloaded methods defined (V8 only).
  15979. 2010-04-17 Yury Semikhatsky <yurys@chromium.org>
  15980. Reviewed by Pavel Feldman.
  15981. Web Inspector: move JavaScriptCallFrame.{h,cpp} to WebCore/bindings/js
  15982. https://bugs.webkit.org/show_bug.cgi?id=37740
  15983. * GNUmakefile.am:
  15984. * WebCore.gypi:
  15985. * WebCore.pro:
  15986. * WebCore.vcproj/WebCore.vcproj:
  15987. * WebCore.xcodeproj/project.pbxproj:
  15988. * bindings/js/JSBindingsAllInOne.cpp:
  15989. * bindings/js/JavaScriptCallFrame.cpp: Renamed from WebCore/inspector/JavaScriptCallFrame.cpp.
  15990. (WebCore::JavaScriptCallFrame::JavaScriptCallFrame):
  15991. (WebCore::JavaScriptCallFrame::caller):
  15992. (WebCore::JavaScriptCallFrame::scopeChain):
  15993. (WebCore::JavaScriptCallFrame::dynamicGlobalObject):
  15994. (WebCore::JavaScriptCallFrame::functionName):
  15995. (WebCore::JavaScriptCallFrame::type):
  15996. (WebCore::JavaScriptCallFrame::thisObject):
  15997. (WebCore::JavaScriptCallFrame::evaluate):
  15998. * bindings/js/JavaScriptCallFrame.h: Renamed from WebCore/inspector/JavaScriptCallFrame.h.
  15999. (WebCore::JavaScriptCallFrame::create):
  16000. (WebCore::JavaScriptCallFrame::invalidate):
  16001. (WebCore::JavaScriptCallFrame::isValid):
  16002. (WebCore::JavaScriptCallFrame::sourceID):
  16003. (WebCore::JavaScriptCallFrame::line):
  16004. (WebCore::JavaScriptCallFrame::update):
  16005. * inspector/InjectedScriptHost.h:
  16006. * inspector/InspectorController.h:
  16007. 2010-04-17 Vangelis Kokkevis <vangelis@chromium.org>
  16008. Reviewed by Dimitri Glazkov.
  16009. Adding definition of GLES2Context class.
  16010. https://bugs.webkit.org/show_bug.cgi?id=37541
  16011. No new functionality implemented yet, no tests.
  16012. * WebCore.gypi: Added GLES2Context.h
  16013. * platform/chromium/GLES2Context.h: Added.
  16014. 2010-04-17 Julien Chaffraix <jchaffraix@webkit.org>
  16015. Reviewed by Darin Adler.
  16016. Crash while handling SVG font in the wrong namespace imported with @font-face
  16017. https://bugs.webkit.org/show_bug.cgi?id=18862
  16018. Test: fast/invalid/invalidSVGFont.html
  16019. * loader/CachedFont.cpp:
  16020. (WebCore::CachedFont::getSVGFontById): Make sure we really get an SVGFontElement by using
  16021. getElementsByNameNS: the element factory chooses which element to create based on both
  16022. localName and namespace.
  16023. 2010-04-16 Sheriff Bot <webkit.review.bot@gmail.com>
  16024. Unreviewed, rolling out r57770.
  16025. http://trac.webkit.org/changeset/57770
  16026. https://bugs.webkit.org/show_bug.cgi?id=37746
  16027. 8 test cases crashed (Requested by Ossy on #webkit).
  16028. * platform/graphics/qt/GraphicsLayerQt.cpp:
  16029. (WebCore::AnimationQtBase::AnimationQtBase):
  16030. (WebCore::TransformAnimationQt::~TransformAnimationQt):
  16031. (WebCore::TransformAnimationQt::applyFrame):
  16032. (WebCore::OpacityAnimationQt::applyFrame):
  16033. (WebCore::GraphicsLayerQt::addAnimation):
  16034. 2010-04-16 Daniel Bates <dbates@rim.com>
  16035. Reviewed by Adam Treat.
  16036. https://bugs.webkit.org/show_bug.cgi?id=36312
  16037. Adds support for the viewport meta tag. The code is largely derived in whole
  16038. or in part from the WebCore-528.15 source published as part of the iPhone 3.1.3
  16039. source code <http://www.opensource.apple.com/source/WebCore/WebCore-528.15/>.
  16040. * Android.mk: Added file ViewportArguments.cpp.
  16041. * GNUmakefile.am: Added files ViewportArguments.cpp and ViewportArguments.h.
  16042. * WebCore.gypi: Ditto.
  16043. * WebCore.pro: Ditto.
  16044. * WebCore.vcproj/WebCore.vcproj: Ditto.
  16045. * WebCore.xcodeproj/project.pbxproj: Ditto.
  16046. * dom/Document.cpp:
  16047. (WebCore::isSeparator): Added.
  16048. (WebCore::Document::processArguments): Added.
  16049. (WebCore::Document::processViewport): Added.
  16050. * dom/Document.h:
  16051. * dom/ViewportArguments.cpp: Added.
  16052. (WebCore::setViewportFeature):
  16053. (WebCore::viewportErrorMessageTemplate):
  16054. (WebCore::viewportErrorMessageLevel):
  16055. (WebCore::reportViewportWarning):
  16056. * dom/ViewportArguments.h: Added.
  16057. (WebCore::):
  16058. (WebCore::ViewportArguments::):
  16059. (WebCore::ViewportArguments::ViewportArguments):
  16060. (WebCore::ViewportArguments::hasCustomArgument):
  16061. * html/HTMLMetaElement.cpp:
  16062. (WebCore::HTMLMetaElement::process): Modified to call Document::processViewport.
  16063. * page/ChromeClient.h:
  16064. (WebCore::ChromeClient::didReceiveViewportArguments): Added.
  16065. 2010-04-16 No'am Rosenthal <noam.rosenthal@nokia.com>
  16066. Reviewed by Antti Koivisto.
  16067. [Qt] GraphicsLayer: support fill-modes
  16068. https://bugs.webkit.org/show_bug.cgi?id=36216
  16069. Implement the CSS-animation "fill mode" concept in GraphicsLayerQt. The concept
  16070. enables a key-frame animation to go to the animation's starting point before the delay,
  16071. and/or to stay at the animation's ending point after its ended, without reverting to the default
  16072. value.
  16073. We do that by manually setting the value to keyframe-0 before the delay if fill-mode is backwards/both,
  16074. and manually modifying the default value to the animated value as we animate, with fill-mode forwards/both.
  16075. * platform/graphics/qt/GraphicsLayerQt.cpp:
  16076. (WebCore::AnimationQtBase::AnimationQtBase):
  16077. (WebCore::TransformAnimationQt::~TransformAnimationQt):
  16078. (WebCore::TransformAnimationQt::applyFrame):
  16079. (WebCore::GraphicsLayerQt::addAnimation):
  16080. 2010-04-16 Gavin Barraclough <barraclough@apple.com>
  16081. Reviewed by NOBODY (arm build fix).
  16082. * bindings/js/JSDesktopNotificationsCustom.cpp:
  16083. (WebCore::JSNotification::addEventListener):
  16084. (WebCore::JSNotification::removeEventListener):
  16085. 2010-04-16 Dmitry Titov <dimich@chromium.org>
  16086. Reviewed by Yury Semikhatsky.
  16087. [v8] In Workers, script errors right after close() are not delivered to the Worker.onerror.
  16088. https://bugs.webkit.org/show_bug.cgi?id=37691
  16089. Existing worker-close.html will now work in Chromium.
  16090. * bindings/v8/V8Utilities.cpp:
  16091. (WebCore::getScriptExecutionContext): Stop using proxy() to just retrieve WorkerContext which should be always available.
  16092. * bindings/v8/WorkerContextExecutionProxy.h: removed workerContext() accessor which moved to WorkerScriptController.
  16093. * bindings/v8/WorkerScriptController.h:
  16094. (WebCore::WorkerScriptController::workerContext): Added, to be able to pull WorkerContext out from the controller.
  16095. 2010-04-16 Gavin Barraclough <barraclough@apple.com>
  16096. Reviewed by Sam Weinig.
  16097. https://bugs.webkit.org/show_bug.cgi?id=37735
  16098. Remove JSC specific code from WebCore::AtomicString
  16099. Add generic constructor/add/find methods that take a UChar* & length, along
  16100. with a known existing hash for the string.
  16101. This removes the remaining JSC specific code from platform/text.
  16102. * bindings/js/JSAbstractWorkerCustom.cpp:
  16103. (WebCore::JSAbstractWorker::addEventListener):
  16104. (WebCore::JSAbstractWorker::removeEventListener):
  16105. * bindings/js/JSDOMApplicationCacheCustom.cpp:
  16106. (WebCore::JSDOMApplicationCache::addEventListener):
  16107. (WebCore::JSDOMApplicationCache::removeEventListener):
  16108. * bindings/js/JSDOMBinding.cpp:
  16109. (WebCore::ustringToAtomicString):
  16110. (WebCore::identifierToAtomicString):
  16111. (WebCore::findAtomicString):
  16112. * bindings/js/JSDOMBinding.h:
  16113. * bindings/js/JSDOMWindowCustom.cpp:
  16114. (WebCore::childFrameGetter):
  16115. (WebCore::JSDOMWindow::getOwnPropertySlot):
  16116. (WebCore::JSDOMWindow::getOwnPropertyDescriptor):
  16117. (WebCore::JSDOMWindow::open):
  16118. (WebCore::JSDOMWindow::addEventListener):
  16119. (WebCore::JSDOMWindow::removeEventListener):
  16120. * bindings/js/JSElementCustom.cpp:
  16121. (WebCore::JSElement::setAttribute):
  16122. (WebCore::JSElement::setAttributeNS):
  16123. * bindings/js/JSEventSourceCustom.cpp:
  16124. (WebCore::JSEventSource::addEventListener):
  16125. (WebCore::JSEventSource::removeEventListener):
  16126. * bindings/js/JSHTMLAllCollectionCustom.cpp:
  16127. (WebCore::getNamedItems):
  16128. (WebCore::JSHTMLAllCollection::canGetItemsForName):
  16129. * bindings/js/JSHTMLCollectionCustom.cpp:
  16130. (WebCore::getNamedItems):
  16131. (WebCore::JSHTMLCollection::canGetItemsForName):
  16132. * bindings/js/JSHTMLDocumentCustom.cpp:
  16133. (WebCore::JSHTMLDocument::canGetItemsForName):
  16134. * bindings/js/JSHTMLFormElementCustom.cpp:
  16135. (WebCore::JSHTMLFormElement::canGetItemsForName):
  16136. (WebCore::JSHTMLFormElement::nameGetter):
  16137. * bindings/js/JSHTMLFrameSetElementCustom.cpp:
  16138. (WebCore::JSHTMLFrameSetElement::canGetItemsForName):
  16139. (WebCore::JSHTMLFrameSetElement::nameGetter):
  16140. * bindings/js/JSMessageEventCustom.cpp:
  16141. (WebCore::JSMessageEvent::initMessageEvent):
  16142. * bindings/js/JSMessagePortCustom.cpp:
  16143. (WebCore::JSMessagePort::addEventListener):
  16144. (WebCore::JSMessagePort::removeEventListener):
  16145. * bindings/js/JSMimeTypeArrayCustom.cpp:
  16146. (WebCore::JSMimeTypeArray::canGetItemsForName):
  16147. (WebCore::JSMimeTypeArray::nameGetter):
  16148. * bindings/js/JSNodeCustom.cpp:
  16149. (WebCore::JSNode::addEventListener):
  16150. (WebCore::JSNode::removeEventListener):
  16151. * bindings/js/JSNodeListCustom.cpp:
  16152. (WebCore::JSNodeList::canGetItemsForName):
  16153. (WebCore::JSNodeList::nameGetter):
  16154. * bindings/js/JSPluginArrayCustom.cpp:
  16155. (WebCore::JSPluginArray::canGetItemsForName):
  16156. (WebCore::JSPluginArray::nameGetter):
  16157. * bindings/js/JSPluginCustom.cpp:
  16158. (WebCore::JSPlugin::canGetItemsForName):
  16159. (WebCore::JSPlugin::nameGetter):
  16160. * bindings/js/JSPopStateEventCustom.cpp:
  16161. (WebCore::JSPopStateEvent::initPopStateEvent):
  16162. * bindings/js/JSSVGElementInstanceCustom.cpp:
  16163. (WebCore::JSSVGElementInstance::addEventListener):
  16164. (WebCore::JSSVGElementInstance::removeEventListener):
  16165. * bindings/js/JSWebSocketCustom.cpp:
  16166. (WebCore::JSWebSocket::addEventListener):
  16167. (WebCore::JSWebSocket::removeEventListener):
  16168. * bindings/js/JSWorkerContextCustom.cpp:
  16169. (WebCore::JSWorkerContext::addEventListener):
  16170. (WebCore::JSWorkerContext::removeEventListener):
  16171. * bindings/js/JSXMLHttpRequestCustom.cpp:
  16172. (WebCore::JSXMLHttpRequest::setRequestHeader):
  16173. (WebCore::JSXMLHttpRequest::getResponseHeader):
  16174. (WebCore::JSXMLHttpRequest::addEventListener):
  16175. (WebCore::JSXMLHttpRequest::removeEventListener):
  16176. * bindings/js/JSXMLHttpRequestUploadCustom.cpp:
  16177. (WebCore::JSXMLHttpRequestUpload::addEventListener):
  16178. (WebCore::JSXMLHttpRequestUpload::removeEventListener):
  16179. * platform/text/AtomicString.cpp:
  16180. (WebCore::AtomicString::add):
  16181. (WebCore::AtomicString::find):
  16182. * platform/text/AtomicString.h:
  16183. (WebCore::AtomicString::AtomicString):
  16184. 2010-04-16 Fumitoshi Ukai <ukai@chromium.org>
  16185. Reviewed by Alexey Proskuryakov.
  16186. WebSocket crash when it receives bad header.
  16187. https://bugs.webkit.org/show_bug.cgi?id=37682
  16188. If name or value is not valid UTF-8, nameStr or valueStr would be
  16189. null string, so crashed in headers->add(nameStr, valueStr).
  16190. Check both nameStr and valueStr are not null string.
  16191. Otherwise handshake will fail.
  16192. Test: websocket/tests/bad-handshake-crash.html
  16193. * websockets/WebSocketHandshake.cpp:
  16194. (WebCore::WebSocketHandshake::readHTTPHeaders): check nameStr and valueStr are not null string.
  16195. 2010-04-16 Dan Bernstein <mitz@apple.com>
  16196. Reviewed by Simon Fraser.
  16197. <rdar://problem/7873647> Crash when updating hover state
  16198. Test: fast/dynamic/hover-style-recalc-crash.html
  16199. Updating the hover state of an element caused the document to need style
  16200. recalc, and then updating the hover state of a link caused style recalc,
  16201. which changed the render tree while updateHoverActiveState() was iterating
  16202. over it, leading to a crash.
  16203. * rendering/RenderLayer.cpp:
  16204. (WebCore::RenderLayer::updateHoverActiveState): Collect the nodes to be
  16205. updated into vectors, then update their active and hover states.
  16206. 2010-04-16 Dumitru Daniliuc <dumi@chromium.org>
  16207. Reviewed by Alexey Proskuryakov.
  16208. Make Safari correctly allocate 5MB of DB storage to all new
  16209. origins.
  16210. https://bugs.webkit.org/show_bug.cgi?id=36671
  16211. Eric fixed the same problem in
  16212. DatabaseTracker::fullPathForDatabaseNoLock() in r57128, but forgot
  16213. to fix it in DatabaseTracker::detailsForNameAndOrigin() too.
  16214. * storage/DatabaseTracker.cpp:
  16215. (WebCore::DatabaseTracker::detailsForNameAndOrigin):
  16216. 2010-04-16 Kinuko Yasuda <kinuko@chromium.org>
  16217. Reviewed by Jian Li.
  16218. Implement FileStreamProxy that calls FileStream methods on FileThread for FileAPI
  16219. https://bugs.webkit.org/show_bug.cgi?id=37218
  16220. No new tests; tests will be added when we add upper layer implementations.
  16221. * GNUmakefile.am:
  16222. * WebCore.gypi:
  16223. * WebCore.pro:
  16224. * WebCore.vcproj/WebCore.vcproj:
  16225. * WebCore.xcodeproj/project.pbxproj:
  16226. * html/FileStream.cpp:
  16227. (WebCore::FileStream::stop):
  16228. * html/FileStream.h:
  16229. * html/FileStreamClient.h:
  16230. (WebCore::FileStreamClient::didStop):
  16231. * html/FileStreamProxy.cpp: Added
  16232. * html/FileStreamProxy.h: Added
  16233. * html/FileThreadTask.h: Added
  16234. 2010-04-16 Gavin Barraclough <barraclough@apple.com>
  16235. Reviewed by Oliver Hunt.
  16236. Bug 37730 - Remove JSC::UString dependencies from WebCore::StringImpl
  16237. (Following on from bug #37675).
  16238. Remove ustring() method, and constructor passed a UString.
  16239. * WebCore.base.exp:
  16240. * bindings/js/JSDOMBinding.cpp:
  16241. (WebCore::stringimplToUString):
  16242. (WebCore::jsStringSlowCase):
  16243. (WebCore::ustringToString):
  16244. (WebCore::stringToUString):
  16245. (WebCore::identifierToString):
  16246. * bindings/js/JSDOMBinding.h:
  16247. (WebCore::jsString):
  16248. * platform/text/AtomicString.cpp:
  16249. (WebCore::AtomicString::operator UString):
  16250. * platform/text/StringImpl.cpp:
  16251. (WebCore::StringImpl::create):
  16252. * platform/text/StringImpl.h:
  16253. 2010-04-16 Jarkko Sakkinen <jarkko.j.sakkinen@gmail.com>
  16254. Reviewed by Simon Hausmann.
  16255. [Qt] WebGL is not visible when QGLWidget viewport is used
  16256. https://bugs.webkit.org/show_bug.cgi?id=37070
  16257. Added HostWindow parameter to the constructor of GraphicsContext3D.
  16258. Shared OpenGL context is initialized with parent QGLWidget.
  16259. * html/canvas/WebGLRenderingContext.cpp:
  16260. (WebCore::WebGLRenderingContext::create):
  16261. * platform/graphics/GraphicsContext3D.h:
  16262. * platform/graphics/mac/GraphicsContext3DMac.cpp:
  16263. (WebCore::GraphicsContext3D::create):
  16264. (WebCore::GraphicsContext3D::GraphicsContext3D):
  16265. * platform/graphics/qt/GraphicsContext3DQt.cpp:
  16266. (WebCore::GraphicsContext3DInternal::GraphicsContext3DInternal):
  16267. (WebCore::GraphicsContext3DInternal::~GraphicsContext3DInternal):
  16268. (WebCore::GraphicsContext3DInternal::getOwnerGLWidget):
  16269. (WebCore::GraphicsContext3D::create):
  16270. (WebCore::GraphicsContext3D::GraphicsContext3D):
  16271. 2010-04-16 Jarkko Sakkinen <jarkko.j.sakkinen@gmail.com>
  16272. Reviewed by Simon Hausmann.
  16273. [Qt] WebKit compilation fails with --3d-canvas
  16274. https://bugs.webkit.org/show_bug.cgi?id=37699
  16275. API for readPixels() has been changed.
  16276. * platform/graphics/qt/GraphicsContext3DQt.cpp:
  16277. (WebCore::GraphicsContext3D::readPixels):
  16278. 2010-04-16 No'am Rosenthal <noam.rosenthal@nokia.com>
  16279. Reviewed by Antti Koivisto.
  16280. [Qt]QtLauncher crash on page with CSS 3D transform
  16281. https://bugs.webkit.org/show_bug.cgi?id=36859
  16282. Added a neccessary null-pointer check, lack of which created the crash circumstances.
  16283. Tested by http://css-vfx.googlecode.com/svn/trunk/snowstack/snowstack.html
  16284. * platform/graphics/qt/GraphicsLayerQt.cpp:
  16285. (WebCore::GraphicsLayerQtImpl::flushChanges):
  16286. 2010-04-16 Anders Carlsson <andersca@apple.com>
  16287. Reviewed by Sam Weinig.
  16288. Make sure to update the current graphics context when calling out to AppKit.
  16289. * platform/mac/ThemeMac.mm:
  16290. (WebCore::paintCheckbox):
  16291. (WebCore::paintRadio):
  16292. 2010-04-15 Gavin Barraclough <barraclough@apple.com>
  16293. Reviewed by Sam Weinig & Oliver Hunt.
  16294. https://bugs.webkit.org/show_bug.cgi?id=37675
  16295. Remove casts/constructors to/from JSC::UString type from WebCore::String
  16296. WebCore's strings should not know about JSC::UString, this should be abstracted
  16297. away in the bindings. Add explicit conversion methods rather than relying on
  16298. overloaded cast operators / constructors being implicitly called.
  16299. This patch only changes the class String, once this has landed StringImpl, and
  16300. hopefully AtomicString too, should follow suit.
  16301. This patch adds:
  16302. WebCore::identifierToString
  16303. WebCore::ustringToString
  16304. WebCore::stringToUString
  16305. - to JSDOMBindings.h, and updates code to call these methods.
  16306. * WebCore.base.exp:
  16307. * WebCore.order:
  16308. * bindings/js/CachedScriptSourceProvider.h:
  16309. (WebCore::CachedScriptSourceProvider::CachedScriptSourceProvider):
  16310. * bindings/js/JSAudioConstructor.cpp:
  16311. (WebCore::constructAudio):
  16312. * bindings/js/JSCSSStyleDeclarationCustom.cpp:
  16313. (WebCore::JSCSSStyleDeclaration::nameGetter):
  16314. * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
  16315. (WebCore::toHTMLCanvasStyle):
  16316. (WebCore::JSCanvasRenderingContext2D::setFillColor):
  16317. (WebCore::JSCanvasRenderingContext2D::setStrokeColor):
  16318. (WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
  16319. (WebCore::JSCanvasRenderingContext2D::setShadow):
  16320. (WebCore::JSCanvasRenderingContext2D::fillText):
  16321. (WebCore::JSCanvasRenderingContext2D::strokeText):
  16322. * bindings/js/JSClipboardCustom.cpp:
  16323. (WebCore::JSClipboard::types):
  16324. (WebCore::JSClipboard::clearData):
  16325. (WebCore::JSClipboard::getData):
  16326. (WebCore::JSClipboard::setData):
  16327. * bindings/js/JSCustomXPathNSResolver.cpp:
  16328. (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
  16329. * bindings/js/JSDOMBinding.cpp:
  16330. (WebCore::identifierToString):
  16331. (WebCore::ustringToString):
  16332. (WebCore::stringToUString):
  16333. (WebCore::valueToStringWithNullCheck):
  16334. (WebCore::valueToStringWithUndefinedOrNullCheck):
  16335. (WebCore::reportException):
  16336. * bindings/js/JSDOMBinding.h:
  16337. * bindings/js/JSDOMFormDataCustom.cpp:
  16338. (WebCore::JSDOMFormData::append):
  16339. * bindings/js/JSDOMWindowCustom.cpp:
  16340. (WebCore::namedItemGetter):
  16341. (WebCore::JSDOMWindow::setLocation):
  16342. (WebCore::JSDOMWindow::openDatabase):
  16343. * bindings/js/JSDatabaseCustom.cpp:
  16344. (WebCore::JSDatabase::changeVersion):
  16345. * bindings/js/JSDocumentCustom.cpp:
  16346. (WebCore::JSDocument::setLocation):
  16347. * bindings/js/JSEventListener.cpp:
  16348. (WebCore::JSEventListener::handleEvent):
  16349. * bindings/js/JSEventSourceConstructor.cpp:
  16350. (WebCore::constructEventSource):
  16351. * bindings/js/JSHTMLAllCollectionCustom.cpp:
  16352. (WebCore::callHTMLAllCollection):
  16353. * bindings/js/JSHTMLCanvasElementCustom.cpp:
  16354. (WebCore::JSHTMLCanvasElement::getContext):
  16355. * bindings/js/JSHTMLCollectionCustom.cpp:
  16356. (WebCore::callHTMLCollection):
  16357. * bindings/js/JSHTMLDocumentCustom.cpp:
  16358. (WebCore::JSHTMLDocument::nameGetter):
  16359. (WebCore::documentWrite):
  16360. * bindings/js/JSInjectedScriptHostCustom.cpp:
  16361. (WebCore::InjectedScriptHost::createInjectedScript):
  16362. * bindings/js/JSInspectorFrontendHostCustom.cpp:
  16363. (WebCore::JSInspectorFrontendHost::showContextMenu):
  16364. * bindings/js/JSLazyEventListener.cpp:
  16365. (WebCore::JSLazyEventListener::initializeJSFunction):
  16366. * bindings/js/JSLocationCustom.cpp:
  16367. (WebCore::JSLocation::setHref):
  16368. (WebCore::JSLocation::setProtocol):
  16369. (WebCore::JSLocation::setHost):
  16370. (WebCore::JSLocation::setHostname):
  16371. (WebCore::JSLocation::setPathname):
  16372. (WebCore::JSLocation::setSearch):
  16373. (WebCore::JSLocation::setHash):
  16374. (WebCore::JSLocation::replace):
  16375. (WebCore::JSLocation::assign):
  16376. * bindings/js/JSMessageEventCustom.cpp:
  16377. (WebCore::JSMessageEvent::initMessageEvent):
  16378. * bindings/js/JSNamedNodeMapCustom.cpp:
  16379. (WebCore::JSNamedNodeMap::canGetItemsForName):
  16380. (WebCore::JSNamedNodeMap::nameGetter):
  16381. * bindings/js/JSOptionConstructor.cpp:
  16382. (WebCore::constructHTMLOptionElement):
  16383. * bindings/js/JSSQLResultSetRowListCustom.cpp:
  16384. (WebCore::JSSQLResultSetRowList::item):
  16385. * bindings/js/JSSQLTransactionCustom.cpp:
  16386. (WebCore::JSSQLTransaction::executeSql):
  16387. * bindings/js/JSSharedWorkerConstructor.cpp:
  16388. (WebCore::constructSharedWorker):
  16389. * bindings/js/JSStorageCustom.cpp:
  16390. (WebCore::JSStorage::canGetItemsForName):
  16391. (WebCore::JSStorage::nameGetter):
  16392. (WebCore::JSStorage::deleteProperty):
  16393. (WebCore::JSStorage::getOwnPropertyNames):
  16394. (WebCore::JSStorage::putDelegate):
  16395. * bindings/js/JSStyleSheetListCustom.cpp:
  16396. (WebCore::JSStyleSheetList::canGetItemsForName):
  16397. (WebCore::JSStyleSheetList::nameGetter):
  16398. * bindings/js/JSWebKitCSSMatrixConstructor.cpp:
  16399. (WebCore::constructWebKitCSSMatrix):
  16400. * bindings/js/JSWebSocketConstructor.cpp:
  16401. (WebCore::constructWebSocket):
  16402. * bindings/js/JSWebSocketCustom.cpp:
  16403. (WebCore::JSWebSocket::send):
  16404. * bindings/js/JSWorkerConstructor.cpp:
  16405. (WebCore::constructWorker):
  16406. * bindings/js/JSWorkerContextCustom.cpp:
  16407. (WebCore::JSWorkerContext::importScripts):
  16408. * bindings/js/JSXMLHttpRequestCustom.cpp:
  16409. (WebCore::JSXMLHttpRequest::open):
  16410. (WebCore::JSXMLHttpRequest::setRequestHeader):
  16411. (WebCore::JSXMLHttpRequest::send):
  16412. (WebCore::JSXMLHttpRequest::overrideMimeType):
  16413. * bindings/js/JSXSLTProcessorCustom.cpp:
  16414. (WebCore::JSXSLTProcessor::setParameter):
  16415. (WebCore::JSXSLTProcessor::getParameter):
  16416. (WebCore::JSXSLTProcessor::removeParameter):
  16417. * bindings/js/ScheduledAction.cpp:
  16418. (WebCore::ScheduledAction::create):
  16419. * bindings/js/ScriptCallFrame.cpp:
  16420. (WebCore::ScriptCallFrame::ScriptCallFrame):
  16421. * bindings/js/ScriptController.cpp:
  16422. (WebCore::ScriptController::evaluateInWorld):
  16423. * bindings/js/ScriptDebugServer.cpp:
  16424. (WebCore::ScriptDebugServer::hasBreakpoint):
  16425. (WebCore::ScriptDebugServer::dispatchDidParseSource):
  16426. (WebCore::ScriptDebugServer::dispatchFailedToParseSource):
  16427. (WebCore::ScriptDebugServer::sourceParsed):
  16428. * bindings/js/ScriptEventListener.cpp:
  16429. (WebCore::getEventListenerHandlerBody):
  16430. * bindings/js/ScriptFunctionCall.cpp:
  16431. (WebCore::ScriptFunctionCall::appendArgument):
  16432. (WebCore::ScriptFunctionCall::call):
  16433. (WebCore::ScriptFunctionCall::construct):
  16434. * bindings/js/ScriptObject.cpp:
  16435. (WebCore::ScriptObject::set):
  16436. * bindings/js/ScriptProfiler.cpp:
  16437. (WebCore::ScriptProfiler::start):
  16438. (WebCore::ScriptProfiler::stop):
  16439. * bindings/js/ScriptString.h:
  16440. (WebCore::ScriptString::operator String):
  16441. (WebCore::ScriptString::ustring):
  16442. (WebCore::ScriptString::operator+=):
  16443. * bindings/js/ScriptValue.cpp:
  16444. (WebCore::ScriptValue::getString):
  16445. * bindings/js/ScriptValue.h:
  16446. (WebCore::ScriptValue::toString):
  16447. * bindings/js/SerializedScriptValue.cpp:
  16448. (WebCore::SerializedObject::set):
  16449. (WebCore::SerializingTreeWalker::convertIfTerminal):
  16450. (WebCore::DeserializingTreeWalker::putProperty):
  16451. * bindings/js/StringSourceProvider.h:
  16452. (WebCore::StringSourceProvider::StringSourceProvider):
  16453. * bindings/objc/WebScriptObject.mm:
  16454. (-[WebScriptObject callWebScriptMethod:withArguments:]):
  16455. (-[WebScriptObject setValue:forKey:]):
  16456. (-[WebScriptObject valueForKey:]):
  16457. (-[WebScriptObject removeWebScriptKey:]):
  16458. * bindings/scripts/CodeGeneratorJS.pm:
  16459. * bridge/IdentifierRep.cpp:
  16460. (WebCore::IdentifierRep::get):
  16461. * bridge/c/c_utility.cpp:
  16462. (JSC::Bindings::identifierFromNPIdentifier):
  16463. * inspector/InspectorController.cpp:
  16464. (WebCore::InspectorController::scriptImported):
  16465. (WebCore::InspectorController::addProfileFinishedMessageToConsole):
  16466. (WebCore::InspectorController::createProfileHeader):
  16467. * inspector/InspectorResource.cpp:
  16468. (WebCore::InspectorResource::sourceString):
  16469. * inspector/JavaScriptCallFrame.cpp:
  16470. (WebCore::JavaScriptCallFrame::functionName):
  16471. * platform/KURL.h:
  16472. (WebCore::KURL::operator const String&):
  16473. * platform/text/AtomicString.cpp:
  16474. (WebCore::AtomicString::operator UString):
  16475. * platform/text/AtomicString.h:
  16476. * platform/text/PlatformString.h:
  16477. * platform/text/String.cpp:
  16478. 2010-04-16 Anders Carlsson <andersca@apple.com>
  16479. Reviewed by David Hyatt.
  16480. Always pass a view to the AppKit drawing functions.
  16481. https://bugs.webkit.org/show_bug.cgi?id=37724
  16482. * platform/mac/ThemeMac.mm:
  16483. (WebCore::paintCheckbox):
  16484. (WebCore::paintRadio):
  16485. * rendering/RenderThemeMac.mm:
  16486. (WebCore::RenderThemeMac::paintMenuList):
  16487. (WebCore::RenderThemeMac::paintSliderThumb):
  16488. (WebCore::RenderThemeMac::paintSearchField):
  16489. (WebCore::RenderThemeMac::paintSearchFieldCancelButton):
  16490. (WebCore::RenderThemeMac::paintSearchFieldResultsDecoration):
  16491. (WebCore::RenderThemeMac::paintSearchFieldResultsButton):
  16492. 2010-04-16 Alexey Proskuryakov <ap@apple.com>
  16493. Reviewed by Dan Bernstein.
  16494. https://bugs.webkit.org/show_bug.cgi?id=37718
  16495. Safari crashes with certain JavaScript charCode events in EventHandler::needsKeyboardEventDisambiguationQuirks
  16496. Test: fast/events/recorded-keydown-event.html
  16497. * dom/KeyboardEvent.cpp: (WebCore::KeyboardEvent::charCode): Check if the view (window) is
  16498. frameless.
  16499. 2010-04-16 Jian Li <jianli@chromium.org>
  16500. Reviewed by Dmitry Titov.
  16501. Update FormDataList to fix style violations in old code.
  16502. https://bugs.webkit.org/show_bug.cgi?id=37689
  16503. * html/FormDataList.h:
  16504. (WebCore::FormDataList::appendData):
  16505. (WebCore::FormDataList::appendBlob):
  16506. 2010-04-16 Anders Carlsson <andersca@apple.com>
  16507. Fix WebKit2 build.
  16508. * WebCore.base.exp:
  16509. 2010-04-16 Jay Civelli <jcivelli@chromium.org>
  16510. Reviewed by Dimitri Glazkov.
  16511. [chromium] Fix Mac build.
  16512. https://bugs.webkit.org/show_bug.cgi?id=37436
  16513. * platform/chromium/PopupMenuChromium.h:
  16514. 2010-04-16 Jay Civelli <jcivelli@chromium.org>
  16515. Reviewed by Dimitri Glazkov.
  16516. [chromium] Select popups would assert when destroyed.
  16517. https://bugs.webkit.org/show_bug.cgi?id=37436
  16518. * platform/chromium/PopupMenuChromium.cpp:
  16519. (WebCore::PopupContainer::PopupContainer):
  16520. (WebCore::PopupContainer::showPopup):
  16521. (WebCore::PopupContainer::notifyPopupHidden):
  16522. * platform/chromium/PopupMenuChromium.h:
  16523. 2010-04-16 Antonio Gomes <tonikitoo@webkit.org>
  16524. Unreviewed QtWebKit (with Qt 4.7) build fix.
  16525. Bug 37683 moved code from FontQt.cpp to FontPlatformDataQt.cpp but did not
  16526. renamed the variable used.
  16527. * platform/graphics/qt/FontPlatformDataQt.cpp:
  16528. (WebCore::FontPlatformData::FontPlatformData):
  16529. 2010-04-16 Noam Rosenthal <noam.rosenthal@nokia.com>
  16530. Reviewed by Kenneth Rohde Christiansen.
  16531. Make GraphicsLayerQt always use ItemCoordinateCache, and remove ItemUsesExtendedStyleOption.
  16532. This aligns our implementation with the Safari implementation - layers are always uploaded
  16533. to textures in item units, and WebCore is responsible for the heuristics.
  16534. [Qt] GraphicsLayer: performance optimizations
  16535. https://bugs.webkit.org/show_bug.cgi?id=35393
  16536. No new tests. Still no FPS benchmarks available (on any platform)
  16537. but animations are noticably better.
  16538. * platform/graphics/qt/GraphicsLayerQt.cpp:
  16539. (WebCore::GraphicsLayerQtImpl::GraphicsLayerQtImpl):
  16540. (WebCore::GraphicsLayerQtImpl::paint):
  16541. (WebCore::GraphicsLayerQtImpl::flushChanges):
  16542. (WebCore::TransformAnimationQt::updateState):
  16543. 2010-04-16 Simon Hausmann <simon.hausmann@nokia.com>
  16544. Reviewed by Kenneth Rohde Christiansen.
  16545. [Qt] WebCore::Font::font() causes a QFont detach
  16546. https://bugs.webkit.org/show_bug.cgi?id=37683
  16547. Moved the setStyleStrategy call to FontPlatformData
  16548. to avoid the detach.
  16549. Thanks to Holger for spotting this.
  16550. * platform/graphics/qt/FontPlatformDataQt.cpp:
  16551. (WebCore::FontPlatformData::FontPlatformData):
  16552. * platform/graphics/qt/FontQt.cpp:
  16553. (WebCore::Font::font):
  16554. 2010-04-15 Matt Perry <mpcomplete@chromium.org>
  16555. Reviewed by Adam Barth.
  16556. Remove the check for the main frame's scheme when deciding which
  16557. v8 extensions to add to a script context. Instead, Chromium will
  16558. handle that check elsewhere to allow finer-grained control over
  16559. what APIs we expose to web pages.
  16560. https://bugs.webkit.org/show_bug.cgi?id=37681
  16561. * bindings/v8/V8DOMWindowShell.cpp:
  16562. (WebCore::V8DOMWindowShell::createNewContext):
  16563. 2010-04-15 Luiz Agostini <luiz.agostini@openbossa.org>
  16564. Reviewed by Antti Koivisto.
  16565. No default selection for <select multiple> menu lists.
  16566. https://bugs.webkit.org/show_bug.cgi?id=37530
  16567. Manual test: manual-tests/no-listbox-rendering.html
  16568. For menu lists, if the selection is not indicated by the html file, the first <option> will be
  16569. selected after loading the page or reseting the form. On the other hand listboxes may have no
  16570. element selected after loading the page or reseting the form.
  16571. When NO_LISTBOX_RENDERING is enabled listboxes becomes menu lists. Those <select multiple>
  16572. that did not have selected elements, now being menu lists, will have the first <option>
  16573. selected. That is the behavior difference that this patch corrects.
  16574. When NO_LISTBOX_RENDERING is enabled usesMenuList() always returns true then usesMenuList() cannot
  16575. be used to decide about initial selection of the elements. This patch replaces (usesMenuLists())
  16576. by (!multiple && size <= 1) where initial selection is considered.
  16577. * dom/SelectElement.cpp:
  16578. (WebCore::SelectElement::recalcListItems):
  16579. (WebCore::SelectElement::reset):
  16580. * manual-tests/no-listbox-rendering.html: Added.
  16581. 2010-04-15 Zhenyao Mo <zmo@google.com>
  16582. Reviewed by Dimitri Glazkov.
  16583. Index validation code validates too many vertex attributes
  16584. https://bugs.webkit.org/show_bug.cgi?id=31892
  16585. * html/canvas/WebGLProgram.cpp:
  16586. (WebCore::WebGLProgram::cacheActiveAttribLocations): Cache active attribute locations for a program at linkProgram time.
  16587. (WebCore::WebGLProgram::getActiveAttribLocation): Get the cached attribute location.
  16588. (WebCore::WebGLProgram::numActiveAttribLocations): Get the number of cached attribute locations.
  16589. * html/canvas/WebGLProgram.h: Add attribute locations member.
  16590. * html/canvas/WebGLRenderingContext.cpp:
  16591. (WebCore::WebGLRenderingContext::validateRenderingState): Add logic not to validate those attributes that do not belong to the current program.
  16592. (WebCore::WebGLRenderingContext::linkProgram): Call cacheActiveAttribLocations().
  16593. 2010-04-16 Adam Roben <aroben@apple.com>
  16594. Don't assert when soft-linked libraries can't be found
  16595. In some situations (e.g., when using SOFT_LINK_OPTIONAL), we expect soft-link libraries not
  16596. to be able to be found in all cases. So we shouldn't assert that they're always found.
  16597. Reviewed by Sam Weinig.
  16598. * platform/win/SoftLinking.h:
  16599. (SOFT_LINK): Don't assert when LoadLibrary fails.
  16600. 2010-04-15 Dmitry Titov <dimich@chromium.org>
  16601. Unreviewed, rolling out r57688.
  16602. http://trac.webkit.org/changeset/57688
  16603. https://bugs.webkit.org/show_bug.cgi?id=34992
  16604. Makes fast/workers/dedicated-worker-lifecycle.html crashing on all GTK bots
  16605. * bindings/js/JSWorkerContextCustom.cpp:
  16606. * bindings/v8/custom/V8WorkerContextCustom.cpp:
  16607. * storage/Database.idl:
  16608. * storage/SQLError.idl:
  16609. * storage/SQLResultSet.idl:
  16610. * storage/SQLResultSetRowList.idl:
  16611. * storage/SQLTransaction.idl:
  16612. * workers/WorkerContext.cpp:
  16613. (WebCore::WorkerContext::openDatabase):
  16614. * workers/WorkerContext.h:
  16615. (WebCore::WorkerContext::databaseExceededQuota):
  16616. * workers/WorkerContext.idl:
  16617. 2010-04-15 Yury Semikhatsky <yurys@google.com>
  16618. Reviewed by Pavel Feldman.
  16619. Support basic debugging capabilities including step in/over/out in v8
  16620. implementation of ScriptDebugServer.
  16621. https://bugs.webkit.org/show_bug.cgi?id=37604
  16622. * bindings/js/JSInjectedScriptHostCustom.cpp:
  16623. (WebCore::InjectedScriptHost::createInjectedScript):
  16624. * bindings/v8/ScriptDebugServer.cpp:
  16625. (WebCore::ScriptDebugServer::ScriptDebugServer):
  16626. (WebCore::ScriptDebugServer::setDebuggerScriptSource):
  16627. (WebCore::ScriptDebugServer::addListener):
  16628. (WebCore::ScriptDebugServer::removeListener):
  16629. (WebCore::ScriptDebugServer::setBreakpoint):
  16630. (WebCore::ScriptDebugServer::removeBreakpoint):
  16631. (WebCore::ScriptDebugServer::clearBreakpoints):
  16632. (WebCore::ScriptDebugServer::setBreakpointsActivated):
  16633. (WebCore::ScriptDebugServer::continueProgram):
  16634. (WebCore::ScriptDebugServer::stepIntoStatement):
  16635. (WebCore::ScriptDebugServer::stepOverStatement):
  16636. (WebCore::ScriptDebugServer::stepOutOfFunction):
  16637. (WebCore::ScriptDebugServer::currentCallFrameState):
  16638. (WebCore::ScriptDebugServer::currentCallFrameV8):
  16639. (WebCore::ScriptDebugServer::onV8DebugMessage):
  16640. (WebCore::ScriptDebugServer::onV8DebugHostDispatch):
  16641. (WebCore::ScriptDebugServer::handleV8DebugHostDispatch):
  16642. (WebCore::ScriptDebugServer::handleV8DebugMessage):
  16643. (WebCore::ScriptDebugServer::dispatchDidParseSource):
  16644. (WebCore::ScriptDebugServer::ensureDebuggerScriptCompiled):
  16645. (WebCore::ScriptDebugServer::didResume):
  16646. * bindings/v8/ScriptDebugServer.h:
  16647. (WebCore::ScriptDebugServer::pauseOnExceptionsState):
  16648. (WebCore::ScriptDebugServer::setPauseOnExceptionsState):
  16649. (WebCore::ScriptDebugServer::setMessageLoopDispatchHandler):
  16650. * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
  16651. (WebCore::InjectedScriptHost::createInjectedScript):
  16652. (WebCore::V8InjectedScriptHost::currentCallFrameCallback):
  16653. (WebCore::V8InjectedScriptHost::isActivationCallback):
  16654. * inspector/front-end/InjectedScript.js:
  16655. (injectedScriptConstructor):
  16656. (injectedScriptConstructor.):
  16657. * inspector/front-end/ScriptsPanel.js:
  16658. (WebInspector.ScriptsPanel):
  16659. 2010-04-15 Jian Li <jianli@chromium.org>
  16660. Reviewed by Dmitry Titov.
  16661. Support using FormData to send a sliced file via XHR.
  16662. https://bugs.webkit.org/show_bug.cgi?id=36678
  16663. Tests: http/tests/local/formdata/send-form-data-with-sliced-file.html
  16664. * html/Blob.h:
  16665. (WebCore::Blob::isFile):
  16666. * html/DOMFormData.cpp:
  16667. (WebCore::DOMFormData::append):
  16668. * html/File.h:
  16669. (WebCore::File::isFile):
  16670. * html/FormDataList.h:
  16671. (WebCore::FormDataList::appendBlob):
  16672. (WebCore::FormDataList::Item::Item):
  16673. (WebCore::FormDataList::Item::blob):
  16674. * html/HTMLInputElement.cpp:
  16675. (WebCore::HTMLInputElement::appendFormData):
  16676. * platform/network/FormData.cpp:
  16677. (WebCore::FormData::appendDOMFormData):
  16678. * platform/network/mac/FormDataStreamMac.mm:
  16679. (WebCore::closeCurrentStream):
  16680. 2010-04-15 Zhenyao Mo <zmo@google.com>
  16681. Reviewed by Dimitri Glazkov.
  16682. Must enable GL_VERTEX_PROGRAM_POINT_SIZE during initialization
  16683. https://bugs.webkit.org/show_bug.cgi?id=37178
  16684. Test: fast/canvas/webgl/point-size.html
  16685. * platform/graphics/mac/GraphicsContext3DMac.cpp: Enable GL_VERTEX_PROGRAM_POINT_SIZE during initialization.
  16686. (WebCore::GraphicsContext3D::GraphicsContext3D):
  16687. 2010-04-15 Eric Uhrhane <ericu@chromium.org>
  16688. Reviewed by Dmitry Titov.
  16689. Add bindings for async DB API in Workers.
  16690. https://bugs.webkit.org/show_bug.cgi?id=34992
  16691. Tests: storage/change-version-handle-reuse-worker.html
  16692. storage/execute-sql-args-worker.html
  16693. * bindings/js/JSWorkerContextCustom.cpp: Add openDatabase binding.
  16694. (WebCore::JSWorkerContext::openDatabase):
  16695. * bindings/v8/custom/V8WorkerContextCustom.cpp: Add openDatabase stub; Chromium will need work both in V8 and in the browser process before we can turn this on there.
  16696. (WebCore::V8WorkerContext::openDatabaseCallback):
  16697. Add NoStaticTables flags to all objects now shared with workers.
  16698. * storage/Database.idl:
  16699. * storage/SQLError.idl:
  16700. * storage/SQLResultSet.idl:
  16701. * storage/SQLResultSetRowList.idl:
  16702. * storage/SQLTransaction.idl:
  16703. * workers/WorkerContext.h: Add databaseExceededQuota.
  16704. * workers/WorkerContext.cpp:
  16705. (WebCore::WorkerContext::databaseExceededQuota): Add stub implementation for testing; you just get 5MB for now.
  16706. (WebCore::WorkerContext::openDatabase): Remove invalid assertion.
  16707. Add the IDL for the call to openDatabase.
  16708. * workers/WorkerContext.idl:
  16709. 2010-04-15 Nicolas Weber <thakis@chromium.org>
  16710. Reviewed by Dimitri Glazkov.
  16711. Fix drag image thumbnails for indexed images.
  16712. https://bugs.webkit.org/show_bug.cgi?id=37621
  16713. * platform/chromium/DragImageChromiumMac.cpp:
  16714. (WebCore::scaleDragImage): Always use RGB color space.
  16715. (WebCore::dissolveDragImageToFraction): Always use RGB color space.
  16716. 2010-04-15 Adam Roben <aroben@apple.com>
  16717. Expose UserContentURLPattern as WebKit SPI
  16718. Fixes <http://webkit.org/b/37354>.
  16719. Reviewed by Tim Hatcher.
  16720. * WebCore.base.exp: Export UserContentURLPattern::parse, and sorted
  16721. the file.
  16722. * WebCore.xcodeproj/project.pbxproj: Marked UserContentURLPattern.h as
  16723. "Private".
  16724. * page/UserContentURLPattern.h:
  16725. (WebCore::UserContentURLPattern::UserContentURLPattern): Added a
  16726. default constructor.
  16727. (WebCore::UserContentURLPattern::isValid): Added this getter.
  16728. 2010-04-15 Chris Fleizach <cfleizach@apple.com>
  16729. Reviewed by Beth Dakin.
  16730. AXHelp is being appended from ancestors incorrectly
  16731. https://bugs.webkit.org/show_bug.cgi?id=37659
  16732. Test: platform/mac/accessibility/unexpected-help-text.html
  16733. * accessibility/AccessibilityRenderObject.cpp:
  16734. (WebCore::AccessibilityRenderObject::helpText):
  16735. 2010-04-15 David Hyatt <hyatt@apple.com>
  16736. Reviewed by Anders Carlsson.
  16737. https://bugs.webkit.org/show_bug.cgi?id=37669, REGRESSION: visited styles don't work right when only the visited path specifies
  16738. a pseudoelement.
  16739. Rework the pseudo cache on RenderStyles to support nesting, i.e., a pseudo hanging off a pseudo. The existing model gets
  16740. confused by this concept, since it relies on a singly linked list of chained pseudo styles (instead of a Vector owned by a primary
  16741. style). I changed the style cache to be a Vector instead.
  16742. Reworked both styleForElement and pseudoStyleForElement to resolve visited styles first, since in the pseudoStyleForElement case
  16743. you need to do this in order to know to allocate an unvisited pseudo style even if one shouldn't normally exist.
  16744. * css/CSSStyleSelector.cpp:
  16745. (WebCore::CSSStyleSelector::styleForElement):
  16746. (WebCore::CSSStyleSelector::pseudoStyleForElement):
  16747. * dom/Element.cpp:
  16748. (WebCore::Element::pseudoStyleCacheIsInvalid):
  16749. * rendering/style/RenderStyle.cpp:
  16750. (WebCore::RenderStyle::getCachedPseudoStyle):
  16751. (WebCore::RenderStyle::addCachedPseudoStyle):
  16752. * rendering/style/RenderStyle.h:
  16753. (WebCore::):
  16754. (WebCore::InheritedFlags::cachedPseudoStyles):
  16755. 2010-04-15 Albert J. Wong <ajwong@chromium.org>
  16756. Unreviewed, rolling out r57660.
  16757. http://trac.webkit.org/changeset/57660
  16758. https://bugs.webkit.org/show_bug.cgi?id=37604
  16759. Broke a large number of inspector layout tests in chromium.
  16760. * bindings/js/JSInjectedScriptHostCustom.cpp:
  16761. (WebCore::InjectedScriptHost::createInjectedScript):
  16762. * bindings/v8/ScriptDebugServer.cpp:
  16763. * bindings/v8/ScriptDebugServer.h:
  16764. (WebCore::ScriptDebugServer::addListener):
  16765. (WebCore::ScriptDebugServer::removeListener):
  16766. (WebCore::ScriptDebugServer::setBreakpoint):
  16767. (WebCore::ScriptDebugServer::removeBreakpoint):
  16768. (WebCore::ScriptDebugServer::clearBreakpoints):
  16769. (WebCore::ScriptDebugServer::setBreakpointsActivated):
  16770. (WebCore::ScriptDebugServer::pauseOnExceptionsState):
  16771. (WebCore::ScriptDebugServer::setPauseOnExceptionsState):
  16772. (WebCore::ScriptDebugServer::continueProgram):
  16773. (WebCore::ScriptDebugServer::stepIntoStatement):
  16774. (WebCore::ScriptDebugServer::stepOverStatement):
  16775. (WebCore::ScriptDebugServer::stepOutOfFunction):
  16776. (WebCore::ScriptDebugServer::currentCallFrameState):
  16777. (WebCore::ScriptDebugServer::ScriptDebugServer):
  16778. * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
  16779. (WebCore::InjectedScriptHost::createInjectedScript):
  16780. (WebCore::V8InjectedScriptHost::currentCallFrameCallback):
  16781. (WebCore::V8InjectedScriptHost::isActivationCallback):
  16782. * inspector/front-end/InjectedScript.js:
  16783. (injectedScriptConstructor):
  16784. * inspector/front-end/ScriptsPanel.js:
  16785. (WebInspector.ScriptsPanel):
  16786. 2010-04-14 Dumitru Daniliuc <dumi@chromium.org>
  16787. Reviewed by Dimitri Glazkov.
  16788. DatabaseTracker refactoring: remove the dependency on
  16789. OriginQuotaManager from DatabaseTracker.h
  16790. https://bugs.webkit.org/show_bug.cgi?id=31482
  16791. * storage/DatabaseTracker.cpp:
  16792. (WebCore::DatabaseTracker::DatabaseTracker):
  16793. (WebCore::DatabaseTracker::~DatabaseTracker):
  16794. (WebCore::DatabaseTracker::canEstablishDatabase):
  16795. (WebCore::DatabaseTracker::hasEntryForOrigin):
  16796. (WebCore::DatabaseTracker::getMaxSizeForDatabase):
  16797. (WebCore::DatabaseTracker::databaseChanged):
  16798. (WebCore::DatabaseTracker::fullPathForDatabaseNoLock):
  16799. (WebCore::DatabaseTracker::fullPathForDatabase):
  16800. (WebCore::DatabaseTracker::populateOrigins):
  16801. (WebCore::DatabaseTracker::origins):
  16802. (WebCore::DatabaseTracker::databaseNamesForOrigin):
  16803. (WebCore::DatabaseTracker::addOpenDatabase):
  16804. (WebCore::DatabaseTracker::removeOpenDatabase):
  16805. (WebCore::DatabaseTracker::usageForOriginNoLock):
  16806. (WebCore::DatabaseTracker::usageForOrigin):
  16807. (WebCore::DatabaseTracker::quotaForOrigin):
  16808. (WebCore::DatabaseTracker::setQuota):
  16809. (WebCore::DatabaseTracker::deleteOrigin):
  16810. (WebCore::DatabaseTracker::deleteDatabase):
  16811. (WebCore::DatabaseTracker::deleteDatabaseFile):
  16812. * storage/DatabaseTracker.h:
  16813. * storage/SQLTransactionClient.cpp:
  16814. (WebCore::SQLTransactionClient::didExecuteStatement):
  16815. 2010-04-15 Zhenyao Mo <zmo@google.com>
  16816. Reviewed by Adam Barth.
  16817. Several tests in fast/canvas/webgl/ failed randomly on Leopard Commit Bot
  16818. This fixes an uninitialized variable bug and restores a glFinish call that used to be present.
  16819. https://bugs.webkit.org/show_bug.cgi?id=36908
  16820. * platform/graphics/mac/GraphicsContext3DMac.cpp:
  16821. (WebCore::GraphicsContext3D::GraphicsContext3D): Initialize width/height to 0/0.
  16822. (WebCore::GraphicsContext3D::prepareTexture): Restore glFinish() in every path.
  16823. 2010-04-14 Antonio Gomes <tonikitoo@webkit.org>
  16824. Reviewed by Simon Fraser.
  16825. Spatial Navigation: make hasOffscreenRect() to earlier return 'true' if absoluteClippedOverflowRect() gives an empty rect
  16826. https://bugs.webkit.org/show_bug.cgi?id=37635
  16827. absoluteClippedOverflowRect method of RenderObject does return an empty IntRect for offscreen nodes.
  16828. So hasOffscreenRect method (SpatialNavigation.cpp) can safily bail out earlier in such cases.
  16829. * page/SpatialNavigation.cpp:
  16830. (WebCore::hasOffscreenRect):
  16831. 2010-04-14 Antonio Gomes <tonikitoo@webkit.org>
  16832. Reviewed by Simon Fraser.
  16833. Spatial Navigation: remove unnecessery assignment in updateFocusCandidateIfCloser method
  16834. https://bugs.webkit.org/show_bug.cgi?id=37634
  16835. This assignment line is not longer needed after r57061, bug that refactored all
  16836. assignment logic to happen lines below in the method.
  16837. * page/FocusController.cpp:
  16838. (WebCore::updateFocusCandidateIfCloser):
  16839. 2010-04-15 Yury Semikhatsky <yurys@google.com>
  16840. Reviewed by Pavel Feldman.
  16841. Support basic debugging capabilities including step in/over/out in v8
  16842. implementation of ScriptDebugServer.
  16843. https://bugs.webkit.org/show_bug.cgi?id=37604
  16844. * bindings/js/JSInjectedScriptHostCustom.cpp:
  16845. (WebCore::InjectedScriptHost::createInjectedScript):
  16846. * bindings/v8/ScriptDebugServer.cpp:
  16847. (WebCore::ScriptDebugServer::ScriptDebugServer):
  16848. (WebCore::ScriptDebugServer::setDebuggerScriptSource):
  16849. (WebCore::ScriptDebugServer::addListener):
  16850. (WebCore::ScriptDebugServer::removeListener):
  16851. (WebCore::ScriptDebugServer::setBreakpoint):
  16852. (WebCore::ScriptDebugServer::removeBreakpoint):
  16853. (WebCore::ScriptDebugServer::clearBreakpoints):
  16854. (WebCore::ScriptDebugServer::setBreakpointsActivated):
  16855. (WebCore::ScriptDebugServer::continueProgram):
  16856. (WebCore::ScriptDebugServer::stepIntoStatement):
  16857. (WebCore::ScriptDebugServer::stepOverStatement):
  16858. (WebCore::ScriptDebugServer::stepOutOfFunction):
  16859. (WebCore::ScriptDebugServer::currentCallFrameState):
  16860. (WebCore::ScriptDebugServer::currentCallFrameV8):
  16861. (WebCore::ScriptDebugServer::onV8DebugMessage):
  16862. (WebCore::ScriptDebugServer::onV8DebugHostDispatch):
  16863. (WebCore::ScriptDebugServer::handleV8DebugHostDispatch):
  16864. (WebCore::ScriptDebugServer::handleV8DebugMessage):
  16865. (WebCore::ScriptDebugServer::dispatchDidParseSource):
  16866. (WebCore::ScriptDebugServer::ensureDebuggerScriptCompiled):
  16867. (WebCore::ScriptDebugServer::didResume):
  16868. * bindings/v8/ScriptDebugServer.h:
  16869. (WebCore::ScriptDebugServer::pauseOnExceptionsState):
  16870. (WebCore::ScriptDebugServer::setPauseOnExceptionsState):
  16871. (WebCore::ScriptDebugServer::setMessageLoopDispatchHandler):
  16872. * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
  16873. (WebCore::InjectedScriptHost::createInjectedScript):
  16874. (WebCore::V8InjectedScriptHost::currentCallFrameCallback):
  16875. (WebCore::V8InjectedScriptHost::isActivationCallback):
  16876. * inspector/front-end/InjectedScript.js:
  16877. (injectedScriptConstructor):
  16878. (injectedScriptConstructor.):
  16879. * inspector/front-end/ScriptsPanel.js:
  16880. (WebInspector.ScriptsPanel):
  16881. 2010-04-15 Nikolas Zimmermann <nzimmermann@rim.com>
  16882. Reviewed by Beth Dakin.
  16883. RenderSVGResource <-> id mapping should be cached
  16884. https://bugs.webkit.org/show_bug.cgi?id=37575
  16885. Test: svg/custom/clip-path-id-changes.svg
  16886. * rendering/RenderSVGResource.h:
  16887. (WebCore::RenderSVGResource::RenderSVGResource):
  16888. (WebCore::RenderSVGResource::~RenderSVGResource):
  16889. (WebCore::RenderSVGResource::idChanged):
  16890. (WebCore::getRenderSVGResourceById):
  16891. * svg/SVGDocumentExtensions.cpp:
  16892. (WebCore::SVGDocumentExtensions::addResource):
  16893. (WebCore::SVGDocumentExtensions::removeResource):
  16894. (WebCore::SVGDocumentExtensions::resourceById):
  16895. * svg/SVGDocumentExtensions.h:
  16896. * svg/SVGStyledElement.cpp:
  16897. (WebCore::SVGStyledElement::svgAttributeChanged):
  16898. 2010-04-15 Justin Schuh <jschuh@chromium.org>
  16899. Reviewed by Dimitri Glazkov.
  16900. LayoutTest breakage in V8 bindings after r57627
  16901. https://bugs.webkit.org/show_bug.cgi?id=37660
  16902. Fixes breakage of the following tests due to an error in V8 bindings for
  16903. NamedNodeMap:
  16904. hc_namednodemapinuseattributeerr.html
  16905. hc_namednodemapsetnameditemreturnvalue.html
  16906. hc_namednodemapwrongdocumenterr.html
  16907. hc_namednodemapinvalidtype1.html
  16908. NamedNodeMap-setNamedItem-crash.html
  16909. * bindings/v8/custom/V8NamedNodeMapCustom.cpp:
  16910. (WebCore::V8NamedNodeMap::setNamedItemNSCallback):
  16911. (WebCore::V8NamedNodeMap::setNamedItemCallback):
  16912. 2010-04-15 David Hyatt <hyatt@apple.com>
  16913. Reviewed by Anders Carlsson.
  16914. https://bugs.webkit.org/show_bug.cgi?id=37567, :first-letter inside a :visited link is wrong color. Make sure
  16915. that the pseudo style caching allows visited link styles to hang off other pseudo styles.
  16916. * rendering/RenderBlock.cpp:
  16917. (WebCore::RenderBlock::updateFirstLetter):
  16918. * rendering/style/RenderStyle.cpp:
  16919. (WebCore::RenderStyle::getCachedPseudoStyle):
  16920. 2010-04-15 Ben Murdoch <benm@google.com>
  16921. Unreviewed, rolling out r57652.
  16922. http://trac.webkit.org/changeset/57652
  16923. https://bugs.webkit.org/show_bug.cgi?id=37609
  16924. Caused a build break on Chromium Mac and Layout Test fail on
  16925. Qt
  16926. * platform/PlatformTouchPoint.h:
  16927. (WebCore::PlatformTouchPoint::):
  16928. * platform/qt/PlatformTouchPointQt.cpp:
  16929. (WebCore::PlatformTouchPoint::PlatformTouchPoint):
  16930. 2010-04-15 Yaar Schnitman <yaar@chromium.org>
  16931. Reviewed by Nate Chapin.
  16932. Overloads auto-generation in V8
  16933. https://bugs.webkit.org/show_bug.cgi?id=37373
  16934. This will be used by XHR.send/open, Canvas.*, WebGL.* methods that are currently custom. When more than a single overload exists for a method, the correct overload is chosen based on the total number of arguments passed as well as the values passed to non-primitive arguments.
  16935. Overload dispatch order depends on the order the functions are defined in the IDL. Overloads must be specified from the most precise (overloads with wrapper type arguments) to the least precise (overloads with only primitive type arguments).
  16936. * bindings/scripts/CodeGeneratorV8.pm: Identify and output overloads callbacks and dispatch code.
  16937. * bindings/v8/test/TestObj.idl: Overloads sample.
  16938. * bindings/v8/test/V8TestObj.cpp: Output change.
  16939. 2010-04-15 Ben Murdoch <benm@google.com>
  16940. Reviewed by Kenneth Rohde Christiansen.
  16941. The TouchStationary state of WebCore::PlatformTouchPoint
  16942. is not handled inside the touch event handler.
  16943. https://bugs.webkit.org/show_bug.cgi?id=37609
  16944. After discussions at the WebKit contributors meeting, we decided
  16945. that this is a currently unused state without a good future use
  16946. case in the Touch API and thus decided to remove it. This patch
  16947. actions that decision.
  16948. As the TouchStationary state is not handled in the EventHandler,
  16949. there is no change in functionality so no new tests are required.
  16950. * platform/PlatformTouchPoint.h:
  16951. (WebCore::PlatformTouchPoint::): Remove TouchStationary.
  16952. * platform/qt/PlatformTouchPointQt.cpp:
  16953. (WebCore::PlatformTouchPoint::PlatformTouchPoint): Remove TouchStationary.
  16954. 2010-04-15 Steve Falkenburg <sfalken@apple.com>
  16955. Reviewed by Adam Roben.
  16956. Use a lower-overhead mechanism for plug-in message throttling
  16957. https://bugs.webkit.org/show_bug.cgi?id=37642
  16958. <rdar://problem/7418285> Very high CPU usage idling in gmail under Windows 7 (plug-in related)
  16959. GMail has an instance of Flash that loads on the main mail page.
  16960. This Flash content sends us a constant stream of WM_USER+1 messsages.
  16961. There was already code in PluginMessageThrottlerWin to queue and process these
  16962. excess WM_USER+1 messages from Flash. Unfortunately, there were a couple of
  16963. problems with this code:
  16964. - The timer used to process the excess messages had a very low timeout (1ms).
  16965. Chrome uses a value of 5ms for this delay, and doesn't use excess CPU here,
  16966. while still maintaining good Flash frame rate.
  16967. - The overhead involved in generating a constant stream of 5ms timers still swamped
  16968. the CPU, resulting in continued high CPU utilization.
  16969. To fix this, I changed the throttling code to:
  16970. - Process a queued WM_USER+1 message directly if none has been processed in 5ms.
  16971. This allows us to avoid the overhead of a timer.
  16972. - Process remaining delayed WM_USER+1 messages on a 16ms timer.
  16973. This reduces our CPU utilization idling in GMail from ~20% to ~2-3% on my system.
  16974. I also verified the frame rate for Flash content wasn't reduced with this change.
  16975. * plugins/win/PluginMessageThrottlerWin.cpp:
  16976. (WebCore::PluginMessageThrottlerWin::PluginMessageThrottlerWin): Initialize m_lastMessageTime.
  16977. (WebCore::PluginMessageThrottlerWin::appendMessage): Process a queued message directly if >5ms have passed.
  16978. (WebCore::PluginMessageThrottlerWin::processQueuedMessage): Split out from messageThrottleTimerFired.
  16979. (WebCore::PluginMessageThrottlerWin::messageThrottleTimerFired): Call through to processQueuedMessage.
  16980. * plugins/win/PluginMessageThrottlerWin.h: Add processQueuedMessage, m_lastMessageTime.
  16981. 2010-04-15 Shinichiro Hamaji <hamaji@chromium.org>
  16982. Reviewed by David Levin.
  16983. LEAK: in ThreadableWebSocketChannel::create()
  16984. https://bugs.webkit.org/show_bug.cgi?id=37584
  16985. No new tests because this change just fixes a leak.
  16986. * websockets/WorkerThreadableWebSocketChannel.cpp:
  16987. (WebCore::WorkerThreadableWebSocketChannel::WorkerThreadableWebSocketChannel):
  16988. * websockets/WorkerThreadableWebSocketChannel.h:
  16989. (WebCore::WorkerThreadableWebSocketChannel::Bridge::create):
  16990. 2010-04-15 Gyuyoung Kim <gyuyoung.kim@samsung.com>
  16991. Reviewed by Eric Seidel.
  16992. Duplicated patches related to wml were pushed to trunk. So, one of
  16993. the patches should be reverted.
  16994. https://bugs.webkit.org/show_bug.cgi?id=37542
  16995. * wml/WMLOptionElement.h:
  16996. * wml/WMLSelectElement.h:
  16997. 2010-04-15 Bruno Schmidt <bruno.schmidt@gmail.com>
  16998. Reviewed by Kenneth Rohde Christiansen.
  16999. [Qt] Null QObjects properties cause Segmentation Fault
  17000. https://bugs.webkit.org/show_bug.cgi?id=34730
  17001. QObjects exported to the QWebkit javascript with properties that are
  17002. a null "QObject*" cause Segmentation Fault.
  17003. If an QObject is added to the javascript context and it contains
  17004. properties of the type QObject* with NULL value, calling the property
  17005. causes Segmentation Fault.
  17006. So now the code below properly checks for null pointers:
  17007. * bridge/qt/qt_instance.cpp:
  17008. (JSC::Bindings::QtInstance::getClass): may return NULL
  17009. (JSC::Bindings::QtInstance::getMethod): may return jsNull()
  17010. (JSC::Bindings::QtInstance::stringValue): may return jsNull()
  17011. (JSC::Bindings::QtInstance::booleanValue): may return false
  17012. * bridge/qt/qt_runtime.cpp:
  17013. (JSC::Bindings::convertValueToQVariant):
  17014. (JSC::Bindings::convertQVariantToValue): May return jsNull on QObjectStar
  17015. 2010-04-14 Simon Fraser <simon.fraser@apple.com>
  17016. Reviewed by Dan Bernstein.
  17017. Repaint of fixed, transformed element is broken
  17018. https://bugs.webkit.org/show_bug.cgi?id=37637
  17019. RenderBox::computeRectForRepaint() failed to set the 'fixed' flag correctly
  17020. for elements that had both fixed position and a transform. If the element has
  17021. a transform, 'fixed' should only remain true if the element itself is fixed
  17022. position.
  17023. Also cache style()->position() in a local variable for performance.
  17024. Test: fast/repaint/fixed-tranformed.html
  17025. * rendering/RenderBox.cpp:
  17026. (WebCore::RenderBox::computeRectForRepaint):
  17027. 2010-04-14 Luiz Agostini <luiz.agostini@openbossa.org>
  17028. Reviewed by Kenneth Rohde Christiansen.
  17029. Changing view mode names due to specification changes
  17030. https://bugs.webkit.org/show_bug.cgi?id=37615
  17031. test: fast/media/media-feature-wgt-view-mode.html
  17032. specification: http://dev.w3.org/2006/waf/widgets-vmmf/
  17033. * css/MediaQueryEvaluator.cpp:
  17034. (WebCore::view_modeMediaFeatureEval):
  17035. * page/ChromeClient.h:
  17036. (WebCore::ChromeClient::isWindowed):
  17037. (WebCore::ChromeClient::isMaximized):
  17038. (WebCore::ChromeClient::isMinimized):
  17039. 2010-04-14 Adam Barth <abarth@webkit.org>
  17040. Unreviewed attempt to fix Qt build.
  17041. * bindings/js/JSNodeCustom.cpp:
  17042. 2010-04-14 Justin Schuh <jschuh@chromium.org>
  17043. Reviewed by Adam Barth.
  17044. Javascript URL can be set as iframe.src via multiple DOM aliases
  17045. https://bugs.webkit.org/show_bug.cgi?id=37031
  17046. Moved frame/iframe checks from Attr to Node on inherited members.
  17047. Node child manipulation methods now return NOT_SUPPORTED_ERR if used
  17048. on a frame/iframe src attribute.
  17049. NamedNodeMap set methods now perform frame/iframe src checks.
  17050. Moved allowSettingSrcToJavascriptURL static helper function from
  17051. JSElementCustom.cpp to exported function in JSDOMBinding.h.
  17052. * bindings/js/JSAttrCustom.cpp:
  17053. (WebCore::JSAttr::setValue):
  17054. * bindings/js/JSDOMBinding.cpp:
  17055. (WebCore::allowSettingSrcToJavascriptURL):
  17056. * bindings/js/JSDOMBinding.h:
  17057. * bindings/js/JSElementCustom.cpp:
  17058. * bindings/js/JSNamedNodeMapCustom.cpp:
  17059. (WebCore::JSNamedNodeMap::setNamedItem):
  17060. (WebCore::JSNamedNodeMap::setNamedItemNS):
  17061. * bindings/js/JSNodeCustom.cpp:
  17062. (WebCore::isAttrFrameSrc):
  17063. (WebCore::JSNode::setNodeValue):
  17064. (WebCore::JSNode::setTextContent):
  17065. (WebCore::JSNode::insertBefore):
  17066. (WebCore::JSNode::replaceChild):
  17067. (WebCore::JSNode::removeChild):
  17068. (WebCore::JSNode::appendChild):
  17069. * bindings/v8/custom/V8AttrCustom.cpp:
  17070. * bindings/v8/custom/V8NamedNodeMapCustom.cpp:
  17071. (WebCore::V8NamedNodeMap::setNamedItemNSCallback):
  17072. (WebCore::V8NamedNodeMap::setNamedItemCallback):
  17073. (WebCore::toV8):
  17074. * bindings/v8/custom/V8NodeCustom.cpp:
  17075. (WebCore::isFrameSrc):
  17076. (WebCore::V8Node::textContentAccessorSetter):
  17077. (WebCore::V8Node::nodeValueAccessorSetter):
  17078. (WebCore::V8Node::insertBeforeCallback):
  17079. (WebCore::V8Node::replaceChildCallback):
  17080. (WebCore::V8Node::removeChildCallback):
  17081. (WebCore::V8Node::appendChildCallback):
  17082. * dom/Attr.idl:
  17083. * dom/NamedNodeMap.idl:
  17084. * dom/Node.idl:
  17085. 2010-04-14 Alejandro G. Castro <alex@igalia.com>
  17086. Reviewed by Xan Lopez.
  17087. We have to check if the resource handler is cancelled before
  17088. checking the client, other case it could crash.
  17089. * platform/network/soup/ResourceHandleSoup.cpp:
  17090. (WebCore::parseDataUrl):
  17091. 2010-04-14 Sheriff Bot <webkit.review.bot@gmail.com>
  17092. Unreviewed, rolling out r57609.
  17093. http://trac.webkit.org/changeset/57609
  17094. https://bugs.webkit.org/show_bug.cgi?id=37614
  17095. "Broke multiple builders. Probably needs new test results,
  17096. but may be an Inspector bug." (Requested by eseidel on
  17097. #webkit).
  17098. * inspector/InspectorController.cpp:
  17099. (WebCore::InspectorController::didReceiveResponse):
  17100. (WebCore::InspectorController::didFailLoading):
  17101. * inspector/front-end/Resource.js:
  17102. (WebInspector.Resource.prototype._mimeTypeIsConsistentWithType):
  17103. * inspector/front-end/ResourcesPanel.js:
  17104. (WebInspector.ResourcesPanel.prototype.recreateViewForResourceIfNeeded):
  17105. 2010-04-14 Steve Falkenburg <sfalken@apple.com>
  17106. Reviewed by Dan Bernstein.
  17107. Don't cache SimpleFontData* in getLastResortFallbackFont. The cached entry may be invalidated.
  17108. https://bugs.webkit.org/show_bug.cgi?id=37599
  17109. * platform/graphics/win/FontCacheWin.cpp:
  17110. (WebCore::fontDataFromDescriptionAndLogFont):
  17111. (WebCore::FontCache::getLastResortFallbackFont):
  17112. 2010-04-14 Andrey Kosyakov <caseq@chromium.ru>
  17113. Reviewed by Timothy Hatcher.
  17114. Log error message to inspector console if a resource fails to load.
  17115. Disable checking of mime-type consistency for failed resources.
  17116. https://bugs.webkit.org/show_bug.cgi?id=37215
  17117. Test: inspector/console-resource-errors.html
  17118. * inspector/InspectorController.cpp:
  17119. (WebCore::InspectorController::didReceiveResponse):
  17120. (WebCore::InspectorController::didFailLoading):
  17121. * inspector/front-end/Resource.js:
  17122. (WebInspector.Resource.prototype._mimeTypeIsConsistentWithType):
  17123. * inspector/front-end/ResourcesPanel.js:
  17124. (WebInspector.ResourcesPanel.prototype.recreateViewForResourceIfNeeded):
  17125. 2010-04-14 Sheriff Bot <webkit.review.bot@gmail.com>
  17126. Unreviewed, rolling out r57599.
  17127. http://trac.webkit.org/changeset/57599
  17128. https://bugs.webkit.org/show_bug.cgi?id=37605
  17129. "Broke Chromium build" (Requested by dglazkov on #webkit).
  17130. * platform/chromium/PopupMenuChromium.cpp:
  17131. (WebCore::PopupContainer::PopupContainer):
  17132. (WebCore::PopupContainer::showPopup):
  17133. (WebCore::PopupContainer::notifyPopupHidden):
  17134. * platform/chromium/PopupMenuChromium.h:
  17135. 2010-04-14 Aaron Boodman <aa@chromium.org>
  17136. Reviewed by David Levin.
  17137. Support relative URLs for notifications on Chromium. They weren't working previously because WebCore was inserting
  17138. the relative URL into a KURL instance, but when KURL is backed by GURL as it is on Chromium, relative URLs are
  17139. unsupported. Fixed by resolving the relative URL first.
  17140. https://bugs.webkit.org/show_bug.cgi?id=36623
  17141. Adding tests for this is difficult because we don't currently have DRT support for notifications on Mac, only Windows.
  17142. * notifications/Notification.cpp:
  17143. (WebCore::Notification::Notification): Accept resolved KURL instead of relative string.
  17144. * notifications/Notification.h:
  17145. (WebCore::Notification::create): Ditto.
  17146. (WebCore::Notification::iconURL): Return resolved KURL instead of relative string.
  17147. * notifications/NotificationCenter.h:
  17148. (WebCore::NotificationCenter::createHTMLNotification): Immediately resolve URL instead of passing off relative string.
  17149. (WebCore::NotificationCenter::createNotification): Ditto.
  17150. * notifications/NotificationContents.h:
  17151. (WebCore::NotificationContents::NotificationContents): Accept resolved KURL instead of relative string.
  17152. (WebCore::NotificationContents::icon): Return resolved URL.
  17153. 2010-04-14 Anders Carlsson <andersca@apple.com>
  17154. Reviewed by Sam Weinig.
  17155. Add ThemeMac::ensuredView and get rid of a workaround in ThemeMac::paintButton.
  17156. https://bugs.webkit.org/show_bug.cgi?id=37601
  17157. * platform/mac/ThemeMac.h:
  17158. * platform/mac/ThemeMac.mm:
  17159. (-[WebCoreFlippedView isFlipped]):
  17160. (WebCore::paintButton):
  17161. (WebCore::ThemeMac::ensuredView):
  17162. 2010-04-14 Jay Civelli <jcivelli@chromium.org>
  17163. Reviewed by Dimitri Glazkov.
  17164. [chromium] Select popups would assert when destroyed.
  17165. https://bugs.webkit.org/show_bug.cgi?id=37436
  17166. * platform/chromium/PopupMenuChromium.cpp:
  17167. (WebCore::PopupContainer::PopupContainer):
  17168. (WebCore::PopupContainer::showPopup):
  17169. (WebCore::PopupContainer::notifyPopupHidden):
  17170. * platform/chromium/PopupMenuChromium.h:
  17171. 2010-04-14 Dumitru Daniliuc <dumi@chromium.org>
  17172. Reviewed by Jian Li.
  17173. Remove an incorrect ASSERT in UniscribeHelper::draw().
  17174. https://bugs.webkit.org/show_bug.cgi?id=37533
  17175. * platform/graphics/chromium/UniscribeHelper.cpp:
  17176. (WebCore::UniscribeHelper::draw):
  17177. 2010-04-14 Pavel Feldman <pfeldman@chromium.org>
  17178. Reviewed by Timothy Hatcher.
  17179. Web Inspector: readline shortcuts don't work in Chromium.
  17180. * inspector/front-end/TextPrompt.js:
  17181. (WebInspector.TextPrompt.prototype._onKeyDown):
  17182. (WebInspector.TextPrompt.prototype._moveCaretToStartOfPrompt):
  17183. 2010-04-14 Alexander Pavlov <apavlov@chromium.org>
  17184. Reviewed by Timothy Hatcher.
  17185. Web Inspector: Console: Shift-Tab does not cycle autocompletions in the reverse order
  17186. https://bugs.webkit.org/show_bug.cgi?id=37582
  17187. * inspector/front-end/TextPrompt.js:
  17188. (WebInspector.TextPrompt.prototype.complete):
  17189. (WebInspector.TextPrompt.prototype._completionsReady):
  17190. (WebInspector.TextPrompt.prototype._tabKeyPressed):
  17191. 2010-04-14 Jeff Schiller <codedread@gmail.com>
  17192. Reviewed by Dirk Schulze.
  17193. Render SVG Paths up to first error, bug 37413: https://bugs.webkit.org/show_bug.cgi?id=37413
  17194. * svg/SVGParserUtilities.cpp:
  17195. (WebCore::SVGPathSegListBuilder::build):
  17196. 2010-04-14 Alexander Pavlov <apavlov@chromium.org>
  17197. Reviewed by Joseph Pecoraro.
  17198. Web Inspector: Ctrl-L (Clear History) does nothing on Windows
  17199. https://bugs.webkit.org/show_bug.cgi?id=37579
  17200. * inspector/front-end/ConsoleView.js:
  17201. (WebInspector.ConsoleView):
  17202. 2010-04-14 Anton Muhin <antonm@chromium.org>
  17203. Not review, build fix.
  17204. Add <limits.h> include to bring UINT_MAX.
  17205. * html/canvas/WebGLArray.h:
  17206. 2010-04-14 Nikolas Zimmermann <nzimmermann@rim.com>
  17207. Not reviewed. Attempt to unbreak build - NodeRenderStyle.h is an _interessting_ concept...
  17208. * rendering/style/SVGRenderStyle.cpp: Include 'NodeRenderStyle.h'
  17209. 2010-04-14 Nikolas Zimmermann <nzimmermann@rim.com>
  17210. Reviewed by Dirk Schulze.
  17211. SVGRenderStyle/SVGRenderStyleDefs needs a cleanup
  17212. https://bugs.webkit.org/show_bug.cgi?id=37568
  17213. Cleanup SVGRenderStyle / SVGRenderStyleDefs:
  17214. - use copy constructors in initialization list to initialize members, instead of assignment operators in the body
  17215. - fix style issues (misplaced references, abbrevations)
  17216. - merge StyleClipData/StyleMaskData to save memory, rename it StyleResourceData
  17217. - move filter property in StyleResourceData
  17218. - rename StyleMarkerData to StyleInheritedResourceData to highlight the difference to StyleResourceData
  17219. - unify naming schemes for all resources (filter/clipper/masker/markers)
  17220. - clipPath() -> clipperResource()
  17221. - maskElement() -> maskerResource()
  17222. - startMarker() -> markerStartResource()
  17223. - midMarker() -> markerMidResource()
  17224. - endMarker() -> markerEndResource()
  17225. - filter() -> filterResource()
  17226. Adapt all callsites to the renames above.
  17227. No new tests, as this doesn't affect anything except memory overhead.
  17228. * css/SVGCSSComputedStyleDeclaration.cpp:
  17229. (WebCore::CSSComputedStyleDeclaration::getSVGPropertyCSSValue):
  17230. * css/SVGCSSStyleSelector.cpp:
  17231. (WebCore::CSSStyleSelector::applySVGProperty):
  17232. * rendering/RenderPath.cpp:
  17233. (WebCore::RenderPath::calculateMarkerBoundsIfNeeded):
  17234. * rendering/RenderSVGContainer.cpp:
  17235. (WebCore::RenderSVGContainer::selfWillPaint):
  17236. * rendering/RenderSVGRoot.cpp:
  17237. (WebCore::RenderSVGRoot::selfWillPaint):
  17238. * rendering/SVGRenderSupport.cpp:
  17239. (WebCore::SVGRenderBase::prepareToRenderSVGContent):
  17240. (WebCore::SVGRenderBase::filterBoundingBoxForRenderer):
  17241. (WebCore::SVGRenderBase::clipperBoundingBoxForRenderer):
  17242. (WebCore::SVGRenderBase::maskerBoundingBoxForRenderer):
  17243. (WebCore::deregisterFromResources):
  17244. * rendering/SVGRenderTreeAsText.cpp:
  17245. (WebCore::writeStyle):
  17246. (WebCore::writeResources):
  17247. * rendering/style/SVGRenderStyle.cpp:
  17248. (WebCore::SVGRenderStyle::SVGRenderStyle):
  17249. (WebCore::SVGRenderStyle::operator==):
  17250. (WebCore::SVGRenderStyle::inheritedNotEqual):
  17251. (WebCore::SVGRenderStyle::inheritFrom):
  17252. * rendering/style/SVGRenderStyle.h:
  17253. * rendering/style/SVGRenderStyleDefs.cpp:
  17254. (WebCore::StyleFillData::StyleFillData):
  17255. (WebCore::StyleFillData::operator==):
  17256. (WebCore::StyleStrokeData::StyleStrokeData):
  17257. (WebCore::StyleStrokeData::operator==):
  17258. (WebCore::StyleStopData::StyleStopData):
  17259. (WebCore::StyleStopData::operator==):
  17260. (WebCore::StyleTextData::StyleTextData):
  17261. (WebCore::StyleMiscData::StyleMiscData):
  17262. (WebCore::StyleMiscData::operator==):
  17263. (WebCore::StyleShadowSVGData::StyleShadowSVGData):
  17264. (WebCore::StyleShadowSVGData::operator==):
  17265. (WebCore::StyleResourceData::StyleResourceData):
  17266. (WebCore::StyleResourceData::operator==):
  17267. (WebCore::StyleInheritedResourceData::StyleInheritedResourceData):
  17268. (WebCore::StyleInheritedResourceData::operator==):
  17269. * rendering/style/SVGRenderStyleDefs.h:
  17270. (WebCore::StyleFillData::operator!=):
  17271. (WebCore::StyleStopData::operator!=):
  17272. (WebCore::StyleMiscData::create):
  17273. (WebCore::StyleMiscData::copy):
  17274. (WebCore::StyleMiscData::operator!=):
  17275. (WebCore::StyleShadowSVGData::create):
  17276. (WebCore::StyleShadowSVGData::copy):
  17277. (WebCore::StyleShadowSVGData::operator!=):
  17278. (WebCore::StyleResourceData::create):
  17279. (WebCore::StyleResourceData::copy):
  17280. (WebCore::StyleResourceData::operator!=):
  17281. (WebCore::StyleInheritedResourceData::create):
  17282. (WebCore::StyleInheritedResourceData::copy):
  17283. (WebCore::StyleInheritedResourceData::operator!=):
  17284. * svg/SVGDocumentExtensions.cpp:
  17285. (WebCore::SVGDocumentExtensions::addResource):
  17286. (WebCore::SVGDocumentExtensions::removeResource):
  17287. * svg/SVGDocumentExtensions.h:
  17288. * svg/SVGStyledElement.cpp:
  17289. (WebCore::SVGStyledElement::invalidateResources):
  17290. 2010-04-14 Zhenyao Mo <zmo@google.com>
  17291. Reviewed by Dimitri Glazkov.
  17292. readPixels must take PACK_ALIGNMENT into account
  17293. https://bugs.webkit.org/show_bug.cgi?id=34718
  17294. Test: fast/canvas/webgl/read-pixels.html
  17295. * html/canvas/WebGLRenderingContext.cpp:
  17296. (WebCore::WebGLRenderingContext::WebGLRenderingContext): Init members to support pack_alignment.
  17297. (WebCore::WebGLRenderingContext::pixelStorei): Save pack/unpack_alignment.
  17298. (WebCore::WebGLRenderingContext::readPixels): Validate enum and deal with pack_alignment.
  17299. * html/canvas/WebGLRenderingContext.h: Add members to support pack_alignment.
  17300. * platform/graphics/GraphicsContext3D.h: Refactor readPixels.
  17301. * platform/graphics/mac/GraphicsContext3DMac.cpp:
  17302. (WebCore::GraphicsContext3D::readPixels): Move array allocation and alpha fix to WebGLRenderingContext; flush before read pixels.
  17303. 2010-04-13 Dirk Schulze <krit@webkit.org>
  17304. Reviewed by Eric Seidel.
  17305. REGRESSION(r57511): many new graphics / svg related leaks
  17306. https://bugs.webkit.org/show_bug.cgi?id=37527
  17307. The content of a HashMap was not correctly deleted. Fixed this
  17308. in the DTor and in invalidateClient of RenderSVGResourceClipper.
  17309. * rendering/RenderSVGResourceClipper.cpp:
  17310. (WebCore::RenderSVGResourceClipper::~RenderSVGResourceClipper):
  17311. (WebCore::RenderSVGResourceClipper::invalidateClient):
  17312. 2010-04-13 Zhenyao Mo <zmo@google.com>
  17313. Reviewed by Oliver Hunt.
  17314. Fix a potential integer overflow in WebGL*Array::slice()
  17315. https://bugs.webkit.org/show_bug.cgi?id=37466
  17316. * html/canvas/WebGLArray.h:
  17317. (WebCore::WebGLArray::clampOffsetAndNumElements): Input parameter "offset"'s semantic changed from in bytes from buffer to in elements from array view; calculate offset in bytes from buffer inside the function, avoiding overflow.
  17318. * html/canvas/WebGLByteArray.cpp:
  17319. (WebCore::WebGLByteArray::slice): Changed according to new semantic of WebCore::WebGLArray::clampOffsetAndNumElements.
  17320. * html/canvas/WebGLFloatArray.cpp:
  17321. (WebCore::WebGLFloatArray::slice): Ditto.
  17322. * html/canvas/WebGLIntArray.cpp:
  17323. (WebCore::WebGLIntArray::slice): Ditto.
  17324. * html/canvas/WebGLShortArray.cpp:
  17325. (WebCore::WebGLShortArray::slice): Ditto.
  17326. * html/canvas/WebGLUnsignedByteArray.cpp:
  17327. (WebCore::WebGLUnsignedByteArray::slice): Ditto.
  17328. * html/canvas/WebGLUnsignedIntArray.cpp:
  17329. (WebCore::WebGLUnsignedIntArray::slice): Ditto.
  17330. * html/canvas/WebGLUnsignedShortArray.cpp:
  17331. (WebCore::WebGLUnsignedShortArray::slice): Ditto.
  17332. 2010-04-13 Darin Fisher <darin@chromium.org>
  17333. Reviewed by Brady Eidson.
  17334. If the browsing context's session history contains only one Document,
  17335. and that was the about:blank Document created when the browsing context
  17336. was created, then the navigation must be done with replacement enabled.
  17337. https://bugs.webkit.org/show_bug.cgi?id=37126
  17338. Tests: fast/loader/frame-location-change-not-added-to-history.html
  17339. fast/loader/frame-src-change-not-added-to-history.html
  17340. * loader/FrameLoader.cpp:
  17341. (WebCore::FrameLoader::clientRedirected):
  17342. (WebCore::FrameLoader::findFrameForNavigation):
  17343. * loader/HistoryController.cpp:
  17344. (WebCore::HistoryController::currentItemShouldBeReplaced):
  17345. * loader/HistoryController.h:
  17346. 2010-04-13 Geoffrey Garen <ggaren@apple.com>
  17347. Reviewed by Oliver Hunt.
  17348. Separated a DOMWrapperWorld's behavior of keeping wrappers alive from
  17349. its own lifetime, so a DOMWrapperWorld's controller can throw away
  17350. its wrappers even before its refcount reaches 0.
  17351. * WebCore.base.exp:
  17352. * bindings/js/DOMWrapperWorld.cpp:
  17353. (WebCore::DOMWrapperWorld::DOMWrapperWorld):
  17354. (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
  17355. (WebCore::DOMWrapperWorld::registerWorld):
  17356. (WebCore::DOMWrapperWorld::unregisterWorld):
  17357. * bindings/js/DOMWrapperWorld.h: Factored out DOMWrapperWorld registration
  17358. and unregistration into helper functions, so unregistering could be done manually.
  17359. * bindings/js/ScriptController.cpp:
  17360. (WebCore::ScriptController::destroyWindowShell): Added an ASSERT to match
  17361. similar code.
  17362. 2010-04-13 Chang Shu <chang.shu@nokia.com>
  17363. Reviewed by Darin Fisher.
  17364. https://bugs.webkit.org/show_bug.cgi?id=34653
  17365. Based on W3C spec and Firefox behavior, while invoking XHR Send with parameter
  17366. as String, the charset in Content-Type should be forced to set to UTF-8.
  17367. Test: http/tests/xmlhttprequest/request-encoding2.html
  17368. * platform/network/HTTPParsers.cpp:
  17369. (WebCore::extractCharsetFromMediaType):
  17370. (WebCore::findCharsetInMediaType):
  17371. * platform/network/HTTPParsers.h:
  17372. * xml/XMLHttpRequest.cpp:
  17373. (WebCore::setCharsetInMediaType):
  17374. (WebCore::XMLHttpRequest::send):
  17375. 2010-04-12 Timothy Hatcher <timothy@apple.com>
  17376. SecurityOrigin needs a way to remove individual OriginAccessEntries
  17377. https://bugs.webkit.org/show_bug.cgi?id=37449
  17378. Test: http/tests/xmlhttprequest/origin-whitelisting-removal.html
  17379. Reviewed by Dave Hyatt.
  17380. * WebCore.base.exp: Added SecurityOrigin::removeOriginAccessWhitelistEntry.
  17381. * page/OriginAccessEntry.h:
  17382. (WebCore::OriginAccessEntry::protocol): Added. Returns m_protocol.
  17383. (WebCore::OriginAccessEntry::host): Added. Returns m_host.
  17384. (WebCore::OriginAccessEntry::subdomainSettings): Added. Returns m_subdomainSettings.
  17385. (WebCore::operator==): Added. Compares OriginAccessEntry.
  17386. (WebCore::operator!=): Ditto.
  17387. * page/SecurityOrigin.cpp:
  17388. (WebCore::SecurityOrigin::addOriginAccessWhitelistEntry): Use the add method to prevent a
  17389. second hash lookup.
  17390. (WebCore::SecurityOrigin::removeOriginAccessWhitelistEntry): Added. Find a matching
  17391. OriginAccessEntry and remove it.
  17392. * page/SecurityOrigin.h: Added removeOriginAccessWhitelistEntry.
  17393. 2010-04-13 Timothy Hatcher <timothy@apple.com>
  17394. Rename SecurityOrigin::whiteListAccessFromOrigin to addOriginAccessWhitelistEntry.
  17395. And SecurityOrigin::resetOriginAccessWhiteLists to resetOriginAccessWhitelists.
  17396. SecurityOrigin needs a way to remove individual OriginAccessEntries
  17397. https://bugs.webkit.org/show_bug.cgi?id=37449
  17398. Reviewed by Dave Hyatt.
  17399. * WebCore.base.exp:
  17400. * page/SecurityOrigin.cpp:
  17401. (WebCore::SecurityOrigin::addOriginAccessWhitelistEntry):
  17402. (WebCore::SecurityOrigin::resetOriginAccessWhitelists):
  17403. * page/SecurityOrigin.h:
  17404. 2010-04-13 Geoffrey Garen <ggaren@apple.com>
  17405. Reviewed by Mark Rowe.
  17406. Tidied up some more DOMWrapperWorld lifetime issues.
  17407. Made DOMWrapperWorld aware of its JSDOMWindowShells, so it can clear them.
  17408. * bindings/js/DOMWrapperWorld.cpp:
  17409. (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
  17410. * bindings/js/DOMWrapperWorld.h:
  17411. (WebCore::DOMWrapperWorld::didCreateWindowShell):
  17412. (WebCore::DOMWrapperWorld::didDestroyWindowShell): Functionality for
  17413. tracking window shells that reference a given DOMWrapperWorld.
  17414. * bindings/js/ScriptController.cpp:
  17415. (WebCore::ScriptController::~ScriptController):
  17416. (WebCore::ScriptController::destroyWindowShell):
  17417. (WebCore::ScriptController::createWindowShell):
  17418. (WebCore::ScriptController::clearWindowShell):
  17419. (WebCore::ScriptController::initScript):
  17420. * bindings/js/ScriptController.h: Refactored to update a DOMWrapperWorld
  17421. when adding or removing a JSDOMWindowShell.
  17422. * dom/Document.cpp:
  17423. (WebCore::Document::destroyAllWrapperCaches): Changed to use isEmpty(),
  17424. which is slightly faster and simpler than iterator comparison.
  17425. 2010-04-13 Dumitru Daniliuc <dumi@chromium.org>
  17426. Reviewed by Adam Barth.
  17427. Make all HTML5 DB callbacks run in the correct context.
  17428. https://bugs.webkit.org/show_bug.cgi?id=27698
  17429. Tests: storage/statement-error-callback-isolated-world.html
  17430. storage/statement-success-callback-isolated-world.html
  17431. storage/transaction-callback-isolated-world.html
  17432. storage/transaction-error-callback-isolated-world.html
  17433. * bindings/js/JSCustomSQLStatementCallback.cpp:
  17434. (WebCore::JSCustomSQLStatementCallback::JSCustomSQLStatementCallback):
  17435. (WebCore::JSCustomSQLStatementCallback::handleEvent):
  17436. * bindings/js/JSCustomSQLStatementCallback.h:
  17437. * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
  17438. (WebCore::JSCustomSQLStatementErrorCallback::JSCustomSQLStatementErrorCallback):
  17439. (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
  17440. * bindings/js/JSCustomSQLStatementErrorCallback.h:
  17441. * bindings/js/JSCustomSQLTransactionCallback.cpp:
  17442. (WebCore::JSCustomSQLTransactionCallback::JSCustomSQLTransactionCallback):
  17443. (WebCore::JSCustomSQLTransactionCallback::handleEvent):
  17444. * bindings/js/JSCustomSQLTransactionCallback.h:
  17445. * bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
  17446. (WebCore::JSCustomSQLTransactionErrorCallback::JSCustomSQLTransactionErrorCallback):
  17447. (WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
  17448. * bindings/js/JSCustomSQLTransactionErrorCallback.h:
  17449. * bindings/v8/custom/V8CustomSQLStatementCallback.cpp:
  17450. (WebCore::V8CustomSQLStatementCallback::V8CustomSQLStatementCallback):
  17451. (WebCore::V8CustomSQLStatementCallback::handleEvent):
  17452. * bindings/v8/custom/V8CustomSQLStatementCallback.h:
  17453. * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp:
  17454. (WebCore::V8CustomSQLStatementErrorCallback::V8CustomSQLStatementErrorCallback):
  17455. (WebCore::V8CustomSQLStatementErrorCallback::handleEvent):
  17456. * bindings/v8/custom/V8CustomSQLStatementErrorCallback.h:
  17457. * bindings/v8/custom/V8CustomSQLTransactionCallback.cpp:
  17458. (WebCore::V8CustomSQLTransactionCallback::V8CustomSQLTransactionCallback):
  17459. (WebCore::V8CustomSQLTransactionCallback::handleEvent):
  17460. * bindings/v8/custom/V8CustomSQLTransactionCallback.h:
  17461. * bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp:
  17462. (WebCore::V8CustomSQLTransactionErrorCallback::V8CustomSQLTransactionErrorCallback):
  17463. (WebCore::V8CustomSQLTransactionErrorCallback::handleEvent):
  17464. * bindings/v8/custom/V8CustomSQLTransactionErrorCallback.h:
  17465. * storage/SQLStatement.cpp:
  17466. (WebCore::SQLStatement::performCallback):
  17467. * storage/SQLStatementCallback.h:
  17468. * storage/SQLStatementErrorCallback.h:
  17469. * storage/SQLTransaction.cpp:
  17470. (WebCore::SQLTransaction::deliverTransactionCallback):
  17471. (WebCore::SQLTransaction::deliverTransactionErrorCallback):
  17472. * storage/SQLTransactionCallback.h:
  17473. * storage/SQLTransactionErrorCallback.h:
  17474. (WebCore::SQLTransactionErrorCallback::~SQLTransactionErrorCallback):
  17475. 2010-04-13 Mikhail Naganov <mnaganov@chromium.org>
  17476. Reviewed by Pavel Feldman.
  17477. Fix search behavior in Profiles tab.
  17478. https://bugs.webkit.org/show_bug.cgi?id=37498
  17479. * inspector/front-end/ProfileView.js:
  17480. (WebInspector.CPUProfileView.profileCallback):
  17481. (WebInspector.CPUProfileView):
  17482. 2010-04-13 David Hyatt <hyatt@apple.com>
  17483. Reviewed by Oliver Hunt.
  17484. https://bugs.webkit.org/show_bug.cgi?id=37513, clean up StyleBoxData and the RenderStyle variable that uses it.
  17485. * rendering/style/RenderStyle.cpp:
  17486. (WebCore::RenderStyle::RenderStyle):
  17487. (WebCore::RenderStyle::operator==):
  17488. (WebCore::RenderStyle::diff):
  17489. * rendering/style/RenderStyle.h:
  17490. (WebCore::):
  17491. (WebCore::InheritedFlags::width):
  17492. (WebCore::InheritedFlags::height):
  17493. (WebCore::InheritedFlags::minWidth):
  17494. (WebCore::InheritedFlags::maxWidth):
  17495. (WebCore::InheritedFlags::minHeight):
  17496. (WebCore::InheritedFlags::maxHeight):
  17497. (WebCore::InheritedFlags::verticalAlignLength):
  17498. (WebCore::InheritedFlags::boxSizing):
  17499. (WebCore::InheritedFlags::setWidth):
  17500. (WebCore::InheritedFlags::setHeight):
  17501. (WebCore::InheritedFlags::setMinWidth):
  17502. (WebCore::InheritedFlags::setMaxWidth):
  17503. (WebCore::InheritedFlags::setMinHeight):
  17504. (WebCore::InheritedFlags::setMaxHeight):
  17505. (WebCore::InheritedFlags::setVerticalAlignLength):
  17506. (WebCore::InheritedFlags::hasAutoZIndex):
  17507. (WebCore::InheritedFlags::setHasAutoZIndex):
  17508. (WebCore::InheritedFlags::zIndex):
  17509. (WebCore::InheritedFlags::setZIndex):
  17510. (WebCore::InheritedFlags::setBoxSizing):
  17511. * rendering/style/StyleBoxData.cpp:
  17512. (WebCore::StyleBoxData::StyleBoxData):
  17513. (WebCore::StyleBoxData::operator==):
  17514. * rendering/style/StyleBoxData.h:
  17515. (WebCore::StyleBoxData::width):
  17516. (WebCore::StyleBoxData::height):
  17517. (WebCore::StyleBoxData::minWidth):
  17518. (WebCore::StyleBoxData::minHeight):
  17519. (WebCore::StyleBoxData::maxWidth):
  17520. (WebCore::StyleBoxData::maxHeight):
  17521. (WebCore::StyleBoxData::verticalAlign):
  17522. (WebCore::StyleBoxData::zIndex):
  17523. (WebCore::StyleBoxData::hasAutoZIndex):
  17524. (WebCore::StyleBoxData::boxSizing):
  17525. 2010-04-12 yael aharon <yael.aharon@nokia.com>
  17526. Reviewed by Tor Arne Vestbo.
  17527. Minor fix to pass RenderProgress instead of RenderObject
  17528. https://bugs.webkit.org/show_bug.cgi?id=37481
  17529. * accessibility/AXObjectCache.cpp:
  17530. (WebCore::AXObjectCache::getOrCreate):
  17531. * accessibility/AccessibilityProgressIndicator.cpp:
  17532. (WebCore::AccessibilityProgressIndicator::AccessibilityProgressIndicator):
  17533. (WebCore::AccessibilityProgressIndicator::create):
  17534. * accessibility/AccessibilityProgressIndicator.h:
  17535. 2010-04-13 David Hyatt <hyatt@apple.com>
  17536. Reviewed by Oliver Hunt.
  17537. https://bugs.webkit.org/show_bug.cgi?id=37510, clean up StyleBackgroundData
  17538. * rendering/style/RenderStyle.cpp:
  17539. (WebCore::RenderStyle::RenderStyle):
  17540. (WebCore::RenderStyle::operator==):
  17541. (WebCore::RenderStyle::diff):
  17542. * rendering/style/RenderStyle.h:
  17543. (WebCore::):
  17544. (WebCore::InheritedFlags::hasBackground):
  17545. (WebCore::InheritedFlags::hasBackgroundImage):
  17546. (WebCore::InheritedFlags::hasFixedBackgroundImage):
  17547. (WebCore::InheritedFlags::outlineWidth):
  17548. (WebCore::InheritedFlags::outlineStyle):
  17549. (WebCore::InheritedFlags::outlineStyleIsAuto):
  17550. (WebCore::InheritedFlags::outlineColor):
  17551. (WebCore::InheritedFlags::backgroundColor):
  17552. (WebCore::InheritedFlags::backgroundImage):
  17553. (WebCore::InheritedFlags::backgroundRepeatX):
  17554. (WebCore::InheritedFlags::backgroundRepeatY):
  17555. (WebCore::InheritedFlags::backgroundComposite):
  17556. (WebCore::InheritedFlags::backgroundAttachment):
  17557. (WebCore::InheritedFlags::backgroundClip):
  17558. (WebCore::InheritedFlags::backgroundOrigin):
  17559. (WebCore::InheritedFlags::backgroundXPosition):
  17560. (WebCore::InheritedFlags::backgroundYPosition):
  17561. (WebCore::InheritedFlags::backgroundSizeType):
  17562. (WebCore::InheritedFlags::backgroundSizeLength):
  17563. (WebCore::InheritedFlags::accessBackgroundLayers):
  17564. (WebCore::InheritedFlags::backgroundLayers):
  17565. (WebCore::InheritedFlags::outlineOffset):
  17566. (WebCore::InheritedFlags::resetOutline):
  17567. (WebCore::InheritedFlags::setBackgroundColor):
  17568. (WebCore::InheritedFlags::setBackgroundXPosition):
  17569. (WebCore::InheritedFlags::setBackgroundYPosition):
  17570. (WebCore::InheritedFlags::setBackgroundSize):
  17571. (WebCore::InheritedFlags::setBackgroundSizeLength):
  17572. (WebCore::InheritedFlags::setOutlineWidth):
  17573. (WebCore::InheritedFlags::setOutlineStyle):
  17574. (WebCore::InheritedFlags::setOutlineColor):
  17575. (WebCore::InheritedFlags::clearBackgroundLayers):
  17576. (WebCore::InheritedFlags::inheritBackgroundLayers):
  17577. (WebCore::InheritedFlags::setOutlineOffset):
  17578. * rendering/style/StyleBackgroundData.h:
  17579. (WebCore::StyleBackgroundData::background):
  17580. (WebCore::StyleBackgroundData::color):
  17581. (WebCore::StyleBackgroundData::outline):
  17582. 2010-04-13 Stephan Aßmus <superstippi@gmx.de>
  17583. Reviewed by David Levin.
  17584. [Haiku] Use the system clipboard instead of a private clipboard.
  17585. Fix various problems in the previous implementation.
  17586. https://bugs.webkit.org/show_bug.cgi?id=37421
  17587. No new tests needed.
  17588. * platform/haiku/PasteboardHaiku.cpp:
  17589. (WebCore::Pasteboard::~Pasteboard):
  17590. (WebCore::Pasteboard::generalPasteboard):
  17591. - Don't leak the pasteboard at program exit.
  17592. (WebCore::AutoClipboardLocker::AutoClipboardLocker):
  17593. (WebCore::AutoClipboardLocker::~AutoClipboardLocker):
  17594. (WebCore::AutoClipboardLocker::isLocked):
  17595. - helper class for locking a BClipboard.
  17596. (WebCore::Pasteboard::writeSelection):
  17597. - Use AddData(B_MIME_TYPE) as required by clipboard protocol.
  17598. - Make sure we don't end up with unwanted UTF-8 characters for
  17599. regular line breaks.
  17600. (WebCore::Pasteboard::writePlainText):
  17601. - Use AddData(B_MIME_TYPE) as required by clipboard protocol.
  17602. (WebCore::Pasteboard::plainText):
  17603. - Use FindData(B_MIME_TYPE) as required by clipboard protocol.
  17604. (WebCore::Pasteboard::documentFragment):
  17605. - Implemented.
  17606. (WebCore::Pasteboard::writeURL):
  17607. - Needs to use AddData(B_MIME_TYPE) instead of AddString().
  17608. (WebCore::Pasteboard::clear):
  17609. 2010-04-13 Stephan Aßmus <superstippi@gmx.de>
  17610. Reviewed by David Levin.
  17611. [Haiku] Fix bridging Widget to native top-level BView.
  17612. https://bugs.webkit.org/show_bug.cgi?id=37419
  17613. In the Haiku port, there is no mapping between native widgets
  17614. and WebCore Widget instances. There is only a top-level BView
  17615. which renders a web page into a bitmap. For certain WebCore widget
  17616. functionality, we need to access this BView, like for setting the
  17617. current cursor or forcing focus. On the other hand, setting a
  17618. platform widget pointer on Widget results into completely different
  17619. behavior, like ScrollView tries to forward everything instead of
  17620. handling stuff itself. To make this work, the pointer to a "top-level"
  17621. BView is stored in every Widget for the Haiku port.
  17622. No new tests needed.
  17623. * platform/Widget.h:
  17624. - Added the m_topLevelPlatformWidget member for the Haiku platform.
  17625. (WebCore::Widget::setPlatformWidget):
  17626. (WebCore::Widget::topLevelPlatformWidget):
  17627. (WebCore::Widget::setTopLevelPlatformWidget):
  17628. * platform/haiku/WidgetHaiku.cpp:
  17629. (WebCore::AutoPlatformWidgetLocker::AutoPlatformWidgetLocker):
  17630. (WebCore::AutoPlatformWidgetLocker::~AutoPlatformWidgetLocker):
  17631. (WebCore::AutoPlatformWidgetLocker::isLocked):
  17632. - helper class for locking the BView looper thread with a timeout
  17633. (WebCore::Widget::Widget):
  17634. (WebCore::Widget::setFocus):
  17635. - Make sure the top-level view receives keyboard input.
  17636. (WebCore::Widget::setCursor):
  17637. - Set the cursor on the top-level view.
  17638. (WebCore::Widget::show):
  17639. (WebCore::Widget::hide):
  17640. - Don't show/hide the top-level view, but make the code correct
  17641. for whenever we would map an individual BView per Widget.
  17642. - Use setSelfVisible() and isParentVisible() like in other ports.
  17643. 2010-04-13 Jeremy Moskovich <jeremy@chromium.org>
  17644. Reviewed by David Levin.
  17645. Add some diagnostics to try to track down cause of crash in ArchiveFactory::isArchiveMimeType().
  17646. https://bugs.webkit.org/show_bug.cgi?id=36426
  17647. No new tests as there is no new functionality.
  17648. * loader/FrameLoader.cpp:
  17649. (WebCore::FrameLoader::finishedLoadingDocument): Make copy of mimeType string to isolate crash.
  17650. 2010-04-13 Abhishek Arya <inferno@chromium.org>
  17651. Reviewed by Adam Barth.
  17652. Add a null ptr check for m_popupClient.
  17653. * platform/chromium/PopupMenuChromium.cpp:
  17654. (WebCore::PopupListBox::abandon): Add a null ptr check
  17655. 2010-04-13 Stephan Aßmus <superstippi@gmx.de>
  17656. Reviewed by David Levin.
  17657. [Haiku] Use the system's default font family as last fall back font.
  17658. https://bugs.webkit.org/show_bug.cgi?id=37501
  17659. No new tests needed.
  17660. * platform/graphics/haiku/FontCacheHaiku.cpp:
  17661. (WebCore::FontCache::getLastResortFallbackFont):
  17662. - Use the system's default font family (from be_plain_font global).
  17663. 2010-04-13 Eskil Blomfeldt <eblomfel@trolltech.com>, Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
  17664. Reviewed by Simon Hausmann.
  17665. [Qt] Use integer pixel metric QFont API to fix rounding errors in text rendering on the Mac
  17666. https://bugs.webkit.org/show_bug.cgi?id=36532
  17667. * platform/graphics/qt/FontQt.cpp:
  17668. (WebCore::Font::floatWidthForComplexText):
  17669. (WebCore::Font::font):
  17670. 2010-04-13 Alexander Pavlov <apavlov@chromium.org>
  17671. Reviewed by Pavel Feldman.
  17672. Web Inspector: Cannot effectively delete properties in the Styles sidebar pane
  17673. https://bugs.webkit.org/show_bug.cgi?id=37499
  17674. * inspector/InspectorDOMAgent.cpp:
  17675. (WebCore::InspectorDOMAgent::applyStyleText):
  17676. 2010-04-13 Stephan Aßmus <superstippi@gmx.de>
  17677. Reviewed by David Levin.
  17678. Use the Haiku MIME type data base as a fall back for unknown file extensions.
  17679. https://bugs.webkit.org/show_bug.cgi?id=34686
  17680. Covered by existing tests.
  17681. * platform/haiku/MIMETypeRegistryHaiku.cpp:
  17682. (WebCore::):
  17683. - fixed coding style issues
  17684. (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
  17685. - fall back to the system MIME database for unknown types.
  17686. - return empty String as last resort, this is used
  17687. elsewhere as indicator for unknown types.
  17688. 2010-04-13 Stephan Aßmus <superstippi@gmx.de>
  17689. Reviewed by David Levin.
  17690. [Haiku] Use all the new system cursors available in recent Haiku revisions.
  17691. <https://bugs.webkit.org/show_bug.cgi?id=37385>
  17692. Covered by existing tests.
  17693. * platform/haiku/CursorHaiku.cpp:
  17694. (WebCore::Cursor::Cursor):
  17695. (WebCore::Cursor::~Cursor):
  17696. (WebCore::Cursor::operator=):
  17697. - Adapted to maintain an owned BCursor instance.
  17698. (WebCore::createCursorByID):
  17699. - helper function to create a Cursor instance by BCursorID constant.
  17700. (WebCore::pointerCursor):
  17701. - NULL BCursor triggers using the system cursor.
  17702. (WebCore::moveCursor):
  17703. (WebCore::crossCursor):
  17704. (WebCore::handCursor):
  17705. (WebCore::iBeamCursor):
  17706. (WebCore::waitCursor):
  17707. (WebCore::helpCursor):
  17708. (WebCore::eastResizeCursor):
  17709. (WebCore::northResizeCursor):
  17710. (WebCore::northEastResizeCursor):
  17711. (WebCore::northWestResizeCursor):
  17712. (WebCore::southResizeCursor):
  17713. (WebCore::southEastResizeCursor):
  17714. (WebCore::southWestResizeCursor):
  17715. (WebCore::westResizeCursor):
  17716. (WebCore::northSouthResizeCursor):
  17717. (WebCore::eastWestResizeCursor):
  17718. (WebCore::northEastSouthWestResizeCursor):
  17719. (WebCore::northWestSouthEastResizeCursor):
  17720. (WebCore::columnResizeCursor):
  17721. (WebCore::rowResizeCursor):
  17722. (WebCore::verticalTextCursor):
  17723. (WebCore::cellCursor):
  17724. (WebCore::contextMenuCursor):
  17725. (WebCore::noDropCursor):
  17726. (WebCore::copyCursor):
  17727. (WebCore::progressCursor):
  17728. (WebCore::aliasCursor):
  17729. (WebCore::noneCursor):
  17730. (WebCore::notAllowedCursor):
  17731. (WebCore::zoomInCursor):
  17732. (WebCore::zoomOutCursor):
  17733. (WebCore::grabCursor):
  17734. (WebCore::grabbingCursor):
  17735. - Use the new system cursors.
  17736. 2010-04-13 Dirk Schulze <krit@webkit.org>
  17737. Reviewed by Nikolas Zimmermann.
  17738. <clipPath> doesn't correctly handle <text> elements
  17739. https://bugs.webkit.org/show_bug.cgi?id=12571
  17740. Adds support for text elements as clipPath, heterogenous clip rules, as well
  17741. as clipping of clipPath.
  17742. A fast code path let platforms clip simple shapes directly. All other variants
  17743. are drawn to a seperate ImageBuffer, which is used as a mask. This happens the same
  17744. way we like we do it on SVG Masking. This needs temporary changes to the RenderStyle
  17745. of clipPath childs. Values like stroke, resources, opacity have to be ignored.
  17746. Tests: svg/clip-path/clip-path-child-clipped.svg
  17747. svg/clip-path/clip-path-childs-clipped.svg
  17748. svg/clip-path/clip-path-clipped-evenodd-twice.svg
  17749. svg/clip-path/clip-path-clipped-no-content.svg
  17750. svg/clip-path/clip-path-clipped-nonzero.svg
  17751. svg/clip-path/clip-path-clipped.svg
  17752. svg/clip-path/clip-path-evenodd-nonzero.svg
  17753. svg/clip-path/clip-path-evenodd.svg
  17754. svg/clip-path/clip-path-nonzero-evenodd.svg
  17755. svg/clip-path/clip-path-nonzero.svg
  17756. svg/clip-path/clip-path-objectBoundingBox.svg
  17757. svg/clip-path/clip-path-on-clipped-use.svg
  17758. svg/clip-path/clip-path-on-g-and-child.svg
  17759. svg/clip-path/clip-path-on-g.svg
  17760. svg/clip-path/clip-path-on-svg-and-child.svg
  17761. svg/clip-path/clip-path-on-svg.svg
  17762. svg/clip-path/clip-path-recursive-call-by-child.svg
  17763. svg/clip-path/clip-path-recursive-call.svg
  17764. svg/clip-path/clip-path-text-and-shape.svg
  17765. svg/clip-path/clip-path-text-and-stroke.svg
  17766. svg/clip-path/clip-path-text.svg
  17767. svg/clip-path/clip-path-use-as-child.svg
  17768. svg/clip-path/clip-path-use-as-child2.svg
  17769. svg/clip-path/clip-path-use-as-child3.svg
  17770. svg/clip-path/clip-path-use-as-child4.svg
  17771. svg/clip-path/clip-path-use-as-child5.svg
  17772. svg/clip-path/clip-path-userSpaceOnUse.svg
  17773. svg/clip-path/clip-path-with-container.svg
  17774. svg/clip-path/clip-path-with-different-unittypes.svg
  17775. svg/clip-path/clip-path-with-different-unittypes2.svg
  17776. svg/clip-path/clip-path-with-invisibile-child.svg
  17777. svg/clip-path/clip-path-with-text-clipped.svg
  17778. * rendering/RenderObject.h:
  17779. (WebCore::RenderObject::isSVGShadowTreeRootContainer): identify use-element renderer
  17780. * rendering/RenderSVGResourceClipper.cpp:
  17781. (WebCore::RenderSVGResourceClipper::invalidateClients):
  17782. (WebCore::RenderSVGResourceClipper::invalidateClient):
  17783. (WebCore::RenderSVGResourceClipper::applyResource):
  17784. (WebCore::RenderSVGResourceClipper::pathOnlyClipping): direct clipping for simple shapes
  17785. (WebCore::RenderSVGResourceClipper::applyClippingToContext): direct clipping or maskImage?
  17786. (WebCore::RenderSVGResourceClipper::createClipData): creates maskImage for clipping
  17787. (WebCore::RenderSVGResourceClipper::resourceBoundingBox):
  17788. * rendering/RenderSVGResourceClipper.h:
  17789. * rendering/RenderSVGShadowTreeRootContainer.h: identify use-Element by renderer
  17790. (WebCore::RenderSVGShadowTreeRootContainer::isSVGShadowTreeRootContainer):
  17791. * rendering/SVGRenderSupport.cpp:
  17792. (WebCore::renderSubtreeToImage): hack to get texts working on clipping (masks and pattern)
  17793. * svg/SVGUseElement.cpp:
  17794. (WebCore::SVGUseElement::rendererClipChild): get renderer of referenced object
  17795. * svg/SVGUseElement.h:
  17796. 2010-04-13 Nikolas Zimmermann <nzimmermann@rim.com>
  17797. Reviewed by Dirk Schulze.
  17798. SVG renderers should track transform/path changes, instead of pulling every time from SVG DOM
  17799. https://bugs.webkit.org/show_bug.cgi?id=15389
  17800. RenderPath caches repaint rectangles (fill/stroke bbox etc.) though this caching
  17801. was effectively useless because every layout() call caused them to be reset to empty rects.
  17802. Furthermore RenderPath::layout() queried the SVG DOM upon every invocation to retrieve
  17803. the Path object, instead of only doing it when necessary. Even the TransformationMatrix
  17804. was polled everytime from the SVG DOM.
  17805. Move the knownledge wheter we need to update path/transform into the render tree and
  17806. only update when necessary. This should result in a huge performance increase, with
  17807. the drawback of adding slightly more memory, because we need to add booleans indicating
  17808. the status of path/transform (is dirty?).
  17809. Doesn't affect any tests, only performance.
  17810. * rendering/RenderForeignObject.cpp:
  17811. (WebCore::RenderForeignObject::RenderForeignObject):
  17812. (WebCore::RenderForeignObject::layout):
  17813. * rendering/RenderForeignObject.h:
  17814. (WebCore::RenderForeignObject::setNeedsTransformUpdate):
  17815. * rendering/RenderObject.h:
  17816. (WebCore::RenderObject::setNeedsTransformUpdate):
  17817. (WebCore::RenderObject::setNeedsBoundariesUpdate):
  17818. * rendering/RenderPath.cpp:
  17819. (WebCore::RenderPath::RenderPath):
  17820. (WebCore::RenderPath::layout):
  17821. (WebCore::RenderPath::invalidateCachedBoundaries):
  17822. (WebCore::RenderPath::styleWillChange):
  17823. * rendering/RenderPath.h:
  17824. (WebCore::RenderPath::setNeedsBoundariesUpdate):
  17825. (WebCore::RenderPath::setNeedsPathUpdate):
  17826. (WebCore::RenderPath::setNeedsTransformUpdate):
  17827. (WebCore::RenderPath::localToParentTransform):
  17828. (WebCore::RenderPath::localTransform):
  17829. * rendering/RenderSVGImage.cpp:
  17830. (WebCore::RenderSVGImage::RenderSVGImage):
  17831. (WebCore::RenderSVGImage::layout):
  17832. * rendering/RenderSVGImage.h:
  17833. (WebCore::RenderSVGImage::setNeedsTransformUpdate):
  17834. * rendering/RenderSVGResourceClipper.cpp:
  17835. (WebCore::RenderSVGResourceClipper::invalidateClients):
  17836. * rendering/RenderSVGResourceMarker.cpp:
  17837. (WebCore::RenderSVGResourceMarker::invalidateClients):
  17838. * rendering/RenderSVGResourceMasker.cpp:
  17839. (WebCore::RenderSVGResourceMasker::invalidateClients):
  17840. * rendering/RenderSVGText.cpp:
  17841. (WebCore::RenderSVGText::RenderSVGText):
  17842. (WebCore::RenderSVGText::layout):
  17843. * rendering/RenderSVGText.h:
  17844. (WebCore::RenderSVGText::setNeedsTransformUpdate):
  17845. * rendering/RenderSVGTransformableContainer.cpp:
  17846. (WebCore::RenderSVGTransformableContainer::RenderSVGTransformableContainer):
  17847. (WebCore::RenderSVGTransformableContainer::calculateLocalTransform):
  17848. * rendering/RenderSVGTransformableContainer.h:
  17849. (WebCore::RenderSVGTransformableContainer::localToParentTransform):
  17850. (WebCore::RenderSVGTransformableContainer::setNeedsTransformUpdate):
  17851. (WebCore::RenderSVGTransformableContainer::localTransform):
  17852. * svg/SVGAnimateMotionElement.cpp:
  17853. (WebCore::SVGAnimateMotionElement::calculateAnimatedValue):
  17854. (WebCore::SVGAnimateMotionElement::applyResultsToTarget):
  17855. * svg/SVGAnimateTransformElement.cpp:
  17856. (WebCore::SVGAnimateTransformElement::applyResultsToTarget):
  17857. * svg/SVGCircleElement.cpp:
  17858. (WebCore::SVGCircleElement::svgAttributeChanged):
  17859. * svg/SVGEllipseElement.cpp:
  17860. (WebCore::SVGEllipseElement::svgAttributeChanged):
  17861. * svg/SVGForeignObjectElement.cpp:
  17862. (WebCore::SVGForeignObjectElement::svgAttributeChanged):
  17863. * svg/SVGGElement.cpp:
  17864. (WebCore::SVGGElement::svgAttributeChanged):
  17865. * svg/SVGImageElement.cpp:
  17866. (WebCore::SVGImageElement::svgAttributeChanged):
  17867. * svg/SVGLineElement.cpp:
  17868. (WebCore::SVGLineElement::svgAttributeChanged):
  17869. * svg/SVGPathElement.cpp:
  17870. (WebCore::SVGPathElement::svgAttributeChanged):
  17871. * svg/SVGPolyElement.cpp:
  17872. (WebCore::SVGPolyElement::svgAttributeChanged):
  17873. * svg/SVGRectElement.cpp:
  17874. (WebCore::SVGRectElement::svgAttributeChanged):
  17875. * svg/SVGTextElement.cpp:
  17876. (WebCore::SVGTextElement::svgAttributeChanged):
  17877. * svg/SVGUseElement.cpp:
  17878. (WebCore::SVGUseElement::svgAttributeChanged):
  17879. 2010-04-13 Mikhail Naganov <mnaganov@chromium.org>
  17880. Unreviewed Qt build fix: add new .idl files to WebCore.pri
  17881. * WebCore.pri:
  17882. 2010-04-12 Mikhail Naganov <mnaganov@chromium.org>
  17883. Reviewed by Yury Semikhatsky.
  17884. Replace hand-written JavaScriptProfile* bindings with idl-based, and
  17885. in Chromium port, bind them to the new V8's profiler API that is
  17886. aligned with JSC.
  17887. https://bugs.webkit.org/show_bug.cgi?id=37448
  17888. * DerivedSources.cpp:
  17889. * DerivedSources.make:
  17890. * GNUmakefile.am:
  17891. * WebCore.gypi:
  17892. * WebCore.pro:
  17893. * WebCore.vcproj/WebCore.vcproj:
  17894. * WebCore.xcodeproj/project.pbxproj:
  17895. * bindings/js/JSBindingsAllInOne.cpp:
  17896. * bindings/js/JSConsoleCustom.cpp:
  17897. * bindings/js/JSScriptProfileNodeCustom.cpp: Added.
  17898. (WebCore::JSScriptProfileNode::callUID):
  17899. (WebCore::JSScriptProfileNode::children):
  17900. * bindings/js/JavaScriptProfile.cpp: Removed.
  17901. * bindings/js/JavaScriptProfile.h: Removed.
  17902. * bindings/js/JavaScriptProfileNode.cpp: Removed.
  17903. * bindings/js/JavaScriptProfileNode.h: Removed.
  17904. * bindings/js/ScriptProfileNode.h: Added.
  17905. * bindings/scripts/CodeGeneratorJS.pm:
  17906. * bindings/scripts/CodeGeneratorV8.pm:
  17907. * bindings/v8/ScriptProfile.cpp: Added.
  17908. (WebCore::ScriptProfile::title):
  17909. (WebCore::ScriptProfile::uid):
  17910. (WebCore::ScriptProfile::head):
  17911. * bindings/v8/ScriptProfile.h:
  17912. (WebCore::ScriptProfile::create):
  17913. (WebCore::ScriptProfile::ScriptProfile):
  17914. * bindings/v8/ScriptProfileNode.cpp: Added.
  17915. (WebCore::ScriptProfileNode::functionName):
  17916. (WebCore::ScriptProfileNode::url):
  17917. (WebCore::ScriptProfileNode::lineNumber):
  17918. (WebCore::ScriptProfileNode::totalTime):
  17919. (WebCore::ScriptProfileNode::selfTime):
  17920. (WebCore::ScriptProfileNode::numberOfCalls):
  17921. (WebCore::ScriptProfileNode::children):
  17922. (WebCore::ScriptProfileNode::visible):
  17923. (WebCore::ScriptProfileNode::callUID):
  17924. * bindings/v8/ScriptProfileNode.h: Added.
  17925. (WebCore::ScriptProfileNode::create):
  17926. (WebCore::ScriptProfileNode::~ScriptProfileNode):
  17927. (WebCore::ScriptProfileNode::ScriptProfileNode):
  17928. * bindings/v8/ScriptProfiler.cpp:
  17929. (WebCore::ScriptProfiler::start):
  17930. (WebCore::ScriptProfiler::stop):
  17931. * bindings/v8/custom/V8ConsoleCustom.cpp: Added.
  17932. (WebCore::V8Console::profilesAccessorGetter):
  17933. * bindings/v8/custom/V8ScriptProfileCustom.cpp: Added.
  17934. (WebCore::toV8):
  17935. * bindings/v8/custom/V8ScriptProfileNodeCustom.cpp: Added.
  17936. (WebCore::V8ScriptProfileNode::childrenAccessorGetter):
  17937. (WebCore::V8ScriptProfileNode::callUIDAccessorGetter):
  17938. (WebCore::toV8):
  17939. * inspector/InspectorController.cpp:
  17940. (WebCore::InspectorController::getProfile):
  17941. * inspector/ScriptProfile.idl: Added.
  17942. * inspector/ScriptProfileNode.idl: Added.
  17943. * inspector/front-end/InspectorBackendStub.js:
  17944. (.WebInspector.InspectorBackendStub.prototype.getProfile):
  17945. * inspector/front-end/ProfilesPanel.js:
  17946. (WebInspector.ProfilesPanel.prototype.populateInterface):
  17947. (WebInspector.ProfilesPanel.prototype.profilerWasEnabled):
  17948. * page/Console.idl:
  17949. * platform/android/TemporaryLinkStubs.cpp:
  17950. 2010-04-12 Antonio Gomes <tonikitoo@webkit.org>
  17951. Reviewed by Simon Fraser.
  17952. Spatial Navigation: make renderRectRelativeToRootDocument method to fallback to getRect() of Element when needed
  17953. https://bugs.webkit.org/show_bug.cgi?id=37461
  17954. getRect() of Element can be used instead of absoluteClippedOverflowRect of RenderObject when
  17955. the node is currently offscreen in an scroll overflowed content.
  17956. Test: fast/events/spatial-navigation/snav-simple-content-overflow.html
  17957. * page/SpatialNavigation.cpp:
  17958. (WebCore::renderRectRelativeToRootDocument):
  17959. 2010-04-12 Antonio Gomes <tonikitoo@webkit.org>
  17960. Unreviewed style fix.
  17961. * page/FocusController.cpp:
  17962. (WebCore::updateFocusCandidateIfCloser):
  17963. 2010-04-08 yael aharon <yael.aharon@nokia.com>
  17964. Reviewed by Darin Adler.
  17965. Accessibility support for progress element
  17966. https://bugs.webkit.org/show_bug.cgi?id=37275
  17967. Implement AccessibilityProgressIndicator to hook up progress element to accessibility framework.
  17968. Test: platform/mac/accessibility/progressbar.html
  17969. * GNUmakefile.am:
  17970. * WebCore.gypi:
  17971. * WebCore.pro:
  17972. * WebCore.vcproj/WebCore.vcproj:
  17973. * WebCore.xcodeproj/project.pbxproj:
  17974. * accessibility/AXObjectCache.cpp:
  17975. (WebCore::AXObjectCache::getOrCreate):
  17976. * accessibility/AccessibilityProgressIndicator.cpp: Added.
  17977. (WebCore::AccessibilityProgressIndicator::AccessibilityProgressIndicator):
  17978. (WebCore::AccessibilityProgressIndicator::create):
  17979. (WebCore::AccessibilityProgressIndicator::accessibilityIsIgnored):
  17980. (WebCore::AccessibilityProgressIndicator::valueForRange):
  17981. (WebCore::AccessibilityProgressIndicator::maxValueForRange):
  17982. (WebCore::AccessibilityProgressIndicator::minValueForRange):
  17983. (WebCore::AccessibilityProgressIndicator::element):
  17984. * accessibility/AccessibilityProgressIndicator.h: Added.
  17985. (WebCore::AccessibilityProgressIndicator::roleValue):
  17986. (WebCore::AccessibilityProgressIndicator::isProgressIndicator):
  17987. * rendering/RenderProgress.cpp:
  17988. (WebCore::RenderProgress::updateFromElement):
  17989. (WebCore::RenderProgress::progressElement):
  17990. * rendering/RenderProgress.h:
  17991. 2010-04-12 Dumitru Daniliuc <dumi@chromium.org>
  17992. Reviewed by Dimitri Glazkov.
  17993. Throwing a SECURITY_ERR when openDatabase() cannot open a database
  17994. for whatever reason, as required by the spec.
  17995. https://bugs.webkit.org/show_bug.cgi?id=33916
  17996. * bindings/js/JSDOMWindowCustom.cpp:
  17997. (WebCore::JSDOMWindow::openDatabase):
  17998. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  17999. (WebCore::V8DOMWindow::openDatabaseCallback):
  18000. 2010-04-12 Steve Falkenburg <sfalken@apple.com>
  18001. Reviewed by Dan Bernstein.
  18002. WebKit should have more robust last-chance font fallback on Windows
  18003. https://bugs.webkit.org/show_bug.cgi?id=37473
  18004. <rdar://problem/7789438> Crash in FontFallbackList::determinePitch
  18005. <rdar://problem/7233762> Crash in FontFallbackList::fontDataAt
  18006. Look harder for a suitable last-resort font. Previously, we checked for
  18007. "Times New Roman" followed by DEFAULT_GUI_FONT.
  18008. We now look for:
  18009. - Typically installed Unicode-capable fonts, in order of coverage
  18010. - DEFAULT_GUI_FONT
  18011. - SPI_GETNONCLIENTMETRICS fonts
  18012. * platform/graphics/win/FontCacheWin.cpp:
  18013. (WebCore::FontCache::fontDataFromDescriptionAndLogFont):
  18014. (WebCore::FontCache::getLastResortFallbackFont):
  18015. 2010-04-12 David Hyatt <hyatt@apple.com>
  18016. Reviewed by Dan Bernstein.
  18017. https://bugs.webkit.org/show_bug.cgi?id=37469, clean up ShadowData to be encapsulated properly.
  18018. * css/CSSComputedStyleDeclaration.cpp:
  18019. (WebCore::CSSComputedStyleDeclaration::valueForShadow):
  18020. * page/animation/AnimationBase.cpp:
  18021. (WebCore::blendFunc):
  18022. (WebCore::PropertyWrapperShadow::PropertyWrapperShadow):
  18023. (WebCore::PropertyWrapperShadow::equals):
  18024. (WebCore::PropertyWrapperShadow::blend):
  18025. * page/mac/FrameMac.mm:
  18026. (WebCore::Frame::fontAttributesForSelectionStart):
  18027. * rendering/EllipsisBox.cpp:
  18028. (WebCore::EllipsisBox::paint):
  18029. * rendering/InlineFlowBox.cpp:
  18030. (WebCore::InlineFlowBox::placeBoxesHorizontally):
  18031. (WebCore::InlineFlowBox::computeVerticalOverflow):
  18032. (WebCore::InlineFlowBox::paintTextDecorations):
  18033. * rendering/InlineTextBox.cpp:
  18034. (WebCore::paintTextWithShadows):
  18035. (WebCore::InlineTextBox::paint):
  18036. (WebCore::InlineTextBox::paintDecoration):
  18037. * rendering/InlineTextBox.h:
  18038. * rendering/RenderBoxModelObject.cpp:
  18039. (WebCore::RenderBoxModelObject::paintBoxShadow):
  18040. * rendering/RenderLayer.cpp:
  18041. (WebCore::RenderLayer::calculateRects):
  18042. * rendering/RenderObject.cpp:
  18043. (WebCore::RenderObject::adjustRectForOutlineAndShadow):
  18044. * rendering/SVGInlineTextBox.cpp:
  18045. (WebCore::SVGInlineTextBox::paintCharacters):
  18046. * rendering/SVGRenderSupport.cpp:
  18047. (WebCore::SVGRenderBase::prepareToRenderSVGContent):
  18048. * rendering/style/RenderStyle.cpp:
  18049. (WebCore::RenderStyle::setTextShadow):
  18050. (WebCore::RenderStyle::setBoxShadow):
  18051. (WebCore::RenderStyle::getBoxShadowExtent):
  18052. (WebCore::RenderStyle::getBoxShadowHorizontalExtent):
  18053. (WebCore::RenderStyle::getBoxShadowVerticalExtent):
  18054. * rendering/style/RenderStyle.h:
  18055. (WebCore::InheritedFlags::textShadow):
  18056. (WebCore::InheritedFlags::boxShadow):
  18057. * rendering/style/SVGRenderStyle.cpp:
  18058. (WebCore::getSVGShadowExtent):
  18059. * rendering/style/ShadowData.cpp:
  18060. (WebCore::ShadowData::ShadowData):
  18061. (WebCore::ShadowData::operator==):
  18062. * rendering/style/ShadowData.h:
  18063. (WebCore::ShadowData::ShadowData):
  18064. (WebCore::ShadowData::~ShadowData):
  18065. (WebCore::ShadowData::x):
  18066. (WebCore::ShadowData::y):
  18067. (WebCore::ShadowData::blur):
  18068. (WebCore::ShadowData::spread):
  18069. (WebCore::ShadowData::style):
  18070. (WebCore::ShadowData::color):
  18071. (WebCore::ShadowData::next):
  18072. (WebCore::ShadowData::setNext):
  18073. 2010-04-12 David Hyatt <hyatt@apple.com>
  18074. Reviewed by Mark Rowe.
  18075. https://bugs.webkit.org/show_bug.cgi?id=37463, clean up NinePieceImage.
  18076. * css/CSSComputedStyleDeclaration.cpp:
  18077. (WebCore::valueForNinePieceImage):
  18078. * css/CSSStyleSelector.cpp:
  18079. (WebCore::CSSStyleSelector::mapNinePieceImage):
  18080. * rendering/RenderBoxModelObject.cpp:
  18081. (WebCore::RenderBoxModelObject::paintNinePieceImage):
  18082. * rendering/style/NinePieceImage.h:
  18083. (WebCore::NinePieceImage::setImage):
  18084. (WebCore::NinePieceImage::slices):
  18085. (WebCore::NinePieceImage::setSlices):
  18086. (WebCore::NinePieceImage::setHorizontalRule):
  18087. (WebCore::NinePieceImage::verticalRule):
  18088. (WebCore::NinePieceImage::setVerticalRule):
  18089. 2010-04-12 David Hyatt <hyatt@apple.com>
  18090. Reviewed by Sam Weinig.
  18091. https://bugs.webkit.org/show_bug.cgi?id=37455, :visited doesn't work with multiple classes/ids.
  18092. Added fast/history/multiple-classes-visited.html.
  18093. * css/CSSStyleSelector.cpp:
  18094. (WebCore::CSSStyleSelector::SelectorChecker::checkSelector):
  18095. 2010-04-12 Dirk Schulze <krit@webkit.org>
  18096. Unreviewed build fix.
  18097. Make comma/whitespace around arc flags optional in SVG path syntax
  18098. https://bugs.webkit.org/show_bug.cgi?id=37431
  18099. Fix the SL build.
  18100. * svg/SVGParserUtilities.cpp:
  18101. (WebCore::parseArcFlag):
  18102. 2010-04-12 Jeff Schiller <codedread@gmail.com>
  18103. Reviewed by Dirk Schulze.
  18104. Make comma/whitespace around arc flags optional in SVG path syntax and ensure flags are
  18105. either 0 or 1: https://bugs.webkit.org/show_bug.cgi?id=37431
  18106. * svg/SVGParserUtilities.cpp:
  18107. (WebCore::parseArcFlag): function to read in a 0 or 1 for largeArcFlag and sweepFlag
  18108. (WebCore::SVGPathParser::parseSVG): modify/simplify arc parsing by using parseArcFlag()
  18109. 2010-04-11 Sheriff Bot <webkit.review.bot@gmail.com>
  18110. Unreviewed, rolling out r57468.
  18111. http://trac.webkit.org/changeset/57468
  18112. https://bugs.webkit.org/show_bug.cgi?id=37433
  18113. Broke the world... Must have applied the patch wrong
  18114. (Requested by abarth on #webkit).
  18115. * Android.mk:
  18116. * GNUmakefile.am:
  18117. * WebCore.base.exp:
  18118. * WebCore.gypi:
  18119. * WebCore.pro:
  18120. * WebCore.vcproj/WebCore.vcproj:
  18121. * WebCore.xcodeproj/project.pbxproj:
  18122. * bindings/ScriptControllerBase.cpp:
  18123. (WebCore::ScriptController::executeIfJavaScriptURL):
  18124. * dom/Document.cpp:
  18125. (WebCore::Document::close):
  18126. * dom/ProcessingInstruction.cpp:
  18127. (WebCore::ProcessingInstruction::checkStyleSheet):
  18128. * dom/ScriptElement.cpp:
  18129. (WebCore::ScriptElementData::scriptCharset):
  18130. * html/HTMLLinkElement.cpp:
  18131. (WebCore::HTMLLinkElement::process):
  18132. * loader/DocLoader.cpp:
  18133. (WebCore::DocLoader::requestPreload):
  18134. * loader/DocumentLoader.cpp:
  18135. (WebCore::DocumentLoader::finishedLoading):
  18136. (WebCore::DocumentLoader::setupForReplaceByMIMEType):
  18137. * loader/DocumentWriter.cpp: Removed.
  18138. * loader/DocumentWriter.h: Removed.
  18139. * loader/FrameLoader.cpp:
  18140. (WebCore::canReferToParentFrameEncoding):
  18141. (WebCore::FrameLoader::FrameLoader):
  18142. (WebCore::FrameLoader::init):
  18143. (WebCore::FrameLoader::replaceDocument):
  18144. (WebCore::FrameLoader::clear):
  18145. (WebCore::FrameLoader::receivedFirstData):
  18146. (WebCore::FrameLoader::responseMIMEType):
  18147. (WebCore::FrameLoader::setResponseMIMEType):
  18148. (WebCore::FrameLoader::begin):
  18149. (WebCore::FrameLoader::write):
  18150. (WebCore::FrameLoader::end):
  18151. (WebCore::FrameLoader::endIfNotLoadingMainResource):
  18152. (WebCore::FrameLoader::encoding):
  18153. (WebCore::FrameLoader::setEncoding):
  18154. (WebCore::FrameLoader::addData):
  18155. (WebCore::FrameLoader::transitionToCommitted):
  18156. (WebCore::FrameLoader::open):
  18157. (WebCore::FrameLoader::finishedLoadingDocument):
  18158. (WebCore::FrameLoader::addExtraFieldsToRequest):
  18159. * loader/FrameLoader.h:
  18160. * loader/MediaDocument.cpp:
  18161. (WebCore::MediaDocument::replaceMediaElementTimerFired):
  18162. * loader/PluginDocument.cpp:
  18163. (WebCore::PluginTokenizer::createDocumentStructure):
  18164. * platform/network/FormDataBuilder.cpp:
  18165. (WebCore::FormDataBuilder::dataEncoding):
  18166. * svg/graphics/SVGImage.cpp:
  18167. (WebCore::SVGImage::dataChanged):
  18168. 2010-04-11 Adam Barth <abarth@webkit.org>
  18169. Reviewed by Eric Seidel.
  18170. Factor DocumentWriter out of FrameLoader
  18171. https://bugs.webkit.org/show_bug.cgi?id=37175
  18172. This patch separates the begin/write/end cycle of decoding network
  18173. bytes and putting them into a document from the rest of the loading
  18174. machinery. The code and state required to write bytes into a document
  18175. doesn't interact very much with the rest of the loading machinery.
  18176. No tests because there is no behavior change (hopefully!).
  18177. * Android.mk:
  18178. * GNUmakefile.am:
  18179. * WebCore.base.exp:
  18180. * WebCore.gypi:
  18181. * WebCore.pro:
  18182. * WebCore.vcproj/WebCore.vcproj:
  18183. * WebCore.xcodeproj/project.pbxproj:
  18184. * bindings/ScriptControllerBase.cpp:
  18185. (WebCore::ScriptController::executeIfJavaScriptURL):
  18186. * dom/Document.cpp:
  18187. (WebCore::Document::close):
  18188. * dom/ProcessingInstruction.cpp:
  18189. (WebCore::ProcessingInstruction::checkStyleSheet):
  18190. * dom/ScriptElement.cpp:
  18191. (WebCore::ScriptElementData::scriptCharset):
  18192. * html/HTMLLinkElement.cpp:
  18193. (WebCore::HTMLLinkElement::process):
  18194. * loader/DocLoader.cpp:
  18195. (WebCore::DocLoader::requestPreload):
  18196. * loader/DocumentLoader.cpp:
  18197. (WebCore::DocumentLoader::finishedLoading):
  18198. (WebCore::DocumentLoader::setupForReplaceByMIMEType):
  18199. * loader/DocumentWriter.cpp: Added.
  18200. * loader/DocumentWriter.h: Added.
  18201. * loader/FrameLoader.cpp:
  18202. (WebCore::FrameLoader::FrameLoader):
  18203. (WebCore::FrameLoader::init):
  18204. (WebCore::FrameLoader::clear):
  18205. (WebCore::FrameLoader::receivedFirstData):
  18206. (WebCore::FrameLoader::setURL):
  18207. (WebCore::FrameLoader::didBeginDocument):
  18208. (WebCore::FrameLoader::didEndDocument):
  18209. (WebCore::FrameLoader::willSetEncoding):
  18210. (WebCore::FrameLoader::addData):
  18211. (WebCore::FrameLoader::transitionToCommitted):
  18212. (WebCore::FrameLoader::open):
  18213. (WebCore::FrameLoader::finishedLoadingDocument):
  18214. (WebCore::FrameLoader::addExtraFieldsToRequest):
  18215. * loader/FrameLoader.h:
  18216. (WebCore::FrameLoader::writer):
  18217. (WebCore::FrameLoader::isDisplayingInitialEmptyDocument):
  18218. * loader/MediaDocument.cpp:
  18219. (WebCore::MediaDocument::replaceMediaElementTimerFired):
  18220. * loader/PluginDocument.cpp:
  18221. (WebCore::PluginTokenizer::createDocumentStructure):
  18222. * platform/network/FormDataBuilder.cpp:
  18223. (WebCore::FormDataBuilder::dataEncoding):
  18224. * svg/graphics/SVGImage.cpp:
  18225. (WebCore::SVGImage::dataChanged):
  18226. 2010-04-07 Tony Chang <tony@chromium.org>
  18227. Reviewed by Eric Seidel.
  18228. [chromium] implement getData('text/html') for paste and drop events
  18229. https://bugs.webkit.org/show_bug.cgi?id=37193
  18230. Tests: editing/pasteboard/onpaste-text-html.html
  18231. fast/events/ondrop-text-html.html
  18232. * platform/chromium/ClipboardChromium.cpp:
  18233. (WebCore::):
  18234. (WebCore::clipboardTypeFromMIMEType): add html type
  18235. (WebCore::ClipboardChromium::clearData): implement clear text/html
  18236. (WebCore::ClipboardChromium::getData): implement get text/html (similar to text/plain)
  18237. (WebCore::ClipboardChromium::setData): implement set text/html
  18238. 2010-04-10 Adam Barth <abarth@webkit.org>
  18239. Unreviewed. Rename m_forceSandboxFlags to m_forcedSandoxFlags, as
  18240. requested by Darin Adler.
  18241. * loader/FrameLoader.cpp:
  18242. (WebCore::FrameLoader::FrameLoader):
  18243. (WebCore::FrameLoader::updateSandboxFlags):
  18244. * loader/FrameLoader.h:
  18245. (WebCore::FrameLoader::setForcedSandboxFlags):
  18246. * svg/graphics/SVGImage.cpp:
  18247. (WebCore::SVGImage::dataChanged):
  18248. 2010-04-10 Mark Rowe <mrowe@apple.com>
  18249. Reviewed by Dan Bernstein.
  18250. <rdar://problem/7845305> Further adoption of formal protocols for delegates.
  18251. Move EmptyProtocolDefinitions.h down in to WebCore, and add the new protocols. Adopt the protocols in the appropriate places.
  18252. * WebCore.xcodeproj/project.pbxproj:
  18253. * platform/mac/EmptyProtocolDefinitions.h: Renamed from WebKit/mac/Misc/EmptyProtocolDefinitions.h.
  18254. * platform/network/mac/ResourceHandleMac.mm:
  18255. 2010-04-10 Chris Evans <cevans@chromium.org>
  18256. Reviewed by Adam Barth.
  18257. Defense in depth: make sure an SVG document in the <img> context has
  18258. a unique origin.
  18259. https://bugs.webkit.org/show_bug.cgi?id=37392
  18260. * svg/graphics/SVGImage.cpp:
  18261. (WebCore::SVGImage::dataChanged):
  18262. Force the temporary rendering context into a unique origin.
  18263. * loader/FrameLoader.h:
  18264. (WebCore::FrameLoader::setForceSandboxFlags):
  18265. Support for setting sandbox flags that will always be applied.
  18266. * loader/FrameLoader.cpp:
  18267. (WebCore::FrameLoader::updateSandboxFlags):
  18268. Always apply any forced flags.
  18269. 2010-04-10 Vangelis Kokkevis <vangelis@chromium.org>
  18270. Reviewed by Dimitri Glazkov.
  18271. Moving files associated with the GPU compositor from platform/graphics/skia to platform/graphics/chromium. Class
  18272. rename was done in a previous CL, this CL does the file move and rename.
  18273. https://bugs.webkit.org/show_bug.cgi?id=37231
  18274. No new functionality, no new tests.
  18275. * WebCore.gypi:
  18276. * platform/graphics/chromium/GraphicsLayerChromium.cpp: Copied from WebCore/platform/graphics/skia/GraphicsLayerSkia.cpp.
  18277. * platform/graphics/chromium/GraphicsLayerChromium.h: Copied from WebCore/platform/graphics/skia/GraphicsLayerSkia.h.
  18278. * platform/graphics/chromium/LayerChromium.cpp: Copied from WebCore/platform/graphics/skia/LayerSkia.cpp.
  18279. * platform/graphics/chromium/LayerChromium.h: Copied from WebCore/platform/graphics/skia/LayerSkia.h.
  18280. * platform/graphics/chromium/LayerRendererChromium.cpp: Copied from WebCore/platform/graphics/skia/LayerRendererSkia.cpp.
  18281. * platform/graphics/chromium/LayerRendererChromium.h: Copied from WebCore/platform/graphics/skia/LayerRendererSkia.h.
  18282. * platform/graphics/skia/GraphicsLayerSkia.cpp: Removed.
  18283. * platform/graphics/skia/GraphicsLayerSkia.h: Removed.
  18284. * platform/graphics/skia/LayerRendererSkia.cpp: Removed.
  18285. * platform/graphics/skia/LayerRendererSkia.h: Removed.
  18286. * platform/graphics/skia/LayerSkia.cpp: Removed.
  18287. * platform/graphics/skia/LayerSkia.h: Removed.
  18288. 2010-04-10 Robert Hogan <robert@webkit.org>
  18289. Reviewed by Kenneth Rohde Christiansen.
  18290. Refactor Qt DRT support in QtWebKit
  18291. https://bugs.webkit.org/show_bug.cgi?id=35844
  18292. * WebCore.pro: Add DumpRenderTreeSupportQt.cpp
  18293. 2010-04-10 Joseph Pecoraro <joepeck@webkit.org>
  18294. Reviewed by David Kilzer.
  18295. Missing CONTEXT_MENUS Guards
  18296. https://bugs.webkit.org/show_bug.cgi?id=37398
  18297. Added missing ENABLE(CONTEXT_MENUS) guards.
  18298. * bindings/js/JSInspectorFrontendHostCustom.cpp:
  18299. (WebCore::JSInspectorFrontendHost::showContextMenu):
  18300. * inspector/InspectorFrontendHost.cpp:
  18301. (WebCore::InspectorFrontendHost::InspectorFrontendHost):
  18302. (WebCore::InspectorFrontendHost::disconnectClient):
  18303. * inspector/InspectorFrontendHost.h:
  18304. 2010-04-10 Stephan Aßmus <superstippi@gmx.de>
  18305. Reviewed by Eric Seidel.
  18306. [Haiku] Fix crash in Gradient::fill()
  18307. https://bugs.webkit.org/show_bug.cgi?id=37386
  18308. Covered by existing tests.
  18309. * platform/graphics/haiku/GradientHaiku.cpp:
  18310. (WebCore::Gradient::fill):
  18311. - Make sure the platform gradient is already cached before
  18312. dereferencing its pointer.
  18313. 2010-04-10 Stephan Aßmus <superstippi@gmx.de>
  18314. Reviewed by Eric Seidel.
  18315. [Haiku] Fix build of ImageHaiku.cpp
  18316. <https://bugs.webkit.org/show_bug.cgi?id=37384>
  18317. No new tests needed.
  18318. * platform/graphics/haiku/ImageHaiku.cpp:
  18319. (WebCore::Image::drawPattern):
  18320. - include SharedBuffer.h
  18321. - changed parameter name to be in line with other ports,
  18322. the code I landed in an earlier commit was already using
  18323. this name.
  18324. 2010-04-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  18325. Reviewed by Kenneth Rohde Christiansen.
  18326. [Qt] Implement Desktop Notifications API for QtWebKit
  18327. https://bugs.webkit.org/show_bug.cgi?id=35503
  18328. No new tests enabled as notification DRT tests are
  18329. disabled at the moment.
  18330. * WebCore.pri: Add files to the build system and turn
  18331. on the feature by default.
  18332. * WebCore.pro: Add files to the build system
  18333. * bindings/js/JSDesktopNotificationsCustom.cpp:
  18334. (WebCore::JSNotificationCenter::requestPermission):
  18335. (WebCore::JSNotification::addEventListener):
  18336. (WebCore::JSNotification::removeEventListener):
  18337. Fix build regresssion.
  18338. 2010-04-09 Pavel Feldman <pfeldman@chromium.org>
  18339. Reviewed by Joseph Pecoraro.
  18340. Web Inspector: Console with two recursive arrays causes infinite loop trying to display.
  18341. https://bugs.webkit.org/show_bug.cgi?id=37133
  18342. * inspector/front-end/ConsoleView.js:
  18343. (WebInspector.ConsoleView.prototype._printArray):
  18344. (WebInspector.ConsoleView.prototype._formatAsArrayEntry):
  18345. * inspector/front-end/InjectedScript.js:
  18346. (injectedScriptConstructor):
  18347. 2010-04-09 Kevin Watters <kevinwatters@gmail.com>
  18348. Reviewed by Eric Seidel.
  18349. [wx] Basic implementation of SVG support for wx port.
  18350. * css/CSSFontFaceSource.cpp:
  18351. * platform/graphics/wx/FontPlatformData.h:
  18352. (WebCore::FontPlatformData::FontPlatformData):
  18353. (WebCore::FontPlatformData::size):
  18354. * platform/graphics/wx/FontPlatformDataWx.cpp:
  18355. (WebCore::FontPlatformData::FontPlatformData):
  18356. * platform/graphics/wx/GraphicsContextWx.cpp:
  18357. (WebCore::GraphicsContext::GraphicsContext):
  18358. (WebCore::GraphicsContext::clipPath):
  18359. (WebCore::GraphicsContext::getCTM):
  18360. (WebCore::GraphicsContext::beginPath):
  18361. (WebCore::GraphicsContext::addPath):
  18362. (WebCore::GraphicsContext::concatCTM):
  18363. (WebCore::GraphicsContext::fillPath):
  18364. (WebCore::GraphicsContext::strokePath):
  18365. (WebCore::GraphicsContext::setLineDash):
  18366. * platform/graphics/wx/ImageBufferWx.cpp:
  18367. (WebCore::ImageBuffer::platformTransformColorSpace):
  18368. * platform/graphics/wx/PathWx.cpp:
  18369. (WebCore::Path::strokeContains):
  18370. (WebCore::Path::debugString):
  18371. (WebCore::Path::operator=):
  18372. (WebCore::Path::isEmpty):
  18373. * rendering/RenderSVGResourceMasker.cpp:
  18374. * wscript:
  18375. 2010-04-09 Evan Martin <evan@chromium.org>
  18376. Reviewed by Darin Adler.
  18377. StorageEvent destructor should be in StorageEvent.cpp
  18378. https://bugs.webkit.org/show_bug.cgi?id=37356
  18379. Because Storage is forward-declared in StorageEvent.h, we need to define
  18380. the StorageEvent destructor in the .cpp file so that the RefPtr<Storage>
  18381. destructor has a complete type for Storage.
  18382. * storage/StorageEvent.cpp:
  18383. (WebCore::StorageEvent::~StorageEvent):
  18384. * storage/StorageEvent.h:
  18385. 2010-04-09 Young Han Lee <joybro@company100.net>
  18386. Reviewed by Eric Seidel.
  18387. [WINCE] Add forwarding header for UnicodeWince.h
  18388. https://bugs.webkit.org/show_bug.cgi?id=37224
  18389. * ForwardingHeaders/wtf/unicode/wince/UnicodeWince.h: Added.
  18390. 2010-04-09 Geoffrey Garen <ggaren@apple.com>
  18391. Reviewed by Sam "R the K!" Weinig.
  18392. Tidied up some more DOMWrapperWorld lifetime issues.
  18393. * bindings/js/DOMWrapperWorld.cpp:
  18394. (WebCore::DOMWrapperWorld::~DOMWrapperWorld): Notify the document that
  18395. we're going away instead of deleting its data, since deleting other
  18396. objects' data is error-prone and, more importantly, rude.
  18397. * bindings/js/DOMWrapperWorld.h:
  18398. (WebCore::DOMWrapperWorld::didCreateWrapperCache):
  18399. (WebCore::DOMWrapperWorld::didDestroyWrapperCache): A few renames for
  18400. clarity.
  18401. * bindings/js/JSDOMBinding.cpp:
  18402. * bindings/js/JSDOMBinding.h: Converted forgetAllDOMNodesForDocument
  18403. to a Document member function, for the same reason.
  18404. * dom/Document.cpp:
  18405. (WebCore::Document::~Document):
  18406. (WebCore::Document::createWrapperCache):
  18407. (WebCore::Document::destroyWrapperCache):
  18408. (WebCore::Document::destroyAllWrapperCaches):
  18409. * dom/Document.h: Added a destroyWrapperCache function to balance
  18410. createWrapperCache, so it's clear who allocates and deletes these wrapper
  18411. caches.
  18412. 2010-04-09 Chris Marrin <cmarrin@apple.com>
  18413. Reviewed by Simon Fraser.
  18414. Fixed bug where animation time was not updated when dynamically loading a style sheet
  18415. https://bugs.webkit.org/show_bug.cgi?id=37352
  18416. A dynamically loaded style sheet kicks off its own styleRecalc cycle. This was not
  18417. bracketed with a beginAnimationUpdate/endAnimationUpdate which wasn't resetting the
  18418. animation time. In some time-dependent cases this was causing a negative elapsedTime
  18419. to be sent to the keyframe animator. This is an invalid case which destroys the
  18420. animation prematurely. I not only added the brackets, but I also added an assert
  18421. and protection for when the elapsedTime comes up negative.
  18422. Test: animations/dynamic-stylesheet-loading.html
  18423. * dom/Document.cpp: Added brackets
  18424. (WebCore::Document::updateStyleSelector):
  18425. * page/animation/KeyframeAnimation.cpp: Added assert and protection
  18426. (WebCore::KeyframeAnimation::getKeyframeAnimationInterval):
  18427. 2010-04-09 Jaime Yap <jaimeyap@google.com>
  18428. Reviewed by Pavel Feldman.
  18429. Web Inspector: Fixes "wrong parent" for GCEvents that come at the end of a
  18430. timeline record node.
  18431. https://bugs.webkit.org/show_bug.cgi?id=37340
  18432. * inspector/InspectorTimelineAgent.cpp:
  18433. (WebCore::InspectorTimelineAgent::didInstallTimer):
  18434. (WebCore::InspectorTimelineAgent::didRemoveTimer):
  18435. (WebCore::InspectorTimelineAgent::didMarkTimeline):
  18436. (WebCore::InspectorTimelineAgent::didMarkDOMContentEvent):
  18437. (WebCore::InspectorTimelineAgent::didMarkLoadEvent):
  18438. (WebCore::InspectorTimelineAgent::addRecordToTimeline):
  18439. (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord):
  18440. 2010-04-09 Abhishek Arya <inferno@chromium.org>
  18441. Reviewed by Adam Barth.
  18442. Prevent HTTP responses served with JSON content type from being rendered as HTML.
  18443. Test: http/tests/security/xss-DENIED-mime-type-execute-as-html.html
  18444. * dom/DOMImplementation.cpp:
  18445. (WebCore::DOMImplementation::isTextMIMEType): Render application/json as text/plain.
  18446. * platform/MIMETypeRegistry.cpp:
  18447. (WebCore::initializeSupportedNonImageMimeTypes): Add a compile assert to prevent addition of new mime types in non-image types.
  18448. 2010-04-09 Shinichiro Hamaji <hamaji@chromium.org>
  18449. Reviewed by Eric Seidel.
  18450. Prevent wrong use of PrintContext
  18451. https://bugs.webkit.org/show_bug.cgi?id=37194
  18452. No new tests because this doesn't change the behavior.
  18453. * page/PrintContext.cpp:
  18454. (WebCore::PrintContext::PrintContext):
  18455. (WebCore::PrintContext::~PrintContext):
  18456. (WebCore::PrintContext::begin):
  18457. (WebCore::PrintContext::end):
  18458. * page/PrintContext.h:
  18459. 2010-04-09 Vitaly Repeshko <vitalyr@chromium.org>
  18460. Reviewed by Darin Fisher.
  18461. [V8] SerializedScriptValue value doesn't follow the spec for DOM objects and files
  18462. https://bugs.webkit.org/show_bug.cgi?id=37094
  18463. This patch adds support for file-related types.
  18464. * bindings/v8/SerializedScriptValue.cpp:
  18465. (WebCore::):
  18466. (WebCore::Writer::writeString):
  18467. (WebCore::Writer::writeWebCoreString):
  18468. (WebCore::Writer::writeBlob):
  18469. (WebCore::Writer::writeFile):
  18470. (WebCore::Writer::writeFileList):
  18471. (WebCore::Writer::doWriteString):
  18472. (WebCore::Writer::doWriteWebCoreString):
  18473. (WebCore::Serializer::writeBlob):
  18474. (WebCore::Serializer::writeFile):
  18475. (WebCore::Serializer::writeFileList):
  18476. (WebCore::Serializer::doSerialize):
  18477. (WebCore::Reader::read):
  18478. (WebCore::Reader::readWebCoreString):
  18479. (WebCore::Reader::readBlob):
  18480. (WebCore::Reader::readFile):
  18481. (WebCore::Reader::readFileList):
  18482. (WebCore::SerializedScriptValue::SerializedScriptValue):
  18483. 2010-04-09 Geoffrey Garen <ggaren@apple.com>
  18484. Reviewed by Cameron Zwarich.
  18485. Tidied up some DOMWrapperWorld lifetime issues.
  18486. * bindings/js/DOMWrapperWorld.cpp:
  18487. (WebCore::DOMWrapperWorld::DOMWrapperWorld): Made DOMWrapperWorld wholly
  18488. responsible for managing its presence in WebCoreJSClientData's world set.
  18489. This is simpler and more encapsulated than making its clients sometimes
  18490. responsible for managing that set and sometimes not.
  18491. * bindings/js/DOMWrapperWorld.h:
  18492. (WebCore::DOMWrapperWorld::create): Made isNormal default to false,
  18493. removing one of the reasons for the IsolatedWorld class to exist, so I
  18494. could remove that class.
  18495. * bindings/js/JSDOMWindowBase.cpp:
  18496. (WebCore::JSDOMWindowBase::commonJSGlobalData): Used the work-around below.
  18497. * bindings/js/ScriptController.cpp:
  18498. (WebCore::ScriptController::createWorld): Nixed IsolatedWorld, which is
  18499. now superfluous.
  18500. * bindings/js/WebCoreJSClientData.h:
  18501. (WebCore::initNormalWorldClientData): Added a work-around for the fact
  18502. that WebCoreJSClientData must be set as globalData->clientData before
  18503. the DOMWrapperWorld constructor runs. This removed the other reason
  18504. for the IsolatedWorld class to exist, so I could remove that class.
  18505. 2010-04-09 Yaar Schnitman <yaar@chromium.org>
  18506. Reviewed by Nate Chapin.
  18507. Testing utility for CodeGeneratorV8.pm
  18508. https://bugs.webkit.org/show_bug.cgi?id=37286
  18509. * bindings/v8/test: Added.
  18510. * bindings/v8/test/TestObj.idl: Contains basic IDL definitions for testing purposes.
  18511. * bindings/v8/test/V8TestObj.cpp: Expected output.
  18512. * bindings/v8/test/V8TestObj.h: Expected output.
  18513. * bindings/v8/test/run_tests.py: Tool for generating the above h/cpp files from the idl file.
  18514. 2010-04-09 Darin Adler <darin@apple.com>
  18515. Reviewed by Maciej Stachowiak.
  18516. https://bugs.webkit.org/show_bug.cgi?id=37370
  18517. Division by 0 in RenderBoxModelObject::calculateFillTileSize
  18518. Test: fast/backgrounds/background-fill-zero-area-crash.html
  18519. * rendering/RenderBoxModelObject.cpp:
  18520. (WebCore::RenderBoxModelObject::calculateFillTileSize): Added checks for
  18521. zero before doing division. These come up when the area to fill is zero.
  18522. 2010-04-09 Alexey Proskuryakov <ap@apple.com>
  18523. Reviewed by Maciej Stachowiak.
  18524. https://bugs.webkit.org/show_bug.cgi?id=24572
  18525. XMLHttpRequest.statusText returns always "OK" on Mac
  18526. Covered by existing tests, which now pass.
  18527. * WebCore.base.exp:
  18528. * platform/mac/WebCoreSystemInterface.h:
  18529. * platform/mac/WebCoreSystemInterface.mm:
  18530. Added a WebKitSystemInterface method to fetch status line.
  18531. * platform/network/HTTPParsers.cpp: (WebCore::extractReasonPhraseFromHTTPStatusLine):
  18532. * platform/network/HTTPParsers.h:
  18533. * platform/network/cf/ResourceResponseCFNet.cpp: (WebCore::ResourceResponse::platformLazyInit):
  18534. Moved code for parsing status line to HTTPHeaders, as it's used for both Mac and CF now.
  18535. * platform/network/mac/ResourceResponseMac.mm: (WebCore::ResourceResponse::platformLazyInit):
  18536. Use the actual reason phrase when available, and "OK" otherwise. Synthesizing a reson when
  18537. there isn't one is misleading, so we'll stick to our old broken behavior on Tiger, rather than
  18538. introduce a new broken one.
  18539. 2010-04-09 David Hyatt <hyatt@apple.com>
  18540. Reviewed by Oliver Hunt.
  18541. https://bugs.webkit.org/show_bug.cgi?id=37361, clean up FillLayer.
  18542. * css/CSSComputedStyleDeclaration.cpp:
  18543. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  18544. * rendering/style/FillLayer.h:
  18545. (WebCore::FillLayer::sizeType):
  18546. * rendering/style/RenderStyle.h:
  18547. (WebCore::InheritedFlags::backgroundImage):
  18548. (WebCore::InheritedFlags::backgroundRepeatX):
  18549. (WebCore::InheritedFlags::backgroundRepeatY):
  18550. (WebCore::InheritedFlags::backgroundComposite):
  18551. (WebCore::InheritedFlags::backgroundAttachment):
  18552. (WebCore::InheritedFlags::backgroundClip):
  18553. (WebCore::InheritedFlags::backgroundOrigin):
  18554. (WebCore::InheritedFlags::backgroundXPosition):
  18555. (WebCore::InheritedFlags::backgroundYPosition):
  18556. (WebCore::InheritedFlags::backgroundSizeType):
  18557. (WebCore::InheritedFlags::backgroundSizeLength):
  18558. (WebCore::InheritedFlags::maskImage):
  18559. (WebCore::InheritedFlags::maskRepeatX):
  18560. (WebCore::InheritedFlags::maskRepeatY):
  18561. (WebCore::InheritedFlags::maskComposite):
  18562. (WebCore::InheritedFlags::maskAttachment):
  18563. (WebCore::InheritedFlags::maskClip):
  18564. (WebCore::InheritedFlags::maskOrigin):
  18565. (WebCore::InheritedFlags::maskXPosition):
  18566. (WebCore::InheritedFlags::maskYPosition):
  18567. (WebCore::InheritedFlags::maskSizeType):
  18568. (WebCore::InheritedFlags::maskSizeLength):
  18569. 2010-04-09 Sam Weinig <sam@webkit.org>
  18570. Add another missing export to fix the build.
  18571. * WebCore.base.exp:
  18572. 2010-04-09 David Hyatt <hyatt@apple.com>
  18573. Reviewed by Adam Roben.
  18574. https://bugs.webkit.org/show_bug.cgi?id=37353, clean up cursors used by RenderStyles.
  18575. * css/CSSComputedStyleDeclaration.cpp:
  18576. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  18577. * page/EventHandler.cpp:
  18578. (WebCore::EventHandler::selectCursor):
  18579. * rendering/style/CursorData.h:
  18580. (WebCore::CursorData::CursorData):
  18581. (WebCore::CursorData::operator==):
  18582. (WebCore::CursorData::image):
  18583. (WebCore::CursorData::hotSpot):
  18584. * rendering/style/RenderStyle.cpp:
  18585. (WebCore::RenderStyle::addCursor):
  18586. 2010-04-09 David Hyatt <hyatt@apple.com>
  18587. Reviewed by Adam Roben.
  18588. https://bugs.webkit.org/show_bug.cgi?id=37349, RenderStyle cleanup. Working from the outside in to
  18589. bring some style consistency to RenderStyle and its associated classes. This patch cleans up the
  18590. border and outline classes.
  18591. * rendering/RenderTable.cpp:
  18592. (WebCore::RenderTable::calcBorderLeft):
  18593. (WebCore::RenderTable::calcBorderRight):
  18594. (WebCore::RenderTable::outerBorderTop):
  18595. (WebCore::RenderTable::outerBorderBottom):
  18596. (WebCore::RenderTable::outerBorderLeft):
  18597. (WebCore::RenderTable::outerBorderRight):
  18598. * rendering/RenderTableCell.cpp:
  18599. (WebCore::compareBorders):
  18600. * rendering/RenderTableSection.cpp:
  18601. (WebCore::RenderTableSection::calcOuterBorderTop):
  18602. (WebCore::RenderTableSection::calcOuterBorderBottom):
  18603. (WebCore::RenderTableSection::calcOuterBorderLeft):
  18604. (WebCore::RenderTableSection::calcOuterBorderRight):
  18605. * rendering/style/BorderData.h:
  18606. (WebCore::BorderData::hasBorder):
  18607. (WebCore::BorderData::hasBorderRadius):
  18608. (WebCore::BorderData::borderLeftWidth):
  18609. (WebCore::BorderData::borderRightWidth):
  18610. (WebCore::BorderData::borderTopWidth):
  18611. (WebCore::BorderData::borderBottomWidth):
  18612. (WebCore::BorderData::operator==):
  18613. (WebCore::BorderData::left):
  18614. (WebCore::BorderData::right):
  18615. (WebCore::BorderData::top):
  18616. (WebCore::BorderData::bottom):
  18617. (WebCore::BorderData::image):
  18618. (WebCore::BorderData::topLeft):
  18619. (WebCore::BorderData::topRight):
  18620. (WebCore::BorderData::bottomLeft):
  18621. (WebCore::BorderData::bottomRight):
  18622. * rendering/style/BorderValue.h:
  18623. (WebCore::BorderValue::BorderValue):
  18624. (WebCore::BorderValue::nonZero):
  18625. (WebCore::BorderValue::isTransparent):
  18626. (WebCore::BorderValue::operator==):
  18627. (WebCore::BorderValue::color):
  18628. (WebCore::BorderValue::width):
  18629. (WebCore::BorderValue::style):
  18630. * rendering/style/CollapsedBorderValue.h:
  18631. (WebCore::CollapsedBorderValue::CollapsedBorderValue):
  18632. (WebCore::CollapsedBorderValue::width):
  18633. (WebCore::CollapsedBorderValue::style):
  18634. (WebCore::CollapsedBorderValue::exists):
  18635. (WebCore::CollapsedBorderValue::color):
  18636. (WebCore::CollapsedBorderValue::isTransparent):
  18637. (WebCore::CollapsedBorderValue::precedence):
  18638. (WebCore::CollapsedBorderValue::operator==):
  18639. * rendering/style/OutlineValue.h:
  18640. (WebCore::OutlineValue::OutlineValue):
  18641. (WebCore::OutlineValue::operator==):
  18642. (WebCore::OutlineValue::offset):
  18643. (WebCore::OutlineValue::isAuto):
  18644. * rendering/style/RenderStyle.cpp:
  18645. (WebCore::RenderStyle::getBorderRadiiForRect):
  18646. * rendering/style/RenderStyle.h:
  18647. (WebCore::InheritedFlags::borderLeft):
  18648. (WebCore::InheritedFlags::borderRight):
  18649. (WebCore::InheritedFlags::borderTop):
  18650. (WebCore::InheritedFlags::borderBottom):
  18651. (WebCore::InheritedFlags::borderImage):
  18652. (WebCore::InheritedFlags::borderTopLeftRadius):
  18653. (WebCore::InheritedFlags::borderTopRightRadius):
  18654. (WebCore::InheritedFlags::borderBottomLeftRadius):
  18655. (WebCore::InheritedFlags::borderBottomRightRadius):
  18656. (WebCore::InheritedFlags::borderLeftStyle):
  18657. (WebCore::InheritedFlags::borderLeftColor):
  18658. (WebCore::InheritedFlags::borderLeftIsTransparent):
  18659. (WebCore::InheritedFlags::borderRightStyle):
  18660. (WebCore::InheritedFlags::borderRightColor):
  18661. (WebCore::InheritedFlags::borderRightIsTransparent):
  18662. (WebCore::InheritedFlags::borderTopStyle):
  18663. (WebCore::InheritedFlags::borderTopColor):
  18664. (WebCore::InheritedFlags::borderTopIsTransparent):
  18665. (WebCore::InheritedFlags::borderBottomStyle):
  18666. (WebCore::InheritedFlags::borderBottomColor):
  18667. (WebCore::InheritedFlags::borderBottomIsTransparent):
  18668. (WebCore::InheritedFlags::outlineWidth):
  18669. (WebCore::InheritedFlags::outlineStyleIsAuto):
  18670. (WebCore::InheritedFlags::outlineColor):
  18671. (WebCore::InheritedFlags::outlineOffset):
  18672. (WebCore::InheritedFlags::columnRuleColor):
  18673. (WebCore::InheritedFlags::resetBorderTop):
  18674. (WebCore::InheritedFlags::resetBorderRight):
  18675. (WebCore::InheritedFlags::resetBorderBottom):
  18676. (WebCore::InheritedFlags::resetBorderLeft):
  18677. (WebCore::InheritedFlags::resetBorderImage):
  18678. (WebCore::InheritedFlags::resetBorderTopLeftRadius):
  18679. (WebCore::InheritedFlags::resetBorderTopRightRadius):
  18680. (WebCore::InheritedFlags::resetBorderBottomLeftRadius):
  18681. (WebCore::InheritedFlags::resetBorderBottomRightRadius):
  18682. (WebCore::InheritedFlags::setBorderImage):
  18683. (WebCore::InheritedFlags::setBorderTopLeftRadius):
  18684. (WebCore::InheritedFlags::setBorderTopRightRadius):
  18685. (WebCore::InheritedFlags::setBorderBottomLeftRadius):
  18686. (WebCore::InheritedFlags::setBorderBottomRightRadius):
  18687. (WebCore::InheritedFlags::setBorderLeftWidth):
  18688. (WebCore::InheritedFlags::setBorderLeftStyle):
  18689. (WebCore::InheritedFlags::setBorderLeftColor):
  18690. (WebCore::InheritedFlags::setBorderRightWidth):
  18691. (WebCore::InheritedFlags::setBorderRightStyle):
  18692. (WebCore::InheritedFlags::setBorderRightColor):
  18693. (WebCore::InheritedFlags::setBorderTopWidth):
  18694. (WebCore::InheritedFlags::setBorderTopStyle):
  18695. (WebCore::InheritedFlags::setBorderTopColor):
  18696. (WebCore::InheritedFlags::setBorderBottomWidth):
  18697. (WebCore::InheritedFlags::setBorderBottomStyle):
  18698. (WebCore::InheritedFlags::setBorderBottomColor):
  18699. (WebCore::InheritedFlags::setOutlineWidth):
  18700. (WebCore::InheritedFlags::setOutlineStyle):
  18701. (WebCore::InheritedFlags::setOutlineColor):
  18702. (WebCore::InheritedFlags::setOutlineOffset):
  18703. (WebCore::InheritedFlags::setColumnRuleColor):
  18704. (WebCore::InheritedFlags::setColumnRuleWidth):
  18705. * rendering/style/StyleMultiColData.h:
  18706. (WebCore::StyleMultiColData::ruleWidth):
  18707. 2010-04-09 Andrey Kosyakov <caseq@chromium.org>
  18708. Reviewed by Darin Adler.
  18709. Fixed ResourceError::failingURL() and ResourceResponse::httpStatusText()
  18710. to return meaningful values.
  18711. https://bugs.webkit.org/show_bug.cgi?id=37274
  18712. * platform/network/mac/ResourceErrorMac.mm:
  18713. (WebCore::ResourceError::platformLazyInit):
  18714. * platform/network/mac/ResourceResponseMac.mm:
  18715. (WebCore::ResourceResponse::platformLazyInit):
  18716. 2010-04-09 Jeremy Orlow <jorlow@chromium.org>
  18717. Reviewed by Darin Adler.
  18718. Move the IDB::open ExceptionCode paramter to be last
  18719. https://bugs.webkit.org/show_bug.cgi?id=37277
  18720. Move the ExceptionCode paramter to the last position in
  18721. IndexedDatabaseRequest::open and friends. It should definitely
  18722. go after the callbacks to keep the parameters that come directly
  18723. from javascript together. And having output parameters appear
  18724. last is done often in the code base, so it makes sense to push
  18725. it past the Frame* param as well.
  18726. No functional change.
  18727. * bindings/v8/custom/V8IndexedDatabaseRequestCustom.cpp:
  18728. (WebCore::V8IndexedDatabaseRequest::openCallback):
  18729. * storage/IndexedDatabase.h:
  18730. * storage/IndexedDatabaseImpl.cpp:
  18731. (WebCore::IndexedDatabaseImpl::open):
  18732. * storage/IndexedDatabaseImpl.h:
  18733. * storage/IndexedDatabaseRequest.cpp:
  18734. (WebCore::IndexedDatabaseRequest::open):
  18735. * storage/IndexedDatabaseRequest.h:
  18736. 2010-04-09 Dmitry Titov <dimich@chromium.org>
  18737. Reviewed by Darin Adler.
  18738. WebCore: WorkerGlobalScope.close() should let the currently running script complete execution, then terminate the worker.
  18739. https://bugs.webkit.org/show_bug.cgi?id=37053
  18740. Test: fast/workers/worker-close-more.html
  18741. * bindings/js/WorkerScriptController.cpp:
  18742. (WebCore::WorkerScriptController::forbidExecution):
  18743. (WebCore::WorkerScriptController::):
  18744. * bindings/v8/WorkerScriptController.cpp:
  18745. (WebCore::WorkerScriptController::forbidExecution):
  18746. * bindings/v8/WorkerScriptController.h:
  18747. (WebCore::WorkerScriptController::):
  18748. Added option parameter to forbidExecution (both JCS and V8 versions) that specifies whether currently running
  18749. script should be immediately terminated or left executed until the end.
  18750. * bindings/js/WorkerScriptController.h:
  18751. (WebCore::WorkerScriptController::workerContextWrapper):
  18752. This method now can return 0 instead of context if the further execution of JS is forbidden. Since any JS execution requires
  18753. fetching JS global object first, returning 0 here is a good way to prevent re-entry into JS once worker started termination.
  18754. V8 version does similar thing already in WorkerScriptController::proxy().
  18755. * workers/DedicatedWorkerContext.cpp:
  18756. (WebCore::DedicatedWorkerContext::postMessage):
  18757. Removed check that immediately disables postMessage from WorkerContext after close().
  18758. * workers/WorkerContext.cpp:
  18759. (WebCore::CloseWorkerContextTask::create):
  18760. (WebCore::CloseWorkerContextTask::performTask):
  18761. (WebCore::CloseWorkerContextTask::isCleanupTask):
  18762. (WebCore::WorkerContext::close):
  18763. Use new forbidExecution(LetRunningScriptFinish) to avoid termination of script until it executes and exits.
  18764. Post a task to actually terminate the worker once the currently executing JS fragment exits.
  18765. * workers/WorkerThread.cpp:
  18766. (WebCore::WorkerThread::workerThread):
  18767. (WebCore::WorkerThread::stop):
  18768. Use new forbidExecution(TerminateRunningScript) to immediately terminate the JS.
  18769. 2010-04-09 Kent Tamura <tkent@chromium.org>
  18770. Reviewed by Darin Adler.
  18771. Implement interactive validation for forms.
  18772. https://bugs.webkit.org/show_bug.cgi?id=34930
  18773. - HTMLFormControlElement::checkValidity() supports unhandled invalid control list
  18774. - HTMLFormElement::validateInteractively() called from prepareSubmit()
  18775. prevents the submission if neither noValidate nor formNoValidate is
  18776. specified, and focuses on the first invalid control of which "invalid"
  18777. event is not canceled.
  18778. Tests: fast/forms/checkValidity-cancel.html
  18779. fast/forms/interactive-validation-cancel.html
  18780. fast/forms/interactive-validation-formnovalidate.html
  18781. fast/forms/interactive-validation-novalidate.html
  18782. fast/forms/interactive-validation-prevented.html
  18783. fast/forms/interactive-validation-remove-node-in-handler.html
  18784. * html/HTMLFormControlElement.cpp:
  18785. (WebCore::HTMLFormControlElement::checkValidity):
  18786. If the control is invalid and the "invalid" is not canceled,
  18787. push the control to the specified vector.
  18788. * html/HTMLFormControlElement.h:
  18789. * html/HTMLFormElement.cpp:
  18790. (WebCore::HTMLFormElement::validateInteractively):
  18791. The main part of the interactive validation.
  18792. (WebCore::HTMLFormElement::prepareSubmit):
  18793. Calls validateInteractively().
  18794. (WebCore::HTMLFormElement::checkValidity):
  18795. Uses collectUnhandledInvalidControls().
  18796. (WebCore::HTMLFormElement::collectUnhandledInvalidControls):
  18797. * html/HTMLFormElement.h:
  18798. 2010-04-09 Sam Weinig <sam@webkit.org>
  18799. Fix the mac WebKit2 build.
  18800. * WebCore.base.exp:
  18801. 2010-04-08 Alexey Proskuryakov <ap@apple.com>
  18802. Reviewed by Darin Adler.
  18803. https://bugs.webkit.org/show_bug.cgi?id=37181
  18804. <rdar://problem/7835374> REGRESSION (r54400): Hangs when doing AJAX update with large amount of data
  18805. Test: fast/events/gc-freeze-with-attribute-listeners.html
  18806. The problem was that we were creating JS wrappers for nodes with attribute event listeners,
  18807. and GC is very slow if there are nodes with wrappers in a detached tree whose root does not
  18808. have a wrapper.
  18809. * bindings/js/ScriptEventListener.cpp: (WebCore::createAttributeEventListener): Don't create
  18810. wrappers for attribute event listeners - if there is a node, JSLazyEventListener::initializeJSFunction()
  18811. will create one.
  18812. * bindings/js/JSNodeCustom.cpp: (WebCore::JSNode::markChildren): Added a FIXME about the problem
  18813. we are stepping around now.
  18814. 2010-04-09 Xan Lopez <xlopez@igalia.com>
  18815. Reviewed by Gustavo Noronha.
  18816. WebGtk GLib-CRITICAL Segmentation fault
  18817. https://bugs.webkit.org/show_bug.cgi?id=34937
  18818. Do not crash if a plugin does not return anything in
  18819. NP_GetMIMEDescription. This can happen, and other ports gracefully
  18820. handle the situation.
  18821. * plugins/gtk/PluginPackageGtk.cpp:
  18822. (WebCore::PluginPackage::fetchInfo):
  18823. 2010-04-09 Pavel Feldman <pfeldman@chromium.org>
  18824. Reviewed by Yury Semikhatsky.
  18825. Web Inspector: Cannot select elements within iframes with the magnifying glass.
  18826. https://bugs.webkit.org/show_bug.cgi?id=31732
  18827. * inspector/InspectorController.cpp:
  18828. (WebCore::InspectorController::inspect):
  18829. (WebCore::InspectorController::handleMousePress):
  18830. * inspector/InspectorController.h:
  18831. * page/EventHandler.cpp:
  18832. (WebCore::EventHandler::handleMousePressEvent):
  18833. 2010-04-09 Tasuku Suzuki <tasuku.suzuki@nokia.com>
  18834. Reviewed by Simon Hausmann.
  18835. [Qt]Fix compile error with QT_NO_PROPERTIES
  18836. https://bugs.webkit.org/show_bug.cgi?id=36526
  18837. Disable dynamic properties when QT_NO_PROPERTIES is defined.
  18838. * bridge/qt/qt_class.cpp:
  18839. (JSC::Bindings::QtClass::fieldNamed):
  18840. * bridge/qt/qt_instance.cpp:
  18841. (JSC::Bindings::QtInstance::getPropertyNames):
  18842. (JSC::Bindings::QtField::name):
  18843. (JSC::Bindings::QtField::valueFromInstance):
  18844. (JSC::Bindings::QtField::setValueToInstance):
  18845. * bridge/qt/qt_runtime.h:
  18846. (JSC::Bindings::QtField::):
  18847. 2010-04-09 David Leong <david.leong@nokia.com>
  18848. Reviewed by Simon Hausmann.
  18849. [Qt] Symbian apps crash on exit due to a bad qObject_cast.
  18850. https://bugs.webkit.org/show_bug.cgi?id=37303
  18851. Added check for NULL to avoid the crash.
  18852. * plugins/symbian/PluginViewSymbian.cpp:
  18853. (WebCore::PluginView::platformDestroy):
  18854. 2010-04-09 Mark Rowe <mrowe@apple.com>
  18855. Reviewed by Oliver Hunt.
  18856. <http://webkit.org/b/37326> IDL files are being copied in to the WebCore framework again
  18857. * WebCore.xcodeproj/project.pbxproj: Wire up the script. Remove the three inappropriate
  18858. files from the Copy Bundle Resources build phase.
  18859. 2010-04-09 Zhenyao Mo <zmo@google.com>
  18860. Reviewed by Darin Fisher.
  18861. Passing null WebGLObjects should synthesize INVALID_VALUE error
  18862. https://bugs.webkit.org/show_bug.cgi?id=37047
  18863. * html/canvas/WebGLRenderingContext.cpp: Synthesize INVALID_VALUE error when input object is 0.
  18864. (WebCore::WebGLRenderingContext::bindAttribLocation):
  18865. (WebCore::WebGLRenderingContext::compileShader):
  18866. (WebCore::WebGLRenderingContext::detachShader):
  18867. (WebCore::WebGLRenderingContext::validateWebGLObject):
  18868. (WebCore::WebGLRenderingContext::getActiveAttrib):
  18869. (WebCore::WebGLRenderingContext::getActiveUniform):
  18870. (WebCore::WebGLRenderingContext::getProgramParameter):
  18871. (WebCore::WebGLRenderingContext::getProgramInfoLog):
  18872. (WebCore::WebGLRenderingContext::getShaderParameter):
  18873. (WebCore::WebGLRenderingContext::getShaderInfoLog):
  18874. (WebCore::WebGLRenderingContext::getShaderSource):
  18875. (WebCore::WebGLRenderingContext::getUniform):
  18876. (WebCore::WebGLRenderingContext::getUniformLocation):
  18877. (WebCore::WebGLRenderingContext::linkProgram):
  18878. (WebCore::WebGLRenderingContext::shaderSource):
  18879. * html/canvas/WebGLRenderingContext.h: Add helper function to validate webgl object input parameters.
  18880. 2010-04-09 Zhenyao Mo <zmo@google.com>
  18881. Reviewed by Dimitri Glazkov.
  18882. Must resolve multisampled back buffer during copyTexImage2D and copyTexSubImage2D
  18883. https://bugs.webkit.org/show_bug.cgi?id=37174
  18884. Test: fast/canvas/webgl/copy-tex-image-and-sub-image-2d.html
  18885. * platform/graphics/mac/GraphicsContext3DMac.cpp: resolve multisampled back buffer during copyTexImage2D and copyTexSubImage2D.
  18886. (WebCore::GraphicsContext3D::copyTexImage2D):
  18887. (WebCore::GraphicsContext3D::copyTexSubImage2D):
  18888. 2010-04-09 Evan Stade <estade@chromium.org>
  18889. Reviewed by Dimitri Glazkov.
  18890. [chromium] <select> dropdowns don't die when an item is selected
  18891. https://bugs.webkit.org/show_bug.cgi?id=37243
  18892. * platform/chromium/PopupMenuChromium.cpp:
  18893. (WebCore::PopupContainer::hidePopup):
  18894. (WebCore::PopupContainer::notifyPopupHidden):
  18895. (WebCore::PopupListBox::hidePopup): inform container that popup is closing
  18896. * platform/chromium/PopupMenuChromium.h:
  18897. 2010-04-09 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
  18898. Reviewed by Simon Hausmann.
  18899. [Qt] Fix crashes with package builds in release
  18900. * WebCore.pro: Don't add NDEBUG to the defines here, add it from JavaScriptCore.pri
  18901. 2010-04-09 Kenneth Rohde Christiansen <kenneth@webkit.org>
  18902. Reviewed by Simon Fraser.
  18903. Remove "all" value from the view-mode media feature (as agreed on
  18904. 1-Apr-2010) in the Widgets voice conf.
  18905. * css/CSSValueKeywords.in:
  18906. * css/MediaQueryEvaluator.cpp:
  18907. (WebCore::view_modeMediaFeatureEval):
  18908. 2010-04-09 Sheriff Bot <webkit.review.bot@gmail.com>
  18909. Unreviewed, rolling out r57286.
  18910. http://trac.webkit.org/changeset/57286
  18911. https://bugs.webkit.org/show_bug.cgi?id=37312
  18912. "Caused intermittent test failures on all Mac bots."
  18913. (Requested by eseidel on #webkit).
  18914. * storage/DatabaseTracker.cpp:
  18915. (WebCore::DatabaseTracker::originQuotaManagerNoLock):
  18916. (WebCore::DatabaseTracker::originQuotaManager):
  18917. (WebCore::DatabaseTracker::DatabaseTracker):
  18918. (WebCore::DatabaseTracker::canEstablishDatabase):
  18919. (WebCore::DatabaseTracker::hasEntryForOrigin):
  18920. (WebCore::DatabaseTracker::getMaxSizeForDatabase):
  18921. (WebCore::DatabaseTracker::fullPathForDatabaseNoLock):
  18922. (WebCore::DatabaseTracker::fullPathForDatabase):
  18923. (WebCore::DatabaseTracker::populateOrigins):
  18924. (WebCore::DatabaseTracker::origins):
  18925. (WebCore::DatabaseTracker::databaseNamesForOrigin):
  18926. (WebCore::DatabaseTracker::addOpenDatabase):
  18927. (WebCore::DatabaseTracker::removeOpenDatabase):
  18928. (WebCore::DatabaseTracker::usageForOriginNoLock):
  18929. (WebCore::DatabaseTracker::usageForOrigin):
  18930. (WebCore::DatabaseTracker::quotaForOrigin):
  18931. (WebCore::DatabaseTracker::setQuota):
  18932. (WebCore::DatabaseTracker::deleteOrigin):
  18933. (WebCore::DatabaseTracker::deleteDatabase):
  18934. (WebCore::DatabaseTracker::deleteDatabaseFile):
  18935. * storage/DatabaseTracker.h:
  18936. * storage/SQLTransactionClient.cpp:
  18937. (WebCore::SQLTransactionClient::didExecuteStatement):
  18938. 2010-04-09 Andras Becsi <abecsi@webkit.org>
  18939. Reviewed by Simon Hausmann.
  18940. [Qt] User agent style sheets are crippled by moc -E in make-css-file-arrays.pl
  18941. https://bugs.webkit.org/show_bug.cgi?id=37296
  18942. Do not use moc to preprocess user agent style sheets because it removes at-symbols
  18943. and hexadecimal colours from declarations.
  18944. Remove unneeded preprocessor usage from make-css-file-arrays.pl since the script
  18945. processes default css files using regular expressions therefore preprocessing is redundant.
  18946. * WebCore.pri: remove --preprocessor usage
  18947. * css/make-css-file-arrays.pl: remove gcc dependency
  18948. 2010-04-08 Chris Evans <cevans@chromium.org>
  18949. Reviewed by Sam Weinig.
  18950. Use the new UserGestureIndictor for _blank POST requests.
  18951. https://bugs.webkit.org/show_bug.cgi?id=34541
  18952. Test: fast/events/popup-blocked-to-post-blank.html
  18953. * bindings/v8/ScriptController.cpp:
  18954. (WebCore::ScriptController::processingUserGesture):
  18955. Use UserGestureIndicator in more cases.
  18956. * page/EventHandler.cpp:
  18957. (WebCore::EventHandler):
  18958. Impact from UserGestureIndicator API change.
  18959. (WebCore::FrameLoader::submitForm):
  18960. Block the load immediately if popups are not allowed and it would
  18961. open a new window.
  18962. * loader/RedirectScheduler.cpp:
  18963. (WebCore::ScheduledFormSubmission::ScheduledFormSubmission):
  18964. Note the UserGestureIndicator status at the time of submission.
  18965. (WebCore::ScheduledFormSubmission::fire):
  18966. Use the stored UserGestureIndicator status in the asynchronous
  18967. callback.
  18968. * dom/UserGestureIndicator.h:
  18969. * dom/UserGestureIndicator.cpp:
  18970. (WebCore::UserGestureIndicator::UserGestureIndicator):
  18971. Add ability to store a negative indication.
  18972. 2010-03-29 Antonio Gomes <tonikitoo@webkit.org>
  18973. Reviewed by Simon Fraser.
  18974. Spatial Navigation: proper handle negative x or y coordinates
  18975. https://bugs.webkit.org/show_bug.cgi?id=36773
  18976. In Spatial Navigation logic, during rect acquisition in renderRectRelativeToRootDocument,
  18977. sometimes negative x() or y() values are got, and the current algorithm bails out in
  18978. any of such cases.
  18979. However, when a node is in a scrollable content (content overflow <div>) and
  18980. this scrollable container scrolled up, element gets offscreen, and gets negative values
  18981. for y(), for example. In such cases, they are still valid to be used in Spatial Navigation
  18982. logic.
  18983. Test: fast/events/spatial-navigation/snav-offscreen-content.html
  18984. * page/SpatialNavigation.cpp:
  18985. (WebCore::distanceDataForNode):
  18986. (WebCore::checkNegativeCoordsForNode):
  18987. 2010-04-08 Dumitru Daniliuc <dumi@chromium.org>
  18988. Reviewed by Geoffrey Garen.
  18989. Create the creation callback is the current world.
  18990. https://bugs.webkit.org/show_bug.cgi?id=37290
  18991. * bindings/js/JSDatabaseCallback.cpp:
  18992. (WebCore::JSDatabaseCallback::JSDatabaseCallback):
  18993. 2010-04-08 David Hyatt <hyatt@apple.com>
  18994. Reviewed by Oliver Hunt.
  18995. Followup optimization to bug 24300, don't leak history info via CSS :visited. If a Web
  18996. site uses document colors that are the same for link and vlink in HTML and also doesn't
  18997. specify any :link or :visited rules, then don't waste time resolving visited styles.
  18998. There is a further optimization that could be done to detect when :link and :visited are
  18999. used together in the same rule to specify a color, and this is how most sites turn off
  19000. visited link colors, but this fix doesn't address that. It just restores the optimization
  19001. that existed prior to the patch in 24300 landing.
  19002. * css/CSSGrammar.y:
  19003. * css/CSSStyleSelector.cpp:
  19004. (WebCore::CSSStyleSelector::styleForElement):
  19005. * dom/Document.cpp:
  19006. (WebCore::Document::Document):
  19007. * dom/Document.h:
  19008. (WebCore::Document::usesLinkRules):
  19009. (WebCore::Document::setUsesLinkRules):
  19010. 2010-04-08 David Hyatt <hyatt@apple.com>
  19011. Reviewed by Oliver Hunt.
  19012. Caught by pixel tests. I missed patching the borderRightColor() call for fieldset border painting so the
  19013. border stopped showing up.
  19014. * rendering/RenderFieldset.cpp:
  19015. (WebCore::RenderFieldset::paintBorderMinusLegend):
  19016. 2010-04-07 David Hyatt <hyatt@apple.com>
  19017. Reviewed by Oliver Hunt.
  19018. https://bugs.webkit.org/show_bug.cgi?id=24300, don't leak history info via CSS :visited.
  19019. This patch implements the policy described by David Baron here:
  19020. http://dbaron.org/mozilla/visited-privacy
  19021. Added new tests in fast/history.
  19022. * WebCore.base.exp:
  19023. Expose functions needed for the WebKit SPI used by layout tests.
  19024. * WebCore.xcodeproj/project.pbxproj:
  19025. * accessibility/AccessibilityRenderObject.cpp:
  19026. (WebCore::AccessibilityRenderObject::isVisited):
  19027. Make sure accessibility objects still return visited information.
  19028. * css/CSSComputedStyleDeclaration.cpp:
  19029. (WebCore::CSSComputedStyleDeclaration::CSSComputedStyleDeclaration):
  19030. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  19031. * css/CSSComputedStyleDeclaration.h:
  19032. (WebCore::computedStyle):
  19033. Add a boolean to computed style declarations that - if set - causes the computed style
  19034. to still return :visited information. For normal Web pages, this will be false. It is set
  19035. to true for the Web Inspector and by the WebKit SPI used by the layout tests.
  19036. * css/CSSStyleSelector.cpp:
  19037. (WebCore::CSSStyleSelector::initElement):
  19038. (WebCore::CSSStyleSelector::SelectorChecker::SelectorChecker):
  19039. (WebCore::CSSStyleSelector::SelectorChecker::determineLinkState):
  19040. (WebCore::CSSStyleSelector::SelectorChecker::checkSelector):
  19041. (WebCore::CSSStyleSelector::canShareStyleWithElement):
  19042. (WebCore::CSSStyleSelector::styleForElement):
  19043. (WebCore::CSSStyleSelector::keyframeStylesForAnimation):
  19044. (WebCore::CSSStyleSelector::pseudoStyleForElement):
  19045. (WebCore::CSSStyleSelector::pseudoStyleRulesForElement):
  19046. (WebCore::CSSStyleSelector::checkSelector):
  19047. (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
  19048. (WebCore::CSSStyleSelector::applyPropertyToStyle):
  19049. (WebCore::CSSStyleSelector::getColorFromPrimitiveValue):
  19050. * css/CSSStyleSelector.h:
  19051. Rework the style selector to resolve two styles instead of one. The first forces the link to
  19052. be unvisited, and the second forces the link to be visited. The real state of the link is
  19053. cached on the principal (unvisited) style. The visited style hangs off the principal style
  19054. as a pseudo style (VISITED_LINK).
  19055. * dom/Element.cpp:
  19056. (WebCore::Element::pseudoStyleCacheIsInvalid):
  19057. Make sure to deal with the VISITED_LINK pseudo to know when only :visited style info changed.
  19058. * inspector/InspectorDOMAgent.cpp:
  19059. (WebCore::InspectorDOMAgent::getStyles):
  19060. Let the Web Inspector see :visited computed styles by default.
  19061. * platform/LinkHash.cpp:
  19062. (WebCore::visitedURL):
  19063. Fix an issue where <a href=""> is not hashed properly to the document's base URI, so it wasn't
  19064. correctly reported as :visited.
  19065. * rendering/InlineFlowBox.cpp:
  19066. (WebCore::InlineFlowBox::paintBoxDecorations):
  19067. (WebCore::InlineFlowBox::paintTextDecorations):
  19068. * rendering/InlineTextBox.cpp:
  19069. (WebCore::InlineTextBox::paint):
  19070. (WebCore::InlineTextBox::paintSelection):
  19071. * rendering/RenderBlock.cpp:
  19072. (WebCore::RenderBlock::paintColumnRules):
  19073. (WebCore::RenderBlock::paintObject):
  19074. * rendering/RenderBoxModelObject.cpp:
  19075. (WebCore::RenderBoxModelObject::paintBorder):
  19076. * rendering/RenderFieldset.cpp:
  19077. (WebCore::RenderFieldset::paintBorderMinusLegend):
  19078. * rendering/RenderImage.cpp:
  19079. (WebCore::RenderImage::paintFocusRings):
  19080. * rendering/RenderInline.cpp:
  19081. (WebCore::RenderInline::paintOutline):
  19082. (WebCore::RenderInline::paintOutlineForLine):
  19083. * rendering/RenderObject.cpp:
  19084. (WebCore::RenderObject::drawLineForBoxSide):
  19085. (WebCore::RenderObject::drawArcForBoxSide):
  19086. (WebCore::RenderObject::paintOutline):
  19087. (WebCore::decorationColor):
  19088. (WebCore::RenderObject::getTextDecorationColors):
  19089. * rendering/RenderObject.h:
  19090. * rendering/RenderPath.cpp:
  19091. (WebCore::RenderPath::paint):
  19092. * rendering/RenderReplaced.cpp:
  19093. (WebCore::RenderReplaced::paint):
  19094. * rendering/RenderSVGContainer.cpp:
  19095. (WebCore::RenderSVGContainer::paint):
  19096. * rendering/RenderSVGImage.cpp:
  19097. (WebCore::RenderSVGImage::paint):
  19098. * rendering/RenderSVGRoot.cpp:
  19099. (WebCore::RenderSVGRoot::paint):
  19100. * rendering/RenderTableCell.cpp:
  19101. (WebCore::RenderTableCell::collapsedLeftBorder):
  19102. (WebCore::RenderTableCell::collapsedRightBorder):
  19103. (WebCore::RenderTableCell::collapsedTopBorder):
  19104. (WebCore::RenderTableCell::collapsedBottomBorder):
  19105. (WebCore::RenderTableCell::paintCollapsedBorder):
  19106. * rendering/style/CollapsedBorderValue.h:
  19107. (WebCore::CollapsedBorderValue::CollapsedBorderValue):
  19108. (WebCore::CollapsedBorderValue::color):
  19109. (WebCore::CollapsedBorderValue::operator==):
  19110. Patch painting code to fetch visitedDependentColors from the RenderStyle. Properties that
  19111. are honored include background-color, color, border colors, outline color, column rules,
  19112. and fill and stroke (both SVG and our custom versions).
  19113. * rendering/style/RenderStyle.cpp:
  19114. (WebCore::RenderStyle::RenderStyle):
  19115. (WebCore::RenderStyle::diff):
  19116. (WebCore::borderStyleForColorProperty):
  19117. (WebCore::colorIncludingFallback):
  19118. (WebCore::RenderStyle::visitedDependentColor):
  19119. * rendering/style/RenderStyle.h:
  19120. (WebCore::):
  19121. (WebCore::InheritedFlags::NonInheritedFlags::operator==):
  19122. (WebCore::InheritedFlags::setBitDefaults):
  19123. (WebCore::InheritedFlags::insideLink):
  19124. (WebCore::InheritedFlags::isLink):
  19125. (WebCore::InheritedFlags::setInsideLink):
  19126. (WebCore::InheritedFlags::setIsLink):
  19127. * rendering/style/RenderStyleConstants.h:
  19128. Change how link information is stored. The noninherited flags now have a bit set for if you're a link
  19129. or not. The inherited flags now cache whether you're inside a visited or unvisited link (or no link at
  19130. all).
  19131. (WebCore::):
  19132. * svg/graphics/SVGPaintServer.cpp:
  19133. (WebCore::SVGPaintServer::fillPaintServer):
  19134. (WebCore::SVGPaintServer::strokePaintServer):
  19135. Patch SVG fill/stroke painting to honor :visited.
  19136. 2010-04-08 Benjamin Otte <otte@gnome.org>
  19137. Reviewed by Gustavo Noronha.
  19138. Fix build with MathML enabled.
  19139. * GNUmakefile.am:
  19140. 2010-04-08 Daniel Bates <dbates@rim.com>
  19141. No review, rolling out 56655.
  19142. http://trac.webkit.org/changeset/56655
  19143. https://bugs.webkit.org/show_bug.cgi?id=9268
  19144. Rolling out the change committed in change set 56655
  19145. because it caused a regression in some of the mozilla
  19146. and mozilla expected failure test cases, such as:
  19147. tables/mozilla/marvin/backgr_simple-table-row.html, and
  19148. tables/mozilla/marvin/backgr_simple-table-row-group.html.
  19149. We need to look into this issue some more.
  19150. * rendering/RenderBoxModelObject.cpp:
  19151. (WebCore::RenderBoxModelObject::paintFillLayerExtended):
  19152. (WebCore::RenderBoxModelObject::calculateBackgroundImageGeometry):
  19153. * rendering/RenderBoxModelObject.h:
  19154. * rendering/RenderObject.h:
  19155. * rendering/RenderTableCell.cpp:
  19156. * rendering/RenderTableCell.h:
  19157. 2010-03-30 Dumitru Daniliuc <dumi@chromium.org>
  19158. Reviewed by Dimitri Glazkov.
  19159. Refactor DatabaseTracker, part 1: Remove the dependency on
  19160. OriginQuotaManager from DatabaseTracker.h.
  19161. https://bugs.webkit.org/show_bug.cgi?id=31482
  19162. * storage/DatabaseTracker.cpp:
  19163. (originQuotaManager):
  19164. (WebCore::DatabaseTracker::DatabaseTracker):
  19165. (WebCore::DatabaseTracker::canEstablishDatabase):
  19166. (WebCore::DatabaseTracker::hasEntryForOrigin):
  19167. (WebCore::DatabaseTracker::getMaxSizeForDatabase):
  19168. (WebCore::DatabaseTracker::databaseChanged):
  19169. (WebCore::DatabaseTracker::fullPathForDatabaseNoLock):
  19170. (WebCore::DatabaseTracker::fullPathForDatabase):
  19171. (WebCore::DatabaseTracker::populateOrigins):
  19172. (WebCore::DatabaseTracker::origins):
  19173. (WebCore::DatabaseTracker::databaseNamesForOrigin):
  19174. (WebCore::DatabaseTracker::removeOpenDatabase):
  19175. (WebCore::DatabaseTracker::usageForOriginNoLock):
  19176. (WebCore::DatabaseTracker::usageForOrigin):
  19177. (WebCore::DatabaseTracker::quotaForOrigin):
  19178. (WebCore::DatabaseTracker::setQuota):
  19179. (WebCore::DatabaseTracker::deleteOrigin):
  19180. (WebCore::DatabaseTracker::deleteDatabase):
  19181. (WebCore::DatabaseTracker::deleteDatabaseFile):
  19182. * storage/DatabaseTracker.h:
  19183. * storage/SQLTransactionClient.cpp:
  19184. (WebCore::SQLTransactionClient::didExecuteStatement):
  19185. 2010-04-08 Kwang Yul Seo <skyul@company100.net>
  19186. Reviewed by Simon Hausmann.
  19187. [WINCE] Replace max with std::max
  19188. https://bugs.webkit.org/show_bug.cgi?id=37201
  19189. std::max is preferred.
  19190. * platform/wince/FileSystemWince.cpp:
  19191. (WebCore::makeAllDirectories):
  19192. (WebCore::pathGetFileName):
  19193. 2010-04-08 Antonio Gomes <tonikitoo@webkit.org>
  19194. Reviewed by Laszlo Gombos.
  19195. [EFL] Move AccessibilityObjectEfl.cpp from page to accessibility
  19196. https://bugs.webkit.org/show_bug.cgi?id=36405
  19197. * accessibility/efl/AccessibilityObjectEfl.cpp: Renamed from WebCore/page/efl/AccessibilityObjectEfl.cpp.
  19198. (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
  19199. 2010-04-08 Pavel Feldman <pfeldman@chromium.org>
  19200. Reviewed by Yury Semikhatsky.
  19201. Web Inspector: Render Load, DOM Content and MarkTimeline event dividers on Timeline panel.
  19202. https://bugs.webkit.org/show_bug.cgi?id=37267
  19203. * English.lproj/localizedStrings.js:
  19204. * inspector/InspectorController.cpp:
  19205. (WebCore::InspectorController::mainResourceFiredDOMContentEvent):
  19206. (WebCore::InspectorController::mainResourceFiredLoadEvent):
  19207. * inspector/InspectorController.h:
  19208. * inspector/InspectorTimelineAgent.cpp:
  19209. (WebCore::InspectorTimelineAgent::didMarkDOMContentEvent):
  19210. (WebCore::InspectorTimelineAgent::didMarkLoadEvent):
  19211. * inspector/InspectorTimelineAgent.h:
  19212. (WebCore::):
  19213. * inspector/front-end/ResourcesPanel.js:
  19214. (WebInspector.ResourcesPanel.prototype.updateGraphDividersIfNeeded):
  19215. * inspector/front-end/TimelineAgent.js:
  19216. * inspector/front-end/TimelineGrid.js:
  19217. (WebInspector.TimelineGrid.prototype.removeEventDividers):
  19218. * inspector/front-end/TimelinePanel.js:
  19219. (WebInspector.TimelinePanel):
  19220. (WebInspector.TimelinePanel.prototype.get _recordStyles):
  19221. (WebInspector.TimelinePanel.prototype._updateMarks):
  19222. (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
  19223. (WebInspector.TimelinePanel.prototype._clearPanel):
  19224. (WebInspector.TimelinePanel.prototype._refresh):
  19225. (WebInspector.TimelinePanel.prototype._refreshRecords):
  19226. (WebInspector.TimelineCalculator.prototype.computeBarGraphWindowPosition):
  19227. (WebInspector.TimelineRecordGraphRow.prototype.update):
  19228. * inspector/front-end/inspector.css:
  19229. (.resources-event-divider):
  19230. (.resources-red-divider):
  19231. (.resources-blue-divider):
  19232. (.resources-orange-divider):
  19233. 2010-04-01 Antonio Gomes <tonikitoo@webkit.org>
  19234. Reviewed by David Hyatt.
  19235. [Qt] REGRESSION:(r50665) QWebFrame::setScrollBarPolicy(Qt::Vertical,Qt::ScrollBarAlwaysOff) has no effect.
  19236. https://bugs.webkit.org/show_bug.cgi?id=29431
  19237. Test: fast/overflow/scrollbar-restored-and-then-locked.html
  19238. Patch introduces a lock scrollbars concept to ScrollView, as in WebDynamicScrollBarsView.mm/h
  19239. on WebKit/mac. It is needed because in QtWebKit, we have Api for setting both vertical and
  19240. horizontal scrollbars on/off/auto. When it is set to off, for example, it should remain
  19241. as such, unless unset.
  19242. For the locking concept, optional 'lock' parameters were added to setScrollbarModes,
  19243. setHorizontalScrollbarMode and setVerticalScrollbarMode methods of ScrollView. As these
  19244. are all optional, any previous code calling them do not need modification.
  19245. Two optional parameters were also added to Frame's createView method, for horizontal and vertical
  19246. lock state persistence cross page loads.
  19247. * page/Frame.cpp:
  19248. (WebCore::Frame::createView):
  19249. * platform/ScrollView.cpp:
  19250. (WebCore::ScrollView::ScrollView):
  19251. (WebCore::ScrollView::setScrollbarModes):
  19252. (WebCore::ScrollView::setHorizontalScrollbarMode):
  19253. (WebCore::ScrollView::setVerticalScrollbarMode):
  19254. * platform/ScrollView.h:
  19255. (WebCore::ScrollView::setHorizontalScrollbarLock):
  19256. (WebCore::ScrollView::isHorizontalScrollbarLocked):
  19257. (WebCore::ScrollView::setVerticalScrollbarLock):
  19258. (WebCore::ScrollView::isVerticalScrollbarLocked):
  19259. (WebCore::ScrollView::setScrollingModesLocked):
  19260. 2010-04-08 Yury Semikhatsky <yurys@chromium.org>
  19261. Reviewed by Pavel Feldman.
  19262. Correctly save number of properties when object being serialized
  19263. have properties in its prorotype.
  19264. https://bugs.webkit.org/show_bug.cgi?id=37263
  19265. * bindings/v8/SerializedScriptValue.cpp:
  19266. (WebCore::ZigZag::Serializer::AbstractObjectState::AbstractObjectState):
  19267. (WebCore::ZigZag::Serializer::AbstractObjectState::advance):
  19268. 2010-04-08 Jeremy Orlow <jorlow@chromium.org>
  19269. Reviewed by Yury Semikhatsky.
  19270. IDB callbacks should fire asynchronously
  19271. https://bugs.webkit.org/show_bug.cgi?id=37265
  19272. Fix the firing behavior of the callbacks to not be synchronous.
  19273. There's still a major bug that I'm trying to track down that is keeping
  19274. us from testing this stuff. Promise lots of tests ASAP.
  19275. * bindings/v8/custom/V8CustomIDBCallbacks.h:
  19276. (WebCore::V8CustomIDBCallbacks::onSuccessAsync):
  19277. (WebCore::V8CustomIDBCallbacks::onErrorAsync):
  19278. * storage/IDBCallbacks.h:
  19279. (WebCore::IDBCallbacks::IDBCallbacks):
  19280. (WebCore::IDBCallbacks::onSuccess):
  19281. (WebCore::IDBCallbacks::onError):
  19282. (WebCore::IDBCallbacks::timerFired):
  19283. * storage/IndexedDatabaseRequest.cpp:
  19284. 2010-04-08 Kent Tamura <tkent@chromium.org>
  19285. Reviewed by Darin Adler.
  19286. willValidate doesn't need to check existence of a form element and a name attribute.
  19287. https://bugs.webkit.org/show_bug.cgi?id=34733
  19288. Remove checks against m_form and m_hasName in
  19289. HTMLFormControlElement::willValidate(), and remove the code to
  19290. track their updates.
  19291. Test: fast/forms/willvalidate.html
  19292. * html/HTMLFormControlElement.cpp:
  19293. (WebCore::HTMLFormControlElement::HTMLFormControlElement):
  19294. (WebCore::HTMLFormControlElement::parseMappedAttribute):
  19295. (WebCore::HTMLFormControlElement::insertedIntoTree):
  19296. (WebCore::HTMLFormControlElement::removedFromTree):
  19297. (WebCore::HTMLFormControlElement::recalcWillValidate):
  19298. (WebCore::HTMLFormControlElement::willValidate):
  19299. (WebCore::HTMLFormControlElement::setNeedsWillValidateCheck):
  19300. * html/HTMLFormControlElement.h:
  19301. (WebCore::HTMLFormControlElement::formDestroyed):
  19302. * html/HTMLInputElement.cpp:
  19303. (WebCore::HTMLInputElement::setInputType):
  19304. setNeedsWillValidateCheck() should be called before
  19305. setAttribute(valueAttr, ...) is called.
  19306. 2010-04-08 Young Han Lee <joybro@company100.net>
  19307. Reviewed by Simon Hausmann.
  19308. [WINCE] Add missing headers
  19309. https://bugs.webkit.org/show_bug.cgi?id=37199
  19310. Include missing headers.
  19311. * platform/graphics/wince/FontCustomPlatformData.cpp:
  19312. * platform/graphics/wince/FontPlatformData.cpp:
  19313. * platform/graphics/wince/GraphicsContextWince.cpp:
  19314. * platform/graphics/wince/ImageBufferWince.cpp:
  19315. * platform/graphics/wince/PlatformPathWince.h:
  19316. * platform/wince/FileSystemWince.cpp:
  19317. 2010-04-08 Kwang Yul Seo <skyul@company100.net>
  19318. Reviewed by Simon Hausmann.
  19319. [WINCE] Use WebCore::instanceHandle()
  19320. https://bugs.webkit.org/show_bug.cgi?id=37202
  19321. Page::instanceHandle() is moved to WebCore::instanceHandle().
  19322. * platform/wince/PasteboardWince.cpp:
  19323. (WebCore::Pasteboard::Pasteboard):
  19324. * platform/wince/SharedTimerWince.cpp:
  19325. (WebCore::initializeOffScreenTimerWindow):
  19326. 2010-04-08 Vitaly Repeshko <vitalyr@chromium.org>
  19327. Reviewed by Dimitri Glazkov.
  19328. [V8] Fix crash in NodeFilterCondition in detached iframe
  19329. https://bugs.webkit.org/show_bug.cgi?id=37234
  19330. Test: fast/dom/node-filter-detached-iframe-crash.html
  19331. * bindings/v8/V8NodeFilterCondition.cpp:
  19332. (WebCore::V8NodeFilterCondition::acceptNode): Switched to using
  19333. callFunctionWithoutFrame.
  19334. * bindings/v8/V8Proxy.cpp:
  19335. (WebCore::V8Proxy::callFunctionWithoutFrame): Added a function to
  19336. call V8 with no current frame.
  19337. * bindings/v8/V8Proxy.h:
  19338. 2010-04-08 Jarkko Sakkinen <jarkko.sakkinen@tieto.com>
  19339. Reviewed by Simon Hausmann.
  19340. [Qt] Remove shaderSource manipulation from GraphicsContext3DQt.cpp
  19341. https://bugs.webkit.org/show_bug.cgi?id=37226
  19342. * platform/graphics/qt/GraphicsContext3DQt.cpp:
  19343. (WebCore::GraphicsContext3D::shaderSource):
  19344. 2010-04-08 Chris Evans <cevans@chromium.org>
  19345. Reviewed by Adam Barth.
  19346. Sanity: apply a max node depth to XML parsing.
  19347. https://bugs.webkit.org/show_bug.cgi?id=37247
  19348. Test: fast/images/svg-nested.html
  19349. * dom/XMLTokenizer.cpp:
  19350. (WebCore::XMLTokenizer::pushCurrentNode):
  19351. Error out the parse upon a really large node depth.
  19352. 2010-04-07 Dumitru Daniliuc <dumi@chromium.org>
  19353. Reviewed by Jeremy Orlow.
  19354. Fix Chromium's HTML5 DB support in --single-process mode.
  19355. https://bugs.webkit.org/show_bug.cgi?id=37186.
  19356. Always register and use Chromium's SQLite VFS for
  19357. WebSQLDatabases. Keep using the default VFS in all other
  19358. cases. This change should allow Chromium to support
  19359. WebSQLDatabases in --single-process mode.
  19360. Also, cleaning up a bit SQLiteFileSystemChromium and getting rid
  19361. of the SQLITE_OPEN_FULLMUTEX flag: we use sqlite DB handles only
  19362. on the DB thread, so we don't need multi-threaded support.
  19363. * platform/sql/SQLiteDatabase.cpp:
  19364. (WebCore::SQLiteDatabase::open):
  19365. * platform/sql/SQLiteDatabase.h:
  19366. * platform/sql/SQLiteFileSystem.cpp:
  19367. (WebCore::SQLiteFileSystem::openDatabase):
  19368. * platform/sql/SQLiteFileSystem.h:
  19369. * platform/sql/chromium/SQLiteFileSystemChromium.cpp:
  19370. (WebCore::SQLiteFileSystem::openDatabase):
  19371. * platform/sql/chromium/SQLiteFileSystemChromiumPosix.cpp:
  19372. (WebCore::SQLiteFileSystem::registerSQLiteVFS):
  19373. * platform/sql/chromium/SQLiteFileSystemChromiumWin.cpp:
  19374. (WebCore::SQLiteFileSystem::registerSQLiteVFS):
  19375. * storage/Database.cpp:
  19376. (WebCore::Database::performOpenAndVerify):
  19377. 2010-04-07 Chris Marrin <cmarrin@apple.com>
  19378. Reviewed by Steve Falkenburg.
  19379. Remove QuartzCoreInterface from the build
  19380. No longer needed since QuartzCore.dll is now included in the latest Safari release (4.0.5).
  19381. This gets rid of all the function shims from the clients of QuartzCore.dll.
  19382. * platform/graphics/win/GraphicsLayerCACF.cpp:
  19383. (WebCore::GraphicsLayerCACF::updateLayerPreserves3D):
  19384. * platform/graphics/win/WKCACFLayer.cpp:
  19385. (WebCore::toCACFLayerType):
  19386. (WebCore::toCACFContentsGravityType):
  19387. (WebCore::fromCACFContentsGravityType):
  19388. (WebCore::toCACFFilterType):
  19389. (WebCore::fromCACFFilterType):
  19390. (WebCore::WKCACFLayer::isTransformLayer):
  19391. * platform/graphics/win/WKCACFLayerRenderer.cpp:
  19392. (WebCore::WKCACFLayerRenderer::createRenderer):
  19393. 2010-04-07 Sheriff Bot <webkit.review.bot@gmail.com>
  19394. Unreviewed, rolling out r57178.
  19395. http://trac.webkit.org/changeset/57178
  19396. https://bugs.webkit.org/show_bug.cgi?id=37240
  19397. Caused chromium browser_test and ui_test regressions
  19398. (Requested by ojan on #webkit).
  19399. * bindings/v8/ScriptController.cpp:
  19400. (WebCore::ScriptController::processingUserGesture):
  19401. 2010-04-07 Jian Li <jianli@chromium.org>
  19402. Reviewed by Adam Barth and Dmitry Titov.
  19403. Add the comment and assert that we're generating version 4 random number
  19404. based UUIDs.
  19405. https://bugs.webkit.org/show_bug.cgi?id=36472
  19406. * platform/UUID.cpp:
  19407. (WebCore::createCanonicalUUIDString):
  19408. * platform/UUID.h:
  19409. 2010-04-07 Erik Arvidsson <arv@chromium.org>
  19410. Reviewed by Adam Barth.
  19411. Allow white listing access from origin to local origin.
  19412. https://bugs.webkit.org/show_bug.cgi?id=37228
  19413. This makes it possible to load a local resource from a non local
  19414. origin if the access has previously been white listed by calling
  19415. SecurityOrigin::whiteListAccessFromOrigin.
  19416. Test: http/tests/security/local-image-from-remote-whitelisted.html
  19417. * page/OriginAccessEntry.cpp:
  19418. (WebCore::OriginAccessEntry::OriginAccessEntry): Removed assert that only the http and https protocol are valid.
  19419. * page/SecurityOrigin.cpp:
  19420. (WebCore::SecurityOrigin::canRequest): Use isAccessWhiteListed
  19421. (WebCore::SecurityOrigin::isAccessWhiteListed): Extracted code that goes through the originAccessMap to do the origin matching.
  19422. (WebCore::SecurityOrigin::canLoad): Check if access has been white listed.
  19423. * page/SecurityOrigin.h: Add private function isAccessWhiteListed
  19424. 2010-04-07 Luiz Agostini <luiz.agostini@openbossa.org>
  19425. Reviewed by Darin Adler.
  19426. Adding static method zero() to classes IntPoint and FloatPoint.
  19427. https://bugs.webkit.org/show_bug.cgi?id=37220
  19428. Adding static method zero() to classes IntPoint and FloatPoint as suggested by Darin Adler.
  19429. * platform/graphics/FloatPoint.h:
  19430. (WebCore::FloatPoint::zero):
  19431. * platform/graphics/IntPoint.h:
  19432. (WebCore::IntPoint::zero):
  19433. (WebCore::IntPoint::clampNegativeToZero):
  19434. 2010-04-07 Alexey Proskuryakov <ap@apple.com>
  19435. * platform/network/mac/AuthenticationMac.mm: Fix a typo in comment.
  19436. 2010-04-07 Alexey Proskuryakov <ap@apple.com>
  19437. Reviewed by Darin Adler.
  19438. https://bugs.webkit.org/show_bug.cgi?id=37230
  19439. <rdar://problem/7813115> REGRESSION (4.0.5): Safari asks for credentials all the time when
  19440. authenticating to Windows IIS Server
  19441. * platform/network/ProtectionSpace.h: (WebCore::ProtectionSpaceAuthenticationScheme): Added
  19442. a constant for ProtectionSpaceAuthenticationSchemeUnknown.
  19443. * platform/network/cf/AuthenticationCF.cpp: (WebCore::core):
  19444. * platform/network/cf/SocketStreamHandleCFNet.cpp: (WebCore::authenticationSchemeFromAuthenticationMethod):
  19445. Return ProtectionSpaceAuthenticationSchemeUnknown for unknown scheme.
  19446. * platform/network/mac/AuthenticationMac.mm:
  19447. (WebCore::mac): Support NTLM on systems older than 10.6. We actually get this string from
  19448. NSURLConnection, even though there was no public constant.
  19449. (WebCore::core): Return ProtectionSpaceAuthenticationSchemeUnknown for unknown scheme.
  19450. 2010-04-07 Jaime Yap <jaimeyap@google.com>
  19451. Reviewed by Pavel Feldman.
  19452. Adds the ability to get the function symbol name when looking up the call location
  19453. for records sent by the InspectorTimelineAgent.
  19454. https://bugs.webkit.org/show_bug.cgi?id=36839
  19455. No new tests.
  19456. * bindings/js/ScriptCallStack.cpp:
  19457. (WebCore::ScriptCallStack::callLocation):
  19458. * bindings/js/ScriptCallStack.h:
  19459. * bindings/v8/ScriptCallStack.cpp:
  19460. (WebCore::ScriptCallStack::create):
  19461. (WebCore::ScriptCallStack::callLocation):
  19462. (WebCore::ScriptCallStack::ScriptCallStack):
  19463. * bindings/v8/ScriptCallStack.h:
  19464. * bindings/v8/ScriptDebugServer.cpp:
  19465. (WebCore::ScriptDebugServer::createUtilityContext):
  19466. (WebCore::ScriptDebugServer::topStackFrame):
  19467. * bindings/v8/ScriptDebugServer.h:
  19468. (WebCore::ScriptDebugServer::utilityContext):
  19469. * bindings/v8/V8Proxy.cpp:
  19470. * bindings/v8/V8Proxy.h:
  19471. * inspector/TimelineRecordFactory.cpp:
  19472. (WebCore::TimelineRecordFactory::createGenericRecord):
  19473. 2010-04-07 Jay Civelli <jcivelli@chromium.org>
  19474. Reviewed by Jian Li.
  19475. [chromium] Fixing a NULL pointer being dereferenced in some cases.
  19476. https://bugs.webkit.org/show_bug.cgi?id=37141
  19477. Test: platform/chromium/fast/forms/search-popup-crasher.html
  19478. * platform/chromium/PopupMenuChromium.cpp:
  19479. (WebCore::PopupMenu::~PopupMenu):
  19480. 2010-04-07 Kinuko Yasuda <kinuko@chromium.org>
  19481. Reviewed by Jian Li.
  19482. Add skeleton FileStream module for providing sync file operations for FileAPI
  19483. https://bugs.webkit.org/show_bug.cgi?id=37217
  19484. For now the module just defines an interface and is almost empty.
  19485. Implementation will be added.
  19486. No new tests; will be added when we have complete implementation.
  19487. * GNUmakefile.am:
  19488. * WebCore.gypi:
  19489. * WebCore.pro:
  19490. * WebCore.vcproj/WebCore.vcproj:
  19491. * WebCore.xcodeproj/project.pbxproj:
  19492. * html/FileStream.cpp: Added.
  19493. * html/FileStream.h: Added.
  19494. * html/FileStreamClient.h: Added.
  19495. * html/FileThread.cpp:
  19496. (WebCore::SameFilePredicate::SameFilePredicate):
  19497. (WebCore::SameFilePredicate::operator()):
  19498. (WebCore::FileThread::unscheduleTasks):
  19499. * html/FileThread.h:
  19500. (WebCore::FileThread::Task::stream):
  19501. (WebCore::FileThread::Task::Task):
  19502. 2010-04-07 Oliver Hunt <oliver@apple.com>
  19503. Reviewed by Darin Adler.
  19504. Remove some unnecessary uses of commonJSGlobalData
  19505. https://bugs.webkit.org/show_bug.cgi?id=37229
  19506. Pass the ExecState down to identifierFromNPIdentifier and update call sites
  19507. * bridge/NP_jsobject.cpp:
  19508. (_NPN_Invoke):
  19509. (_NPN_GetProperty):
  19510. (_NPN_SetProperty):
  19511. (_NPN_RemoveProperty):
  19512. (_NPN_HasProperty):
  19513. (_NPN_HasMethod):
  19514. * bridge/c/c_instance.cpp:
  19515. (JSC::Bindings::CInstance::getPropertyNames):
  19516. * bridge/c/c_utility.cpp:
  19517. (JSC::Bindings::identifierFromNPIdentifier):
  19518. * bridge/c/c_utility.h:
  19519. 2010-04-07 Kenneth Rohde Christiansen <kenneth@webkit.org>
  19520. Reviewed by Darin Adler.
  19521. Poor rendering on lala.com with frame flattening
  19522. https://bugs.webkit.org/show_bug.cgi?id=37164
  19523. Do not flatten offscreen iframes.
  19524. Test: fast/frames/flattening/iframe-flattening-offscreen.html
  19525. * rendering/RenderPartObject.cpp:
  19526. (WebCore::RenderPartObject::flattenFrame):
  19527. * rendering/RenderPartObject.h:
  19528. 2010-04-07 Abhishek Arya <inferno@chromium.org>
  19529. Reviewed by Adam Barth.
  19530. [V8] Add a missing check for constructor call in WebKitPointConstructor.
  19531. https://bugs.webkit.org/show_bug.cgi?id=37210
  19532. Test: fast/constructors/constructor-as-function-crash.html
  19533. * bindings/v8/custom/V8WebKitPointConstructor.cpp:
  19534. (WebCore::V8WebKitPoint::constructorCallback): Added a check for constructor call.
  19535. 2010-04-07 Enrica Casucci <enrica@apple.com>
  19536. Reviewed by Darin Adler.
  19537. https://bugs.webkit.org/show_bug.cgi?id=37219
  19538. This change disables text caret for the iPhone platflorm.
  19539. Added UNUSED_PARAM to build when ENABLE_TEXT_CARET is 0.
  19540. * editing/SelectionController.cpp:
  19541. (WebCore::SelectionController::recomputeCaretRect):
  19542. (WebCore::SelectionController::paintCaret):
  19543. * page/Frame.cpp:
  19544. (WebCore::Frame::paintDragCaret):
  19545. 2010-04-07 Enrica Casucci <enrica@apple.com>
  19546. Reviewed by Dave Hyatt.
  19547. Text repainting does not account for glyphs which draw outside the typographic bounds of the font (6274).
  19548. <rdar://problem/6649734>
  19549. <https://bugs.webkit.org/show_bug.cgi?id=6274>
  19550. In order to be able to handle successfully this case, it is necessary to change the glyph width cache to store
  19551. the bounding box for the glyph instead of the simply caching the glyph width.
  19552. Retrieving the bounding box for the glyph is expensive, therefore we do it only
  19553. when we are rendering text using the complex text path to minimize the performance impact.
  19554. To support characters with stacked diacritics, the method canUseGlyphCache has been modified to
  19555. return false for the range of characters with stacked diacritics.
  19556. The glyph cache has been also updated to allow storing the glyph bounding box together with the
  19557. horizontal width. The bounding box is populated only for complex text.
  19558. The original version of this patch has been written by Dan Bernstein.
  19559. Test: fast/repaint/stacked-diacritics.html
  19560. * Android.mk: File name change.
  19561. * GNUmakefile.am: File name change.
  19562. * WebCore.base.exp: Added parameter in exported function.
  19563. * WebCore.gypi: File name change.
  19564. * WebCore.vcproj/WebCore.vcproj: File name change.
  19565. * WebCore.xcodeproj/project.pbxproj: File name change.
  19566. * platform/graphics/Font.cpp:
  19567. (WebCore::Font::floatWidth): Added glyphOverflow parameter.
  19568. * platform/graphics/Font.h:
  19569. (WebCore::GlyphOverflow::GlyphOverflow): Added.
  19570. (WebCore::Font::width): Added glyphOverflow parameter.
  19571. * platform/graphics/FontFastPath.cpp:
  19572. (WebCore::Font::canUseGlyphCache): Modified to render characters with stacked diacritics with complex text path.
  19573. * platform/graphics/GlyphMetricsMap.cpp: Copied from WebCore/platform/graphics/GlyphWidthMap.cpp.
  19574. (WebCore::GlyphMetricsMap::locatePageSlowCase): Class name changed to reflect new semantics.
  19575. * platform/graphics/GlyphMetricsMap.h: Copied from WebCore/platform/graphics/GlyphWidthMap.h.
  19576. (WebCore::GlyphMetricsMap::GlyphMetricsMap):
  19577. (WebCore::GlyphMetricsMap::~GlyphMetricsMap):
  19578. (WebCore::GlyphMetricsMap::metricsForGlyph):
  19579. (WebCore::GlyphMetricsMap::widthForGlyph):
  19580. (WebCore::GlyphMetricsMap::setMetricsForGlyph):
  19581. (WebCore::GlyphMetricsMap::GlyphMetricsPage::metricsForGlyph):
  19582. (WebCore::GlyphMetricsMap::GlyphMetricsPage::setMetricsForGlyph):
  19583. (WebCore::GlyphMetricsMap::GlyphMetricsPage::setMetricsForIndex):
  19584. (WebCore::GlyphMetricsMap::locatePage):
  19585. * platform/graphics/GlyphWidthMap.cpp: Removed.
  19586. * platform/graphics/GlyphWidthMap.h: Removed.
  19587. * platform/graphics/SimpleFontData.cpp:
  19588. (WebCore::SimpleFontData::platformGlyphInit):
  19589. * platform/graphics/SimpleFontData.h:
  19590. (WebCore::):
  19591. (WebCore::SimpleFontData::widthForGlyph):
  19592. (WebCore::SimpleFontData::metricsForGlyph):
  19593. * platform/graphics/cairo/SimpleFontDataCairo.cpp:
  19594. (WebCore::SimpleFontData::platformMetricsForGlyph): Name and signature change.
  19595. * platform/graphics/chromium/FontChromiumWin.cpp:
  19596. (WebCore::Font::floatWidthForComplexText): Added parameter.
  19597. * platform/graphics/chromium/FontLinux.cpp:
  19598. (WebCore::Font::floatWidthForComplexText): Added parameter.
  19599. * platform/graphics/chromium/SimpleFontDataChromiumWin.cpp:
  19600. (WebCore::SimpleFontData::platformMetricsForGlyph): Name and signature change.
  19601. * platform/graphics/chromium/SimpleFontDataLinux.cpp:
  19602. (WebCore::SimpleFontData::platformWidthForGlyph): Name and signature vachange
  19603. * platform/graphics/efl/FontEfl.cpp:
  19604. (WebCore::Font::floatWidthForComplexText): Name and signature change.
  19605. * platform/graphics/gtk/SimpleFontDataPango.cpp:
  19606. (WebCore::SimpleFontData::platformMetricsForGlyph): Name and signature change.
  19607. * platform/graphics/haiku/FontHaiku.cpp:
  19608. (WebCore::Font::floatWidthForComplexText): Added parameter.
  19609. * platform/graphics/haiku/SimpleFontDataHaiku.cpp:
  19610. (WebCore::SimpleFontData::platformMetricsForGlyph): Name and signature change.
  19611. * platform/graphics/mac/ComplexTextController.cpp:
  19612. (WebCore::ComplexTextController::ComplexTextController):
  19613. (WebCore::ComplexTextController::adjustGlyphsAndAdvances):
  19614. * platform/graphics/mac/ComplexTextController.h:
  19615. (WebCore::ComplexTextController::minGlyphBoundingBoxX):
  19616. (WebCore::ComplexTextController::maxGlyphBoundingBoxX):
  19617. (WebCore::ComplexTextController::minGlyphBoundingBoxY):
  19618. (WebCore::ComplexTextController::maxGlyphBoundingBoxY):
  19619. * platform/graphics/mac/FontComplexTextMac.cpp:
  19620. (WebCore::Font::floatWidthForComplexText): Added paramter.
  19621. * platform/graphics/mac/SimpleFontDataMac.mm:
  19622. (WebCore::SimpleFontData::platformMetricsForGlyph): Name and signature change.
  19623. * platform/graphics/qt/FontQt.cpp:
  19624. (WebCore::Font::floatWidthForComplexText): Added paramter.
  19625. * platform/graphics/win/FontWin.cpp:
  19626. (WebCore::Font::floatWidthForComplexText): Added parameter.
  19627. * platform/graphics/win/SimpleFontDataCGWin.cpp:
  19628. (WebCore::SimpleFontData::platformMetricsForGlyph): Name and signature change.
  19629. * platform/graphics/win/SimpleFontDataWin.cpp:
  19630. (WebCore::SimpleFontData::metricsForGDIGlyph):
  19631. * platform/graphics/win/UniscribeController.cpp:
  19632. (WebCore::UniscribeController::UniscribeController):
  19633. (WebCore::UniscribeController::shapeAndPlaceItem):
  19634. * platform/graphics/win/UniscribeController.h:
  19635. (WebCore::UniscribeController::minGlyphBoundingBoxX):
  19636. (WebCore::UniscribeController::maxGlyphBoundingBoxX):
  19637. (WebCore::UniscribeController::minGlyphBoundingBoxY):
  19638. (WebCore::UniscribeController::maxGlyphBoundingBoxY):
  19639. * platform/graphics/wince/FontWince.cpp:
  19640. (WebCore::Font::floatWidthForComplexText): Added parameter.
  19641. * platform/graphics/wx/FontWx.cpp:
  19642. (WebCore::Font::floatWidthForComplexText): Added parameter.
  19643. * platform/graphics/wx/SimpleFontDataWx.cpp:
  19644. (WebCore::SimpleFontData::platformMetricsForGlyph): Name and signature change.
  19645. * rendering/InlineFlowBox.cpp:
  19646. (WebCore::InlineFlowBox::placeBoxesHorizontally):
  19647. (WebCore::InlineFlowBox::computeLogicalBoxHeights):
  19648. (WebCore::InlineFlowBox::computeVerticalOverflow):
  19649. * rendering/InlineTextBox.cpp:
  19650. (WebCore::InlineTextBox::setFallbackFonts):
  19651. (WebCore::InlineTextBox::fallbackFonts):
  19652. (WebCore::InlineTextBox::setGlyphOverflow):
  19653. (WebCore::InlineTextBox::glyphOverflow):
  19654. * rendering/InlineTextBox.h:
  19655. (WebCore::InlineTextBox::clearGlyphOverflowAndFallbackFontMap): Added.
  19656. * rendering/RenderBlockLineLayout.cpp:
  19657. (WebCore::RenderBlock::computeHorizontalPositionsForLine):
  19658. (WebCore::RenderBlock::layoutInlineChildren):
  19659. * rendering/RenderText.cpp:
  19660. (WebCore::RenderText::RenderText):
  19661. (WebCore::RenderText::styleDidChange):
  19662. (WebCore::RenderText::widthFromCache):
  19663. (WebCore::RenderText::trimmedPrefWidths):
  19664. (WebCore::RenderText::calcPrefWidths):
  19665. (WebCore::RenderText::setText):
  19666. (WebCore::RenderText::width):
  19667. * rendering/RenderText.h:
  19668. 2010-04-07 Joseph Pecoraro <joepeck@webkit.org>
  19669. Reviewed by Darin Adler.
  19670. Fix incorrect white-space in WebGLRenderingContext.idl
  19671. https://bugs.webkit.org/show_bug.cgi?id=31339
  19672. * html/canvas/WebGLRenderingContext.idl: Remove offending extra whitespace.
  19673. 2010-04-07 Rodrigo Belem <rodrigo.belem@openbossa.org>
  19674. Reviewed by Simon Hausmann.
  19675. [Qt] The build system is not installing the generated headers (QGraphicsWebView, QWebDatabase, etc)
  19676. https://bugs.webkit.org/show_bug.cgi?id=37173
  19677. This patch sets the correct path to the classheaders.pri and then
  19678. fixes the installation of the generated headers.
  19679. * WebCore.pro:
  19680. 2010-04-05 Antonio Gomes <tonikitoo@webkit.org>
  19681. Reviewed by Kenneth Christiansen.
  19682. Spatial Navigation: bail out as soon as algorithm finds a focus candidate is not applicable
  19683. https://bugs.webkit.org/show_bug.cgi?id=37135
  19684. It happens, for example, when distanceDataForNode assigns numeric_limits<long long> to
  19685. current focus candidate's. It means that current candidate is not in direction, or not
  19686. a valid target node.
  19687. * page/FocusController.cpp:
  19688. (WebCore::FocusController::findFocusableNodeInDirection):
  19689. 2010-04-07 Andrey Kosyakov <caseq@chromium.org>
  19690. Reviewed by Yury Semikhatsky.
  19691. Removed inspector methods from ScriptExecutionContext and derived classes.
  19692. Removed MessageDestination parameter from console-related calls (we now always
  19693. log to the same destination(s)).
  19694. Removed redundant FrameLoaderClient::dispatchDidLoadResourceByXMLHttpRequest()
  19695. https://bugs.webkit.org/show_bug.cgi?id=36949
  19696. * dom/Document.cpp:
  19697. (WebCore::Document::reportException):
  19698. (WebCore::Document::addMessage):
  19699. * dom/Document.h:
  19700. * dom/ScriptExecutionContext.h:
  19701. * loader/EmptyClients.h:
  19702. (WebCore::EmptyFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
  19703. * loader/FrameLoaderClient.h:
  19704. * loader/ResourceLoadNotifier.cpp:
  19705. * loader/ResourceLoadNotifier.h:
  19706. * websockets/WebSocket.cpp:
  19707. (WebCore::WebSocket::connect):
  19708. * websockets/WebSocketChannel.cpp:
  19709. (WebCore::WebSocketChannel::didOpen):
  19710. (WebCore::WebSocketChannel::appendToBuffer):
  19711. * websockets/WebSocketHandshake.cpp:
  19712. (WebCore::WebSocketHandshake::readServerHandshake):
  19713. (WebCore::WebSocketHandshake::readHTTPHeaders):
  19714. (WebCore::WebSocketHandshake::checkResponseHeaders):
  19715. * workers/DefaultSharedWorkerRepository.cpp:
  19716. (WebCore::postConsoleMessageTask):
  19717. (WebCore::SharedWorkerProxy::postConsoleMessageToWorkerObject):
  19718. * workers/WorkerContext.cpp:
  19719. (WebCore::WorkerContext::importScripts):
  19720. (WebCore::WorkerContext::addMessage):
  19721. * workers/WorkerContext.h:
  19722. * workers/WorkerMessagingProxy.cpp:
  19723. (WebCore::postConsoleMessageTask):
  19724. (WebCore::WorkerMessagingProxy::postConsoleMessageToWorkerObject):
  19725. * workers/WorkerMessagingProxy.h:
  19726. * workers/WorkerReportingProxy.h:
  19727. * xml/XMLHttpRequest.cpp:
  19728. (WebCore::reportUnsafeUsage):
  19729. (WebCore::XMLHttpRequest::didFinishLoading):
  19730. 2010-04-07 Dawit Alemayehu <adawit@kde.org>
  19731. Reviewed by Simon Hausmann.
  19732. https://bugs.webkit.org/show_bug.cgi?id=36827
  19733. Replaced the 'shouldTreatAsAttachment' function with a more generic
  19734. function that returns the content disposition type.
  19735. See comments 39-42 in https://bugs.webkit.org/show_bug.cgi?id=36395
  19736. * platform/network/HTTPParsers.cpp:
  19737. (WebCore::contentDispositionType):
  19738. * platform/network/HTTPParsers.h:
  19739. (WebCore::):
  19740. 2010-04-07 Vitaly Repeshko <vitalyr@chromium.org>
  19741. Reviewed by Yury Semikhatsky.
  19742. [V8] Throw exception in SerializedScriptValue on input errors
  19743. https://bugs.webkit.org/show_bug.cgi?id=37160
  19744. When cycles are detected SerializedScriptValue should throw
  19745. NOT_SUPPORTED_ERR. See
  19746. http://www.whatwg.org/specs/web-apps/2009-10-27/multipage/urls.html#structured-clone
  19747. * bindings/scripts/CodeGeneratorV8.pm: Custom processing for
  19748. function arguments of type SerializedScriptValue.
  19749. * bindings/v8/SerializedScriptValue.cpp:
  19750. (WebCore::SerializedScriptValue::SerializedScriptValue):
  19751. * bindings/v8/SerializedScriptValue.h:
  19752. (WebCore::SerializedScriptValue::create): Added a constructor
  19753. function with an extra paratemer to check whether an exception was
  19754. thrown.
  19755. SerializedScriptValue::create callers updated to check for
  19756. exceptions:
  19757. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  19758. (WebCore::V8DOMWindow::postMessageCallback):
  19759. * bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp:
  19760. (WebCore::V8DedicatedWorkerContext::postMessageCallback):
  19761. * bindings/v8/custom/V8HistoryCustom.cpp:
  19762. (WebCore::V8History::pushStateCallback):
  19763. (WebCore::V8History::replaceStateCallback):
  19764. * bindings/v8/custom/V8MessagePortCustom.cpp:
  19765. (WebCore::V8MessagePort::postMessageCallback):
  19766. * bindings/v8/custom/V8PopStateEventCustom.cpp:
  19767. (WebCore::V8PopStateEvent::initPopStateEventCallback):
  19768. * bindings/v8/custom/V8WorkerCustom.cpp:
  19769. (WebCore::V8Worker::postMessageCallback):
  19770. 2010-04-07 Alexander Pavlov <apavlov@chromium.org>
  19771. Reviewed by Pavel Feldman.
  19772. Web Inspector: Provide a placeholder for resources with no content available
  19773. https://bugs.webkit.org/show_bug.cgi?id=37142
  19774. * English.lproj/localizedStrings.js:
  19775. * inspector/front-end/ImageView.js:
  19776. (WebInspector.ImageView):
  19777. (WebInspector.ImageView.prototype.contentTabSelected):
  19778. * inspector/front-end/ResourceView.js:
  19779. (WebInspector.ResourceView.prototype._innerSelectContentTab):
  19780. (WebInspector.ResourceView.prototype.contentTabSelected):
  19781. * inspector/front-end/inspector.css:
  19782. (.resource-content-unavailable):
  19783. 2010-04-07 Simon Hausmann <simon.hausmann@nokia.com>
  19784. Reviewed by Laszlo Gombos.
  19785. https://bugs.webkit.org/show_bug.cgi?id=36750
  19786. [Qt] Package build without touch support is broken
  19787. Use the conditional attribute instead of #ifdefs in the idl file for the
  19788. touch specific properties, to make the generated files compile with and
  19789. without the touch events enabled.
  19790. * dom/Document.idl: Use conditional instead of #ifdef.
  19791. * dom/Element.idl: Ditto.
  19792. * page/DOMWindow.idl: Ditto.
  19793. 2010-04-07 Simon Hausmann <simon.hausmann@nokia.com>
  19794. Reviewed by Holger Freyther.
  19795. Add the touch event related IDL files to the idl generation, so that
  19796. they can be safely included from generated JS bindings files. The
  19797. generated files have #ifdef feature guards.
  19798. * DerivedSources.cpp:
  19799. * DerivedSources.make:
  19800. * GNUmakefile.am:
  19801. 2010-04-06 Jeremy Orlow <jorlow@chromium.org>
  19802. Reviewed by Adam Barth.
  19803. V8CustomIDBCallbacks<> should not hold a reference to the frame
  19804. https://bugs.webkit.org/show_bug.cgi?id=37154
  19805. Don't hold on to a Frame reference.
  19806. Instead, be an ActiveDOMObject and use scriptExecutionContext()
  19807. to get the v8 context.
  19808. Factor the guts of onSuccess and onError out.
  19809. Doesn't work enough to test yet.
  19810. * bindings/v8/custom/V8CustomIDBCallbacks.h:
  19811. (WebCore::V8CustomIDBCallbacks::create):
  19812. (WebCore::V8CustomIDBCallbacks::onSuccess):
  19813. (WebCore::V8CustomIDBCallbacks::onError):
  19814. (WebCore::V8CustomIDBCallbacks::V8CustomIDBCallbacks):
  19815. (WebCore::V8CustomIDBCallbacks::onEvent):
  19816. * bindings/v8/custom/V8IndexedDatabaseRequestCustom.cpp:
  19817. (WebCore::V8IndexedDatabaseRequest::openCallback):
  19818. * storage/IDBCallbacks.h:
  19819. (WebCore::IDBCallbacks::IDBCallbacks):
  19820. 2010-04-07 Sheriff Bot <webkit.review.bot@gmail.com>
  19821. Unreviewed, rolling out r57196.
  19822. http://trac.webkit.org/changeset/57196
  19823. https://bugs.webkit.org/show_bug.cgi?id=37196
  19824. Multiple layout test failures on Chromium (Requested by yurys
  19825. on #webkit).
  19826. * bindings/js/ScriptCallStack.cpp:
  19827. (WebCore::ScriptCallStack::callLocation):
  19828. * bindings/js/ScriptCallStack.h:
  19829. * bindings/v8/ScriptCallStack.cpp:
  19830. (WebCore::ScriptCallStack::create):
  19831. (WebCore::ScriptCallStack::callLocation):
  19832. (WebCore::ScriptCallStack::ScriptCallStack):
  19833. * bindings/v8/ScriptCallStack.h:
  19834. * bindings/v8/ScriptDebugServer.cpp:
  19835. * bindings/v8/ScriptDebugServer.h:
  19836. * bindings/v8/V8Proxy.cpp:
  19837. (WebCore::V8Proxy::createUtilityContext):
  19838. (WebCore::V8Proxy::sourceLineNumber):
  19839. (WebCore::V8Proxy::sourceName):
  19840. * bindings/v8/V8Proxy.h:
  19841. (WebCore::V8Proxy::utilityContext):
  19842. * inspector/TimelineRecordFactory.cpp:
  19843. (WebCore::TimelineRecordFactory::createGenericRecord):
  19844. 2010-04-07 Simon Hausmann <simon.hausmann@nokia.com>
  19845. Unreviewed, rolling out r57199.
  19846. http://trac.webkit.org/changeset/57199
  19847. https://bugs.webkit.org/show_bug.cgi?id=36750
  19848. Breaks non-touch enabled build
  19849. * dom/Document.idl:
  19850. * dom/Element.idl:
  19851. * page/DOMWindow.idl:
  19852. 2010-04-07 Simon Hausmann <simon.hausmann@nokia.com>
  19853. Reviewed by Laszlo Gombos.
  19854. https://bugs.webkit.org/show_bug.cgi?id=36750
  19855. [Qt] Package build without touch support is broken
  19856. Use the conditional attribute instead of #ifdefs in the idl file for the
  19857. touch specific properties, to make the generated files compile with and
  19858. without the touch events enabled.
  19859. * dom/Document.idl: Use conditional instead of #ifdef.
  19860. * dom/Element.idl: Ditto.
  19861. * page/DOMWindow.idl: Ditto.
  19862. 2010-04-07 Jaime Yap <jaimeyap@google.com>
  19863. Reviewed by Yury Semikhatsky.
  19864. Adds the ability to get the function symbol name when looking up the call location
  19865. for records sent by the InspectorTimelineAgent.
  19866. https://bugs.webkit.org/show_bug.cgi?id=36839
  19867. No new tests.
  19868. * bindings/js/ScriptCallStack.cpp:
  19869. (WebCore::ScriptCallStack::callLocation):
  19870. * bindings/js/ScriptCallStack.h:
  19871. * bindings/v8/ScriptCallStack.cpp:
  19872. (WebCore::ScriptCallStack::create):
  19873. (WebCore::ScriptCallStack::callLocation):
  19874. (WebCore::ScriptCallStack::ScriptCallStack):
  19875. * bindings/v8/ScriptCallStack.h:
  19876. * bindings/v8/ScriptDebugServer.cpp:
  19877. (WebCore::ScriptDebugServer::createUtilityContext):
  19878. (WebCore::ScriptDebugServer::lastCallFrame):
  19879. * bindings/v8/ScriptDebugServer.h:
  19880. (WebCore::ScriptDebugServer::utilityContext):
  19881. * bindings/v8/V8Proxy.cpp:
  19882. * bindings/v8/V8Proxy.h:
  19883. * inspector/TimelineRecordFactory.cpp:
  19884. (WebCore::TimelineRecordFactory::createGenericRecord):
  19885. 2010-04-06 Greg Bolsinga <bolsinga@apple.com>
  19886. Reviewed by Darin Adler.
  19887. https://bugs.webkit.org/show_bug.cgi?id=37188
  19888. WebCore::page::Geolocation::m_shouldClearCache is not used.
  19889. * page/Geolocation.cpp:
  19890. (WebCore::Geolocation::Geolocation): Remove m_shouldClearCache.
  19891. * page/Geolocation.h:
  19892. (WebCore::Geolocation::): Ditto.
  19893. 2010-04-06 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  19894. Reviewed by Eric Seidel.
  19895. Remove obsolete MOBILE flag
  19896. https://bugs.webkit.org/show_bug.cgi?id=37125
  19897. The MOBILE flag is no longer used by any of the ports.
  19898. The flag use to control some tokenizer defaults that
  19899. can be changed runtime.
  19900. No new tests as there is no new functionality.
  19901. * config.h:
  19902. * html/HTMLTokenizer.cpp:
  19903. 2010-04-06 Adam Barth <abarth@webkit.org>
  19904. Reviewed by Eric Seidel.
  19905. REGRESSION: Worker termination via JS timeout may cause worker tests like fast/workers/worker-terminate.html fail.
  19906. https://bugs.webkit.org/show_bug.cgi?id=36646
  19907. Cause the worker code to swallow termination exceptions because these
  19908. need not be reported to the user because they are an implementation
  19909. detail of how we terminate worker execution.
  19910. Test: fast/workers/worker-terminate-forever.html
  19911. * bindings/js/JSDOMBinding.cpp:
  19912. (WebCore::reportException):
  19913. - Refuse to report termination exceptions to the user because they
  19914. are an implementation detail.
  19915. * bindings/js/WorkerScriptController.cpp:
  19916. (WebCore::WorkerScriptController::forbidExecution):
  19917. - Instead of using timeouts to stop run away workers, use our fancy
  19918. new Terminator object.
  19919. 2010-04-06 Kinuko Yasuda <kinuko@chromium.org>
  19920. Reviewed by Jian Li.
  19921. Add basic FileSystem operations for FileReader/FileWriter support for POSIX (incl. Mac)
  19922. https://bugs.webkit.org/show_bug.cgi?id=36938
  19923. No new tests; will be added when we implement upper layers.
  19924. * platform/FileSystem.h:
  19925. (WebCore::):
  19926. * platform/posix/FileSystemPOSIX.cpp:
  19927. (WebCore::openFile):
  19928. (WebCore::closeFile):
  19929. (WebCore::seekFile):
  19930. (WebCore::truncateFile):
  19931. (WebCore::writeToFile):
  19932. (WebCore::readFromFile):
  19933. 2010-04-06 Nicolas Weber <thakis@chromium.org>
  19934. Reviewed by Dimitri Glazkov.
  19935. Implement DragImage functionality for chromium/mac.
  19936. https://bugs.webkit.org/show_bug.cgi?id=37069
  19937. * page/chromium/DragControllerChromium.cpp:
  19938. (WebCore::DragController::maxDragImageSize):
  19939. Use a max size of 400x400 on OS X.
  19940. * platform/chromium/DragImageChromiumMac.cpp:
  19941. (WebCore::dragImageSize): Implement.
  19942. (WebCore::deleteDragImage): Implement.
  19943. (WebCore::scaleDragImage): Implement.
  19944. (WebCore::dissolveDragImageToFraction): Implement.
  19945. (WebCore::createDragImageFromImage): Implement.
  19946. * platform/chromium/DragImageRef.h:
  19947. Use CGImageRefs as DragImageRef on OS X.
  19948. 2010-04-06 Chris Evans <cevans@chromium.org>
  19949. Reviewed by Adam Barth.
  19950. Use the new UserGestureIndictor to process javascript:window.open()
  19951. https://bugs.webkit.org/show_bug.cgi?id=37138
  19952. * bindings/v8/ScriptController.cpp
  19953. (WebCore::ScriptController::processingUserGesture):
  19954. Use the new UserGestureIndicator when processing a
  19955. javascript:window.open()
  19956. 2010-04-06 Vangelis Kokkevis <vangelis@chromium.org>
  19957. Reviewed by Dimitri Glazkov.
  19958. Renaming Graphics Layer related classes used by Chromium from *Skia to *Chromium and replacing wherever possible Skia-specific
  19959. data types with WebCore equivalents. The source files will be renamed accordingly and moved out of platform/graphics/skia
  19960. in a subsequent CL.
  19961. https://bugs.webkit.org/show_bug.cgi?id=37116
  19962. No new functionality so no new tests.
  19963. * platform/graphics/GraphicsLayer.h:
  19964. * platform/graphics/skia/GraphicsLayerSkia.cpp:
  19965. (WebCore::setLayerBorderColor):
  19966. (WebCore::clearBorderColor):
  19967. (WebCore::setLayerBackgroundColor):
  19968. (WebCore::clearLayerBackgroundColor):
  19969. (WebCore::GraphicsLayer::create):
  19970. (WebCore::GraphicsLayerChromium::GraphicsLayerChromium):
  19971. (WebCore::GraphicsLayerChromium::~GraphicsLayerChromium):
  19972. (WebCore::GraphicsLayerChromium::setName):
  19973. (WebCore::GraphicsLayerChromium::nativeLayer):
  19974. (WebCore::GraphicsLayerChromium::setChildren):
  19975. (WebCore::GraphicsLayerChromium::addChild):
  19976. (WebCore::GraphicsLayerChromium::addChildAtIndex):
  19977. (WebCore::GraphicsLayerChromium::addChildBelow):
  19978. (WebCore::GraphicsLayerChromium::addChildAbove):
  19979. (WebCore::GraphicsLayerChromium::replaceChild):
  19980. (WebCore::GraphicsLayerChromium::removeFromParent):
  19981. (WebCore::GraphicsLayerChromium::setPosition):
  19982. (WebCore::GraphicsLayerChromium::setAnchorPoint):
  19983. (WebCore::GraphicsLayerChromium::setSize):
  19984. (WebCore::GraphicsLayerChromium::setTransform):
  19985. (WebCore::GraphicsLayerChromium::setChildrenTransform):
  19986. (WebCore::GraphicsLayerChromium::setPreserves3D):
  19987. (WebCore::GraphicsLayerChromium::setMasksToBounds):
  19988. (WebCore::GraphicsLayerChromium::setDrawsContent):
  19989. (WebCore::GraphicsLayerChromium::setBackgroundColor):
  19990. (WebCore::GraphicsLayerChromium::clearBackgroundColor):
  19991. (WebCore::GraphicsLayerChromium::setContentsOpaque):
  19992. (WebCore::GraphicsLayerChromium::setBackfaceVisibility):
  19993. (WebCore::GraphicsLayerChromium::setOpacity):
  19994. (WebCore::GraphicsLayerChromium::setNeedsDisplay):
  19995. (WebCore::GraphicsLayerChromium::setNeedsDisplayInRect):
  19996. (WebCore::GraphicsLayerChromium::setContentsRect):
  19997. (WebCore::GraphicsLayerChromium::setContentsToImage):
  19998. (WebCore::GraphicsLayerChromium::setContentsToVideo):
  19999. (WebCore::GraphicsLayerChromium::setGeometryOrientation):
  20000. (WebCore::GraphicsLayerChromium::hostLayerForSublayers):
  20001. (WebCore::GraphicsLayerChromium::layerForSuperlayer):
  20002. (WebCore::GraphicsLayerChromium::platformLayer):
  20003. (WebCore::GraphicsLayerChromium::setDebugBackgroundColor):
  20004. (WebCore::GraphicsLayerChromium::setDebugBorder):
  20005. (WebCore::GraphicsLayerChromium::updateSublayerList):
  20006. (WebCore::GraphicsLayerChromium::updateLayerPosition):
  20007. (WebCore::GraphicsLayerChromium::updateLayerSize):
  20008. (WebCore::GraphicsLayerChromium::updateAnchorPoint):
  20009. (WebCore::GraphicsLayerChromium::updateTransform):
  20010. (WebCore::GraphicsLayerChromium::updateChildrenTransform):
  20011. (WebCore::GraphicsLayerChromium::updateMasksToBounds):
  20012. (WebCore::GraphicsLayerChromium::updateContentsOpaque):
  20013. (WebCore::GraphicsLayerChromium::updateBackfaceVisibility):
  20014. (WebCore::GraphicsLayerChromium::updateLayerPreserves3D):
  20015. (WebCore::GraphicsLayerChromium::updateLayerDrawsContent):
  20016. (WebCore::GraphicsLayerChromium::updateLayerBackgroundColor):
  20017. (WebCore::GraphicsLayerChromium::updateContentsImage):
  20018. (WebCore::GraphicsLayerChromium::updateContentsVideo):
  20019. (WebCore::GraphicsLayerChromium::updateContentsRect):
  20020. (WebCore::GraphicsLayerChromium::updateGeometryOrientation):
  20021. (WebCore::GraphicsLayerChromium::setupContentsLayer):
  20022. (WebCore::GraphicsLayerChromium::updateOpacityOnLayer):
  20023. * platform/graphics/skia/GraphicsLayerSkia.h:
  20024. (WebCore::GraphicsLayerChromium::primaryLayer):
  20025. (WebCore::GraphicsLayerChromium::contentsLayer):
  20026. * platform/graphics/skia/LayerRendererSkia.cpp:
  20027. (WebCore::LayerRendererChromium::create):
  20028. (WebCore::LayerRendererChromium::LayerRendererChromium):
  20029. (WebCore::LayerRendererChromium::~LayerRendererChromium):
  20030. (WebCore::LayerRendererChromium::updateLayerContents):
  20031. (WebCore::LayerRendererChromium::drawLayersInCanvas):
  20032. (WebCore::LayerRendererChromium::drawLayerInCanvasRecursive):
  20033. (WebCore::LayerRendererChromium::updateLayerContentsRecursive):
  20034. * platform/graphics/skia/LayerRendererSkia.h:
  20035. (WebCore::LayerRendererChromium::setRootLayer):
  20036. (WebCore::LayerRendererChromium::rootLayer):
  20037. * platform/graphics/skia/LayerSkia.cpp:
  20038. (WebCore::LayerChromium::create):
  20039. (WebCore::LayerChromium::LayerChromium):
  20040. (WebCore::LayerChromium::~LayerChromium):
  20041. (WebCore::LayerChromium::updateGraphicsContext):
  20042. (WebCore::LayerChromium::updateContents):
  20043. (WebCore::LayerChromium::drawDebugBorder):
  20044. (WebCore::LayerChromium::setNeedsCommit):
  20045. (WebCore::LayerChromium::addSublayer):
  20046. (WebCore::LayerChromium::insertSublayer):
  20047. (WebCore::LayerChromium::removeFromSuperlayer):
  20048. (WebCore::LayerChromium::removeSublayer):
  20049. (WebCore::LayerChromium::indexOfSublayer):
  20050. (WebCore::LayerChromium::setBackingStoreRect):
  20051. (WebCore::LayerChromium::setBounds):
  20052. (WebCore::LayerChromium::setFrame):
  20053. (WebCore::LayerChromium::rootLayer):
  20054. (WebCore::LayerChromium::removeAllSublayers):
  20055. (WebCore::LayerChromium::setSublayers):
  20056. (WebCore::LayerChromium::setSuperlayer):
  20057. (WebCore::LayerChromium::superlayer):
  20058. (WebCore::LayerChromium::setNeedsDisplay):
  20059. * platform/graphics/skia/LayerSkia.h:
  20060. (WebCore::LayerChromium::setAnchorPoint):
  20061. (WebCore::LayerChromium::anchorPoint):
  20062. (WebCore::LayerChromium::borderWidth):
  20063. (WebCore::LayerChromium::bounds):
  20064. (WebCore::LayerChromium::frame):
  20065. (WebCore::LayerChromium::setPosition):
  20066. (WebCore::LayerChromium::position):
  20067. (WebCore::LayerChromium::zPosition):
  20068. (WebCore::LayerChromium::getSublayers):
  20069. (WebCore::LayerChromium::setSublayerTransform):
  20070. (WebCore::LayerChromium::sublayerTransform):
  20071. (WebCore::LayerChromium::setTransform):
  20072. (WebCore::LayerChromium::transform):
  20073. 2010-04-06 Jarkko Sakkinen <jarkko.j.sakkinen@gmail.com>
  20074. Reviewed by Laszlo Gombos.
  20075. [Qt] WebKit does not build on Windows with --3d-canvas
  20076. https://bugs.webkit.org/show_bug.cgi?id=37026
  20077. * platform/graphics/GraphicsContext3D.h:
  20078. * platform/graphics/qt/GraphicsContext3DQt.cpp:
  20079. (WebCore::GraphicsContext3D::getActiveAttrib):
  20080. (WebCore::GraphicsContext3D::getActiveUniform):
  20081. 2010-04-06 Abhinav Mithal <abhinav.mithal@nokia.com>
  20082. Reviewed by Laszlo Gombos.
  20083. [Qt] npapi header leaves XP_WIN flag defined even when __SYMBIAN32__ flag is found
  20084. https://bugs.webkit.org/show_bug.cgi?id=34614
  20085. Do not define XP_WIN if WebKit is compiled for Symbian.
  20086. No new tests as there is no new functionality.
  20087. * bridge/npapi.h:
  20088. 2010-04-06 Chris Fleizach <cfleizach@apple.com>
  20089. Reviewed by Beth Dakin.
  20090. aria-label doesn't work on image map area
  20091. https://bugs.webkit.org/show_bug.cgi?id=36977
  20092. Test: platform/mac/accessibility/area-with-aria-label.html
  20093. * accessibility/AccessibilityImageMapLink.cpp:
  20094. (WebCore::AccessibilityImageMapLink::accessibilityDescription):
  20095. 2010-04-06 James Robinson <jamesr@chromium.org>
  20096. Reviewed by Simon Fraser.
  20097. Reverts the incorrect fixed position fastpath scrolling logic
  20098. https://bugs.webkit.org/show_bug.cgi?id=33150
  20099. This code does not properly handle overflow or transforms on fixed
  20100. position elements, causing repaint bugs on scroll.
  20101. No new tests.
  20102. * page/FrameView.cpp:
  20103. (WebCore::FrameView::addFixedObject):
  20104. (WebCore::FrameView::removeFixedObject):
  20105. * page/FrameView.h:
  20106. * platform/ScrollView.cpp:
  20107. (WebCore::ScrollView::scrollContents):
  20108. * platform/ScrollView.h:
  20109. * rendering/RenderObject.cpp:
  20110. (WebCore::RenderObject::styleWillChange):
  20111. 2010-04-06 Kevin Ollivier <kevino@theolliviers.com>
  20112. [wx] Build fix for wxMac / Cocoa on wx trunk.
  20113. * platform/wx/wxcode/mac/carbon/fontprops.mm:
  20114. (wxFontContainsCharacters):
  20115. 2010-04-06 Simon Hausmann <simon.hausmann@nokia.com>
  20116. Reviewed by Darin Adler.
  20117. JS code generator does not support feature conditional attributes that are writable
  20118. https://bugs.webkit.org/show_bug.cgi?id=37149
  20119. Write out the feature #ifdef not only for the getter, but also for the setter
  20120. function.
  20121. * bindings/scripts/CodeGeneratorJS.pm:
  20122. 2010-04-06 Evan Stade <estade@chromium.org>
  20123. Reviewed by Dimitri Glazkov.
  20124. [chromium] need DragImage implementation
  20125. https://bugs.webkit.org/show_bug.cgi?id=35811
  20126. Use the DragImageRef that the DragController passes to us.
  20127. This was previously committed but rolled back for breaking layout
  20128. tests. The fix is on the WebKit/chromium side.
  20129. * WebCore.gyp/WebCore.gyp:
  20130. * WebCore.gypi:
  20131. * platform/chromium/DragImageChromium.cpp: Removed.
  20132. * platform/chromium/DragImageChromiumMac.cpp: Added.
  20133. (WebCore::dragImageSize):
  20134. (WebCore::deleteDragImage):
  20135. (WebCore::scaleDragImage):
  20136. (WebCore::dissolveDragImageToFraction):
  20137. (WebCore::createDragImageFromImage):
  20138. (WebCore::createDragImageIconForCachedImage):
  20139. * platform/chromium/DragImageChromiumSkia.cpp: Added.
  20140. (WebCore::dragImageSize):
  20141. (WebCore::deleteDragImage):
  20142. (WebCore::scaleDragImage):
  20143. (WebCore::dissolveDragImageToFraction):
  20144. (WebCore::createDragImageFromImage):
  20145. (WebCore::createDragImageIconForCachedImage):
  20146. * platform/chromium/DragImageRef.h:
  20147. 2010-04-01 Yuzo Fujishima <yuzo@google.com>
  20148. Reviewed by Darin Adler.
  20149. Fix bug: CSS3 :not selector with ID simple selector sequence test fails
  20150. As per http://www.w3.org/TR/css3-selectors/#negation, :not(X) takes a simple selector as an argument.
  20151. WebKit was accepting a simple selector *sequence*.
  20152. This patch adds WebCore::CSSSelector::isSimple which judges if the selector is simple.
  20153. The method is used in CSSGrammar.y to decide whether to accept the selector as the argument of :not().
  20154. https://bugs.webkit.org/show_bug.cgi?id=36276
  20155. Test: fast/css/invalid-not-with-simple-selector-sequence.html
  20156. * css/CSSGrammar.y:
  20157. * css/CSSSelector.cpp:
  20158. (WebCore::CSSSelector::isSimple):
  20159. * css/CSSSelector.h:
  20160. 2010-04-06 Andy Estes <aestes@apple.com>
  20161. Rubber-stamped by Dan Bernstein.
  20162. Remove non-ASCII characters from license headers to fix build errors on
  20163. Japanese Windows.
  20164. https://bugs.webkit.org/show_bug.cgi?id=37008
  20165. * dom/UserGestureIndicator.cpp:
  20166. * dom/UserGestureIndicator.h:
  20167. 2010-04-06 Andrei Popescu <andreip@google.com>
  20168. Reviewed by Dimitri Glazkov.
  20169. [V8][Android] PageCache crashes when JavaScript is disabled
  20170. https://bugs.webkit.org/show_bug.cgi?id=37150
  20171. This patch ensures that saving and restoration of the script
  20172. state only happens when JS is enabled and each frame has a
  20173. non-null context.
  20174. No new tests: existing tests show the feature is working
  20175. when JS is enabled. When JS is disabled, manual testing
  20176. is required.
  20177. * bindings/v8/ScriptCachedFrameData.cpp:
  20178. (WebCore::ScriptCachedFrameData::ScriptCachedFrameData):
  20179. (WebCore::ScriptCachedFrameData::restore):
  20180. 2010-04-06 Ilya Tikhonovsky <loislo@chromium.org>
  20181. Unreviewed build fix.
  20182. Web Inspector: missed files were added.
  20183. * GNUmakefile.am:
  20184. * bindings/js/ScriptGCEvent.h: Added.
  20185. (WebCore::ScriptGCEvent::addEventListener):
  20186. (WebCore::ScriptGCEvent::removeEventListener):
  20187. (WebCore::ScriptGCEvent::getHeapSize):
  20188. * bindings/v8/ScriptGCEvent.cpp: Added.
  20189. (WebCore::ScriptGCEvent::addEventListener):
  20190. (WebCore::ScriptGCEvent::removeEventListener):
  20191. (WebCore::ScriptGCEvent::getHeapSize):
  20192. (WebCore::ScriptGCEvent::getUsedHeapSize):
  20193. (WebCore::ScriptGCEvent::gcPrologueCallback):
  20194. (WebCore::ScriptGCEvent::gcEpilogueCallback):
  20195. * bindings/v8/ScriptGCEvent.h: Added.
  20196. * inspector/ScriptGCEventListener.h: Added.
  20197. (WebCore::ScriptGCEventListener::~ScriptGCEventListener):
  20198. 2010-04-06 Ilya Tikhonovsky <loislo@chromium.org>
  20199. Reviewed by Pavel Feldman.
  20200. Web Inspector: The JS code can be not optimal from memory usage point of view.
  20201. As example it can generate a lot of temp objects and GC will spend significant time to collect these objects.
  20202. GC event will show us these moments. Also each event can show us how much memory is in use.
  20203. https://bugs.webkit.org/show_bug.cgi?id=37025
  20204. * WebCore.gypi:
  20205. * WebCore.pro:
  20206. * inspector/InspectorTimelineAgent.cpp:
  20207. (WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
  20208. (WebCore::InspectorTimelineAgent::pushGCEventRecords):
  20209. (WebCore::InspectorTimelineAgent::didGC):
  20210. (WebCore::InspectorTimelineAgent::~InspectorTimelineAgent):
  20211. (WebCore::InspectorTimelineAgent::didInstallTimer):
  20212. (WebCore::InspectorTimelineAgent::didRemoveTimer):
  20213. (WebCore::InspectorTimelineAgent::willSendResourceRequest):
  20214. (WebCore::InspectorTimelineAgent::didFinishLoadingResource):
  20215. (WebCore::InspectorTimelineAgent::didMarkTimeline):
  20216. (WebCore::InspectorTimelineAgent::addRecordToTimeline):
  20217. (WebCore::InspectorTimelineAgent::setHeapSizeStatistic):
  20218. (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord):
  20219. (WebCore::InspectorTimelineAgent::pushCurrentRecord):
  20220. * inspector/InspectorTimelineAgent.h:
  20221. (WebCore::):
  20222. (WebCore::InspectorTimelineAgent::instanceCount):
  20223. (WebCore::InspectorTimelineAgent::TimelineRecordEntry::TimelineRecordEntry):
  20224. (WebCore::InspectorTimelineAgent::GCEvent::GCEvent):
  20225. * inspector/TimelineRecordFactory.cpp:
  20226. (WebCore::TimelineRecordFactory::createGCEventData):
  20227. * inspector/TimelineRecordFactory.h:
  20228. * inspector/front-end/Popover.js:
  20229. (WebInspector.PopoverHelper.prototype._mouseHover):
  20230. * inspector/front-end/TimelineAgent.js:
  20231. * inspector/front-end/TimelinePanel.js:
  20232. (WebInspector.TimelinePanel.prototype.get _recordStyles):
  20233. (WebInspector.TimelinePanel.FormattedRecord):
  20234. (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
  20235. (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
  20236. 2010-04-05 Antonio Gomes <tonikitoo@webkit.org>
  20237. Reviewed by Laszlo Gombos.
  20238. Remove unused DIRECTIONAL_PAD_NAVIGATION
  20239. https://bugs.webkit.org/show_bug.cgi?id=37134
  20240. Android browser was planning to have a "directional pad navigation" available on
  20241. trunk, guarded by a build flag named DIRECTIONAL_PAD_NAVIGATION, but according to
  20242. https://bugs.webkit.org/show_bug.cgi?id=23145#c3 , the plan was dropped.
  20243. However bug 23163 landed some code relying on the build flag supposedly to be added,
  20244. and is now dead code in trunk.
  20245. * dom/Element.cpp:
  20246. (WebCore::Element::updateFocusAppearance):
  20247. 2010-04-06 Mattias Nissler <mnissler@chromium.org>
  20248. Reviewed by Pavel Feldman.
  20249. Rework inspector docking to issue a request call from the frontend
  20250. whenever the user triggers to (un)dock the inspector window. Doing so
  20251. enables InspectorFrontendHost implementations to asynchronously decide
  20252. whether the window is docked or not. The old canAttachWindow() is not
  20253. required anymore, remove it.
  20254. https://bugs.webkit.org/show_bug.cgi?id=36944
  20255. * inspector/InspectorFrontendClient.h:
  20256. * inspector/InspectorFrontendClientLocal.cpp:
  20257. (WebCore::InspectorFrontendClientLocal::requestAttachWindow):
  20258. * inspector/InspectorFrontendClientLocal.h:
  20259. * inspector/InspectorFrontendHost.cpp:
  20260. (WebCore::InspectorFrontendHost::requestAttachWindow):
  20261. * inspector/InspectorFrontendHost.h:
  20262. * inspector/InspectorFrontendHost.idl:
  20263. * inspector/front-end/inspector.js:
  20264. (WebInspector.toggleAttach):
  20265. 2010-04-06 Vitaly Repeshko <vitalyr@chromium.org>
  20266. Reviewed by Yury Semikhatsky.
  20267. [V8] Extend the set of types supported by SerializedScriptValue
  20268. https://bugs.webkit.org/show_bug.cgi?id=37052
  20269. New types include sparse arrays, Uint32, Date, and ImageData.
  20270. Serialization process became more flexible. A state can either
  20271. directly write primitive values (instead of returning them like
  20272. iterator) or construct a new state for serializing complex values
  20273. that will return to the current state when done.
  20274. Deserialization process now avoids exposing the tags using a set
  20275. of factory functions for complex objects instead.
  20276. Internal buffer type changed to uint8_t to be independent of
  20277. whether char is signed or not.
  20278. * bindings/v8/SerializedScriptValue.cpp:
  20279. (WebCore::):
  20280. (WebCore::Writer::Writer):
  20281. (WebCore::Writer::writeString):
  20282. (WebCore::Writer::writeUint32):
  20283. (WebCore::Writer::writeDate):
  20284. (WebCore::Writer::writeNumber):
  20285. (WebCore::Writer::writeImageData):
  20286. (WebCore::Writer::writeArray):
  20287. (WebCore::Writer::writeObject):
  20288. (WebCore::Writer::writeSparseArray):
  20289. (WebCore::Writer::doWriteUint32):
  20290. (WebCore::Writer::doWriteNumber):
  20291. (WebCore::Writer::append):
  20292. (WebCore::Writer::fillHole):
  20293. (WebCore::Writer::byteAt):
  20294. (WebCore::Serializer::Serializer):
  20295. (WebCore::Serializer::serialize):
  20296. (WebCore::Serializer::writeArray):
  20297. (WebCore::Serializer::writeObject):
  20298. (WebCore::Serializer::writeSparseArray):
  20299. (WebCore::Serializer::StateBase::StateBase):
  20300. (WebCore::Serializer::ErrorState::ErrorState):
  20301. (WebCore::Serializer::ErrorState::advance):
  20302. (WebCore::Serializer::State::composite):
  20303. (WebCore::Serializer::State::State):
  20304. (WebCore::Serializer::ArrayState::ArrayState):
  20305. (WebCore::Serializer::ArrayState::advance):
  20306. (WebCore::Serializer::AbstractObjectState::AbstractObjectState):
  20307. (WebCore::Serializer::AbstractObjectState::advance):
  20308. (WebCore::Serializer::ObjectState::ObjectState):
  20309. (WebCore::Serializer::ObjectState::objectDone):
  20310. (WebCore::Serializer::SparseArrayState::SparseArrayState):
  20311. (WebCore::Serializer::SparseArrayState::objectDone):
  20312. (WebCore::Serializer::push):
  20313. (WebCore::Serializer::pop):
  20314. (WebCore::Serializer::handleError):
  20315. (WebCore::Serializer::checkComposite):
  20316. (WebCore::Serializer::writeString):
  20317. (WebCore::Serializer::writeImageData):
  20318. (WebCore::Serializer::newArrayState):
  20319. (WebCore::Serializer::newObjectState):
  20320. (WebCore::Serializer::doSerialize):
  20321. (WebCore::Reader::Reader):
  20322. (WebCore::Reader::read):
  20323. (WebCore::Reader::readString):
  20324. (WebCore::Reader::readUint32):
  20325. (WebCore::Reader::readDate):
  20326. (WebCore::Reader::readNumber):
  20327. (WebCore::Reader::readImageData):
  20328. (WebCore::Reader::doReadUint32):
  20329. (WebCore::Reader::doReadNumber):
  20330. (WebCore::Deserializer::Deserializer):
  20331. (WebCore::Deserializer::createArray):
  20332. (WebCore::Deserializer::createObject):
  20333. (WebCore::Deserializer::createSparseArray):
  20334. (WebCore::Deserializer::initializeObject):
  20335. (WebCore::Deserializer::doDeserialize):
  20336. (WebCore::Deserializer::stackDepth):
  20337. (WebCore::SerializedScriptValue::deserialize):
  20338. 2010-04-06 Csaba Osztrogonác <ossy@webkit.org>
  20339. Unreviewed buildfix for --minimal build.
  20340. Buildfix after r57134. Add ENABLE(WORKERS) guard.
  20341. original bug: https://bugs.webkit.org/show_bug.cgi?id=36375
  20342. * bindings/js/JSWorkerContextErrorHandler.cpp:
  20343. 2010-04-06 Dirk Schulze <krit@webkit.org>
  20344. Reviewed by Oliver Hunt.
  20345. SVG/SMIL parse failure on attribute keySplines
  20346. https://bugs.webkit.org/show_bug.cgi?id=37071
  20347. Test: svg/animations/animate-keySplines.html
  20348. The String in 'keySplines' can have multiple spaces between numbers
  20349. and delimiters. The parsing code is inspired by SVGParserUtilities
  20350. and respects this.
  20351. * svg/SVGAnimationElement.cpp:
  20352. (WebCore::parseKeySplines):
  20353. 2010-04-06 Yury Semikhatsky <yurys@chromium.org>
  20354. Reviewed by Pavel Feldman.
  20355. Refactored error reporting mechanizm on Worker Global Objects.
  20356. Unlike other event listeners which accept single argument(Event)
  20357. onerror handler on worker global object should be a function
  20358. accepting three arguments. This error reporting was implementedas
  20359. EventListener::reportError method which had custom implementations
  20360. for v8 and JSC. This patch removes EventListener::reportError and
  20361. moves its functionality into custom bindings(V8WorkerContextErrorHandler
  20362. and JSWorkerContextErrorHandler) that implement EventListener inerface
  20363. for the onerror handler.
  20364. This patch also makes uncaught exceptions that happen in the onerror
  20365. listener be reported to the Worker's onerror handler.
  20366. https://bugs.webkit.org/show_bug.cgi?id=36375
  20367. * Android.jscbindings.mk:
  20368. * GNUmakefile.am:
  20369. * WebCore.gypi:
  20370. * WebCore.pro:
  20371. * WebCore.vcproj/WebCore.vcproj:
  20372. * WebCore.xcodeproj/project.pbxproj:
  20373. * bindings/js/JSBindingsAllInOne.cpp:
  20374. * bindings/js/JSEventListener.cpp:
  20375. * bindings/js/JSEventListener.h:
  20376. * bindings/js/JSWorkerContextErrorHandler.cpp: Added.
  20377. (WebCore::JSWorkerContextErrorHandler::JSWorkerContextErrorHandler):
  20378. (WebCore::JSWorkerContextErrorHandler::~JSWorkerContextErrorHandler):
  20379. (WebCore::JSWorkerContextErrorHandler::handleEvent):
  20380. * bindings/js/JSWorkerContextErrorHandler.h: Added.
  20381. (WebCore::JSWorkerContextErrorHandler::create):
  20382. (WebCore::createJSWorkerContextErrorHandler):
  20383. * bindings/scripts/CodeGeneratorJS.pm:
  20384. * bindings/scripts/CodeGeneratorV8.pm:
  20385. * bindings/v8/V8WorkerContextErrorHandler.cpp: Added.
  20386. (WebCore::V8WorkerContextErrorHandler::V8WorkerContextErrorHandler):
  20387. (WebCore::V8WorkerContextErrorHandler::callListenerFunction):
  20388. * bindings/v8/V8WorkerContextErrorHandler.h: Added.
  20389. (WebCore::V8WorkerContextErrorHandler::create):
  20390. * bindings/v8/V8WorkerContextEventListener.cpp:
  20391. * bindings/v8/V8WorkerContextEventListener.h:
  20392. * dom/EventListener.h:
  20393. * workers/WorkerContext.cpp:
  20394. (WebCore::WorkerContext::WorkerContext):
  20395. (WebCore::WorkerContext::reportException):
  20396. * workers/WorkerContext.h:
  20397. 2010-04-06 Pavel Feldman <pfeldman@chromium.org>
  20398. Not reviewed: reverting v8 change at r57079 for crashing Chromium layout tests.
  20399. 2010-04-05 MORITA Hajime <morrita@google.com>
  20400. Reviewed by Darin Adler.
  20401. RenderProgress.cpp is missing CurrentTime.h
  20402. https://bugs.webkit.org/show_bug.cgi?id=37080
  20403. No new tests. just fixed compilation error.
  20404. * rendering/RenderProgress.cpp:
  20405. 2010-04-05 Eric Uhrhane <ericu@chromium.org>
  20406. Reviewed by Brady Eidson.
  20407. window.openDatabase() always fails for new databases when using WebKit nightly with Safari 4.0.5
  20408. https://bugs.webkit.org/show_bug.cgi?id=36671
  20409. The previous "fix" I mistakenly compared hashes, an improvement over comparing pointers, but still not right.
  20410. No new tests.
  20411. * storage/DatabaseTracker.cpp:
  20412. (WebCore::DatabaseTracker::fullPathForDatabaseNoLock): Use SecurityOrigin::equal to compare instead of SecurityOriginHash.
  20413. 2010-04-05 Anthony Ricaud <rik@webkit.org>
  20414. Reviewed by Timothy Hatcher.
  20415. Web Inspector: Audits launcher view is unusable with a small height window
  20416. https://bugs.webkit.org/show_bug.cgi?id=37109
  20417. Use flex box instead of absolute positioning to avoid overlapping elements.
  20418. * inspector/front-end/AuditLauncherView.js:
  20419. (WebInspector.AuditLauncherView.prototype._createLauncherUI):
  20420. * inspector/front-end/audits.css:
  20421. (.audit-launcher-view .audit-launcher-view-content):
  20422. (.audit-launcher-view div.button-container):
  20423. (.audit-launcher-view .flexible-space):
  20424. 2010-04-05 Luiz Agostini <luiz.agostini@openbossa.org>
  20425. Reviewed by Kenneth Rohde Christiansen.
  20426. [Qt] Maemo5 theme - wrong spelling
  20427. https://bugs.webkit.org/show_bug.cgi?id=37110
  20428. Correcting wrong spelling in RenderThemeQt.cpp.
  20429. * platform/qt/RenderThemeQt.cpp:
  20430. 2010-04-05 Leandro Pereira <leandro@profusion.mobi>
  20431. Reviewed by Kenneth Rohde Christiansen.
  20432. Add EFL-specific code to platform/Platform*Event.h.
  20433. http://webkit.org/b/36309
  20434. * platform/PlatformWheelEvent.h:
  20435. * platform/PlatformMouseEvent.h:
  20436. * platform/PlatformKeyboardEvent.h:
  20437. 2010-04-05 Leandro Pereira <leandro@profusion.mobi>
  20438. Reviewed by Kenneth Rohde Christiansen.
  20439. Add EFL-specific code to platform/graphics/*.h.
  20440. http://webkit.org/b/36308
  20441. * platform/graphics/Icon.h:
  20442. * platform/graphics/IntRect.h:
  20443. * platform/graphics/FloatRect.h:
  20444. * platform/graphics/IntPoint.h:
  20445. 2010-04-05 Robert Hogan <robert@webkit.org>
  20446. Reviewed by Kenneth Rohde Christiansen.
  20447. [Qt] Fix infinite redirection loop in QNetworkReplyHandler
  20448. Put a maximum on consecutive redirections so we don't have to
  20449. worry about whether it's the same url or not.
  20450. Tolerate up to 10 consecutive redirections, anything beyond
  20451. that is considered a potentially infinite recursion in the
  20452. redirection requests. This is the same behaviour as Firefox.
  20453. https://bugs.webkit.org/show_bug.cgi?id=37097
  20454. * platform/network/qt/QNetworkReplyHandler.cpp:
  20455. (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
  20456. (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
  20457. * platform/network/qt/QNetworkReplyHandler.h:
  20458. 2010-04-05 Dimitri Glazkov <dglazkov@chromium.org> and James Robinson <jamesr@chromium.org>
  20459. Reviewed by Darin Adler and Dimitri Glazkov.
  20460. Style update done due to mutation event dispatching in textarea can be
  20461. used to corrupt the render tree.
  20462. https://bugs.webkit.org/show_bug.cgi?id=36864
  20463. Tests: fast/forms/select-change-listbox-to-popup-roundtrip.html
  20464. fast/forms/select-change-popup-to-listbox-roundtrip.html
  20465. fast/forms/textarea-and-mutation-events.html
  20466. * dom/Document.cpp:
  20467. (WebCore::Document::finishedParsing): Added updateStyleIfNeeded()
  20468. call to ensure that object loads start before firing window load.
  20469. * dom/Node.cpp:
  20470. (WebCore::Node::dispatchGenericEvent): Removed invocation of
  20471. Document::updateStyleForAllDocuments
  20472. * html/HTMLSelectElement.cpp:
  20473. (WebCore::HTMLSelectElement::parseMappedAttribute): Added explicit
  20474. recalc to ensure accuracy of representation, especially for
  20475. menuList/listBox switches.
  20476. 2010-04-05 Antonio Gomes <tonikitoo@webkit.org>
  20477. Reviewed by Laszlo Gombos.
  20478. Cleaned up spatial-navigation-test-cases.html by removing the wrongly
  20479. used <frameset> tag.
  20480. Patch also adds a manual-test specifically to test Spatial Navigation with framesets.
  20481. * manual-tests/spatial-navigation/frameset.html: Added.
  20482. * manual-tests/spatial-navigation/spatial-navigation-test-cases.html:
  20483. 2010-04-05 Mark Rowe <mrowe@apple.com>
  20484. Reviewed by Adele Peterson.
  20485. Roll out r56989 as it introduced crashes in Mail.
  20486. <http://webkit.org/b/37115> / <rdar://problem/7829331>
  20487. * dom/Position.cpp:
  20488. (WebCore::Position::isCandidate):
  20489. * dom/PositionIterator.cpp:
  20490. (WebCore::PositionIterator::isCandidate):
  20491. 2010-04-05 Darin Adler <darin@apple.com>
  20492. Reviewed by Sam Weinig.
  20493. Images must re-load when an image-holding element moves into a new document
  20494. https://bugs.webkit.org/show_bug.cgi?id=37127
  20495. Test: fast/images/move-image-to-new-document.html
  20496. * html/HTMLImageElement.cpp:
  20497. (WebCore::HTMLImageElement::willMoveToNewOwnerDocument): Call ImageLoader's
  20498. elementWillMoveToNewOwnerDocument function.
  20499. * html/HTMLImageElement.h: Added willMoveToNewOwnerDocument.
  20500. * html/HTMLInputElement.cpp:
  20501. (WebCore::HTMLInputElement::willMoveToNewOwnerDocument): Ditto.
  20502. * html/HTMLPlugInImageElement.cpp:
  20503. (WebCore::HTMLPlugInImageElement::willMoveToNewOwnerDocument): Ditto.
  20504. * html/HTMLPlugInImageElement.h: Ditto.
  20505. * html/HTMLVideoElement.cpp:
  20506. (WebCore::HTMLVideoElement::willMoveToNewOwnerDocument): Ditto.
  20507. * html/HTMLVideoElement.h: Ditto.
  20508. * svg/SVGImageElement.cpp:
  20509. (WebCore::SVGImageElement::willMoveToNewOwnerDocument): Ditto.
  20510. * svg/SVGImageElement.h: Ditto.
  20511. * html/HTMLMediaElement.h: Made willMoveToNewOwnerDocument protected
  20512. so it can be called by HTMLVideoElement.cpp.
  20513. * loader/ImageLoader.cpp:
  20514. (WebCore::ImageLoader::elementWillMoveToNewOwnerDocument): Added.
  20515. Resets the loader by clearing out the cached image.
  20516. * loader/ImageLoader.h: Added it.
  20517. 2010-04-05 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  20518. Reviewed by Kenneth Rohde Christiansen.
  20519. [Symbian] Consolidate Symbian WINSCW environment configuration
  20520. https://bugs.webkit.org/show_bug.cgi?id=37100
  20521. Move the "undefinition" of WIN32 and _WIN32 from WebCore/config.h
  20522. to JavaScriptCore/wtf/Platform.h as it is not specific to WebCore.
  20523. No new tests as there is no new functionality.
  20524. * config.h:
  20525. 2010-04-05 Leandro Pereira <leandro@profusion.mobi>
  20526. Reviewed by Kenneth Rohde Christiansen.
  20527. Add missing ClipboardEfl.h to platform/efl.
  20528. http://webkit.org/b/36242
  20529. * platform/efl/ClipboardEfl.h: Added.
  20530. 2010-04-05 Yuta Kitamura <yutak@chromium.org>
  20531. Reviewed by Darin Adler.
  20532. Escape control characters in CSS string value when it is serialilzed.
  20533. When WebKit serializes a CSS string value that contains binary characters
  20534. ('\0\1\2' for example), it did not escape these characters. As a result,
  20535. users got (invisible) control characters through scripts. This change fixes
  20536. this issue.
  20537. As a side effect, two separate codes for escaping CSS strings are merged, and
  20538. become a public function (quoteCSSString).
  20539. CSS string value is not correctly serialized when it contains binary characters
  20540. https://bugs.webkit.org/show_bug.cgi?id=28938
  20541. Test: fast/css/string-quote-binary.html
  20542. * css/CSSParser.cpp:
  20543. (WebCore::isCSSTokenizerIdentifier):
  20544. (WebCore::isCSSTokenizerURL):
  20545. (WebCore::quoteCSSString):
  20546. (WebCore::quoteCSSStringIfNeeded):
  20547. (WebCore::quoteCSSURLIfNeeded):
  20548. * css/CSSParser.h:
  20549. * css/CSSPrimitiveValue.cpp:
  20550. (WebCore::CSSPrimitiveValue::cssText):
  20551. * css/FontFamilyValue.cpp:
  20552. (WebCore::FontFamilyValue::cssText):
  20553. 2010-04-05 John Gregg <johnnyg@google.com>
  20554. Reviewed by Darin Adler.
  20555. Notifications should not resolve an empty icon parameter as a relative URL
  20556. https://bugs.webkit.org/show_bug.cgi?id=36862
  20557. * notifications/Notification.cpp:
  20558. (WebCore::Notification::Notification):
  20559. 2010-04-05 Darin Adler <darin@apple.com>
  20560. Reviewed by Mark Rowe.
  20561. Removed some unneeded type casts.
  20562. * css/CSSPrimitiveValue.cpp:
  20563. (WebCore::CSSPrimitiveValue::cssText): Removed an unneeded cast.
  20564. * page/Location.cpp:
  20565. (WebCore::Location::host): Removed unneeded parentheses and cast.
  20566. (WebCore::Location::port): Ditto.
  20567. * platform/KURLGoogle.cpp:
  20568. (WebCore::KURL::setPort): Ditto.
  20569. * workers/WorkerLocation.cpp:
  20570. (WebCore::WorkerLocation::host): Ditto.
  20571. (WebCore::WorkerLocation::port): Ditto.
  20572. 2010-04-05 Sheriff Bot <webkit.review.bot@gmail.com>
  20573. Unreviewed, rolling out r57081.
  20574. http://trac.webkit.org/changeset/57081
  20575. https://bugs.webkit.org/show_bug.cgi?id=37121
  20576. We think it triggered two tests to fail on Tiger because of
  20577. race conditions (Requested by abarth on #webkit).
  20578. * dom/Node.cpp:
  20579. (WebCore::Node::dispatchGenericEvent):
  20580. * html/HTMLSelectElement.cpp:
  20581. (WebCore::HTMLSelectElement::parseMappedAttribute):
  20582. 2010-04-05 Brady Eidson <beidson@apple.com>
  20583. Reviewed by Oliver Hunt.
  20584. ASSERT close()ing the same StorageAreaImpl twice when using multiple PageGroups
  20585. <rdar://problem/7828420> and https://bugs.webkit.org/show_bug.cgi?id=37120
  20586. No new tests. (No behavior change)
  20587. * storage/StorageNamespaceImpl.cpp:
  20588. (WebCore::StorageNamespaceImpl::close): Change this invalid ASSERT to an early return.
  20589. 2010-04-05 Sheriff Bot <webkit.review.bot@gmail.com>
  20590. Unreviewed, rolling out r57030.
  20591. http://trac.webkit.org/changeset/57030
  20592. https://bugs.webkit.org/show_bug.cgi?id=37114
  20593. Regressed fast/repaint/line-flow-with-floats-9 pixel tests in
  20594. chromium port (Requested by jamesr on #webkit).
  20595. * rendering/RenderBlock.h:
  20596. * rendering/RenderBlockLineLayout.cpp:
  20597. (WebCore::RenderBlock::layoutInlineChildren):
  20598. 2010-04-05 Alexey Proskuryakov <ap@apple.com>
  20599. Reviewed by Darin Adler.
  20600. https://bugs.webkit.org/show_bug.cgi?id=37111
  20601. <rdar://problem/7790327> Draw replacement text when plug-in host crashes
  20602. * page/mac/WebCoreViewFactory.h:
  20603. * platform/LocalizedStrings.h:
  20604. * platform/mac/LocalizedStringsMac.mm:
  20605. * platform/gtk/LocalizedStringsGtk.cpp:
  20606. * platform/qt/Localizations.cpp:
  20607. * platform/wx/LocalizedStringsWx.cpp:
  20608. Added a localizable string for plug-in failure (only used on Mac at the moment).
  20609. * WebCore.xcodeproj/project.pbxproj: Made RenderEmbeddedObject.h (and dependencies) private,
  20610. since it's now used from WebKit.
  20611. * rendering/RenderEmbeddedObject.cpp:
  20612. (WebCore::RenderEmbeddedObject::RenderEmbeddedObject):m Removed m_showsMissingPluginIndicator
  20613. initializer.
  20614. (WebCore::RenderEmbeddedObject::updateWidget): Check m_replacementText instead of the removed
  20615. m_showsMissingPluginIndicator.
  20616. (WebCore::RenderEmbeddedObject::setShowsMissingPluginIndicator): Load m_replacementText.
  20617. (WebCore::RenderEmbeddedObject::setShowsCrashedPluginIndicator): Ditto.
  20618. (WebCore::RenderEmbeddedObject::paint): Check m_replacementText instead of the removed
  20619. m_showsMissingPluginIndicator.
  20620. (WebCore::RenderEmbeddedObject::paintReplaced): Draw arbitrary text from m_replacementText
  20621. insted of just "Missing Plug-in". Renamed constants and variables accordingly.
  20622. * rendering/RenderEmbeddedObject.h: Changed boolean for missing plug-in to a String holding
  20623. actual replacement text.
  20624. * loader/FrameLoader.cpp: (WebCore::FrameLoader::loadPlugin): Adapted for the change in
  20625. setShowsMissingPluginIndicator(), which no longer takes an argument.
  20626. * WebCore/WebCore.base.exp: Exported RenderEmbeddedObject::setShowsCrashedPluginIndicator().
  20627. 2010-04-05 Chris Fleizach <cfleizach@apple.com>
  20628. Reviewed by Darin Adler.
  20629. Bug 37040 - AX: need to send selected children change notification when aria-selected changed
  20630. https://bugs.webkit.org/show_bug.cgi?id=37040
  20631. When aria-selected is changed in the DOM, it will trigger a selected children change notification.
  20632. Test: platform/mac/accessibility/aria-listbox-selectedchildren-change.html
  20633. * accessibility/AXObjectCache.cpp:
  20634. (WebCore::AXObjectCache::selectedChildrenChanged):
  20635. * accessibility/AXObjectCache.h:
  20636. * accessibility/AccessibilityMediaControls.cpp:
  20637. (WebCore::AccessibilityMediaControl::controlType):
  20638. Remove extra whitespace before comment (webkit-style).
  20639. * accessibility/AccessibilityRenderObject.cpp:
  20640. (WebCore::AccessibilityRenderObject::observableObject):
  20641. Allowed a listBox to be an observable object.
  20642. (WebCore::AccessibilityRenderObject::ariaRoleHasPresentationalChildren):
  20643. (WebCore::AccessibilityRenderObject::ariaListboxSelectedChildren):
  20644. Updated and streamlined existing code.
  20645. * dom/Element.cpp:
  20646. (WebCore::Element::updateAfterAttributeChanged):
  20647. 2010-04-05 Adam Treat <atreat@rim.com>
  20648. Reviewed by Darin Adler.
  20649. Fix regression in pixel test for animated svg background images.
  20650. https://bugs.webkit.org/show_bug.cgi?id=37027
  20651. * svg/graphics/SVGImage.cpp:
  20652. (WebCore::SVGImageChromeClient::invalidateContentsAndWindow):
  20653. 2010-04-05 Robert Hogan <robert@webkit.org>
  20654. Reviewed by Kenneth Rohde-Christiansen.
  20655. [Qt] Fix infinite redirection loop in QNetworkReplyHandler
  20656. Qt enters an infinite loop if a redirect response redirects to itself.
  20657. Fixes http/tests/xmlhttprequest/connection-error-sync.html
  20658. https://bugs.webkit.org/show_bug.cgi?id=37097
  20659. * platform/network/qt/QNetworkReplyHandler.cpp:
  20660. (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
  20661. 2010-04-05 Yury Semikhatsky <yurys@chromium.org>
  20662. Unreviewed, revert r57078.
  20663. * Android.jscbindings.mk:
  20664. * GNUmakefile.am:
  20665. * WebCore.gypi:
  20666. * WebCore.pro:
  20667. * WebCore.vcproj/WebCore.vcproj:
  20668. * WebCore.xcodeproj/project.pbxproj:
  20669. * bindings/js/JSEventListener.cpp:
  20670. (WebCore::JSEventListener::reportError):
  20671. * bindings/js/JSEventListener.h:
  20672. * bindings/js/JSWorkerContextErrorHandler.cpp: Removed.
  20673. * bindings/js/JSWorkerContextErrorHandler.h: Removed.
  20674. * bindings/scripts/CodeGeneratorJS.pm:
  20675. * bindings/scripts/CodeGeneratorV8.pm:
  20676. * bindings/v8/V8WorkerContextErrorHandler.cpp: Removed.
  20677. * bindings/v8/V8WorkerContextErrorHandler.h: Removed.
  20678. * bindings/v8/V8WorkerContextEventListener.cpp:
  20679. (WebCore::V8WorkerContextEventListener::reportError):
  20680. * bindings/v8/V8WorkerContextEventListener.h:
  20681. * dom/EventListener.h:
  20682. (WebCore::EventListener::reportError):
  20683. * workers/WorkerContext.cpp:
  20684. (WebCore::WorkerContext::WorkerContext):
  20685. (WebCore::WorkerContext::reportException):
  20686. * workers/WorkerContext.h:
  20687. 2010-04-05 Dimitri Glazkov <dglazkov@chromium.org>
  20688. Reviewed by Darin Adler.
  20689. Style update done due to mutation event dispatching in textarea can be
  20690. used to corrupt the render tree.
  20691. https://bugs.webkit.org/show_bug.cgi?id=36864
  20692. Tests: fast/forms/select-change-listbox-to-popup-roundtrip.html
  20693. fast/forms/select-change-popup-to-listbox-roundtrip.html
  20694. fast/forms/textarea-and-mutation-events.html
  20695. * dom/Node.cpp:
  20696. (WebCore::Node::dispatchGenericEvent): Removed invocation of
  20697. Document::updateStyleForAllDocuments
  20698. * html/HTMLSelectElement.cpp:
  20699. (WebCore::HTMLSelectElement::parseMappedAttribute): Added explicit
  20700. recalc to ensure accuracy of representation, especially for
  20701. menuList/listBox switches.
  20702. 2010-04-01 Kenneth Rohde Christiansen <kenneth@webkit.org>
  20703. Reviewed by Dave Hyatt.
  20704. iframe flattening doesn't flatten
  20705. https://bugs.webkit.org/show_bug.cgi?id=36798
  20706. Fixed to the iframe flattening code so that the iframes on
  20707. http://www.samisite.com/test-csb2nf/id43.htm are actually
  20708. flattened.
  20709. Covered by current tests.
  20710. * page/FrameView.cpp: Propagate contents changes of iframes
  20711. and subframes in framesets to the parent so that it is relayouted
  20712. (WebCore::FrameView::setContentsSize):
  20713. (WebCore::FrameView::adjustViewSize):
  20714. (WebCore::FrameView::scheduleRelayout):
  20715. * rendering/RenderPart.cpp: HTMLIFrameElement do not inherit from
  20716. HTMLFrameElement, but HTMLFrameElementBase, correct cast. Correct
  20717. the use of inset border values. Avoid a sometimes unnecessary
  20718. relayout.
  20719. (WebCore::RenderPart::layoutWithFlattening):
  20720. * rendering/RenderPartObject.cpp: Make the calcHeight and calcWidth
  20721. return the right values, considering scrolling and fixed width/height
  20722. (WebCore::RenderPartObject::flattenFrame):
  20723. (WebCore::RenderPartObject::calcHeight):
  20724. (WebCore::RenderPartObject::calcWidth):
  20725. (WebCore::RenderPartObject::layout):
  20726. 2010-04-05 Vitaly Repeshko <vitalyr@chromium.org>
  20727. Reviewed by Yury Semikhatsky.
  20728. [V8] Extend the set of types supported by SerializedScriptValue
  20729. https://bugs.webkit.org/show_bug.cgi?id=37052
  20730. New types include sparse arrays, Uint32, Date, and ImageData.
  20731. Serialization process became more flexible. A state can either
  20732. directly write primitive values (instead of returning them like
  20733. iterator) or construct a new state for serializing complex values
  20734. that will return to the current state when done.
  20735. Deserialization process now avoids exposing the tags using a set
  20736. of factory functions for complex objects instead.
  20737. Internal buffer type changed to uint8_t to be independent of
  20738. whether char is signed or not.
  20739. * bindings/v8/SerializedScriptValue.cpp:
  20740. (WebCore::):
  20741. (WebCore::Writer::Writer):
  20742. (WebCore::Writer::writeString):
  20743. (WebCore::Writer::writeUint32):
  20744. (WebCore::Writer::writeDate):
  20745. (WebCore::Writer::writeNumber):
  20746. (WebCore::Writer::writeImageData):
  20747. (WebCore::Writer::writeArray):
  20748. (WebCore::Writer::writeObject):
  20749. (WebCore::Writer::writeSparseArray):
  20750. (WebCore::Writer::doWriteUint32):
  20751. (WebCore::Writer::doWriteNumber):
  20752. (WebCore::Writer::append):
  20753. (WebCore::Writer::fillHole):
  20754. (WebCore::Writer::byteAt):
  20755. (WebCore::Serializer::Serializer):
  20756. (WebCore::Serializer::serialize):
  20757. (WebCore::Serializer::writeArray):
  20758. (WebCore::Serializer::writeObject):
  20759. (WebCore::Serializer::writeSparseArray):
  20760. (WebCore::Serializer::StateBase::StateBase):
  20761. (WebCore::Serializer::ErrorState::ErrorState):
  20762. (WebCore::Serializer::ErrorState::advance):
  20763. (WebCore::Serializer::State::composite):
  20764. (WebCore::Serializer::State::State):
  20765. (WebCore::Serializer::ArrayState::ArrayState):
  20766. (WebCore::Serializer::ArrayState::advance):
  20767. (WebCore::Serializer::AbstractObjectState::AbstractObjectState):
  20768. (WebCore::Serializer::AbstractObjectState::advance):
  20769. (WebCore::Serializer::ObjectState::ObjectState):
  20770. (WebCore::Serializer::ObjectState::objectDone):
  20771. (WebCore::Serializer::SparseArrayState::SparseArrayState):
  20772. (WebCore::Serializer::SparseArrayState::objectDone):
  20773. (WebCore::Serializer::push):
  20774. (WebCore::Serializer::pop):
  20775. (WebCore::Serializer::handleError):
  20776. (WebCore::Serializer::checkComposite):
  20777. (WebCore::Serializer::writeString):
  20778. (WebCore::Serializer::writeImageData):
  20779. (WebCore::Serializer::newArrayState):
  20780. (WebCore::Serializer::newObjectState):
  20781. (WebCore::Serializer::doSerialize):
  20782. (WebCore::Reader::Reader):
  20783. (WebCore::Reader::read):
  20784. (WebCore::Reader::readString):
  20785. (WebCore::Reader::readUint32):
  20786. (WebCore::Reader::readDate):
  20787. (WebCore::Reader::readNumber):
  20788. (WebCore::Reader::readImageData):
  20789. (WebCore::Reader::doReadUint32):
  20790. (WebCore::Reader::doReadNumber):
  20791. (WebCore::Deserializer::Deserializer):
  20792. (WebCore::Deserializer::createArray):
  20793. (WebCore::Deserializer::createObject):
  20794. (WebCore::Deserializer::createSparseArray):
  20795. (WebCore::Deserializer::initializeObject):
  20796. (WebCore::Deserializer::doDeserialize):
  20797. (WebCore::Deserializer::stackDepth):
  20798. (WebCore::SerializedScriptValue::deserialize):
  20799. 2010-04-05 Yury Semikhatsky <yurys@chromium.org>
  20800. Reviewed by Pavel Feldman.
  20801. Refactored error reporting mechanizm on Worker Global Objects.
  20802. Unlike other event listeners which accept single argument(Event)
  20803. onerror handler on worker global object should be a function
  20804. accepting three arguments. This error reporting was implementedas
  20805. EventListener::reportError method which had custom implementations
  20806. for v8 and JSC. This patch removes EventListener::reportError and
  20807. moves its functionality into custom bindings(V8WorkerContextErrorHandler
  20808. and JSWorkerContextErrorHandler) that implement EventListener inerface
  20809. for the onerror handler.
  20810. This patch also makes uncaught exceptions that happen in the onerror
  20811. listener be reported to the Worker's onerror handler.
  20812. https://bugs.webkit.org/show_bug.cgi?id=36375
  20813. * WebCore.gypi:
  20814. * WebCore.pro:
  20815. * WebCore.xcodeproj/project.pbxproj:
  20816. * bindings/js/JSEventListener.cpp:
  20817. * bindings/js/JSEventListener.h:
  20818. * bindings/js/JSWorkerContextErrorHandler.cpp: Added.
  20819. (WebCore::JSWorkerContextErrorHandler::JSWorkerContextErrorHandler):
  20820. (WebCore::JSWorkerContextErrorHandler::~JSWorkerContextErrorHandler):
  20821. (WebCore::JSWorkerContextErrorHandler::handleEvent):
  20822. * bindings/js/JSWorkerContextErrorHandler.h: Added.
  20823. (WebCore::JSWorkerContextErrorHandler::create):
  20824. (WebCore::createJSWorkerContextErrorHandler):
  20825. * bindings/scripts/CodeGeneratorJS.pm:
  20826. * bindings/scripts/CodeGeneratorV8.pm:
  20827. * bindings/v8/V8WorkerContextErrorHandler.cpp: Added.
  20828. (WebCore::V8WorkerContextErrorHandler::V8WorkerContextErrorHandler):
  20829. (WebCore::V8WorkerContextErrorHandler::callListenerFunction):
  20830. * bindings/v8/V8WorkerContextErrorHandler.h: Added.
  20831. (WebCore::V8WorkerContextErrorHandler::create):
  20832. * bindings/v8/V8WorkerContextEventListener.cpp:
  20833. * bindings/v8/V8WorkerContextEventListener.h:
  20834. * dom/EventListener.h: Removed reportError method that was used only for reporting worker errors.
  20835. * workers/WorkerContext.cpp:
  20836. (WebCore::WorkerContext::WorkerContext):
  20837. (WebCore::WorkerContext::reportException):
  20838. * workers/WorkerContext.h:
  20839. 2010-04-05 Antonio Gomes <tonikitoo@webkit.org>
  20840. Reviewed by Darin Adler.
  20841. Fix some "explicit braces to avoid ambiguous 'else'" warnings
  20842. https://bugs.webkit.org/show_bug.cgi?id=37088
  20843. * dom/Node.cpp:
  20844. (WebCore::Node::dispatchGenericEvent):
  20845. * page/DOMWindow.cpp:
  20846. (WebCore::DOMWindow::dispatchEvent):
  20847. 2010-04-05 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  20848. Reviewed by Kenneth Rohde Christiansen.
  20849. Consolidate the definition of SKIP_STATIC_CONSTRUCTORS_ON_GCC
  20850. Instead of defining and undefining it later, let's not
  20851. define SKIP_STATIC_CONSTRUCTORS_ON_GCC for WINSCW.
  20852. No new tests as there is no new functionality.
  20853. * config.h:
  20854. 2010-04-05 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  20855. Reviewed by Kenneth Rohde Christiansen.
  20856. [Qt] [Symbian] Remove obsolete build flags for Symbian
  20857. https://bugs.webkit.org/show_bug.cgi?id=37083
  20858. Symbian port of QtWebKit port does not use icu, so it does
  20859. not need U_HAVE_* defines.
  20860. Symbian now has inttypes.h as part of OpenC.
  20861. stdio.h, limits.h and MathExtras.h are already included in
  20862. more appropriate locations.
  20863. No new tests as there is no new functionality.
  20864. * config.h:
  20865. 2010-04-05 Pavel Feldman <pfeldman@chromium.org>
  20866. Not reviewed: chromium build fix.
  20867. * bindings/v8/custom/V8InspectorFrontendHostCustom.cpp:
  20868. (WebCore::V8InspectorFrontendHost::platformCallback):
  20869. (WebCore::V8InspectorFrontendHost::portCallback):
  20870. 2010-04-05 Pavel Feldman <pfeldman@chromium.org>
  20871. Reviewed by Yury Semikhatsky.
  20872. Web Inspector: [REGRESSION] platform detection in Chromium
  20873. has regressed to unknown.
  20874. https://bugs.webkit.org/show_bug.cgi?id=37081
  20875. * bindings/js/JSInspectorFrontendHostCustom.cpp:
  20876. (WebCore::JSInspectorFrontendHost::platform):
  20877. (WebCore::JSInspectorFrontendHost::port):
  20878. * bindings/v8/custom/V8InspectorFrontendHostCustom.cpp:
  20879. (WebCore::V8InspectorFrontendHost::platform):
  20880. (WebCore::V8InspectorFrontendHost::port):
  20881. * inspector/InspectorFrontendHost.cpp:
  20882. * inspector/InspectorFrontendHost.h:
  20883. * inspector/InspectorFrontendHost.idl:
  20884. 2010-04-05 Andrey Kosyakov <caseq@chromium.org>
  20885. Reviewed by Yury Semikhatsky.
  20886. Remove logging of successful XHR and worker's importScript()
  20887. to inspector console
  20888. https://bugs.webkit.org/show_bug.cgi?id=37078
  20889. * bindings/js/JSWorkerContextCustom.cpp:
  20890. (WebCore::JSWorkerContext::importScripts):
  20891. * bindings/v8/custom/V8WorkerContextCustom.cpp:
  20892. (WebCore::V8WorkerContext::importScriptsCallback):
  20893. * workers/DedicatedWorkerContext.cpp:
  20894. (WebCore::DedicatedWorkerContext::importScripts):
  20895. * workers/DedicatedWorkerContext.h:
  20896. * workers/WorkerContext.cpp:
  20897. (WebCore::WorkerContext::importScripts):
  20898. * workers/WorkerContext.h:
  20899. * xml/XMLHttpRequest.cpp:
  20900. (WebCore::XMLHttpRequest::didFinishLoading):
  20901. 2010-04-04 Pavel Feldman <pfeldman@chromium.org>
  20902. Not reviewed. Rolling out chromium changes r57028 and r57032
  20903. for breaking chromium layout tests.
  20904. * WebCore.gyp/WebCore.gyp:
  20905. * WebCore.gypi:
  20906. * platform/chromium/DragImageChromium.cpp: Added.
  20907. (WebCore::dragImageSize):
  20908. (WebCore::deleteDragImage):
  20909. (WebCore::scaleDragImage):
  20910. (WebCore::dissolveDragImageToFraction):
  20911. (WebCore::createDragImageFromImage):
  20912. (WebCore::createDragImageIconForCachedImage):
  20913. * platform/chromium/DragImageChromiumMac.cpp: Removed.
  20914. * platform/chromium/DragImageChromiumSkia.cpp: Removed.
  20915. * platform/chromium/DragImageRef.h:
  20916. 2010-03-29 Antonio Gomes <tonikitoo@webkit.org>
  20917. Reviewed by Simon Fraser.
  20918. Patch by Antonio Gomes <tonikitoo@webkit.org>
  20919. Spatial Navigation: Initial code simplification in FocusController.cpp and SpatialNavigation.cpp
  20920. WebCore::distanceInDirection method was handling much of the logic not
  20921. strictly only related to the distance between nodes acquisition. This
  20922. method was simplified and renamed to 'WebCore::distanceDataForNode'.
  20923. The latter is now responsible for only getting the distance and alignment
  20924. data, while all assignement logic previously in distanceInDirection method
  20925. was moved place to updateFocusCandidateIfCloser.
  20926. Parent document distance and alignment acquisitions, in turn, have also
  20927. changed location: they are both got from deepFindFocusableNodeInDirection,
  20928. and passed in a recursive call to findFocusableNodeInDirection via the
  20929. candidateParent variable (optional parameter). In addition, the need for
  20930. the 'focusCandidateCopy' variable in deepFindFocusableNodeInDirection method
  20931. was removed, making the code much cleaner.
  20932. No behaviour change at this point. Mostly moving code around to the place
  20933. where it should live in.
  20934. * page/FocusController.cpp:
  20935. (WebCore::FocusController::advanceFocusDirectionally):
  20936. (WebCore::updateFocusCandidateIfCloser):
  20937. (WebCore::FocusController::findFocusableNodeInDirection):
  20938. (WebCore::FocusController::deepFindFocusableNodeInDirection):
  20939. * page/FocusController.h:
  20940. * page/SpatialNavigation.cpp:
  20941. (WebCore::distanceDataForNode):
  20942. (WebCore::renderRectRelativeToRootDocument):
  20943. * page/SpatialNavigation.h:
  20944. 2010-04-04 Pavel Feldman <pfeldman@chromium.org>
  20945. Reviewed by Timothy Hatcher.
  20946. Web Inspector: In the inherited styles, do not render non-inherited properties as overriden.
  20947. https://bugs.webkit.org/show_bug.cgi?id=37072
  20948. * inspector/front-end/StylesSidebarPane.js:
  20949. (WebInspector.StylePropertiesSection.prototype.isPropertyOverloaded):
  20950. 2010-04-03 yael aharon <yael.aharon@nokia.com>
  20951. Reviewed by Darin Adler.
  20952. Enable HTMLProgressElement for Safari on OSX
  20953. https://bugs.webkit.org/show_bug.cgi?id=36961
  20954. * Configurations/FeatureDefines.xcconfig:
  20955. * WebCore.xcodeproj/project.pbxproj:
  20956. * rendering/RenderThemeMac.h:
  20957. * rendering/RenderThemeMac.mm:
  20958. (WebCore::RenderThemeMac::animationRepeatIntervalForProgressBar):
  20959. (WebCore::RenderThemeMac::animationDurationForProgressBar):
  20960. (WebCore::RenderThemeMac::adjustProgressBarStyle):
  20961. (WebCore::RenderThemeMac::paintProgressBar):
  20962. 2010-04-03 Jakub Wieczorek <jwieczorek@webkit.org>
  20963. Unreviewed.
  20964. Fix debug build with GCC >= 4.3.
  20965. * platform/graphics/GraphicsLayer.cpp: Include stdio.h explicitly.
  20966. 2010-04-03 Kenneth Russell <kbr@google.com>
  20967. Reviewed by Darin Fisher.
  20968. Inconsistent failure modes from uniform[Matrix]* with null WebGLUniformLocation
  20969. https://bugs.webkit.org/show_bug.cgi?id=36574
  20970. Fixed bugs in JavaScript bindings for uniform[Matrix]* entry
  20971. points causing them to throw exceptions rather than synthesize GL
  20972. errors. Fixed the implementations to synthesize INVALID_VALUE
  20973. rather than INVALID_OPERATION to comply to the WebGL spec. Updated
  20974. uniform-location-expected.txt to incorporate the correct error.
  20975. Tested in Safari and Chromium.
  20976. Test: fast/canvas/webgl/null-uniform-location.html
  20977. * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
  20978. (WebCore::V8WebGLRenderingContext::getUniformCallback):
  20979. (WebCore::vertexAttribAndUniformHelperf):
  20980. (WebCore::uniformHelperi):
  20981. (WebCore::uniformMatrixHelper):
  20982. * html/canvas/WebGLRenderingContext.cpp:
  20983. (WebCore::WebGLRenderingContext::uniform1f):
  20984. (WebCore::WebGLRenderingContext::uniform1fv):
  20985. (WebCore::WebGLRenderingContext::uniform1i):
  20986. (WebCore::WebGLRenderingContext::uniform1iv):
  20987. (WebCore::WebGLRenderingContext::uniform2f):
  20988. (WebCore::WebGLRenderingContext::uniform2fv):
  20989. (WebCore::WebGLRenderingContext::uniform2i):
  20990. (WebCore::WebGLRenderingContext::uniform2iv):
  20991. (WebCore::WebGLRenderingContext::uniform3f):
  20992. (WebCore::WebGLRenderingContext::uniform3fv):
  20993. (WebCore::WebGLRenderingContext::uniform3i):
  20994. (WebCore::WebGLRenderingContext::uniform3iv):
  20995. (WebCore::WebGLRenderingContext::uniform4f):
  20996. (WebCore::WebGLRenderingContext::uniform4fv):
  20997. (WebCore::WebGLRenderingContext::uniform4i):
  20998. (WebCore::WebGLRenderingContext::uniform4iv):
  20999. (WebCore::WebGLRenderingContext::uniformMatrix2fv):
  21000. (WebCore::WebGLRenderingContext::uniformMatrix3fv):
  21001. (WebCore::WebGLRenderingContext::uniformMatrix4fv):
  21002. 2010-04-02 Andy Estes <aestes@apple.com>
  21003. Reviewed by Adam Barth.
  21004. The previous mechanism for testing whether an event was due to a user
  21005. gesture only checked the event type, not the source of the event. This
  21006. allowed scripts to defeat popup blocking by programatically emitting
  21007. certain types of events.
  21008. Change the user gesture detection to check for a flag that is only set
  21009. when the event in question was generated through the platform and not
  21010. through the DOM.
  21011. https://bugs.webkit.org/show_bug.cgi?id=37008
  21012. Tests: fast/events/popup-allowed-from-gesture-initiated-event.html
  21013. fast/events/popup-blocked-from-fake-button-click.html
  21014. fast/events/popup-blocked-from-fake-focus.html
  21015. * Android.mk: Add UserGestureIndicator.{cpp, h}.
  21016. * GNUmakefile.am: Same.
  21017. * WebCore.gypi: Same.
  21018. * WebCore.pro: Same.
  21019. * WebCore.vcproj/WebCore.vcproj: Same.
  21020. * WebCore.xcodeproj/project.pbxproj: Same.
  21021. * bindings/v8/ScriptController.cpp:
  21022. (WebCore::ScriptController::processingUserGesture): Check the value of
  21023. UserGesureIndicator::processingUserGesture().
  21024. * dom/Document.cpp:
  21025. (WebCore::Document::createEvent): Remove call to
  21026. Event::setCreatedByDOM().
  21027. * dom/Event.cpp:
  21028. (WebCore::Event::Event): Remove initializers for m_createdByDOM.
  21029. (WebCore::Event::fromUserGesture): Check the value of
  21030. UserGestureIndicator::processingUserGesture().
  21031. * dom/Event.h: Remove m_createdByDOM.
  21032. * dom/UserGestureIndicator.cpp: Added.
  21033. (WebCore::UserGestureIndicator::UserGestureIndicator): Save the previous
  21034. value of s_processingUserGesture before setting it to true.
  21035. (WebCore::UserGestureIndicator::~UserGestureIndicator): Restore
  21036. s_processingUserGesture to its previous value.
  21037. * dom/UserGestureIndicator.h: Added.
  21038. (WebCore::UserGestureIndicator::processingUserGesture): Return the value
  21039. of s_processingUserGesture.
  21040. * page/EventHandler.cpp:
  21041. (WebCore::EventHandler::handleMousePressEvent): Instantiate a
  21042. UserGestureIndicator object on the stack to indicate a user gesture is
  21043. being processed.
  21044. (WebCore::EventHandler::handleMouseDoubleClickEvent): Same.
  21045. (WebCore::EventHandler::handleMouseReleaseEvent): Same.
  21046. (WebCore::EventHandler::keyEvent): Same.
  21047. (WebCore::EventHandler::handleTouchEvent): Same.
  21048. 2010-04-02 Justin Schuh <jschuh@chromium.org>
  21049. Reviewed by Alexey Proskuryakov.
  21050. XHR allows arbitrary XSRF across domains
  21051. https://bugs.webkit.org/show_bug.cgi?id=36843
  21052. Added a one-line change to prevent bypassing the XDC check on
  21053. synchronous preflighted requests. Added layout tests to cover
  21054. variations of this problem.
  21055. Tests: http/tests/xmlhttprequest/access-control-preflight-async-header-denied.html
  21056. http/tests/xmlhttprequest/access-control-preflight-async-method-denied.html
  21057. http/tests/xmlhttprequest/access-control-preflight-sync-header-denied.html
  21058. http/tests/xmlhttprequest/access-control-preflight-sync-method-denied.html
  21059. * loader/DocumentThreadableLoader.cpp:
  21060. (WebCore::DocumentThreadableLoader::preflightFailure):
  21061. 2010-04-02 Nayan Kumar K <nayankk@gmail.com>
  21062. Reviewed by Eric Seidel.
  21063. Fix for WML enabled build failure.
  21064. https://bugs.webkit.org/show_bug.cgi?id=36648
  21065. * wml/WMLOptionElement.cpp:
  21066. (WebCore::WMLOptionElement::disabled):
  21067. * wml/WMLOptionElement.h:
  21068. * wml/WMLSelectElement.cpp:
  21069. (WebCore::WMLSelectElement::listBoxSelectItem):
  21070. * wml/WMLSelectElement.h:
  21071. 2010-04-02 MORITA Hajime <morrita@google.com>
  21072. Reviewed by Alexey Proskuryakov.
  21073. https://bugs.webkit.org/show_bug.cgi?id=37011
  21074. Position::primaryDirection() should not use its own accessor.
  21075. No new tests. This is small clenaup with no behaviour change.
  21076. * dom/Position.cpp:
  21077. (WebCore::Position::primaryDirection):
  21078. 2010-04-02 Eric Uhrhane <ericu@chromium.org>
  21079. Reviewed by Brady Eidson.
  21080. window.openDatabase() always fails for new databases when using WebKit nightly with Safari 4.0.5. This is caused by a SecurityOrigin pointer comparison that I should have switched to be a hash comparison in r56293 [bug 34991].
  21081. https://bugs.webkit.org/show_bug.cgi?id=36671
  21082. No new tests. Requires testing on Safari on Windows.
  21083. * storage/DatabaseTracker.cpp:
  21084. (WebCore::DatabaseTracker::fullPathForDatabaseNoLock): Convert a pointer comparison to use SecurityOriginHash::hash() instead, and move it to the end of the clause for speed in the easy-out case.
  21085. 2010-04-02 Michael Nordman <michaeln@google.com>
  21086. Reviewed by Nate Chapin.
  21087. Set the close policy used by the DatabaseCloseTask in a constructor argument
  21088. instead of hard coding it.
  21089. https://bugs.webkit.org/show_bug.cgi?id=37037
  21090. No new tests, new new functionality.
  21091. * storage/Database.cpp: This callsite passes in DoNotRemoveFromDatabaseContext to retain its current behavior.
  21092. (WebCore::Database::markAsDeletedAndClose):
  21093. * storage/DatabaseTask.cpp:
  21094. (WebCore::DatabaseCloseTask::DatabaseCloseTask):
  21095. (WebCore::DatabaseCloseTask::doPerformTask):
  21096. * storage/DatabaseTask.h:
  21097. (WebCore::DatabaseCloseTask::create):
  21098. 2010-04-02 James Robinson <jamesr@chromium.org>
  21099. Reviewed by Simon Fraser.
  21100. Remove an ASSERT that sometimes flakes due to time dependent animations
  21101. https://bugs.webkit.org/show_bug.cgi?id=37048
  21102. The outline repaint rectangle for a layer might change between two calls
  21103. if there are animations involved, even if nothing in the DOM has actually
  21104. changed between the calls.
  21105. No change in behavior, no new tests.
  21106. * rendering/RenderLayer.cpp:
  21107. (WebCore::RenderLayer::updateLayerPositions):
  21108. 2010-04-02 Evan Stade <estade@chromium.org>
  21109. Reviewed by Adam Barth.
  21110. [chromium] need DragImage implementation
  21111. https://bugs.webkit.org/show_bug.cgi?id=35811
  21112. Add two files that failed to get added in my previous patch.
  21113. * platform/chromium/DragImageChromiumMac.cpp: Added.
  21114. (WebCore::dragImageSize):
  21115. (WebCore::deleteDragImage):
  21116. (WebCore::scaleDragImage):
  21117. (WebCore::dissolveDragImageToFraction):
  21118. (WebCore::createDragImageFromImage):
  21119. (WebCore::createDragImageIconForCachedImage):
  21120. * platform/chromium/DragImageChromiumSkia.cpp: Added.
  21121. (WebCore::dragImageSize):
  21122. (WebCore::deleteDragImage):
  21123. (WebCore::scaleDragImage):
  21124. (WebCore::dissolveDragImageToFraction):
  21125. (WebCore::createDragImageFromImage):
  21126. (WebCore::createDragImageIconForCachedImage):
  21127. 2010-04-02 Jer Noble <jer.noble@apple.com>
  21128. Reviewed by Eric Carlson.
  21129. Configure multi-language movies: when QuickTime has sufficiently loaded
  21130. the movie, call into wkQTMovieSelectPreferredAlternates to select the
  21131. movie's alternate tracks according to the user's language preferences.
  21132. https://bugs.webkit.org/show_bug.cgi?id=36624
  21133. * WebCore.base.exp:
  21134. * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
  21135. (WebCore::MediaPlayerPrivate::updateStates): If the movie is sufficiently loaded,
  21136. call wkQTMovieSelectPreferredAlternates to set up the alternate tracks.
  21137. * platform/mac/WebCoreSystemInterface.h: Declare WKQTMovieSelectPreferredAlternates.
  21138. * platform/mac/WebCoreSystemInterface.mm: Add WKQTMovieSelectPreferredAlternates.
  21139. 2010-04-02 James Robinson <jamesr@chromium.org>
  21140. Reviewed by Darin Adler.
  21141. Splits RenderBlock::layoutInline into smaller functions
  21142. https://bugs.webkit.org/show_bug.cgi?id=36921
  21143. RenderBlock::layoutInlineChildren is 351 lines long and very difficult
  21144. to comprehend or edit safely. This patch splits it up into a few
  21145. slightly smaller functions. Most of the code is now in the 241 line
  21146. layoutRunsAndFloats() which is a slight improvement.
  21147. Perf neutral on the page cyclers. This doesn't introduce any function
  21148. calls into the hottest layout paths inside layoutRunsAndFloats and
  21149. findNextLineBreak.
  21150. No change in behavior, no new tests.
  21151. * rendering/RenderBlock.h:
  21152. (WebCore::RenderBlock::FloatWithRect::FloatWithRect):
  21153. * rendering/RenderBlockLineLayout.cpp:
  21154. (WebCore::RenderBlock::layoutReplacedElements):
  21155. (WebCore::RenderBlock::createLineBoxesForResolver):
  21156. (WebCore::RenderBlock::layoutRunsAndFloats):
  21157. (WebCore::RenderBlock::layoutInlineChildren):
  21158. 2010-04-02 Evan Stade <estade@chromium.org>
  21159. Reviewed by Eric Seidel.
  21160. [chromium] need DragImage implementation
  21161. https://bugs.webkit.org/show_bug.cgi?id=35811
  21162. Basic implementation using SkBitmap. Transformations are not supported
  21163. yet. No implementation for mac.
  21164. * WebCore.gyp/WebCore.gyp:
  21165. * WebCore.gypi:
  21166. * platform/chromium/DragImageChromium.cpp:
  21167. * platform/chromium/DragImageRef.h:
  21168. 2010-04-02 Evan Martin <evan@chromium.org>
  21169. Reviewed by Eric Seidel.
  21170. [chromium] font fallback for generic fonts picks wrong font
  21171. https://bugs.webkit.org/show_bug.cgi?id=37033
  21172. When a page specifies the generic "monospace" font and the user's
  21173. browser-configured monospace font doesn't exist, we previously relied
  21174. on getLastResortFallbackFont to eventually pick a monospace font for us.
  21175. But that doesn't quite work: WebKit first falls back to the user's
  21176. "preferred standard font" before hitting the last resort code path.
  21177. So if the above conditions hold but this font exists, we'll end up
  21178. never hitting the last resort codepath.
  21179. The fix is to allow OS-level font fallback when first attempting to
  21180. resolve monospace. The existing code tried to do this, but the logic
  21181. was wrong. We would eventually fall back to the correct font anyway
  21182. so we didn't notice the logic was wrong.
  21183. This code is all handling cases where particular fonts aren't installed,
  21184. so I can't think of a way to test it; existing tests should still pass.
  21185. * platform/graphics/chromium/FontCacheLinux.cpp:
  21186. (WebCore::FontCache::createFontPlatformData):
  21187. 2010-04-02 Andrew Scherkus <scherkus@chromium.org>
  21188. Reviewed by Eric Carlson and Eric Seidel.
  21189. Don't stop the playback event timer when media resource loading has suspended.
  21190. https://bugs.webkit.org/show_bug.cgi?id=37003
  21191. When a user agent decides to suspend media resource loading and enters the
  21192. NETWORK_IDLE state we are supposed to only stop the progress event timer but
  21193. keep the playback timer running.
  21194. Test: http/tests/media/video-play-suspend.html
  21195. * html/HTMLMediaElement.cpp:
  21196. (WebCore::HTMLMediaElement::setNetworkState): Only stop the progress event timer.
  21197. 2010-04-02 Darin Adler <darin@apple.com>
  21198. Fix mispelling that broke the build.
  21199. * html/canvas/CanvasRenderingContext2D.cpp:
  21200. * html/canvas/CanvasRenderingContext2D.h:
  21201. Dashbard -> Dashboard.
  21202. 2010-04-02 David Levin <levin@chromium.org>
  21203. Reviewed by Darin Adler.
  21204. (non-generated) code should only use CanvasRenderingContext::canvas as a CanvasSurface.
  21205. https://bugs.webkit.org/show_bug.cgi?id=36906
  21206. * dom/CanvasSurface.cpp: Added methods for items that depended on
  21207. CanvasRenderingContext::canvas() being an HTMLElement(), so that this usage
  21208. can be dealt with in one place.
  21209. (WebCore::CanvasSurface::securityOrigin): Only used by methods that are
  21210. only run in the document context.
  21211. (WebCore::CanvasSurface::renderBox): Will likely return 0 in a worker context.
  21212. (WebCore::CanvasSurface::computedStyle): Used by setFont. Return value is TBD for
  21213. the worker context.
  21214. (WebCore::CanvasSurface::styleSelector): Ditto.
  21215. * dom/CanvasSurface.h:
  21216. * html/HTMLCanvasElement.cpp:
  21217. (WebCore::HTMLCanvasElement::getContext): Passing in information into
  21218. the CanvasRenderingContext2D constructor to eliminate some uses of document
  21219. inside of the CanvasRenderingContext2D class.
  21220. * html/HTMLCanvasElement.h:
  21221. (WebCore::HTMLCanvasElement::renderBox): Added to disambiguate between the
  21222. two parent class versions of the method.
  21223. (WebCore::HTMLCanvasElement::computedStyle): Ditto.
  21224. * html/canvas/CanvasRenderingContext2D.cpp: All of these changes are about
  21225. removing document usage either by using a bool that is set in the constructor or
  21226. by calling one of the new methods added to CanvasSurface.
  21227. (WebCore::CanvasRenderingContext2D::CanvasRenderingContext2D):
  21228. (WebCore::CanvasRenderingContext2D::clearPathForDashboardBackwardCompatibilityMode):
  21229. (WebCore::CanvasRenderingContext2D::checkOrigin):
  21230. (WebCore::CanvasRenderingContext2D::prepareGradientForDashboard):
  21231. (WebCore::CanvasRenderingContext2D::createPattern):
  21232. (WebCore::CanvasRenderingContext2D::setFont):
  21233. (WebCore::CanvasRenderingContext2D::drawTextInternal):
  21234. * html/canvas/CanvasRenderingContext2D.h:
  21235. * html/canvas/WebGLRenderingContext.cpp: Removed some duplicate includes.
  21236. (WebCore::WebGLRenderingContext::markContextChanged): Reduced calls to renderBox
  21237. as it may become slightly more expensive in the future.
  21238. (WebCore::WebGLRenderingContext::reshape): Ditto.
  21239. 2010-04-02 Zhenyao Mo <zmo@google.com>
  21240. Reviewed by Eric Seidel.
  21241. Implement and test new framebuffer object attachment behavior.
  21242. https://bugs.webkit.org/show_bug.cgi?id=35611
  21243. Test: fast/canvas/webgl/framebuffer-object-attachment.html
  21244. * html/canvas/WebGLFramebuffer.cpp: Keep track of attached stencil/depth renderbuffers in WebGLFramebuffer.
  21245. (WebCore::WebGLFramebuffer::WebGLFramebuffer):
  21246. (WebCore::WebGLFramebuffer::setIsAttached):
  21247. * html/canvas/WebGLFramebuffer.h: Ditto.
  21248. (WebCore::WebGLFramebuffer::isDepthAttached):
  21249. (WebCore::WebGLFramebuffer::isStencilAttached):
  21250. (WebCore::WebGLFramebuffer::isDepthStencilAttached):
  21251. * html/canvas/WebGLRenderbuffer.cpp: Keep track of internalformat.
  21252. (WebCore::WebGLRenderbuffer::WebGLRenderbuffer):
  21253. * html/canvas/WebGLRenderbuffer.h: Ditto.
  21254. (WebCore::WebGLRenderbuffer::setInternalformat):
  21255. (WebCore::WebGLRenderbuffer::getInternalformat):
  21256. * html/canvas/WebGLRenderingContext.cpp:
  21257. (WebCore::WebGLRenderingContext::framebufferRenderbuffer): Detect stencil/depth buffer conflicts.
  21258. (WebCore::WebGLRenderingContext::getFramebufferAttachmentParameter): Handling DEPTH_STENCIL case.
  21259. (WebCore::WebGLRenderingContext::getRenderbufferParameter): Get correct WebGL internalformat.
  21260. (WebCore::WebGLRenderingContext::renderbufferStorage): Detect illegal enums.
  21261. * html/canvas/WebGLRenderingContext.idl: Add DEPTH_STENCIL enums.
  21262. * platform/graphics/GraphicsContext3D.h: Add DEPTH_STENCIL enums.
  21263. (WebCore::GraphicsContext3D::):
  21264. * platform/graphics/mac/GraphicsContext3DMac.cpp: Map to correct DEPTH_STENCIL format.
  21265. (WebCore::GraphicsContext3D::framebufferRenderbuffer):
  21266. (WebCore::GraphicsContext3D::renderbufferStorage):
  21267. (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
  21268. 2010-04-02 Kent Tamura <tkent@chromium.org>
  21269. Reviewed by Darin Adler.
  21270. Form control state shouldn't be restored for hidden inputs.
  21271. https://bugs.webkit.org/show_bug.cgi?id=26241
  21272. To fix this issue, we don't save values if it is not changed from
  21273. the default value.
  21274. Updating the value IDL attribute of some controls such as
  21275. type=hidden also updates the value content attribute, and it's
  21276. impossible to distinguish the initial value and the current
  21277. value. The values of such controls are not saved. It won't be a
  21278. problem because we want to save and restore user-edited values.
  21279. Test: fast/forms/state-restore-to-non-edited-controls.html
  21280. * html/HTMLInputElement.cpp:
  21281. (WebCore::HTMLInputElement::saveFormControlState):
  21282. Do not save the value if it is same as the default value.
  21283. * html/HTMLTextAreaElement.cpp:
  21284. (WebCore::HTMLTextAreaElement::saveFormControlState): ditto.
  21285. 2010-04-02 Kent Tamura <tkent@chromium.org>
  21286. Reviewed by Darin Adler.
  21287. Forms with autocomplete=off should not consume saved state
  21288. https://bugs.webkit.org/show_bug.cgi?id=36762
  21289. Introduce Element::shouldSaveAndRestoreFormControlState() to check
  21290. if we should save and restore control state.
  21291. Test: fast/forms/state-restore-to-non-autocomplete-form.html
  21292. * dom/Document.cpp:
  21293. (WebCore::Document::formElementsState): Check shouldSaveAndRestoreFormControlState().
  21294. * dom/Element.h:
  21295. (WebCore::Element::shouldSaveAndRestoreFormControlState): Added. It just returns true.
  21296. * html/HTMLFormControlElement.cpp:
  21297. (WebCore::HTMLFormControlElementWithState::autoComplete):
  21298. Added. It return autocomplete state of the form.
  21299. (WebCore::HTMLFormControlElementWithState::shouldSaveAndRestoreFormControlState):
  21300. Added. It returns the result of autoComplete().
  21301. (WebCore::HTMLFormControlElementWithState::finishParsingChildren):
  21302. Do not restore state if shouldSaveAndRestoreFormControlState() is false.
  21303. * html/HTMLFormControlElement.h: Declare autoComplete() and overriding methods.
  21304. * html/HTMLInputElement.cpp:
  21305. (WebCore::HTMLInputElement::autoComplete):
  21306. Reduce code by using autoComplete() of the parent class.
  21307. (WebCore::HTMLInputElement::saveFormControlState):
  21308. Remove the autoComplete() check. Document::formElementsState() does equivalent check.
  21309. 2010-04-02 Simon Fraser <simon.fraser@apple.com>
  21310. Reviewed by Darin Adler.
  21311. Very bad scrolling-performance with the Trackpad at http://www.apple.com/ipad/app-store/
  21312. https://bugs.webkit.org/show_bug.cgi?id=36978
  21313. When we update compositing layers (which can happen on scrolling, when there are fixed position elements
  21314. on the page), we can end up redundantly setting images as layer contents if we have to color-correct
  21315. the image. This is because we call CGImageCreateCopyWithColorSpace(), which hands back a new image
  21316. every time.
  21317. Avoid this by storing a reference to the original uncorrected image, which is used to then
  21318. avoid work if the image does not change.
  21319. * platform/graphics/mac/GraphicsLayerCA.h:
  21320. * platform/graphics/mac/GraphicsLayerCA.mm:
  21321. (WebCore::GraphicsLayerCA::setContentsToImage):
  21322. 2010-04-02 Simon Fraser <simon.fraser@apple.com>
  21323. Reviewed by Darin Adler.
  21324. Avoid doing work in FrameView::scrollPositionChanged() if there are no fixed position elements
  21325. https://bugs.webkit.org/show_bug.cgi?id=36994
  21326. r55890 added knowledge to FrameView about whether it contains any fixed-position elements. We can
  21327. use this to avoid updating widget positions, and compositing layer positions when possible.
  21328. * page/FrameView.cpp:
  21329. (WebCore::FrameView::scrollPositionChanged):
  21330. * page/FrameView.h:
  21331. (WebCore::FrameView::hasFixedObjects):
  21332. 2010-04-02 Nate Chapin <japhet@chromium.org>
  21333. Rubber-stamped by Dimitri Glazkov.
  21334. http://trac.webkit.org/changeset/57004 caused
  21335. fast/dom/console-log-stack-overflow.html to fail for Chromium.
  21336. Add check for empty wrappers before using them to create a hidden reference.
  21337. * bindings/scripts/CodeGeneratorV8.pm:
  21338. 2010-04-01 Nate Chapin <japhet@chromium.org>
  21339. Reviewed by Dimitri Glazkov.
  21340. [V8] Generalize (and generate!) the creation of hidden references
  21341. between JS wrappers.
  21342. https://bugs.webkit.org/show_bug.cgi?id=36777
  21343. * Android.v8bindings.mk:
  21344. * WebCore.gypi:
  21345. * bindings/scripts/CodeGeneratorV8.pm: Generate calls to setHiddenReference() in
  21346. attribute getters.
  21347. * bindings/v8/V8DOMWrapper.cpp:
  21348. (WebCore::V8DOMWrapper::setHiddenReference): Split common logic out of hidden setHiddenWindowReference
  21349. (WebCore::V8DOMWrapper::setHiddenWindowReference): Now contains logic specific to putting a
  21350. hidden reference on a global object.
  21351. (WebCore::globalObjectPrototypeIsDOMWindow): Be more thorough in the COMPILE_ASSERTs.
  21352. (WebCore::V8DOMWrapper::convertEventTargetToV8Object): Cleanup: Remove a duplicate if statement.
  21353. * bindings/v8/V8DOMWrapper.h:
  21354. * bindings/v8/WrapperTypeInfo.h:
  21355. * bindings/v8/custom/V8BarInfoCustom.cpp: Removed.
  21356. * bindings/v8/custom/V8CSSStyleSheetCustom.cpp:
  21357. (WebCore::toV8):
  21358. * bindings/v8/custom/V8DOMSelectionCustom.cpp: Removed.
  21359. * bindings/v8/custom/V8HistoryCustom.cpp:
  21360. * bindings/v8/custom/V8LocationCustom.cpp:
  21361. * bindings/v8/custom/V8MessageChannelConstructor.cpp:
  21362. (WebCore::V8MessageChannel::constructorCallback):
  21363. * bindings/v8/custom/V8NamedNodeMapCustom.cpp:
  21364. (WebCore::toV8):
  21365. * bindings/v8/custom/V8NavigatorCustom.cpp: Removed.
  21366. * bindings/v8/custom/V8ScreenCustom.cpp: Removed.
  21367. * bindings/v8/custom/V8StyleSheetCustom.cpp:
  21368. (WebCore::toV8):
  21369. * loader/appcache/DOMApplicationCache.h:
  21370. (WebCore::DOMApplicationCache::frame): Add frame() accessor.
  21371. 2010-04-01 Pavel Feldman <pfeldman@chromium.org>
  21372. Reviewed by Timothy Hatcher.
  21373. Web Inspector: start editing DOM and styles on click-and-pause.
  21374. https://bugs.webkit.org/show_bug.cgi?id=36965
  21375. * inspector/front-end/ElementsTreeOutline.js:
  21376. (WebInspector.ElementsTreeElement.prototype.onattach):
  21377. (WebInspector.ElementsTreeElement.prototype.selectOnMouseDown):
  21378. (WebInspector.ElementsTreeElement.prototype.ondblclick):
  21379. (WebInspector.ElementsTreeElement.prototype._handleClickAndPause):
  21380. (WebInspector.ElementsTreeElement.prototype._startEditingTarget):
  21381. (WebInspector.ElementsTreeElement.prototype._startEditingAttribute):
  21382. (WebInspector.ElementsTreeElement.prototype._startEditingTextNode):
  21383. (WebInspector.ElementsTreeElement.prototype._startEditingTagName):
  21384. (WebInspector.ElementsTreeElement.prototype._startEditingAsHTML):
  21385. * inspector/front-end/StylesSidebarPane.js:
  21386. (WebInspector.StylePropertiesSection.prototype._handleEmptySpaceDoubleClick):
  21387. (WebInspector.StylePropertiesSection.prototype._handleSelectorClick):
  21388. (WebInspector.StylePropertiesSection.prototype._handleSelectorClickAndPause):
  21389. (WebInspector.StylePropertiesSection.prototype._handleSelectorDoubleClick):
  21390. (WebInspector.StylePropertiesSection.prototype._startEditingOnMouseEvent):
  21391. (WebInspector.StylePropertyTreeElement.prototype.onattach):
  21392. (WebInspector.StylePropertyTreeElement.prototype):
  21393. * inspector/front-end/inspector.css:
  21394. * inspector/front-end/inspector.js:
  21395. * inspector/front-end/treeoutline.js:
  21396. (TreeElement.prototype._attach):
  21397. (TreeElement.treeElementMouseDown):
  21398. (TreeElement.prototype.selectOnMouseDown):
  21399. 2010-04-02 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  21400. Unreviewed build fix when building --no-svg.
  21401. Build fix after r56941. Add ENABLE(SVG) guard.
  21402. * rendering/RenderLayer.cpp:
  21403. (WebCore::RenderLayer::updateLayerPositions):
  21404. 2010-04-02 Yury Semikhatsky <yurys@chromium.org>
  21405. Reviewed by Pavel Feldman.
  21406. Implement InspectorFrontendHost::showContextMenu for Chromium.
  21407. Move inspector frontend context menu code from InspectorFrontendClient to InspectorFrontendHost as it's platform independent.
  21408. https://bugs.webkit.org/show_bug.cgi?id=36817
  21409. * WebCore.Inspector.exp:
  21410. * bindings/v8/custom/V8InspectorFrontendHostCustom.cpp:
  21411. (WebCore::V8InspectorFrontendHost::showContextMenuCallback):
  21412. * inspector/InspectorFrontendClient.h:
  21413. * inspector/InspectorFrontendClientLocal.cpp:
  21414. (WebCore::InspectorFrontendClientLocal::InspectorFrontendClientLocal):
  21415. (WebCore::InspectorFrontendClientLocal::~InspectorFrontendClientLocal):
  21416. (WebCore::InspectorFrontendClientLocal::windowObjectCleared):
  21417. * inspector/InspectorFrontendClientLocal.h:
  21418. * inspector/InspectorFrontendHost.cpp:
  21419. (WebCore::FrontendMenuProvider::create):
  21420. (WebCore::FrontendMenuProvider::disconnect):
  21421. (WebCore::FrontendMenuProvider::FrontendMenuProvider):
  21422. (WebCore::FrontendMenuProvider::~FrontendMenuProvider):
  21423. (WebCore::FrontendMenuProvider::populateContextMenu):
  21424. (WebCore::FrontendMenuProvider::contextMenuItemSelected):
  21425. (WebCore::FrontendMenuProvider::contextMenuCleared):
  21426. (WebCore::InspectorFrontendHost::InspectorFrontendHost):
  21427. (WebCore::InspectorFrontendHost::disconnectClient):
  21428. (WebCore::InspectorFrontendHost::showContextMenu):
  21429. * inspector/InspectorFrontendHost.h:
  21430. (WebCore::InspectorFrontendHost::create):
  21431. 2010-04-02 Ilya Tikhonovsky <loislo@chromium.org>
  21432. Reviewed by Pavel Feldman.
  21433. WebInspector: Timeline Overview pane should support short records filtering.
  21434. https://bugs.webkit.org/show_bug.cgi?id=37020
  21435. * English.lproj/localizedStrings.js:
  21436. * inspector/front-end/TimelineOverviewPane.js:
  21437. (WebInspector.TimelineOverviewPane.prototype.update.markTimeline):
  21438. (WebInspector.TimelineOverviewPane.prototype.update):
  21439. * inspector/front-end/TimelinePanel.js:
  21440. (WebInspector.TimelinePanel):
  21441. (WebInspector.TimelinePanel.prototype._createStatusbarButtons):
  21442. (WebInspector.TimelinePanel.prototype._toggleFilterButtonClicked):
  21443. (WebInspector.TimelinePanel.prototype._refresh):
  21444. (WebInspector.TimelinePanel.prototype._addToRecordsWindow):
  21445. (WebInspector.TimelinePanel.FormattedRecord.prototype.isLong):
  21446. 2010-04-02 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  21447. Reviewed by Eric Seidel.
  21448. Accept XHTML-MP content type as XHTML content
  21449. https://bugs.webkit.org/show_bug.cgi?id=34262
  21450. Enable processing XHTML-MP mime type as an XHTML document
  21451. even if XHTML-MP support is not enabled.
  21452. * platform/MIMETypeRegistry.cpp:
  21453. (WebCore::initializeSupportedNonImageMimeTypes):
  21454. 2010-04-02 Adam Barth <abarth@webkit.org>
  21455. Reviewed by Daniel Bates.
  21456. Make XSSAuditor go fast with large POST data
  21457. https://bugs.webkit.org/show_bug.cgi?id=36694
  21458. There were two things slowing down this bechmark:
  21459. 1) Searching the large POST data for each inline event handler. To
  21460. make this faster, we now use a suffix tree to fast-reject strings
  21461. that don't appear as substrings of the POST data.
  21462. 2) The next largest cost was flattening the form data into a string.
  21463. To make this fater, we now use the form data object itself as a key
  21464. and only flatten once.
  21465. * GNUmakefile.am:
  21466. * WebCore.gypi:
  21467. * WebCore.vcproj/WebCore.vcproj:
  21468. * WebCore.xcodeproj/project.pbxproj:
  21469. * page/XSSAuditor.cpp:
  21470. (WebCore::XSSAuditor::CachingURLCanonicalizer::canonicalizeURL):
  21471. (WebCore::XSSAuditor::CachingURLCanonicalizer::clear):
  21472. (WebCore::XSSAuditor::XSSAuditor):
  21473. (WebCore::XSSAuditor::findInRequest):
  21474. * page/XSSAuditor.h:
  21475. (WebCore::XSSAuditor::CachingURLCanonicalizer::CachingURLCanonicalizer):
  21476. (WebCore::XSSAuditor::CachingURLCanonicalizer::generation):
  21477. * platform/text/SuffixTree.h: Added.
  21478. (WebCore::UnicodeCodebook::codeWord):
  21479. (WebCore::UnicodeCodebook::):
  21480. (WebCore::ASCIICodebook::codeWord):
  21481. (WebCore::ASCIICodebook::):
  21482. (WebCore::SuffixTree::SuffixTree):
  21483. (WebCore::SuffixTree::mightContain):
  21484. (WebCore::SuffixTree::Node::Node):
  21485. (WebCore::SuffixTree::Node::~Node):
  21486. (WebCore::SuffixTree::Node::at):
  21487. (WebCore::SuffixTree::build):
  21488. 2010-04-02 Roland Steiner <rolandsteiner@chromium.org>
  21489. Reviewed by Eric Seidel.
  21490. Bug 36741 - Duplicate, slightly divergent implementation of Position[Iterator]::isCandidate()
  21491. https://bugs.webkit.org/show_bug.cgi?id=36741
  21492. Patch: change Position::isCandididate() to call the PositionIterator::isCandidate() version.
  21493. Update PositionIterator::isCandidate() to mirror Position::isCandidate().
  21494. Rationale: PositionIterator::isCandidate() is called in a tight loop within
  21495. next/previousCandidate(). Also, creation of a PositionIterator from a Position
  21496. is cheaper than vice-versa.
  21497. Tests: ran all tests in 'editing'.
  21498. * dom/Position.cpp:
  21499. (WebCore::Position::isCandidate):
  21500. * dom/PositionIterator.cpp:
  21501. (WebCore::PositionIterator::isCandidate):
  21502. 2010-04-02 Steve Falkenburg <sfalken@apple.com>
  21503. Reviewed by Dan Bernstein.
  21504. Database code falsely returns errors due to errant pointer check
  21505. https://bugs.webkit.org/show_bug.cgi?id=37014
  21506. r56943 introduced a check to see if there were any unprocessed
  21507. SQL commands after calling sqlite3_prepare16_v2.
  21508. Accessing the remaining data via pointer wasn't possible since
  21509. the query string is deallocated immediately after the
  21510. query runs. The String returned from strippedWhiteSpace
  21511. goes out of scope at that point.
  21512. Fix is to store the strippedWhiteSpace in a temporary String
  21513. so we can access it via character ptr later in the function.
  21514. * platform/sql/SQLiteStatement.cpp:
  21515. (WebCore::SQLiteStatement::prepare):
  21516. 2010-04-01 MORITA Hajime <morrita@google.com>
  21517. Reviewed by Darin Adler.
  21518. setting document.title doesn't change document.title value
  21519. https://bugs.webkit.org/show_bug.cgi?id=36802
  21520. An entity of "value" argument on HTMLTitleElement::setTitle() could be
  21521. Document::m_title and be changed during HTMLTitleElement::setText().
  21522. Fix copying the argument to keep the original value.
  21523. Test: fast/dom/Document/title-with-multiple-children.html
  21524. * html/HTMLTitleElement.cpp:
  21525. (WebCore::HTMLTitleElement::setText):
  21526. 2010-04-01 Luiz Agostini <luiz.agostini@openbossa.org>
  21527. Reviewed by Kenneth Rohde Christiansen.
  21528. [Qt] Maemo5 theme - <select multiple> custom rendering
  21529. https://bugs.webkit.org/show_bug.cgi?id=36369
  21530. Customizing rendering of <select multiple> elements in Maemo5.
  21531. * platform/qt/Maemo5Webstyle.cpp:
  21532. (Maemo5WebStyle::drawMultipleComboButton):
  21533. (Maemo5WebStyle::drawSimpleComboButton):
  21534. (Maemo5WebStyle::getButtonImageSize):
  21535. (Maemo5WebStyle::findComboButton):
  21536. (Maemo5WebStyle::drawComplexControl):
  21537. * platform/qt/Maemo5Webstyle.h:
  21538. 2010-04-01 Kinuko Yasuda <kinuko@chromium.org>
  21539. Reviewed by Dmitry Titov.
  21540. Add FileThread for async file operation support in FileReader and FileWriter
  21541. https://bugs.webkit.org/show_bug.cgi?id=36896
  21542. Add FileThread for async file operation support for FileReader and
  21543. FileWriter. The patch also adds ENABLE_FILE_READER or
  21544. ENABLE_FILE_WRITER build flags/defines. Both flags are disabled
  21545. by default.
  21546. No new tests, will add ones when after adding modules which use the thread.
  21547. * Configurations/FeatureDefines.xcconfig:
  21548. * GNUmakefile.am:
  21549. * WebCore.gypi:
  21550. * WebCore.pro:
  21551. * WebCore.vcproj/WebCore.vcproj:
  21552. * WebCore.xcodeproj/project.pbxproj:
  21553. * dom/ScriptExecutionContext.cpp:
  21554. (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
  21555. (WebCore::ScriptExecutionContext::fileThread):
  21556. * dom/ScriptExecutionContext.h:
  21557. * html/FileThread.cpp: Added.
  21558. (WebCore::FileThread::FileThread):
  21559. (WebCore::FileThread::~FileThread):
  21560. (WebCore::FileThread::start):
  21561. (WebCore::FileThread::stop):
  21562. (WebCore::FileThread::postTask):
  21563. (WebCore::SameFilePredicate::SameFilePredicate):
  21564. (WebCore::SameFilePredicate::operator()):
  21565. (WebCore::FileThread::removeTask):
  21566. (WebCore::FileThread::fileThreadStart):
  21567. (WebCore::FileThread::runLoop):
  21568. * html/FileThread.h: Added.
  21569. (WebCore::FileThread::create):
  21570. (WebCore::FileThread::Task::Task):
  21571. (WebCore::FileThread::Task::~Task):
  21572. (WebCore::FileThread::Task::fileHandle):
  21573. * platform/Logging.cpp:
  21574. (WebCore::):
  21575. (WebCore::getChannelFromName):
  21576. * platform/Logging.h:
  21577. 2010-04-01 Sheriff Bot <webkit.review.bot@gmail.com>
  21578. Unreviewed. Rollout of http://trac.webkit.org/changeset/56930
  21579. https://bugs.webkit.org/show_bug.cgi?id=36977
  21580. * accessibility/AccessibilityImageMapLink.cpp:
  21581. (WebCore::AccessibilityImageMapLink::accessibilityDescription):
  21582. 2010-04-01 MORITA Hajime <morrita@google.com>
  21583. Reviewed by Darin Adler.
  21584. WebCore::Document::updateLayoutIgnorePendingStylesheets NULL pointer
  21585. https://bugs.webkit.org/show_bug.cgi?id=31680
  21586. Ownerless nodes leads a crash on DOMSelection APIs
  21587. https://bugs.webkit.org/show_bug.cgi?id=36800
  21588. Added guards nodes from foreign documents to DOMSelection APIs.
  21589. Tests: editing/selection/DOMSelection-DocumentType.html
  21590. editing/selection/DOMSelection-crossing-document.html
  21591. * editing/VisiblePosition.cpp:
  21592. (WebCore::VisiblePosition::canonicalPosition):
  21593. * page/DOMSelection.cpp:
  21594. (WebCore::DOMSelection::collapse):
  21595. (WebCore::DOMSelection::setBaseAndExtent):
  21596. (WebCore::DOMSelection::setPosition):
  21597. (WebCore::DOMSelection::extend):
  21598. (WebCore::DOMSelection::containsNode):
  21599. (WebCore::DOMSelection::isValidForPosition):
  21600. * page/DOMSelection.h:
  21601. 2010-04-01 Chris Evans <cevans@chromium.org>
  21602. Reviewed by Adam Barth.
  21603. Fix a NULL pointer crash if @import fails to load a stylesheet.
  21604. https://bugs.webkit.org/show_bug.cgi?id=36804
  21605. Test: fast/xsl/xslt-bad-import-uri.html
  21606. * xml/XSLStyleSheetLibxslt.cpp:
  21607. (WebCore::XSLStyleSheet::parseString):
  21608. Handle an empty string gracefully. An empty string has a NULL
  21609. buffer, which we pass in to xmlCreateMemoryParserCtxt(). It returns
  21610. NULL if it is passed a NULL buffer.
  21611. In the top-level XSL case, the current code does not crash "by luck"
  21612. because the other APIs used can handle a NULL argument. In the
  21613. @import case, additional code runs which will deference the NULL.
  21614. 2010-04-01 Alexey Proskuryakov <ap@apple.com>
  21615. Reviewed by Darin Adler.
  21616. https://bugs.webkit.org/show_bug.cgi?id=36854
  21617. <rdar://problem/7811668> REGRESSION (r47291): Body from cross origin preflight response
  21618. is prepended to the actual response body
  21619. Tests: http/tests/xmlhttprequest/access-control-response-with-body-sync.html
  21620. http/tests/xmlhttprequest/access-control-response-with-body.html
  21621. * loader/DocumentThreadableLoader.cpp: (WebCore::DocumentThreadableLoader::didReceiveData):
  21622. Don't send data to the client when handling a preflight request.
  21623. 2010-04-01 Ada Chan <adachan@apple.com>
  21624. Reviewed by Darin Adler.
  21625. Change DatabaseTracker::deleteOrigin() to return true if there are no errors in deleting the origin.
  21626. Ditto for DatabaseTracker::deleteDatabase().
  21627. https://bugs.webkit.org/show_bug.cgi?id=36988
  21628. * storage/DatabaseTracker.cpp:
  21629. (WebCore::DatabaseTracker::deleteOrigin):
  21630. (WebCore::DatabaseTracker::deleteDatabase):
  21631. * storage/DatabaseTracker.h:
  21632. 2010-04-01 Simon Fraser <simon.fraser@apple.com>
  21633. No review.
  21634. Remove some casts that I indended to remove before committing r56948.
  21635. * rendering/RenderTreeAsText.cpp:
  21636. (WebCore::writeRenderObject):
  21637. (WebCore::write):
  21638. 2010-04-01 Simon Fraser <simon.fraser@apple.com>
  21639. Reviewed by Darin Adler.
  21640. Assertion failure (willBeComposited == needsToBeComposited(layer)) in
  21641. RenderLayerCompositor::computeCompositingRequirements() on hulu.com
  21642. https://bugs.webkit.org/show_bug.cgi?id=36516
  21643. Fix assertions added in r56017. That changed replaced calls to needsToBeComposited()
  21644. with use of the local 'willBeComposited' variable, but that fails to take into
  21645. account the fact that needsToBeComposited() also tests layer->isSelfPaintingLayer().
  21646. Fix by adding a canBeComposited() method that we call before testing
  21647. whether the layer should go into compositing mode.
  21648. Test: compositing/self-painting-layers2.html
  21649. * rendering/RenderLayerCompositor.cpp:
  21650. (WebCore::RenderLayerCompositor::calculateCompositedBounds): Repace use of isSelfPaintingLayer()
  21651. with a call to canBeComposited().
  21652. (WebCore::RenderLayerCompositor::computeCompositingRequirements): Call canBeComposited() to ensure
  21653. that we only toggle 'willBeComposited' for layers that can.
  21654. (WebCore::RenderLayerCompositor::needsToBeComposited): Call canBeComposited().
  21655. (WebCore::RenderLayerCompositor::canBeComposited): Test if compositing is enabled, and whether
  21656. the layer is self-painting.
  21657. * rendering/RenderLayerCompositor.h: Add canBeComposited().
  21658. 2010-04-01 Simon Fraser <simon.fraser@apple.com>
  21659. Reviewed by Darin Adler.
  21660. https://bugs.webkit.org/show_bug.cgi?id=36980
  21661. Add object addresses to debug showLayerTree() output.
  21662. Add the ability to print RenderLayer and RenderObject addresses in the showLayerTree()
  21663. output.
  21664. * platform/text/TextStream.cpp:
  21665. (WebCore::TextStream::operator<<):
  21666. * platform/text/TextStream.h:
  21667. * rendering/RenderLayer.cpp:
  21668. (showLayerTree):
  21669. * rendering/RenderTreeAsText.cpp:
  21670. (WebCore::writeRenderObject):
  21671. (WebCore::write):
  21672. * rendering/RenderTreeAsText.h:
  21673. 2010-03-29 Dumitru Daniliuc <dumi@chromium.org>
  21674. Reviewed by Dimitri Glazkov.
  21675. Changing SQLiteStatement::prepare() to return an error when it's
  21676. given a string that has more than one statement in it. Currently,
  21677. everything past the first statement is silently ignored.
  21678. Test: storage/executesql-accepts-only-one-statement.html
  21679. * platform/sql/SQLiteStatement.cpp:
  21680. (WebCore::SQLiteStatement::prepare):
  21681. 2010-04-01 James Robinson <jamesr@chromium.org>
  21682. Reviewed by Simon Fraser.
  21683. Keeps a transient optimistic offset to the root in RenderLayer::updateLayerPositions
  21684. https://bugs.webkit.org/show_bug.cgi?id=33520
  21685. RenderLayer::updateLayerPositions() makes a recursive walk through all RenderLayers and updates the repaint rectangles on each.
  21686. These rectangles have to be calculated in the repaint container's coordinates using RenderObject::mapLocalToContainer to walk
  21687. up to the repaint container. This patch keeps track of the offset to the root and uses that offset instead of walking back up to
  21688. the root every time.
  21689. Tests: fast/layers/nested-layers-1.html
  21690. fast/layers/nested-layers-2.html
  21691. fast/layers/nested-layers-3.html
  21692. fast/layers/nested-layers-4.html
  21693. * page/FrameView.cpp:
  21694. (WebCore::FrameView::layout):
  21695. * rendering/RenderBox.cpp:
  21696. (WebCore::RenderBox::outlineBoundsForRepaint):
  21697. * rendering/RenderBox.h:
  21698. * rendering/RenderLayer.cpp:
  21699. (WebCore::RenderLayer::updateLayerPositions):
  21700. * rendering/RenderLayer.h:
  21701. * rendering/RenderObject.h:
  21702. (WebCore::RenderObject::outlineBoundsForRepaint):
  21703. * rendering/RenderSVGModelObject.cpp:
  21704. (WebCore::RenderSVGModelObject::outlineBoundsForRepaint):
  21705. * rendering/RenderSVGModelObject.h:
  21706. 2010-04-01 Daniel Bates <dbates@rim.com>
  21707. Reviewed by Darin Adler.
  21708. https://bugs.webkit.org/show_bug.cgi?id=36901
  21709. Removed functions Range::operator == and Range::operator != as they
  21710. were using C++ code that was not sound and hence may have undefined
  21711. behavior.
  21712. Test case: manual-tests/crash-on-find-with-no-selection.html
  21713. * dom/Range.cpp:
  21714. (WebCore::areRangesEqual): Added.
  21715. * dom/Range.h:
  21716. * editing/markup.cpp:
  21717. (WebCore::createMarkup): Modified to call WebCore::areRangesEqual.
  21718. * manual-tests/crash-on-find-with-no-selection.html: Added.
  21719. * page/Frame.cpp:
  21720. (WebCore::Frame::findString): Modified to call WebCore::areRangesEqual.
  21721. 2010-04-01 Geoffrey Garen <ggaren@apple.com>
  21722. Reviewed by Sam Weinig.
  21723. Synchronous rendering when setting form control values slows down JavaScript
  21724. https://bugs.webkit.org/show_bug.cgi?id=36967
  21725. This patch basically reverts http://trac.webkit.org/changeset/19006.
  21726. Dan asked me to investigate why 19006 is no longer needed. I have two answers:
  21727. (1) I was also able to remove the synchronous call to updateFromElement().
  21728. That call was the proximate cause of the crash that 19006 fixed.
  21729. (2) updateFromElement() no longer calls HTMLElement::setInnerText()
  21730. in the way that it used to. (However, it doesn't seem prudent to
  21731. rely on this happy coincidence.)
  21732. * html/HTMLInputElement.cpp:
  21733. (WebCore::HTMLInputElement::setValue): Simplified some logic here. Moved
  21734. setNeedsValidityCheck() outside of individual 'if' clauses, since they all
  21735. called it.
  21736. Removed call to updateStyleIfNeeded(), which does rendering synchronously,
  21737. since that was the performance problem. (setNeedsStyleRecalc() ensures
  21738. that rendering will happen asynchronously.) Also removed comment about
  21739. ordering dangers introduced by updateStyleIfNeeded().
  21740. Removed call to updateFromElement(), since it's dangerous and also a minor
  21741. performance problem. (setNeedsStyleRecalc() ensures that updateFromElement()
  21742. will happen asynchronously, too.)
  21743. * html/HTMLTextAreaElement.cpp:
  21744. (WebCore::HTMLTextAreaElement::setNonDirtyValue): Ditto. Here, I had to
  21745. add a call to setNeedsStyleRecalc(), since there wasn't one before.
  21746. 2010-04-01 Ilya Tikhonovsky <loislo@chromium.org>
  21747. Reviewed by Pavel Feldman.
  21748. Web Inspector: Sometimes js code can detach page from it's frame and in that case
  21749. Dispatch Events will stay in the TimelineAgent's events stack. Only immediate events will
  21750. appear at frontend.
  21751. https://bugs.webkit.org/show_bug.cgi?id=36890
  21752. * bindings/v8/V8Proxy.cpp:
  21753. (WebCore::V8Proxy::callFunction):
  21754. * dom/Node.cpp:
  21755. (WebCore::Node::dispatchGenericEvent):
  21756. * page/DOMWindow.cpp:
  21757. (WebCore::DOMWindow::dispatchEvent):
  21758. 2010-04-01 Chris Fleizach <cfleizach@apple.com>
  21759. Reviewed by Beth Dakin.
  21760. Bug 36977 - aria-label doesn't work on image map area
  21761. https://bugs.webkit.org/show_bug.cgi?id=36977
  21762. Test: platform/mac/accessibility/area-with-aria-label.html
  21763. * accessibility/AccessibilityImageMapLink.cpp:
  21764. (WebCore::AccessibilityImageMapLink::accessibilityDescription):
  21765. 2010-04-01 Simon Fraser <simon.fraser@apple.com>
  21766. Reviewed by Dan Bernstein.
  21767. Assertion failure: !repaintContainer || repaintContainer == this
  21768. https://bugs.webkit.org/show_bug.cgi?id=36672
  21769. RenderText's implementation of clippedOverflowRectForRepaint() uses containingBlock()
  21770. to get the renderer to use for computing the repaint rect. However, the renderer returned
  21771. by containingBlock() may be an ancestor of the repaintContainer, and containingBlock()
  21772. doesn't have the 'repaintContainerSkipped' logic that container() has.
  21773. So in this case, check to see whether repaintContainer is actually a descendant of the
  21774. containing block, and in that case just repaint the entire repaintContainer.
  21775. Test: compositing/repaint/inline-repaint-container.html
  21776. * rendering/RenderText.cpp:
  21777. (WebCore::RenderText::clippedOverflowRectForRepaint):
  21778. 2010-04-01 Csaba Osztrogonác <ossy@webkit.org>
  21779. Reviewed by Jian Li.
  21780. [Qt] REGRESSION(r56869): Windows build is broken
  21781. https://bugs.webkit.org/show_bug.cgi?id=36929
  21782. * WebCore.pro: LIBS += -lOle32 added.
  21783. * platform/UUID.cpp: Define ARRAYSIZE macro if it isn't defined before.
  21784. 2010-04-01 Chris Fleizach <cfleizach@apple.com>
  21785. Reviewed by Beth Dakin.
  21786. Bug 36968 - 1 crash in Safari at com.apple.WebCore: WebCore::Element::getAttribute const
  21787. https://bugs.webkit.org/show_bug.cgi?id=36968
  21788. Test: accessibility/crash-with-noelement-selectbox.html
  21789. When a <select> element had no options, the selectedIndex == -1 and that was being
  21790. used to index into an empty array.
  21791. * accessibility/AccessibilityRenderObject.cpp:
  21792. (WebCore::AccessibilityRenderObject::stringValue):
  21793. 2010-04-01 MORITA Hajime <morrita@google.com>
  21794. Reviewed by Shinichiro Hamaji.
  21795. https://bugs.webkit.org/show_bug.cgi?id=36948
  21796. Refactoring: Position::primaryDirection() should be extracted.
  21797. No new tests. No functinal change.
  21798. * dom/Position.cpp:
  21799. (WebCore::Position::getInlineBoxAndOffset):
  21800. (WebCore::Position::primaryDirection): Added
  21801. * dom/Position.h:
  21802. * editing/VisiblePosition.cpp:
  21803. (WebCore::VisiblePosition::leftVisuallyDistinctCandidate):
  21804. (WebCore::VisiblePosition::rightVisuallyDistinctCandidate):
  21805. 2010-04-01 Alexander Pavlov <apavlov@chromium.org>
  21806. Reviewed by Pavel Feldman.
  21807. Web Inspector: Audits: fix parsing of injected script-evaluated result for CssInHeadRule
  21808. https://bugs.webkit.org/show_bug.cgi?id=36952
  21809. * inspector/front-end/AuditRules.js:
  21810. (WebInspector.AuditRules.CssInHeadRule.prototype.doRun):
  21811. 2010-03-31 Jeremy Orlow <jorlow@chromium.org>
  21812. Reviewed by Nate Chapin.
  21813. Misc IndexedDatabase cleanup
  21814. https://bugs.webkit.org/show_bug.cgi?id=36889
  21815. No functional changes.
  21816. * bindings/v8/custom/V8CustomIDBCallbacks.h:
  21817. (WebCore::V8CustomIDBCallbacks::onSuccess):
  21818. (WebCore::V8CustomIDBCallbacks::onError):
  21819. (WebCore::V8CustomIDBCallbacks::V8CustomIDBCallbacks):
  21820. Get rid of 2 largely redundant bools
  21821. * storage/IndexedDatabase.h:
  21822. * storage/IndexedDatabaseImpl.cpp:
  21823. (WebCore::IndexedDatabaseImpl::open):
  21824. * storage/IndexedDatabaseImpl.h:
  21825. * storage/IndexedDatabaseRequest.cpp:
  21826. (WebCore::IndexedDatabaseRequest::open):
  21827. * storage/IndexedDatabaseRequest.h:
  21828. Plumb the Frame* and style cleanups.
  21829. 2010-03-31 Nikolas Zimmermann <nzimmermann@rim.com>
  21830. Reviewed by Dirk Schulze.
  21831. REGRESSION: document.documentElement.getScreenCTM() returns incorrect matrix.
  21832. https://bugs.webkit.org/show_bug.cgi?id=27183
  21833. Rewrite getCTM() / getScreenCTM() handling in an iterative way, fixing all known problems/limitations.
  21834. The bug mentioned above is actually not a regression, getScreenCTM() only worked before, because we
  21835. did not handle non-SVG CSS box parents properly. When support was added to handle those cases, the
  21836. getScreenCTM() handling was completly off, causing a lot of trouble in real-life SVG applications (carto.net for instance)
  21837. Tests: svg/custom/svgsvgelement-ctm.xhtml (fixed typo, missing unit identifier in CSS 'height' property, leading to incorrect results)
  21838. svg/custom/svgsvgelement-ctm2.xhtml
  21839. svg/custom/svgsvgelement-ctm3.xhtml
  21840. svg/custom/svgsvgelement-ctm4.xhtml
  21841. svg/custom/svgsvgelement-ctm5.xhtml
  21842. * svg/SVGLocatable.cpp:
  21843. (WebCore::SVGLocatable::getBBox):
  21844. (WebCore::SVGLocatable::computeCTM):
  21845. * svg/SVGLocatable.h:
  21846. (WebCore::SVGLocatable::localCoordinateSpaceTransform):
  21847. * svg/SVGSVGElement.cpp:
  21848. (WebCore::SVGSVGElement::localCoordinateSpaceTransform):
  21849. (WebCore::SVGSVGElement::createRenderer):
  21850. * svg/SVGSVGElement.h:
  21851. * svg/SVGStyledElement.cpp:
  21852. (WebCore::SVGStyledElement::localCoordinateSpaceTransform):
  21853. * svg/SVGStyledElement.h:
  21854. * svg/SVGStyledLocatableElement.cpp:
  21855. (WebCore::SVGStyledLocatableElement::getCTM):
  21856. (WebCore::SVGStyledLocatableElement::getScreenCTM):
  21857. * svg/SVGStyledLocatableElement.h:
  21858. (WebCore::SVGStyledLocatableElement::localCoordinateSpaceTransform):
  21859. * svg/SVGStyledTransformableElement.cpp:
  21860. (WebCore::SVGStyledTransformableElement::getCTM):
  21861. (WebCore::SVGStyledTransformableElement::getScreenCTM):
  21862. * svg/SVGStyledTransformableElement.h:
  21863. (WebCore::SVGStyledTransformableElement::localCoordinateSpaceTransform):
  21864. * svg/SVGTextElement.cpp:
  21865. (WebCore::SVGTextElement::getCTM):
  21866. (WebCore::SVGTextElement::getScreenCTM):
  21867. * svg/SVGTextElement.h:
  21868. (WebCore::SVGTextElement::localCoordinateSpaceTransform):
  21869. * svg/SVGTransformable.cpp:
  21870. (WebCore::SVGTransformable::SVGTransformable):
  21871. * svg/SVGTransformable.h:
  21872. (WebCore::SVGTransformable::localCoordinateSpaceTransform):
  21873. 2010-04-01 Vitaly Repeshko <vitalyr@chromium.org>
  21874. Reviewed by Darin Fisher.
  21875. [V8] Quick fix for failure in SerializedScriptValue
  21876. https://bugs.webkit.org/show_bug.cgi?id=36943
  21877. This allows the web worker layout tests to pass again.
  21878. * bindings/v8/SerializedScriptValue.h:
  21879. (WebCore::SerializedScriptValue::deserializeAndSetProperty):
  21880. 2010-03-31 MORITA Hajime <morrita@google.com>
  21881. Reviewed by Darin Adler.
  21882. Crash when writing into a detached TITLE element
  21883. https://bugs.webkit.org/show_bug.cgi?id=25567
  21884. Document::setTitle() invoked HTMLTitleElement::setText(), which
  21885. contains DOM tree modification, even when setTitle() is called
  21886. from HTMLTitleElement::childrenChanged(). Fix to skip setText()
  21887. when setTitle() is called childrenChanged() to avoid cascading
  21888. DOM mutations between Document and HTMLTitleElement.
  21889. Test: fast/dom/title-content-write-set.html
  21890. * dom/Document.cpp:
  21891. (WebCore::Document::setTitle):
  21892. 2010-04-01 Roland Steiner <rolandsteiner@chromium.org>
  21893. Reviewed by Darin Adler.
  21894. Bug 36803 - 'Inline-table' workaround for <ruby> broken with ruby support
  21895. https://bugs.webkit.org/show_bug.cgi?id=36803
  21896. Don't use ruby rendering if the underlying 'display' property has been
  21897. changed into a value other than 'inline' or 'block' (such as 'inline-table').
  21898. Test: fast/ruby/ruby-inline-table.html
  21899. * rendering/RenderObject.cpp:
  21900. (WebCore::RenderObject::createObject):
  21901. 2010-03-31 Geoffrey Garen <ggaren@apple.com>
  21902. Reviewed by Darin Adler.
  21903. Crash submitting display:none textarea in a form
  21904. https://bugs.webkit.org/show_bug.cgi?id=36905
  21905. Test: fast/forms/textarea-submit-crash.html
  21906. * html/HTMLTextAreaElement.cpp:
  21907. (WebCore::HTMLTextAreaElement::appendFormData): Do update layout before
  21908. asking our renderer for its text, since we can't rely on our renderer's
  21909. text if layout is needed.
  21910. * rendering/RenderTextControl.cpp:
  21911. (WebCore::RenderTextControl::textWithHardLineBreaks): Don't update layout
  21912. while being asked for our text, since doing so may delete us, causing a crash.
  21913. 2010-03-31 Chris Fleizach <cfleizach@apple.com>
  21914. Reviewed by Darin Adler.
  21915. Bug 36845 - AX: need a way to set the label of a AXWebArea through WebKit
  21916. https://bugs.webkit.org/show_bug.cgi?id=36845
  21917. Provide a way through WebKit to set an accessible label that describes the web area.
  21918. Test: platform/mac/accessibility/html-with-aria-label.html
  21919. * accessibility/AccessibilityObject.h:
  21920. (WebCore::AccessibilityObject::setAccessibleName):
  21921. * accessibility/AccessibilityRenderObject.cpp:
  21922. (WebCore::AccessibilityRenderObject::accessibilityDescription):
  21923. (WebCore::AccessibilityRenderObject::setAccessibleName):
  21924. * accessibility/AccessibilityRenderObject.h:
  21925. 2010-03-31 Mark Rowe <mrowe@apple.com>
  21926. Reviewed by Darin Adler.
  21927. <http://webkit.org/b/36878> REGRESSION: Trailing colon on hostnames (with no port specified) causes "Not allowed to use restricted network port"
  21928. * platform/KURL.cpp:
  21929. (WebCore::KURL::port): Explicitly handle the case of a colon being present in the URL after the host name but with
  21930. no port number before the path. This is handled in the same manner as the colon and port being omitted completely.
  21931. 2010-03-31 Gavin Barraclough <barraclough@apple.com>
  21932. Reviewed by Oliver Hunt.
  21933. Remove dependency on TextBreakIterator from StringImpl.cpp,
  21934. and from member methods of String.
  21935. Make 'numGraphemeClusters' & 'numCharactersInGraphemeClusters'
  21936. global function defined in PlatformString.h, rather than
  21937. member methods on String (these can be implemented purely
  21938. using the characters() and length() public interface),
  21939. and make 'makeCapitalized' a static function in RenderText.cpp.
  21940. * dom/InputElement.cpp:
  21941. (WebCore::InputElement::sanitizeUserInputValue):
  21942. (WebCore::InputElement::handleBeforeTextInsertedEvent):
  21943. * html/HTMLInputElement.cpp:
  21944. (WebCore::HTMLInputElement::tooLong):
  21945. * html/HTMLTextAreaElement.cpp:
  21946. (WebCore::HTMLTextAreaElement::handleBeforeTextInsertedEvent):
  21947. (WebCore::HTMLTextAreaElement::sanitizeUserInputValue):
  21948. (WebCore::HTMLTextAreaElement::tooLong):
  21949. * platform/text/PlatformString.h:
  21950. (WebCore::String::makeSecure):
  21951. * platform/text/String.cpp:
  21952. (WebCore::numGraphemeClusters):
  21953. (WebCore::numCharactersInGraphemeClusters):
  21954. * platform/text/StringImpl.cpp:
  21955. * platform/text/StringImpl.h:
  21956. * rendering/RenderText.cpp:
  21957. (WebCore::makeCapitalized):
  21958. (WebCore::RenderText::setTextInternal):
  21959. 2010-03-31 Vitaly Repeshko <vitalyr@chromium.org>
  21960. Reviewed by David Levin.
  21961. [V8] SerializedScriptValue must be deserialized only once and in the right context
  21962. https://bugs.webkit.org/show_bug.cgi?id=36892
  21963. See also https://bugs.webkit.org/show_bug.cgi?id=34227 for the
  21964. corresponding JSC change.
  21965. General idea: SerializedScriptValue must be deserialized only once
  21966. and in the context of the intended MessageEvent recepient. The
  21967. approach we take for now is to eagerly deserialize when a
  21968. JavaScript wrapper for MessageEvent is created.
  21969. A better fix would be to keep a reference to the context in
  21970. MessageEvent and use it when lazily deserializing. It's harder to
  21971. do since the API doesn't have a clean method to have such a reference.
  21972. Tested by fast/dom/Window/window-postmessage-clone-frames.html. This
  21973. test still fails but only for the types which we can't serialize yet.
  21974. * bindings/scripts/CodeGeneratorV8.pm:
  21975. * bindings/v8/SerializedScriptValue.h:
  21976. (WebCore::SerializedScriptValue::deserializeAndSetProperty):
  21977. * bindings/v8/custom/V8MessageEventCustom.cpp:
  21978. (WebCore::V8MessageEvent::initMessageEventCallback):
  21979. 2010-03-31 Adam Barth <abarth@webkit.org>
  21980. Reviewed by Darin Fisher.
  21981. Cleanup RedirectScheduler
  21982. https://bugs.webkit.org/show_bug.cgi?id=36874
  21983. Removed the nutty ScheduledRedirection struct in favor of a hierarchy
  21984. of classes to represent the various kinds of scheduled redirects.
  21985. Doing this lets us get rid of the pseudo RTTI switch statements on
  21986. "type" in favour of calling virtual functions.
  21987. No new tests because this change should be API identical with the
  21988. existing RedirectScheduler.
  21989. * loader/RedirectScheduler.cpp:
  21990. (WebCore::ScheduledNavigation::ScheduledNavigation):
  21991. (WebCore::ScheduledNavigation::~ScheduledNavigation):
  21992. (WebCore::ScheduledNavigation::isLocationChange):
  21993. (WebCore::ScheduledNavigation::shouldStartTimer):
  21994. (WebCore::ScheduledNavigation::didStartTimer):
  21995. (WebCore::ScheduledNavigation::didStopTimer):
  21996. (WebCore::ScheduledNavigation::delay):
  21997. (WebCore::ScheduledNavigation::lockHistory):
  21998. (WebCore::ScheduledNavigation::lockBackForwardList):
  21999. (WebCore::ScheduledNavigation::wasDuringLoad):
  22000. (WebCore::ScheduledURLNavigation::ScheduledURLNavigation):
  22001. (WebCore::ScheduledURLNavigation::fire):
  22002. (WebCore::ScheduledURLNavigation::didStartTimer):
  22003. (WebCore::ScheduledURLNavigation::didStopTimer):
  22004. (WebCore::ScheduledURLNavigation::url):
  22005. (WebCore::ScheduledURLNavigation::referrer):
  22006. (WebCore::ScheduledURLNavigation::wasUserGesture):
  22007. (WebCore::ScheduledRedirect::ScheduledRedirect):
  22008. (WebCore::ScheduledRedirect::isLocationChange):
  22009. (WebCore::ScheduledRedirect::shouldStartTimer):
  22010. (WebCore::ScheduledLocationChange::ScheduledLocationChange):
  22011. (WebCore::ScheduledRefresh::ScheduledRefresh):
  22012. (WebCore::ScheduledRefresh::fire):
  22013. (WebCore::ScheduledHistoryNavigation::ScheduledHistoryNavigation):
  22014. (WebCore::ScheduledHistoryNavigation::fire):
  22015. (WebCore::ScheduledFormSubmission::ScheduledFormSubmission):
  22016. (WebCore::ScheduledFormSubmission::fire):
  22017. (WebCore::RedirectScheduler::redirectScheduledDuringLoad):
  22018. (WebCore::RedirectScheduler::clear):
  22019. (WebCore::RedirectScheduler::scheduleRedirect):
  22020. (WebCore::RedirectScheduler::mustLockBackForwardList):
  22021. (WebCore::RedirectScheduler::scheduleLocationChange):
  22022. (WebCore::RedirectScheduler::scheduleFormSubmission):
  22023. (WebCore::RedirectScheduler::scheduleRefresh):
  22024. (WebCore::RedirectScheduler::locationChangePending):
  22025. (WebCore::RedirectScheduler::scheduleHistoryNavigation):
  22026. (WebCore::RedirectScheduler::timerFired):
  22027. (WebCore::RedirectScheduler::schedule):
  22028. (WebCore::RedirectScheduler::startTimer):
  22029. (WebCore::RedirectScheduler::cancel):
  22030. * loader/RedirectScheduler.h:
  22031. 2010-03-31 Zhenyao Mo <zmo@google.com>
  22032. Reviewed by Darin Fisher.
  22033. Hook up WebGLContextAttributes to OpenGL context creation code
  22034. https://bugs.webkit.org/show_bug.cgi?id=33416
  22035. Test: fast/canvas/webgl/context-attributes-alpha-depth-stencil-antialias.html
  22036. * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp: Fix an index bug.
  22037. (WebCore::V8HTMLCanvasElement::getContextCallback):
  22038. * platform/graphics/GraphicsContext3D.h: Add members/functions for multisampling/stencil buffer purpose.
  22039. * platform/graphics/mac/Canvas3DLayer.h: Add GraphicsContext3D as a member of Canvas3DLayer.
  22040. * platform/graphics/mac/Canvas3DLayer.mm: Add multisampling support.
  22041. (-[Canvas3DLayer drawInCGLContext:pixelFormat:forLayerTime:displayTime:]):
  22042. * platform/graphics/mac/GraphicsContext3DMac.cpp: Hook up WebGLContextAttributes to OpenGL context creation code for Mac.
  22043. (WebCore::GraphicsContext3D::GraphicsContext3D):
  22044. (WebCore::GraphicsContext3D::~GraphicsContext3D):
  22045. (WebCore::GraphicsContext3D::validateAttributes):
  22046. (WebCore::GraphicsContext3D::reshape):
  22047. (WebCore::GraphicsContext3D::prepareTexture):
  22048. (WebCore::GraphicsContext3D::bindFramebuffer):
  22049. (WebCore::GraphicsContext3D::readPixels):
  22050. * platform/graphics/mac/GraphicsLayerCA.mm: Adjust to modified Canvas3DLayer init call.
  22051. (WebCore::GraphicsLayerCA::setContentsToGraphicsContext3D):
  22052. 2010-03-31 Jian Li <jianli@chromium.org>
  22053. Reviewed by Dmitry Titov.
  22054. Add support to create UUID string.
  22055. https://bugs.webkit.org/show_bug.cgi?id=36472
  22056. * GNUmakefile.am:
  22057. * WebCore.gypi:
  22058. * WebCore.pro:
  22059. * WebCore.vcproj/WebCore.vcproj:
  22060. * WebCore.xcodeproj/project.pbxproj:
  22061. * platform/UUID.cpp: Added.
  22062. (WebCore::createCanonicalUUIDString):
  22063. * platform/UUID.h: Added.
  22064. 2010-03-31 Darin Adler <darin@apple.com>
  22065. * rendering/RenderThemeChromiumWin.h: Fix inconsistent line endings.
  22066. 2010-03-31 Luiz Agostini <luiz.agostini@openbossa.org>
  22067. Reviewed by Kenneth Rohde Christiansen.
  22068. [Qt] Maemo5 theme - form controls style
  22069. https://bugs.webkit.org/show_bug.cgi?id=36370
  22070. Adjusting Mameo5 form elements rendering.
  22071. * WebCore.pri:
  22072. * WebCore.pro:
  22073. * css/themeQtMaemo5.css: Added.
  22074. (select):
  22075. (select:disabled):
  22076. (select:active):
  22077. (select:active:disabled):
  22078. (textarea):
  22079. (textarea:disabled):
  22080. (textarea:active):
  22081. * platform/qt/Maemo5Webstyle.cpp: Added.
  22082. (Maemo5WebStyle::Maemo5WebStyle):
  22083. (drawRectangularControlBackgorund):
  22084. (Maemo5WebStyle::drawChecker):
  22085. (Maemo5WebStyle::findChecker):
  22086. (Maemo5WebStyle::drawRadio):
  22087. (Maemo5WebStyle::findRadio):
  22088. (Maemo5WebStyle::drawControl):
  22089. (Maemo5WebStyle::drawComplexControl):
  22090. * platform/qt/Maemo5Webstyle.h: Added.
  22091. * platform/qt/RenderThemeQt.cpp:
  22092. (WebCore::RenderThemeQt::RenderThemeQt):
  22093. (WebCore::RenderThemeQt::isControlStyled):
  22094. (WebCore::RenderThemeQt::popupInternalPaddingBottom):
  22095. (WebCore::RenderThemeQt::extraDefaultStyleSheet):
  22096. (WebCore::RenderThemeQt::adjustMenuListButtonStyle):
  22097. * platform/qt/RenderThemeQt.h:
  22098. 2010-03-31 Alexey Proskuryakov <ap@apple.com>
  22099. https://bugs.webkit.org/show_bug.cgi?id=36897
  22100. <rdar://problem/7804018> REGRESSION (r56429): Flash ads are clipped when main page is scrolled (boxofficemojo.com)
  22101. Addressing additional review comments.
  22102. * rendering/RenderWidget.cpp: Removed an unneeded include.
  22103. * rendering/RenderWidget.h: Reworded the new comment.
  22104. 2010-03-31 Alexey Proskuryakov <ap@apple.com>
  22105. Reviewed by Dan Bernstein.
  22106. https://bugs.webkit.org/show_bug.cgi?id=36897
  22107. <rdar://problem/7804018> REGRESSION (r56429): Flash ads are clipped when main page is scrolled (boxofficemojo.com)
  22108. * manual-tests/plugin-in-iframe-scroll.html: Added.
  22109. * manual-tests/resources/plugin-in-iframe-scroll-iframe.html: Added.
  22110. * rendering/RenderWidget.cpp:
  22111. (WebCore::RenderWidget::setWidgetGeometry): This method isn't called when an iframe containing
  22112. the widget moves, so we should store a value that is not dependent on current scroll offset.
  22113. (WebCore::RenderWidget::windowClipRect): Apply scroll offset and window clip now.
  22114. * rendering/RenderWidget.h: Renamed m_windowClipRect to m_clipRect, because it is no longer
  22115. in window coordinates.
  22116. * WebCore.base.exp: Export RenderWidget::windowClipRect(), since it's no longer inline.
  22117. 2010-03-31 Kenneth Rohde Christiansen <kenneth@webkit.org>
  22118. Unreviewed crash fix.
  22119. Crash with frame flattening on after r56854
  22120. https://bugs.webkit.org/show_bug.cgi?id=36894
  22121. Solution tested by Greg Bolsinga, thanks.
  22122. * page/FrameView.cpp:
  22123. (WebCore::FrameView::avoidScrollbarCreation):
  22124. * platform/ScrollView.cpp:
  22125. (WebCore::ScrollView::setHasHorizontalScrollbar):
  22126. (WebCore::ScrollView::setHasVerticalScrollbar):
  22127. 2010-03-31 Kenneth Rohde Christiansen <kenneth@webkit.org>
  22128. Reviewed by Antti Koivisto.
  22129. iframe flattening doesn't flatten
  22130. https://bugs.webkit.org/show_bug.cgi?id=36798
  22131. Do not draw scrollbars for subframes when frame flattening is
  22132. enabled. Implemented using a virtual method in ScrollView as
  22133. suggested by Dave Hyatt.
  22134. Do not suppress scrollbars as that is wrong according to
  22135. Dave Hyatt.
  22136. Covered by current tests.
  22137. * page/FrameView.cpp:
  22138. (WebCore::FrameView::avoidScrollbarCreation):
  22139. * page/FrameView.h:
  22140. * platform/ScrollView.cpp:
  22141. (WebCore::ScrollView::setHasHorizontalScrollbar):
  22142. (WebCore::ScrollView::setHasVerticalScrollbar):
  22143. * platform/ScrollView.h:
  22144. (WebCore::ScrollView::avoidScrollbarCreation):
  22145. * rendering/RenderPart.cpp:
  22146. (WebCore::RenderPart::layoutWithFlattening):
  22147. 2010-03-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
  22148. Reviewed by Antti Koivisto.
  22149. iframe flattening doesn't flatten
  22150. https://bugs.webkit.org/show_bug.cgi?id=36798
  22151. Fix wrongly reversing logic in frame flattening check.
  22152. Tests:
  22153. fast/frames/flattening/iframe-flattening-fixed-height.html
  22154. fast/frames/flattening/iframe-flattening-fixed-width.html
  22155. fast/frames/flattening/iframe-flattening-fixed-width-and-height.html
  22156. fast/frames/flattening/iframe-flattening-fixed-width-and-height-no-scrolling.html
  22157. * rendering/RenderPartObject.cpp:
  22158. (WebCore::RenderPartObject::flattenFrame):
  22159. 2010-03-31 Marcus Bulach <bulach@chromium.org>
  22160. Reviewed by Jeremy Orlow.
  22161. Implements cancelGeolocationPermissionRequestForFrame.
  22162. Similar to requestGeolocationPermissionForFrame(), passes Geolocation* to cancelGeolocationPermissionRequestForFrame(),
  22163. so that the embedder can identify which Geolocation object is cancelling the pending permission request.
  22164. Calls cancelGeolocationPermissionRequestForFrame() before stopUpdating() so it better matches the startUpdating() / requestPermission() flow.
  22165. https://bugs.webkit.org/show_bug.cgi?id=35031
  22166. * loader/EmptyClients.h:
  22167. (WebCore::EmptyChromeClient::cancelGeolocationPermissionRequestForFrame):
  22168. * page/Chrome.cpp:
  22169. (WebCore::Chrome::cancelGeolocationPermissionRequestForFrame):
  22170. * page/Chrome.h:
  22171. * page/ChromeClient.h:
  22172. * page/Geolocation.cpp:
  22173. (WebCore::Geolocation::disconnectFrame):
  22174. 2010-03-31 Yael Aharon <yael.aharon@nokia.com>
  22175. Reviewed by Antti Koivisto.
  22176. Add animation to progress element
  22177. https://bugs.webkit.org/show_bug.cgi?id=36664
  22178. Add a timer to control the animation. The timer is started after painting
  22179. or a state change in the progress bar, to prevent animation from running
  22180. when the progress bar is not visible.
  22181. * html/HTMLProgressElement.cpp:
  22182. (WebCore::HTMLProgressElement::createRenderer):
  22183. * manual-tests/dom: Added.
  22184. * manual-tests/dom/progressbar.html: Added.
  22185. * platform/qt/RenderThemeQt.cpp:
  22186. (WebCore::RenderThemeQt::animationRepeatIntervalForProgressBar):
  22187. (WebCore::RenderThemeQt::animationDurationForProgressBar):
  22188. (WebCore::RenderThemeQt::paintProgressBar):
  22189. * platform/qt/RenderThemeQt.h:
  22190. * rendering/RenderProgress.cpp:
  22191. (WebCore::RenderProgress::RenderProgress):
  22192. (WebCore::RenderProgress::layout):
  22193. (WebCore::RenderProgress::updateFromElement):
  22194. (WebCore::RenderProgress::animationProgress):
  22195. (WebCore::RenderProgress::animationTimerFired):
  22196. (WebCore::RenderProgress::paint):
  22197. (WebCore::RenderProgress::updateAnimationState):
  22198. * rendering/RenderProgress.h:
  22199. * rendering/RenderTheme.cpp:
  22200. (WebCore::RenderTheme::animationRepeatIntervalForProgressBar):
  22201. (WebCore::RenderTheme::animationDurationForProgressBar):
  22202. * rendering/RenderTheme.h:
  22203. 2010-03-31 Pavel Feldman <pfeldman@chromium.org>
  22204. Not reviewed. Rolling out r56829 since it broke chromium layout tests.
  22205. [REGRESSION] Inspector tests started crashing since r56829
  22206. https://bugs.webkit.org/show_bug.cgi?id=36888
  22207. * bindings/scripts/CodeGeneratorV8.pm:
  22208. * bindings/v8/V8Utilities.cpp:
  22209. * bindings/v8/V8Utilities.h:
  22210. * loader/FrameLoaderClient.h:
  22211. 2010-03-31 Pavel Feldman <pfeldman@chromium.org>
  22212. Reviewed by Timothy Hatcher.
  22213. Web Inspector: creating new style bugfixing.
  22214. https://bugs.webkit.org/show_bug.cgi?id=36884
  22215. - InspectorDOMAgent should clear internal state upon reset (we are re-using
  22216. single dom agent instance throughout entire inspector controller lifetime)
  22217. - Brought back blank style 'refresh' processing logic - remove it by mistake earlier
  22218. - Blocked couple of click handlers so that double-click to edit was not
  22219. expanding / collapsing the pane
  22220. - There is no need to reach out for matched rules upon 'refresh' update -
  22221. getting computed style is sufficient.
  22222. * css/CSSStyleSelector.cpp:
  22223. (WebCore::CSSStyleSelector::matchRulesForList):
  22224. * inspector/InspectorDOMAgent.cpp:
  22225. (WebCore::InspectorDOMAgent::discardBindings):
  22226. * inspector/front-end/StylesSidebarPane.js:
  22227. (WebInspector.StylesSidebarPane.prototype.update.getStylesCallback):
  22228. (WebInspector.StylesSidebarPane.prototype.update.getComputedStyleCallback):
  22229. (WebInspector.StylesSidebarPane.prototype.update):
  22230. (WebInspector.StylesSidebarPane.prototype._refreshUpdate):
  22231. (WebInspector.StylesSidebarPane.prototype._rebuildUpdate):
  22232. (WebInspector.StylesSidebarPane.prototype._refreshStyleRules):
  22233. (WebInspector.StylesSidebarPane.prototype.addBlankSection):
  22234. (WebInspector.StylePropertiesSection.prototype._dblclickEmptySpace):
  22235. (WebInspector.StylePropertiesSection.prototype._clickSelector):
  22236. 2010-03-31 Yury Semikhatsky <yurys@chromium.org>
  22237. Unreviewed. Chromium build fix: create missing v8::HandleScope.
  22238. https://bugs.webkit.org/show_bug.cgi?id=36828
  22239. * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
  22240. (WebCore::InjectedScriptHost::canAccessInspectedWindow):
  22241. 2010-03-31 Yury Semikhatsky <yurys@chromium.org>
  22242. Reviewed by Pavel Feldman.
  22243. Check that injected script can still access inspected window object when wrapping console object. When the window cannot be access serialize objects as strings. Also don't call InjectedScript.dispatch if the window cannot be accessed (due to frame navigation).
  22244. https://bugs.webkit.org/show_bug.cgi?id=36828
  22245. * bindings/js/JSInjectedScriptHostCustom.cpp:
  22246. (WebCore::InjectedScriptHost::canAccessInspectedWindow):
  22247. * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
  22248. (WebCore::InjectedScriptHost::canAccessInspectedWindow):
  22249. * inspector/InjectedScript.cpp:
  22250. (WebCore::InjectedScript::wrapForConsole):
  22251. * inspector/InjectedScriptHost.h:
  22252. * inspector/front-end/InjectedScript.js:
  22253. (injectedScriptConstructor):
  22254. 2010-03-31 Mattias Nissler <mnissler@google.com>
  22255. Reviewed by Pavel Feldman.
  22256. Allow generic resource URLs for cookie handling in the inspector. This
  22257. enables display of all cookies, not only those that are associated
  22258. with resources accessed through http, https or file.
  22259. https://bugs.webkit.org/show_bug.cgi?id=36877
  22260. * inspector/front-end/CookieItemsView.js:
  22261. (WebInspector.CookieItemsView.prototype._filterCookiesForDomain):
  22262. * inspector/front-end/DOMAgent.js:
  22263. (WebInspector.Cookies.cookieMatchesResourceURL):
  22264. * inspector/front-end/inspector.js:
  22265. (WebInspector.updateResource):
  22266. 2010-03-30 Jeremy Orlow <jorlow@chromium.org>
  22267. Reviewed by Nate Chapin.
  22268. IndexedDB: Finish hooking up bindings for IndexedDatabaseRequest
  22269. https://bugs.webkit.org/show_bug.cgi?id=36830
  22270. Still not enough hooked up to test. Soon!
  22271. * WebCore.gypi:
  22272. * bindings/v8/custom/V8CustomIDBCallback.h: Removed.
  22273. * bindings/v8/custom/V8CustomIDBCallbacks.h: Added.
  22274. (WebCore::V8CustomIDBCallbacks::create):
  22275. (WebCore::V8CustomIDBCallbacks::~V8CustomIDBCallbacks):
  22276. (WebCore::V8CustomIDBCallbacks::onSuccess):
  22277. (WebCore::V8CustomIDBCallbacks::onError):
  22278. (WebCore::V8CustomIDBCallbacks::V8CustomIDBCallbacks):
  22279. * bindings/v8/custom/V8IndexedDatabaseRequestCustom.cpp:
  22280. (WebCore::V8IndexedDatabaseRequest::openCallback):
  22281. * storage/IDBDatabaseRequest.cpp: Added.
  22282. (WebCore::IDBDatabaseRequest::IDBDatabaseRequest):
  22283. (WebCore::IDBDatabaseRequest::~IDBDatabaseRequest):
  22284. * storage/IDBDatabaseRequest.h:
  22285. (WebCore::IDBDatabaseRequest::create):
  22286. * storage/IndexedDatabaseRequest.cpp:
  22287. (WebCore::IndexedDatabaseRequest::open):
  22288. * storage/IndexedDatabaseRequest.h:
  22289. 2010-03-31 Zhenyao Mo <zmo@google.com>
  22290. Reviewed by Darin Fisher.
  22291. Implement memmove behavior for WebGLArray set()
  22292. https://bugs.webkit.org/show_bug.cgi?id=35619
  22293. New test cases are added to fast/canvas/webgl/array-setters.html.
  22294. * html/canvas/WebGLArray.cpp: Use memmove instead of memcpy; with memmove, copying takes place as if an intermediate buffer was used, allowing the destination and source to overlap.
  22295. (WebCore::WebGLArray::setImpl):
  22296. 2010-03-31 Benjamin Poulain <benjamin.poulain@nokia.com>
  22297. Reviewed by Darin Adler.
  22298. tryLayoutDoingPositionedMovementOnly does not have to be in RenderObject or be virtual
  22299. https://bugs.webkit.org/show_bug.cgi?id=36810
  22300. Move tryLayoutDoingPositionedMovementOnly as a regular method of RenderBox
  22301. * rendering/RenderBox.h:
  22302. (WebCore::RenderBox::tryLayoutDoingPositionedMovementOnly):
  22303. * rendering/RenderObject.h:
  22304. 2010-03-31 John Gregg <johnnyg@google.com>
  22305. Reviewed by Darin Fisher.
  22306. [chromium] add logging of cross-frame property accesses for site isolation
  22307. https://bugs.webkit.org/show_bug.cgi?id=35773
  22308. No new tests as no new functionality.
  22309. * bindings/scripts/CodeGeneratorV8.pm:
  22310. * bindings/v8/V8Utilities.cpp:
  22311. (WebCore::logPropertyAccess):
  22312. * bindings/v8/V8Utilities.h:
  22313. * loader/FrameLoaderClient.h:
  22314. (WebCore::FrameLoaderClient::logCrossFramePropertyAccess):
  22315. 2010-03-30 Gavin Barraclough <barraclough@apple.com>
  22316. Rubber stamped by Sam Weinig.
  22317. https://bugs.webkit.org/show_bug.cgi?id=36866
  22318. Move CString to WTF
  22319. * Android.mk:
  22320. * ForwardingHeaders/wtf/text: Added.
  22321. * ForwardingHeaders/wtf/text/CString.h: Added.
  22322. * GNUmakefile.am:
  22323. * WebCore.base.exp:
  22324. * WebCore.gypi:
  22325. * WebCore.order:
  22326. * WebCore.pro:
  22327. * WebCore.vcproj/WebCore.vcproj:
  22328. * WebCore.xcodeproj/project.pbxproj:
  22329. * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
  22330. * bindings/js/JSDOMWindowBase.cpp:
  22331. * bindings/js/ScheduledAction.cpp:
  22332. * bindings/js/ScriptController.cpp:
  22333. * bindings/v8/ScriptController.cpp:
  22334. * bindings/v8/V8Binding.cpp:
  22335. * bindings/v8/V8DOMWindowShell.cpp:
  22336. * bridge/jni/JNIBridge.cpp:
  22337. * bridge/jni/v8/JavaStringV8.h:
  22338. (JSC::Bindings::JavaStringImpl::init):
  22339. * css/CSSParser.cpp:
  22340. * dom/CharacterData.cpp:
  22341. * dom/Document.cpp:
  22342. * dom/Element.cpp:
  22343. * dom/Node.cpp:
  22344. * dom/Position.cpp:
  22345. * dom/Range.cpp:
  22346. * dom/Text.cpp:
  22347. * dom/XMLTokenizer.cpp:
  22348. * dom/XMLTokenizerLibxml2.cpp:
  22349. * dom/XMLTokenizerQt.cpp:
  22350. * editing/SelectionController.cpp:
  22351. * editing/VisiblePosition.cpp:
  22352. * editing/VisibleSelection.cpp:
  22353. * history/CachedFrame.cpp:
  22354. * history/HistoryItem.cpp:
  22355. * history/qt/HistoryItemQt.cpp:
  22356. * html/FormDataList.h:
  22357. (WebCore::FormDataList::appendData):
  22358. (WebCore::FormDataList::Item::Item):
  22359. (WebCore::FormDataList::Item::data):
  22360. * html/HTMLDocument.cpp:
  22361. * html/PreloadScanner.cpp:
  22362. * inspector/InspectorController.cpp:
  22363. * inspector/InspectorDOMAgent.cpp:
  22364. * loader/DocLoader.cpp:
  22365. * loader/FTPDirectoryDocument.cpp:
  22366. * loader/FrameLoader.cpp:
  22367. * loader/HistoryController.cpp:
  22368. * loader/ProgressTracker.cpp:
  22369. * loader/appcache/ApplicationCacheStorage.cpp:
  22370. * loader/archive/cf/LegacyWebArchive.cpp:
  22371. * loader/icon/wince/IconDatabaseWince.cpp:
  22372. * loader/loader.cpp:
  22373. * page/Console.cpp:
  22374. * page/DOMWindow.cpp:
  22375. * page/SecurityOrigin.cpp:
  22376. * page/XSSAuditor.cpp:
  22377. * page/animation/AnimationBase.cpp:
  22378. * platform/ContextMenu.cpp:
  22379. * platform/FileSystem.h:
  22380. * platform/KURL.cpp:
  22381. * platform/KURLGoogle.cpp:
  22382. * platform/KURLGooglePrivate.h:
  22383. * platform/Pasteboard.h:
  22384. * platform/android/FileSystemAndroid.cpp:
  22385. * platform/android/TemporaryLinkStubs.cpp:
  22386. * platform/brew/KURLBrew.cpp:
  22387. * platform/cf/FileSystemCF.cpp:
  22388. * platform/chromium/MIMETypeRegistryChromium.cpp:
  22389. * platform/efl/FileSystemEfl.cpp:
  22390. * platform/efl/PasteboardEfl.cpp:
  22391. * platform/efl/PlatformKeyboardEventEfl.cpp:
  22392. * platform/efl/PlatformScreenEfl.cpp:
  22393. * platform/efl/RenderThemeEfl.cpp:
  22394. * platform/efl/ScrollbarEfl.cpp:
  22395. * platform/efl/SharedBufferEfl.cpp:
  22396. * platform/efl/WidgetEfl.cpp:
  22397. * platform/graphics/GlyphPageTreeNode.cpp:
  22398. * platform/graphics/cairo/FontPlatformDataCairo.cpp:
  22399. * platform/graphics/cg/ImageBufferCG.cpp:
  22400. * platform/graphics/chromium/FontCacheLinux.cpp:
  22401. * platform/graphics/chromium/FontPlatformDataLinux.h:
  22402. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  22403. * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
  22404. * platform/graphics/gtk/FontPlatformDataPango.cpp:
  22405. * platform/graphics/gtk/IconGtk.cpp:
  22406. * platform/graphics/gtk/ImageGtk.cpp:
  22407. * platform/graphics/haiku/GraphicsContextHaiku.cpp:
  22408. * platform/graphics/mac/GraphicsContext3DMac.cpp:
  22409. * platform/graphics/mac/GraphicsLayerCA.mm:
  22410. * platform/graphics/qt/GraphicsContext3DQt.cpp:
  22411. * platform/graphics/qt/ImageBufferQt.cpp:
  22412. * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:
  22413. * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
  22414. * platform/graphics/skia/GraphicsLayerSkia.cpp:
  22415. * platform/graphics/win/GraphicsLayerCACF.cpp:
  22416. * platform/graphics/win/WKCACFLayer.cpp:
  22417. * platform/graphics/wx/FontPlatformData.h:
  22418. * platform/gtk/ClipboardGtk.cpp:
  22419. * platform/gtk/ContextMenuItemGtk.cpp:
  22420. * platform/gtk/DataObjectGtk.h:
  22421. * platform/gtk/FileChooserGtk.cpp:
  22422. * platform/gtk/FileSystemGtk.cpp:
  22423. * platform/gtk/GeolocationServiceGtk.cpp:
  22424. * platform/gtk/KURLGtk.cpp:
  22425. * platform/gtk/Language.cpp:
  22426. * platform/gtk/LocalizedStringsGtk.cpp:
  22427. * platform/gtk/PasteboardGtk.cpp:
  22428. * platform/gtk/PopupMenuGtk.cpp:
  22429. * platform/gtk/RenderThemeGtk.cpp:
  22430. * platform/gtk/SharedBufferGtk.cpp:
  22431. * platform/haiku/FileSystemHaiku.cpp:
  22432. * platform/haiku/PlatformKeyboardEventHaiku.cpp:
  22433. * platform/network/CredentialStorage.cpp:
  22434. * platform/network/FormData.cpp:
  22435. * platform/network/FormData.h:
  22436. * platform/network/FormDataBuilder.cpp:
  22437. * platform/network/FormDataBuilder.h:
  22438. * platform/network/HTTPParsers.cpp:
  22439. * platform/network/android/ResourceHandleAndroid.cpp:
  22440. * platform/network/cf/FormDataStreamCFNet.cpp:
  22441. * platform/network/cf/ResourceHandleCFNet.cpp:
  22442. * platform/network/chromium/ResourceResponse.h:
  22443. * platform/network/curl/FormDataStreamCurl.cpp:
  22444. * platform/network/curl/ResourceHandleManager.cpp:
  22445. * platform/network/curl/ResourceHandleManager.h:
  22446. * platform/network/mac/FormDataStreamMac.mm:
  22447. * platform/network/mac/ResourceHandleMac.mm:
  22448. * platform/network/qt/QNetworkReplyHandler.cpp:
  22449. * platform/network/soup/CookieJarSoup.cpp:
  22450. * platform/network/soup/ResourceHandleSoup.cpp:
  22451. * platform/network/soup/ResourceRequestSoup.cpp:
  22452. * platform/network/soup/ResourceResponseSoup.cpp:
  22453. * platform/network/win/ResourceHandleWin.cpp:
  22454. * platform/posix/FileSystemPOSIX.cpp:
  22455. * platform/qt/FileSystemQt.cpp:
  22456. * platform/qt/KURLQt.cpp:
  22457. * platform/qt/TemporaryLinkStubs.cpp:
  22458. * platform/sql/chromium/SQLiteFileSystemChromium.cpp:
  22459. * platform/text/CString.cpp: Removed.
  22460. * platform/text/CString.h: Removed.
  22461. * platform/text/PlatformString.h:
  22462. * platform/text/String.cpp:
  22463. * platform/text/StringImpl.cpp:
  22464. * platform/text/TextCodec.h:
  22465. * platform/text/TextCodecICU.cpp:
  22466. * platform/text/TextCodecLatin1.cpp:
  22467. * platform/text/TextCodecUTF16.cpp:
  22468. * platform/text/TextCodecUserDefined.cpp:
  22469. * platform/text/TextEncoding.cpp:
  22470. * platform/text/TextEncoding.h:
  22471. * platform/text/chromium/TextBreakIteratorInternalICUChromium.cpp:
  22472. * platform/text/gtk/TextCodecGtk.cpp:
  22473. * platform/text/haiku/StringHaiku.cpp:
  22474. * platform/text/mac/TextCodecMac.cpp:
  22475. * platform/text/qt/TextCodecQt.cpp:
  22476. * platform/text/wx/StringWx.cpp:
  22477. * platform/win/ClipboardUtilitiesWin.cpp:
  22478. * platform/win/ClipboardWin.cpp:
  22479. * platform/win/ContextMenuItemWin.cpp:
  22480. * platform/win/ContextMenuWin.cpp:
  22481. * platform/win/FileSystemWin.cpp:
  22482. * platform/win/GDIObjectCounter.cpp:
  22483. * platform/win/Language.cpp:
  22484. * platform/win/PasteboardWin.cpp:
  22485. * platform/wince/FileSystemWince.cpp:
  22486. * platform/wince/KeygenWince.cpp:
  22487. * platform/wince/PasteboardWince.cpp:
  22488. * platform/wx/FileSystemWx.cpp:
  22489. * platform/wx/LoggingWx.cpp:
  22490. * plugins/PluginDebug.h:
  22491. * plugins/PluginPackage.cpp:
  22492. * plugins/PluginStream.cpp:
  22493. * plugins/PluginStream.h:
  22494. * plugins/PluginView.h:
  22495. * plugins/gtk/PluginPackageGtk.cpp:
  22496. * plugins/mac/PluginPackageMac.cpp:
  22497. * plugins/qt/PluginPackageQt.cpp:
  22498. * plugins/symbian/PluginPackageSymbian.cpp:
  22499. * plugins/win/PluginPackageWin.cpp:
  22500. * rendering/RenderLayer.cpp:
  22501. * rendering/RenderLayerCompositor.cpp:
  22502. * rendering/RenderTreeAsText.cpp:
  22503. * storage/Database.cpp:
  22504. * storage/SQLTransactionCoordinator.cpp:
  22505. * storage/SQLTransactionCoordinator.h:
  22506. * storage/StorageAreaSync.cpp:
  22507. * storage/StorageSyncManager.cpp:
  22508. * storage/chromium/DatabaseTrackerChromium.cpp:
  22509. * storage/chromium/QuotaTracker.cpp:
  22510. * storage/chromium/QuotaTracker.h:
  22511. * svg/SVGFontFaceElement.cpp:
  22512. * svg/SVGStyledElement.cpp:
  22513. * svg/SVGUseElement.cpp:
  22514. * websockets/WebSocket.cpp:
  22515. * websockets/WebSocketChannel.cpp:
  22516. * websockets/WebSocketHandshake.cpp:
  22517. * wml/WMLErrorHandling.cpp:
  22518. * wml/WMLGoElement.cpp:
  22519. * wml/WMLPageState.cpp:
  22520. * wml/WMLPostfieldElement.cpp:
  22521. * wml/WMLSelectElement.cpp:
  22522. * xml/XMLHttpRequest.cpp:
  22523. * xml/XSLStyleSheetLibxslt.cpp:
  22524. * xml/XSLTProcessorLibxslt.cpp:
  22525. 2010-03-30 Kent Tamura <tkent@chromium.org>
  22526. Reviewed by Brady Eidson.
  22527. REGRESSION (r56439) - Crash when a renderer for a file upload control
  22528. with a selected file is recreated
  22529. https://bugs.webkit.org/show_bug.cgi?id=36723
  22530. RenderFileUploadControl::chooseIconForFiles was called before
  22531. m_fileChooser was initialized.
  22532. * platform/FileChooser.cpp:
  22533. (WebCore::FileChooser::FileChooser): Introduce m_isInitializing flag to
  22534. avoid FileChooserClient::repaint() call.
  22535. (WebCore::FileChooser::loadIcon):
  22536. (WebCore::FileChooser::iconLoaded):
  22537. * platform/FileChooser.h: Add a FielChooser parameter to
  22538. FileChooserClient::chooseIconForFiles().
  22539. * rendering/RenderFileUploadControl.cpp:
  22540. (WebCore::RenderFileUploadControl::chooseIconForFiles):
  22541. (WebCore::RenderFileUploadControl::paintObject): Add an assertion.
  22542. * rendering/RenderFileUploadControl.h:
  22543. 2010-03-30 Stanislav Paltis <Stanislav.Paltis@nokia.com>
  22544. Reviewed by Laszlo Gombos.
  22545. [Qt] qmake/symbian build failure
  22546. https://bugs.webkit.org/show_bug.cgi?id=36745
  22547. Fix build break in Symbian build introduced in r56714,
  22548. by modifying comment escape character from ";" to "#".
  22549. * WebCore.pro:
  22550. 2010-03-30 Kevin Ollivier <kevino@theolliviers.com>
  22551. [wx] Build fix after new localized string addition.
  22552. * platform/wx/LocalizedStringsWx.cpp:
  22553. (WebCore::missingPluginText):
  22554. 2010-03-30 Sam Weinig <sam@webkit.org>
  22555. Reviewed by Anders Carlsson.
  22556. Add missing export.
  22557. * WebCore.base.exp:
  22558. 2010-03-30 Enrica Casucci <enrica@apple.com>
  22559. Reviewed by Darin Adler.
  22560. Incorrect insertion position after typing THAI CHARACTER SARA AM = 0E33.
  22561. <rdar://problem/7810749>
  22562. https://bugs.webkit.org/show_bug.cgi?id=36858
  22563. Test: fast/text/multiglyph-characters.html
  22564. Characters with multiple glyph were not supported correctly.
  22565. Computing the advance width was producing a division by zero.
  22566. * platform/graphics/mac/ComplexTextController.cpp:
  22567. (WebCore::ComplexTextController::advance):
  22568. 2010-03-30 Chris Evans <cevans@chromium.org>
  22569. Reviewed by Adam Barth.
  22570. Taint the canvas if an SVG-derived pattern is rendered into it.
  22571. https://bugs.webkit.org/show_bug.cgi?id=36838
  22572. Test: fast/canvas/svg-taint.html
  22573. * html/canvas/CanvasRenderingContext2D.cpp:
  22574. (WebCore::CanvasRenderingContext2D::createPattern):
  22575. Take into account the image's hasSingleSecurityOrigin() property.
  22576. 2010-03-30 Alexey Proskuryakov <ap@apple.com>
  22577. Reviewed by Darin Adler.
  22578. https://bugs.webkit.org/show_bug.cgi?id=36616
  22579. Dvorak-Qwerty keyboard layout gives unexpected results in javascript keydown
  22580. https://bugs.webkit.org/show_bug.cgi?id=36797
  22581. For non-Roman layouts, keydown Event.keyCode is always 0
  22582. * platform/cocoa/KeyEventCocoa.mm:
  22583. (WebCore::windowsKeyCodeForKeyCode): This is now the primary function for determining
  22584. Windows key code - there is no reason to round trip a virtual key code via character code to
  22585. get Windows virtual key code, and this can't work for non-Roman alphabets.
  22586. (WebCore::windowsKeyCodeForCharCode): Removed keys that are now handled in windowsKeyCodeForKeyCode(),
  22587. only keeping those for which we don't have known key codes (yet?).
  22588. * platform/mac/KeyEventMac.mm: (WebCore::windowsKeyCodeForKeyEvent): Added comments.
  22589. 2010-03-30 Marcus Bulach <bulach@chromium.org>
  22590. Reviewed by Darin Fisher.
  22591. Rename / tidy up Geolocation bridge
  22592. Uses Geoposition instead of individual params for setLastPosition.
  22593. https://bugs.webkit.org/show_bug.cgi?id=36535
  22594. * platform/chromium/GeolocationServiceChromium.cpp:
  22595. (WebCore::GeolocationServiceChromium::GeolocationServiceChromium):
  22596. (WebCore::GeolocationServiceChromium::setIsAllowed):
  22597. (WebCore::GeolocationServiceChromium::setLastPosition):
  22598. * platform/chromium/GeolocationServiceChromium.h:
  22599. 2010-03-30 Adam Langley <agl@chromium.org>
  22600. Reviewed by David Levin.
  22601. [chromium] linux: prefer the "hinting" fontconfig preference.
  22602. fontconfig can give contradictory hinting information, setting
  22603. "hinting" to zero and "hintstyle" to non-zero. In this case we
  22604. should take the "hinting" preference.
  22605. https://bugs.webkit.org/show_bug.cgi?id=36602
  22606. * platform/graphics/chromium/FontPlatformDataLinux.cpp:
  22607. (WebCore::FontPlatformData::setupPaint):
  22608. 2010-03-30 Pavel Feldman <pfeldman@chromium.org>
  22609. Reviewed by Timothy Hatcher.
  22610. Web Inspector: Copying from the Content tab in Resources includes line numbers.
  22611. https://bugs.webkit.org/show_bug.cgi?id=35104
  22612. * inspector/front-end/TextViewer.js:
  22613. (WebInspector.TextViewer):
  22614. (WebInspector.TextViewer.prototype._beforeCopy):
  22615. (WebInspector.TextViewer.prototype._copy):
  22616. 2010-03-30 Pavel Feldman <pfeldman@chromium.org>
  22617. Reviewed by Timothy Hatcher.
  22618. Web Inspector: Do not send empty matching rules for pseudo elements to frontend.
  22619. https://bugs.webkit.org/show_bug.cgi?id=36834
  22620. * inspector/InspectorDOMAgent.cpp:
  22621. (WebCore::InspectorDOMAgent::buildArrayForPseudoElements):
  22622. * inspector/front-end/StylesSidebarPane.js:
  22623. (WebInspector.StylesSidebarPane.prototype._update):
  22624. 2010-03-30 Dirk Schulze <krit@webkit.org>
  22625. Reviewed by Nikolas Zimmermann.
  22626. Cannot animate "points" attribute for <svg:polygon>
  22627. https://bugs.webkit.org/show_bug.cgi?id=21371
  22628. Add animation support for 'points' on polygons in SVG.
  22629. Test: svg/animations/animate-points.html
  22630. * svg/SVGAnimateElement.cpp:
  22631. (WebCore::SVGAnimateElement::determinePropertyType):
  22632. (WebCore::SVGAnimateElement::calculateAnimatedValue):
  22633. (WebCore::SVGAnimateElement::calculateFromAndToValues):
  22634. (WebCore::SVGAnimateElement::resetToBaseValue):
  22635. (WebCore::SVGAnimateElement::applyResultsToTarget):
  22636. * svg/SVGAnimateElement.h:
  22637. (WebCore::SVGAnimateElement::): added PropertyType PointsProperty
  22638. * svg/SVGPointList.cpp:
  22639. (WebCore::blendFunc):
  22640. (WebCore::SVGPointList::createAnimated): calculates animated PointList
  22641. * svg/SVGPointList.h:
  22642. 2010-03-30 Alexander Pavlov <apavlov@chromium.org>
  22643. Reviewed by Pavel Feldman.
  22644. Web Inspector: Audits: bad CSS selector results in exception inside evaluated code
  22645. https://bugs.webkit.org/show_bug.cgi?id=36821
  22646. * inspector/front-end/AuditRules.js:
  22647. (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.evalCallback.routine):
  22648. (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.evalCallback):
  22649. 2010-03-29 Janne Koskinen <janne.p.koskinen@digia.com>
  22650. Reviewed by Simon Hausmann.
  22651. [Qt] Package build fixes for Symbian
  22652. * enable building standalone QtWebkit for Symbian using qtlibinfix configuration option
  22653. qtlibinfix adds possibility having multiple versions of Qt in Symbian devices.
  22654. Fix also allows unfrozen DLL exports during development.
  22655. * Removed heap size configuration. DLLs don't have a heap.
  22656. * Removed enforcement to def files for package builds. Instead inherit the setting from
  22657. Qt's qconfig.pri whether to use def files or not. It's still possible to override this
  22658. also at qmake time by passing CONFIG+=def_files.
  22659. * WebCore.pro:
  22660. 2010-03-30 Ilya Tikhonovsky <loislo@chromium.org>
  22661. Reviewed by Pavel Feldman.
  22662. Web Inspector: Title for show/hide short records button was adjusted.
  22663. Some unused code was removed.
  22664. https://bugs.webkit.org/show_bug.cgi?id=36823
  22665. * inspector/front-end/TimelinePanel.js:
  22666. (WebInspector.TimelinePanel.prototype._createStatusbarButtons):
  22667. (WebInspector.TimelinePanel.prototype._toggleFilterButtonClicked):
  22668. (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
  22669. 2010-03-30 Adam Roben <aroben@apple.com>
  22670. Enable extra Direct3D debugging information in Debug builds
  22671. This makes it easier to track down memory leaks and misuses of the D3D
  22672. APIs in Debug builds.
  22673. Fixes <http://webkit.org/b/36820>
  22674. Reviewed by John Sullivan.
  22675. * platform/graphics/win/WKCACFLayerRenderer.cpp: Define D3D_DEBUG_INFO
  22676. in Debug builds before #including d3d9.h so that extra D3D debugging
  22677. information will be enabled.
  22678. 2010-03-30 Luiz Agostini <luiz.agostini@openbossa.org>
  22679. Reviewed by Kenneth Rohde Christiansen.
  22680. [Qt] Maemo5 theme - QtMaemoWebPopup class
  22681. https://bugs.webkit.org/show_bug.cgi?id=36790
  22682. Moving maemo5 theme related code from WebCore.pri to WebCore.pro and adding
  22683. new maemo menu lists popup class source and header to the project.
  22684. The code was in .pri file because of a theme css that was conditionally included.
  22685. As the css file is been included unconditionally there is no need to this
  22686. code to be kept in webcore.pri.
  22687. * WebCore.pri:
  22688. * WebCore.pro:
  22689. 2010-03-30 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  22690. Reviewed by David Kilzer.
  22691. Guard Geolocation files with ENABLE_GEOLOCATION
  22692. https://bugs.webkit.org/show_bug.cgi?id=25756
  22693. The intent is to guard the Geolocation implementation files
  22694. and minimize the impact on on clients/call sites.
  22695. * DerivedSources.make:
  22696. * WebCore.Geolocation.exp: Added. Exported interfaces if GEOLOCATION
  22697. is enabled.
  22698. * WebCore.base.exp:
  22699. * bindings/js/JSCustomPositionCallback.cpp:
  22700. * bindings/js/JSCustomPositionErrorCallback.cpp:
  22701. * bindings/js/JSGeolocationCustom.cpp:
  22702. * page/Geolocation.cpp:
  22703. (WebCore::Geolocation::disconnectFrame): Stub implementation if
  22704. GEOLOCATION is turned off.
  22705. (WebCore::Geolocation::Geolocation): Ditto.
  22706. (WebCore::Geolocation::~Geolocation): Ditto.
  22707. (WebCore::Geolocation::setIsAllowed): Ditto.
  22708. * page/Geolocation.h:
  22709. * page/Geolocation.idl:
  22710. * page/GeolocationPositionCache.cpp:
  22711. * page/Geoposition.idl:
  22712. * page/PositionError.idl:
  22713. * platform/GeolocationService.cpp:
  22714. * platform/mock/GeolocationServiceMock.cpp:
  22715. 2010-03-30 Andrey Kosyakov <caseq@chromium.org>
  22716. Reviewed by Pavel Feldman.
  22717. Support EventTarget interface in fake workers (both for Worker object
  22718. and WorkerContext). Use MessagePort to implement message passing to
  22719. support passing ports in PostMessage.
  22720. https://bugs.webkit.org/show_bug.cgi?id=36763
  22721. * inspector/front-end/InjectedFakeWorker.js:
  22722. (InjectedFakeWorker.Worker.onmessageGetter):
  22723. (InjectedFakeWorker.Worker.onmessageSetter):
  22724. (InjectedFakeWorker.Worker):
  22725. (InjectedFakeWorker.FakeWorker):
  22726. (InjectedFakeWorker.FakeWorker.prototype.postMessage):
  22727. (InjectedFakeWorker.FakeWorker.prototype.terminate):
  22728. (InjectedFakeWorker.FakeWorker.prototype._onWorkerFrameLoaded):
  22729. (InjectedFakeWorker.FakeWorker.prototype._setupWorkerContext.onmessageGetter):
  22730. (InjectedFakeWorker.FakeWorker.prototype._setupWorkerContext.onmessageSetter):
  22731. (InjectedFakeWorker.FakeWorker.prototype._setupWorkerContext):
  22732. (InjectedFakeWorker.FakeWorker.prototype._addEventListener):
  22733. (InjectedFakeWorker.FakeWorker.prototype._removeEventListener):
  22734. (InjectedFakeWorker.FakeWorker.prototype._callbackWrapper):
  22735. (InjectedFakeWorker.FakeWorker.prototype._handleException):
  22736. 2010-03-30 Kristian Monsen <kristianm@google.com>
  22737. Reviewed by David Levin.
  22738. [v8] Add if ENABLE guard for Worker specific code.
  22739. https://bugs.webkit.org/show_bug.cgi?id=36597
  22740. Build fix only, no new tests.
  22741. * bindings/v8/V8DOMWrapper.h:
  22742. 2010-03-29 Jeremy Orlow <jorlow@chromium.org>
  22743. Reviewed by Darin Fisher.
  22744. More IndexedDB work
  22745. https://bugs.webkit.org/show_bug.cgi?id=36770
  22746. Add the "singleton" IndexedDatabase object to PageGroup
  22747. IndexedDatabase now has a create() method since PageGroup can own the instance (at least for now)
  22748. Rip out the IDBRequest stuff (now obsolete).
  22749. DOMWindow now can instantiate indexedDatabase objects on demand.
  22750. New layout tests starting with the next patch (which should make indexedDB.open() "work").
  22751. * WebCore.gypi:
  22752. * bindings/v8/custom/V8IDBRequestCustom.cpp: Removed.
  22753. * page/DOMWindow.cpp:
  22754. (WebCore::DOMWindow::indexedDB):
  22755. * page/DOMWindow.h:
  22756. * page/PageGroup.cpp:
  22757. (WebCore::PageGroup::indexedDatabase):
  22758. * page/PageGroup.h:
  22759. * storage/IDBDatabase.cpp:
  22760. * storage/IDBDatabaseRequest.h:
  22761. (WebCore::IDBDatabaseRequest::createObjectStore):
  22762. * storage/IDBDatabaseRequest.idl:
  22763. * storage/IDBRequest.cpp: Removed.
  22764. * storage/IDBRequest.h: Removed.
  22765. * storage/IDBRequest.idl: Removed.
  22766. * storage/IndexedDatabase.cpp:
  22767. (WebCore::IndexedDatabase::create):
  22768. * storage/IndexedDatabase.h:
  22769. * storage/IndexedDatabaseImpl.cpp:
  22770. (WebCore::IndexedDatabaseImpl::create):
  22771. (WebCore::IndexedDatabaseImpl::IndexedDatabaseImpl):
  22772. (WebCore::IndexedDatabaseImpl::~IndexedDatabaseImpl):
  22773. * storage/IndexedDatabaseImpl.h:
  22774. * storage/IndexedDatabaseRequest.cpp:
  22775. (WebCore::IndexedDatabaseRequest::IndexedDatabaseRequest):
  22776. * storage/IndexedDatabaseRequest.h:
  22777. (WebCore::IndexedDatabaseRequest::create):
  22778. * storage/IndexedDatabaseRequest.idl:
  22779. * storage/chromium/IndexedDatabase.cpp:
  22780. (WebCore::IndexedDatabase::create):
  22781. 2010-03-30 Dirk Schulze <krit@webkit.org>
  22782. Reviewed by Nikolas Zimmermann.
  22783. SVG Glyph transformations wrong on use of SVGFont
  22784. https://bugs.webkit.org/show_bug.cgi?id=36731
  22785. Kerning on SVGFonts should be applied to the userSpace of the current Char
  22786. and not to the userSpace of the viewport. This means scaling the kerning
  22787. to match the current userSpace.
  22788. Test: svg/custom/glyph-transformation-with-hkern.svg
  22789. * rendering/SVGRootInlineBox.cpp:
  22790. (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
  22791. 2010-03-30 Dirk Schulze <krit@webkit.org>
  22792. Reviewed by Nikolas Zimmermann.
  22793. SVG Animation doesn't respect 'currentColor'
  22794. https://bugs.webkit.org/show_bug.cgi?id=36695
  22795. Test: svg/custom/animation-currentColor.svg
  22796. SVG Animation can't handle currentColor at the moment. This patch catches the
  22797. color value of the target element and replaces 'currentColor' with it's color string.
  22798. * svg/SVGAnimationElement.cpp:
  22799. (WebCore::adjustForCurrentColor):
  22800. (WebCore::SVGAnimationElement::startedActiveInterval):
  22801. 2010-03-30 Ilya Tikhonovsky <loislo@chromium.org>
  22802. Reviewed by Pavel Feldman.
  22803. Web Inspector: Visible/captured records counter should be implemented in Timeline panel.
  22804. https://bugs.webkit.org/show_bug.cgi?id=36708
  22805. * English.lproj/localizedStrings.js:
  22806. * inspector/front-end/TimelinePanel.js:
  22807. (WebInspector.TimelinePanel.prototype.get statusBarItems):
  22808. (WebInspector.TimelinePanel.prototype._createStatusbarButtons):
  22809. (WebInspector.TimelinePanel.prototype._updateRecordsCounter):
  22810. (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
  22811. (WebInspector.TimelinePanel.prototype._createRootRecord):
  22812. (WebInspector.TimelinePanel.prototype._refresh):
  22813. (WebInspector.TimelinePanel.prototype._filterRecords):
  22814. * inspector/front-end/inspector.css:
  22815. (.timeline-records-counter):
  22816. 2010-03-30 Philippe Normand <pnormand@igalia.com>
  22817. [GStreamer] define static variables with DEFINE_STATIC_LOCAL macro
  22818. https://bugs.webkit.org/show_bug.cgi?id=36653
  22819. Unreviewed, don't define the bool variable with
  22820. DEFINE_STATIC_LOCAL, it makes sense only for objects which have a
  22821. destructor. Thanks to Dan Bernstein for spotting this.
  22822. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  22823. (WebCore::mimeTypeCache):
  22824. 2010-03-29 Gyuyoung Kim <gyuyoung.kim@samsung.com>
  22825. Reviewed by Eric Seidel.
  22826. There is a build break due to the disabled() when wml feature is
  22827. enabled. This break comes from the Bug 35056 - Disabled menu options
  22828. are still submitted.(https://bugs.webkit.org/show_bug.cgi?id=35056)
  22829. The WMLOptionElement.h needs to define the disabled() as well.
  22830. And, there is an additional break due to Bug 36177 - Multiselect Popup
  22831. - Listbox click simulation. (https://bugs.webkit.org/show_bug.cgi?id=36177)
  22832. virtual void listBoxSelectItem() should be added to WMLSelectElement.h as well.
  22833. https://bugs.webkit.org/show_bug.cgi?id=36698
  22834. * wml/WMLOptionElement.h:
  22835. (WebCore::WMLOptionElement::disabled):
  22836. * wml/WMLSelectElement.h:
  22837. (WebCore::WMLSelectElement::listBoxSelectItem):
  22838. 2010-03-29 Shinichiro Hamaji <hamaji@chromium.org>
  22839. Reviewed by David Hyatt.
  22840. No vertical scrollbar after the CSS class change
  22841. https://bugs.webkit.org/show_bug.cgi?id=36461
  22842. Don't suppress scrollbar change for non-first layouts.
  22843. In the first layout, the scrollbar change will happen in later
  22844. adjustViewSize() call, but in other layouts, adjustViewSize() may
  22845. not be called when the size of contents doesn't change.
  22846. * page/FrameView.cpp:
  22847. (WebCore::FrameView::layout):
  22848. 2010-03-29 Chris Evans <cevans@chromium.org>
  22849. Reviewed by Adam Barth.
  22850. Don't use unique domains for file:// separation: it breaks local
  22851. databases, and access to your own same-origin iframes. Instead, use
  22852. path-based access checks.
  22853. https://bugs.webkit.org/show_bug.cgi?id=36692
  22854. Test: fast/xmlhttprequest/xmlhttprequest-no-file-access.html
  22855. * dom/Document.cpp:
  22856. (WebCore::Document::initSecurityContext): renamed API.
  22857. * page/SecurityOrigin.h:
  22858. * page/SecurityOrigin.cpp:
  22859. (WebCore::SecurityOrigin::SecurityOrigin):
  22860. Initialize new flag. Take note of file:// path.
  22861. Copy new fields in copy constructor.
  22862. (WebCore::SecurityOrigin::canAccess):
  22863. Take into account path-based origin separation for file://
  22864. (WebCore::SecurityOrigin::enforceFilePathSeparation):
  22865. New method to enable file:// path origin separation.
  22866. (WebCore::SecurityOrigin::toString):
  22867. Return a null domain for an isolated file origin.
  22868. (WebCore::SecurityOrigin::isSameSchemeHostPort):
  22869. Take into account path-based origin separation for file://
  22870. (WebCore::SecurityOrigin::passesFileCheck):
  22871. Abstraction of common logic for file:// access checks.
  22872. 2010-03-29 Rafael Weinstein <rafaelw@chromium.org>
  22873. Reviewed by Adam Barth.
  22874. Change NotificationPresenter::checkPermission() to take the source frames full KURL,
  22875. rather than its SecurityOrigin. This will aid chromium in having more fine grained
  22876. permissions to control notification spam.
  22877. * notifications/Notification.cpp:
  22878. (WebCore::Notification::Notification):
  22879. * notifications/NotificationCenter.cpp:
  22880. (WebCore::NotificationCenter::checkPermission):
  22881. * notifications/NotificationPresenter.h:
  22882. 2010-03-29 Luiz Agostini <luiz.agostini@openbossa.org>
  22883. Reviewed by Kenneth Rohde Christiansen.
  22884. [Qt] Multiselect - Adding method itemIsSelected() to QtAbstractWebPopup
  22885. https://bugs.webkit.org/show_bug.cgi?id=36769
  22886. Adding method itemIsSelected() to QtAbstractWebPopup.
  22887. * platform/qt/QtAbstractWebPopup.h:
  22888. (WebCore::QtAbstractWebPopup::itemIsSelected):
  22889. 2010-03-29 Dawit Alemayehu <adawit@kde.org>
  22890. Reviewed by Simon Hausmann.
  22891. Added a function, WebCore::shouldTreatAsAttachment, to HTTPParsers.*
  22892. https://bugs.webkit.org/show_bug.cgi?id=36395
  22893. This function, which was moved from WebKit/chromium/src/FrameClientImpl.cpp,
  22894. is used to check whether or not a request is supposed to be rendered or
  22895. simply downloaded based on the "Content-Disposition" header sent by the
  22896. web server. The intent of code refactoring is to avoid code duplication
  22897. so that this piece of code can be used by other implementations such as
  22898. QtWebKit.
  22899. * platform/network/HTTPParsers.cpp:
  22900. (WebCore::shouldTreatAsAttachment):
  22901. * platform/network/HTTPParsers.h:
  22902. 2010-03-29 Chris Fleizach <cfleizach@apple.com>
  22903. Reviewed by Beth Dakin.
  22904. Bug 36735 - Live regions don't send out notifications when the element changing is the live region
  22905. https://bugs.webkit.org/show_bug.cgi?id=36735
  22906. Test: platform/mac/accessibility/aria-liveregion-on-image.html
  22907. * accessibility/AccessibilityRenderObject.cpp:
  22908. (WebCore::AccessibilityRenderObject::contentChanged):
  22909. 2010-03-29 Stephen White <senorblanco@chromium.org>
  22910. Reviewed by Dave Hyatt.
  22911. In order to speed up multiple calls to CSSPrimitiveValue::cssText(),
  22912. this CL caches the String result. When m_value is changed, the
  22913. cached string is cleared. This gives a good speedup on benchmarks
  22914. which do a lot of CSS property gets, such as Peacekeeper.
  22915. The processing cost should be negligible, since the strings are
  22916. refcounted. The memory cost is an additional 4 bytes per
  22917. CSSPrimitiveValue, and the extended lifetime of the computed string
  22918. (potentially, the same as the lifetime of the CSSPrimitiveValue).
  22919. https://bugs.webkit.org/show_bug.cgi?id=36556
  22920. Covered by fast/css/cssText-cache.html, and more.
  22921. * css/CSSPrimitiveValue.cpp:
  22922. (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
  22923. (WebCore::CSSPrimitiveValue::cleanup):
  22924. (WebCore::CSSPrimitiveValue::cssText):
  22925. * css/CSSPrimitiveValue.h:
  22926. 2010-03-22 Kenneth Rohde Christiansen <kenneth@webkit.org>
  22927. Reviewed by Simon Fraser.
  22928. Add support for Widgets 1.0: View Mode Media Feature
  22929. https://bugs.webkit.org/show_bug.cgi?id=35446
  22930. When enabling Web Widgets, add support for the view-mode media
  22931. feature (http://www.w3.org/TR/widgets-vmmf/).
  22932. Test: fast/media/media-feature-wgt-view-mode.html
  22933. * css/CSSValueKeywords.in:
  22934. * css/MediaFeatureNames.h:
  22935. * css/MediaQueryEvaluator.cpp:
  22936. (WebCore::view_modeMediaFeatureEval):
  22937. * page/ChromeClient.h:
  22938. (WebCore::ChromeClient::isDocked):
  22939. (WebCore::ChromeClient::isFloating):
  22940. (WebCore::ChromeClient::isApplication):
  22941. (WebCore::ChromeClient::isFullscreen):
  22942. 2010-03-29 Kenneth Russell <kbr@google.com>
  22943. Reviewed by Darin Fisher.
  22944. Eliminate use of GL_BGRA in GraphicsContext3DSkia.cpp
  22945. https://bugs.webkit.org/show_bug.cgi?id=36737
  22946. No new tests; ran WebGL demos in Chromium on Windows to verify fix.
  22947. * platform/graphics/skia/GraphicsContext3DSkia.cpp:
  22948. (WebCore::GraphicsContext3D::getImageData):
  22949. 2010-03-29 Alexander Pavlov <apavlov@chromium.org>
  22950. Reviewed by Pavel Feldman.
  22951. Web Inspector: Cover the Audits panel with tests
  22952. https://bugs.webkit.org/show_bug.cgi?id=36613
  22953. Sort results, add a few drive-by fixes and refactorings to improve testability.
  22954. Test: inspector/audits-panel-functional.html
  22955. * English.lproj/localizedStrings.js:
  22956. * inspector/front-end/AuditResultView.js:
  22957. (WebInspector.AuditResultView):
  22958. (WebInspector.AuditCategoryResultPane.ruleSorter):
  22959. (WebInspector.AuditCategoryResultPane):
  22960. * inspector/front-end/AuditRules.js:
  22961. (WebInspector.AuditRules.GzipRule.prototype.doRun):
  22962. (WebInspector.AuditRules.CombineExternalResourcesRule.prototype.doRun):
  22963. (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.evalCallback.selectorsCallback):
  22964. (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun):
  22965. (WebInspector.AuditRules.CssInHeadRule.prototype.doRun):
  22966. (WebInspector.AuditRules.CookieSizeRule.prototype.processCookies):
  22967. * inspector/front-end/AuditsPanel.js:
  22968. (WebInspector.AuditRuleResult.linkifyDisplayName):
  22969. (WebInspector.AuditRuleResult.resourceDomain):
  22970. (WebInspector.AuditRuleResult.prototype.addURL):
  22971. * inspector/front-end/inspector.js:
  22972. (WebInspector.displayNameForURL):
  22973. 2010-03-29 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
  22974. Reviewed by nobody, build fix.
  22975. [Qt] Fix build break introduced in r56724.
  22976. * WebCore.pro:
  22977. 2010-03-29 Alexander Pavlov <apavlov@chromium.org>
  22978. Reviewed by Pavel Feldman.
  22979. Web Inspector should highlight when clicking a node's closing tag
  22980. https://bugs.webkit.org/show_bug.cgi?id=16258
  22981. * inspector/front-end/ElementsTreeOutline.js:
  22982. (WebInspector.ElementsTreeOutline.prototype.set suppressRevealAndSelect):
  22983. (WebInspector.ElementsTreeOutline.prototype.revealAndSelectNode):
  22984. (WebInspector.ElementsTreeOutline.prototype._keyDown):
  22985. (WebInspector.ElementsTreeOutline.prototype._onmousemove):
  22986. (WebInspector.ElementsTreeElement):
  22987. (WebInspector.ElementsTreeElement.prototype.showChild):
  22988. (WebInspector.ElementsTreeElement.prototype.onpopulate):
  22989. (WebInspector.ElementsTreeElement.prototype.updateChildren):
  22990. (WebInspector.ElementsTreeElement.prototype.insertChildElement):
  22991. (WebInspector.ElementsTreeElement.prototype.moveChild):
  22992. (WebInspector.ElementsTreeElement.prototype._updateChildren):
  22993. (WebInspector.ElementsTreeElement.prototype.onexpand):
  22994. (WebInspector.ElementsTreeElement.prototype.oncollapse):
  22995. (WebInspector.ElementsTreeElement.prototype.onselect):
  22996. (WebInspector.ElementsTreeElement.prototype.ondblclick):
  22997. ():
  22998. 2010-03-29 Marcus Bulach <bulach@chromium.org>
  22999. Reviewed by Jeremy Orlow.
  23000. https://bugs.webkit.org/show_bug.cgi?id=36315
  23001. Remove obsolete Geolocation::m_currentPosition
  23002. (follow up on https://bugs.webkit.org/show_bug.cgi?id=30676)
  23003. * page/Geolocation.cpp:
  23004. (WebCore::Geolocation::positionChanged):
  23005. (WebCore::Geolocation::makeSuccessCallbacks):
  23006. * page/Geolocation.h:
  23007. * platform/chromium/GeolocationServiceChromium.cpp:
  23008. (WebCore::GeolocationServiceChromium::GeolocationServiceChromium):
  23009. 2010-03-29 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
  23010. Reviewed by Simon Hausmann.
  23011. [Qt] Do not generate INSTALLS for webkit when building inside Qt.
  23012. Qt will do this for us.
  23013. * WebCore.pro:
  23014. 2010-03-29 Antti Koivisto <koivisto@iki.fi>
  23015. Reviewed by Kenneth Rohde Christiansen.
  23016. https://bugs.webkit.org/show_bug.cgi?id=36703
  23017. Timer restart loop during page loading
  23018. Fix regression introduced in http://trac.webkit.org/changeset/54526.
  23019. Restarting the request timer unconditionally from the timer callback is a bad idea.
  23020. Instead, start the timer when a non-cached request completes.
  23021. * loader/loader.cpp:
  23022. (WebCore::Loader::Host::nonCacheRequestComplete):
  23023. (WebCore::Loader::Host::servePendingRequests):
  23024. 2010-03-29 Thomas Zander <t.zander@nokia.com>
  23025. Reviewed by Simon Hausmann.
  23026. [Qt] Shadowbuilds of WebCore with Qt on Symbian fails.
  23027. https://bugs.webkit.org/show_bug.cgi?id=36749
  23028. Doing a 'make sis' expects the dll in the libdir, so place it
  23029. there. This fixes out-of-source building to always put the dll
  23030. in the expected dir.
  23031. * WebCore.pro: Fix for shadow builds inside Qt.
  23032. 2010-03-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
  23033. Reviewed by Antti Koivisto.
  23034. Implement flattening for iframes.
  23035. Refactoring of frameset flattening code to reuse it for
  23036. iframe flattening.
  23037. Tests: fast/frames/flattening/iframe-flattening-simple.html
  23038. * WebCore.base.exp:
  23039. * page/FrameView.cpp:
  23040. (WebCore::FrameView::layout):
  23041. (WebCore::FrameView::scheduleRelayout):
  23042. * page/Settings.cpp:
  23043. (WebCore::Settings::Settings):
  23044. (WebCore::Settings::setFrameFlatteningEnabled):
  23045. * page/Settings.h:
  23046. (WebCore::Settings::frameFlatteningEnabled):
  23047. * rendering/RenderFrame.cpp:
  23048. * rendering/RenderFrame.h:
  23049. * rendering/RenderFrameSet.cpp:
  23050. (WebCore::RenderFrameSet::flattenFrameSet):
  23051. * rendering/RenderFrameSet.h:
  23052. * rendering/RenderPart.cpp:
  23053. (WebCore::RenderPart::layoutWithFlattening):
  23054. * rendering/RenderPart.h:
  23055. * rendering/RenderPartObject.cpp:
  23056. (WebCore::RenderPartObject::flattenFrame):
  23057. (WebCore::RenderPartObject::calcHeight):
  23058. (WebCore::RenderPartObject::calcWidth):
  23059. (WebCore::RenderPartObject::layout):
  23060. * rendering/RenderPartObject.h:
  23061. 2010-03-29 Andrei Popescu <andreip@google.com>
  23062. Reviewed by Adam Barth.
  23063. Page Cache does not work on Android with V8
  23064. https://bugs.webkit.org/show_bug.cgi?id=36665
  23065. No new tests, existing tests should suffice, this is platform code.
  23066. This implementation simply saves the context and the global object
  23067. just before the frame is navigated to a new url. At restore time,
  23068. the global object is reattached to the context and the context
  23069. is attached to the window shell of the frame.
  23070. Note that isolated worlds are not taken into account in any way,
  23071. as Android does not use them.
  23072. * bindings/v8/ScriptCachedFrameData.cpp: Added.
  23073. (WebCore::ScriptCachedFrameData::ScriptCachedFrameData):
  23074. (WebCore::ScriptCachedFrameData::domWindow):
  23075. (WebCore::ScriptCachedFrameData::~ScriptCachedFrameData):
  23076. (WebCore::ScriptCachedFrameData::restore):
  23077. (WebCore::ScriptCachedFrameData::clear):
  23078. * bindings/v8/ScriptCachedFrameData.h:
  23079. * bindings/v8/V8DOMWindowShell.cpp:
  23080. (WebCore::V8DOMWindowShell::setContext):
  23081. * bindings/v8/V8DOMWindowShell.h:
  23082. 2010-03-29 Thomas Zander <t.zander@nokia.com>
  23083. Reviewed by Simon Hausmann.
  23084. [Qt] Make it possible to build using both Windows and Linux for Symbian
  23085. https://bugs.webkit.org/show_bug.cgi?id=36748
  23086. * WebCore.pro: don't assume Windows buildsystem is the only one
  23087. and exclude the windows-only setters from the linux builds.
  23088. 2010-03-29 Thomas Zander <t.zander@nokia.com>
  23089. Reviewed by Simon Hausmann.
  23090. https://bugs.webkit.org/show_bug.cgi?id=36745
  23091. [Qt] Fix def file builds with Qt 4.7.
  23092. Switched to using DEF_FILE, which is the official variable.
  23093. * WebCore.pro: Use DEF_FILE
  23094. 2010-03-24 Jeremy Orlow <jorlow@chromium.org>
  23095. Reviewed by Darin Fisher.
  23096. A few more steps towards IndexedDB
  23097. https://bugs.webkit.org/show_bug.cgi?id=36546
  23098. Add a callback interface to be used by all async methods.
  23099. Add the first fragments of IDBDatabase.
  23100. Clean up on IDBDatabaseError.
  23101. Flesh out IndexedDatabase further.
  23102. Not enough hooked up yet to test. Soon though...
  23103. * WebCore.gypi:
  23104. * storage/IDBCallbacks.h: Added.
  23105. (WebCore::IDBCallbacks::~IDBCallbacks):
  23106. * storage/IDBDatabase.cpp: Added.
  23107. * storage/IDBDatabase.h: Added.
  23108. (WebCore::IDBDatabase::~IDBDatabase):
  23109. * storage/IDBDatabaseError.h:
  23110. (WebCore::IDBDatabaseError::create):
  23111. (WebCore::IDBDatabaseError::message):
  23112. (WebCore::IDBDatabaseError::IDBDatabaseError):
  23113. * storage/IndexedDatabase.h:
  23114. * storage/IndexedDatabaseImpl.cpp:
  23115. (WebCore::IndexedDatabaseImpl::IndexedDatabaseImpl):
  23116. (WebCore::IndexedDatabaseImpl::~IndexedDatabaseImpl):
  23117. (WebCore::IndexedDatabaseImpl::open):
  23118. * storage/IndexedDatabaseImpl.h:
  23119. * storage/IndexedDatabaseRequest.cpp:
  23120. (WebCore::IndexedDatabaseRequest::open):
  23121. 2010-03-29 Mikhail Naganov <mnaganov@chromium.org>
  23122. Reviewed by Pavel Feldman.
  23123. Remove a possibility of confusion from Profiles panel Welcome screen
  23124. by turning buttons into non-clickable glyphs. Also, span instructions
  23125. alongside panel width.
  23126. https://bugs.webkit.org/show_bug.cgi?id=34319
  23127. * English.lproj/localizedStrings.js:
  23128. * inspector/front-end/ProfileView.js:
  23129. (WebInspector.CPUProfileType.prototype.get welcomeMessage):
  23130. * inspector/front-end/ProfilesPanel.js:
  23131. (WebInspector.ProfilesPanel.prototype._addWelcomeMessage):
  23132. * inspector/front-end/inspector.css:
  23133. (.panel-enabler-view.welcome .instructions):
  23134. (.panel-enabler-view.welcome button.status-bar-item):
  23135. 2010-03-26 Philippe Normand <pnormand@igalia.com>
  23136. Reviewed by Eric Seidel.
  23137. [GStreamer] define static variables with DEFINE_STATIC_LOCAL macro
  23138. https://bugs.webkit.org/show_bug.cgi?id=36653
  23139. Defined the static variables using DEFINE_STATIC_GLOBAL.
  23140. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  23141. (WebCore::mimeTypeCache):
  23142. 2010-03-26 Philippe Normand <pnormand@igalia.com>
  23143. Reviewed by Eric Seidel.
  23144. [GStreamer] player header cleanups
  23145. https://bugs.webkit.org/show_bug.cgi?id=36656
  23146. Destructor made private and added missing
  23147. mediaPlayerPrivateMuteChangedCallback declaration.
  23148. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
  23149. 2010-03-29 Yury Semikhatsky <yurys@chromium.org>
  23150. Reviewed by Pavel Feldman.
  23151. Protect global object from being GC'ed if there are messages written to console from the iframe with that global object.
  23152. Whent serializing objects in the injected script check that global object properties are still defined before using them as arguments. The may become undefined if owning frame navigated to a different domain.
  23153. https://bugs.webkit.org/show_bug.cgi?id=36612
  23154. Test: http/tests/inspector-enabled/console-log-before-frame-navigation.html
  23155. * bindings/js/ScriptState.h:
  23156. (WebCore::ScriptStateProtectedPtr::ScriptStateProtectedPtr):
  23157. (WebCore::ScriptStateProtectedPtr::get):
  23158. * bindings/v8/ScriptState.h:
  23159. (WebCore::ScriptStateProtectedPtr::ScriptStateProtectedPtr):
  23160. (WebCore::ScriptStateProtectedPtr::~ScriptStateProtectedPtr):
  23161. (WebCore::ScriptStateProtectedPtr::get):
  23162. * inspector/ConsoleMessage.cpp:
  23163. (WebCore::ConsoleMessage::addToFrontend):
  23164. * inspector/ConsoleMessage.h:
  23165. * inspector/front-end/InjectedScript.js:
  23166. (injectedScriptConstructor):
  23167. (injectedScriptConstructor.):
  23168. 2010-03-26 Philippe Normand <pnormand@igalia.com>
  23169. Reviewed by Eric Carlson.
  23170. It should be possible to use GStreamer in addition to another media engine
  23171. https://bugs.webkit.org/show_bug.cgi?id=36654
  23172. Renamed gstreamer player and added a WTF_USE_GSTREAMER
  23173. define. Made the MediaPlayer register the GStreamer backend only
  23174. if it's enabled (true by default on WebKitGTK+).
  23175. * GNUmakefile.am:
  23176. * platform/graphics/MediaPlayer.cpp:
  23177. (WebCore::installedMediaEngines):
  23178. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  23179. (WebCore::mediaPlayerPrivateMessageCallback):
  23180. (WebCore::mediaPlayerPrivateSourceChangedCallback):
  23181. (WebCore::mediaPlayerPrivateVolumeChangedCallback):
  23182. (WebCore::mediaPlayerPrivateMuteChangedCallback):
  23183. (WebCore::mediaPlayerPrivateRepaintCallback):
  23184. (WebCore::MediaPlayerPrivateGStreamer::create):
  23185. (WebCore::MediaPlayerPrivateGStreamer::registerMediaEngine):
  23186. (WebCore::MediaPlayerPrivateGStreamer::isAvailable):
  23187. (WebCore::MediaPlayerPrivateGStreamer::MediaPlayerPrivateGStreamer):
  23188. (WebCore::MediaPlayerPrivateGStreamer::~MediaPlayerPrivateGStreamer):
  23189. (WebCore::MediaPlayerPrivateGStreamer::load):
  23190. (WebCore::MediaPlayerPrivateGStreamer::commitLoad):
  23191. (WebCore::MediaPlayerPrivateGStreamer::changePipelineState):
  23192. (WebCore::MediaPlayerPrivateGStreamer::prepareToPlay):
  23193. (WebCore::MediaPlayerPrivateGStreamer::play):
  23194. (WebCore::MediaPlayerPrivateGStreamer::pause):
  23195. (WebCore::MediaPlayerPrivateGStreamer::duration):
  23196. (WebCore::MediaPlayerPrivateGStreamer::currentTime):
  23197. (WebCore::MediaPlayerPrivateGStreamer::seek):
  23198. (WebCore::MediaPlayerPrivateGStreamer::startEndPointTimerIfNeeded):
  23199. (WebCore::MediaPlayerPrivateGStreamer::cancelSeek):
  23200. (WebCore::MediaPlayerPrivateGStreamer::endPointTimerFired):
  23201. (WebCore::MediaPlayerPrivateGStreamer::paused):
  23202. (WebCore::MediaPlayerPrivateGStreamer::seeking):
  23203. (WebCore::MediaPlayerPrivateGStreamer::naturalSize):
  23204. (WebCore::MediaPlayerPrivateGStreamer::hasVideo):
  23205. (WebCore::MediaPlayerPrivateGStreamer::hasAudio):
  23206. (WebCore::MediaPlayerPrivateGStreamer::setVolume):
  23207. (WebCore::MediaPlayerPrivateGStreamer::volumeChangedTimerFired):
  23208. (WebCore::MediaPlayerPrivateGStreamer::volumeChanged):
  23209. (WebCore::MediaPlayerPrivateGStreamer::setRate):
  23210. (WebCore::MediaPlayerPrivateGStreamer::networkState):
  23211. (WebCore::MediaPlayerPrivateGStreamer::readyState):
  23212. (WebCore::MediaPlayerPrivateGStreamer::buffered):
  23213. (WebCore::MediaPlayerPrivateGStreamer::processBufferingStats):
  23214. (WebCore::MediaPlayerPrivateGStreamer::fillTimerFired):
  23215. (WebCore::MediaPlayerPrivateGStreamer::maxTimeSeekable):
  23216. (WebCore::MediaPlayerPrivateGStreamer::maxTimeLoaded):
  23217. (WebCore::MediaPlayerPrivateGStreamer::bytesLoaded):
  23218. (WebCore::MediaPlayerPrivateGStreamer::totalBytes):
  23219. (WebCore::MediaPlayerPrivateGStreamer::cancelLoad):
  23220. (WebCore::MediaPlayerPrivateGStreamer::updateStates):
  23221. (WebCore::MediaPlayerPrivateGStreamer::mediaLocationChanged):
  23222. (WebCore::MediaPlayerPrivateGStreamer::loadNextLocation):
  23223. (WebCore::MediaPlayerPrivateGStreamer::loadStateChanged):
  23224. (WebCore::MediaPlayerPrivateGStreamer::sizeChanged):
  23225. (WebCore::MediaPlayerPrivateGStreamer::timeChanged):
  23226. (WebCore::MediaPlayerPrivateGStreamer::didEnd):
  23227. (WebCore::MediaPlayerPrivateGStreamer::durationChanged):
  23228. (WebCore::MediaPlayerPrivateGStreamer::supportsMuting):
  23229. (WebCore::MediaPlayerPrivateGStreamer::setMuted):
  23230. (WebCore::MediaPlayerPrivateGStreamer::muteChangedTimerFired):
  23231. (WebCore::MediaPlayerPrivateGStreamer::muteChanged):
  23232. (WebCore::MediaPlayerPrivateGStreamer::loadingFailed):
  23233. (WebCore::MediaPlayerPrivateGStreamer::setSize):
  23234. (WebCore::MediaPlayerPrivateGStreamer::setVisible):
  23235. (WebCore::MediaPlayerPrivateGStreamer::repaint):
  23236. (WebCore::MediaPlayerPrivateGStreamer::paint):
  23237. (WebCore::MediaPlayerPrivateGStreamer::getSupportedTypes):
  23238. (WebCore::MediaPlayerPrivateGStreamer::supportsType):
  23239. (WebCore::MediaPlayerPrivateGStreamer::hasSingleSecurityOrigin):
  23240. (WebCore::MediaPlayerPrivateGStreamer::supportsFullscreen):
  23241. (WebCore::MediaPlayerPrivateGStreamer::setPreload):
  23242. (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin):
  23243. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
  23244. 2010-03-28 Alexey Proskuryakov <ap@apple.com>
  23245. Reviewed by Sam Weinig.
  23246. https://bugs.webkit.org/show_bug.cgi?id=36733
  23247. Use a common header for Windows virtual key codes on all platforms
  23248. No change in functionality, so no new tests.
  23249. * platform/WindowsKeyboardCodes.h: Added. Define VK_* key codes as macros, matching Windows.
  23250. * platform/KeyboardCodes.h: Removed.
  23251. * platform/android/KeyboardCodes.h: Removed.
  23252. * platform/chromium/KeyboardCodesPosix.h: Removed.
  23253. * platform/chromium/KeyboardCodesWin.h: Removed.
  23254. * platform/haiku/KeyboardCodes.h: Removed.
  23255. * platform/wx/KeyboardCodes.h: Removed.
  23256. Removed platform specific attempts to do the same thing. In fact, platform/KeyboardCodes.h
  23257. was supposed to be cross-platform, but it didn't have a sufficiently descriptive name, and
  23258. its name was the same as platform-specific versions, so I chose a new one.
  23259. * platform/chromium/KeyboardCodes.h: Copied from WebCore/platform/chromium/KeyboardCodesWin.h.
  23260. Chromium redefines Windows constants to different names; keeping the header doing that to
  23261. avoid breaking Chromium code.
  23262. * GNUmakefile.am:
  23263. * WebCore.gypi:
  23264. Replaced KeyboardCodes.h with WindowsKeyboardCodes.h.
  23265. * WebCore.xcodeproj/project.pbxproj:
  23266. * platform/cocoa/KeyEventCocoa.mm:
  23267. (WebCore::windowsKeyCodeForKeyCode):
  23268. (WebCore::windowsKeyCodeForCharCode):
  23269. Mac used to hardcode the key codes; changed to use VK_* macros.
  23270. * config.h: Removed a hack to include KeyboardCodes.h, it shouldn't be necessary any more.
  23271. * platform/android/KeyEventAndroid.cpp:
  23272. * platform/brew/PlatformKeyboardEventBrew.cpp:
  23273. * platform/efl/PlatformKeyboardEventEfl.cpp:
  23274. * platform/gtk/KeyEventGtk.cpp:
  23275. * platform/haiku/PlatformKeyboardEventHaiku.cpp:
  23276. * platform/qt/PlatformKeyboardEventQt.cpp:
  23277. * platform/wx/KeyboardEventWx.cpp:
  23278. Changed to include WindowsKeyboardCodes.h.
  23279. 2010-03-28 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  23280. Reviewed by Simon Hausmann.
  23281. [Qt] Remove the definition of WTF_CHANGES guards from the build system
  23282. https://bugs.webkit.org/show_bug.cgi?id=31670
  23283. No new tests as there is no new functionality.
  23284. * WebCore.pri: Remove the definition of WTF_CHANGES
  23285. as it is already defined in config.h
  23286. 2010-03-28 Sam Weinig <sam@webkit.org>
  23287. Reviewed by Dan Bernstein.
  23288. Clean up the Xcode project a bit.
  23289. * WebCore.xcodeproj/project.pbxproj:
  23290. 2010-03-28 Pavel Feldman <pfeldman@chromium.org>
  23291. Reviewed by Timothy Hatcher.
  23292. Web Inspector: Toggling style properties on/off does not always work.
  23293. https://bugs.webkit.org/show_bug.cgi?id=36720
  23294. * inspector/InspectorController.cpp:
  23295. * inspector/InspectorDOMAgent.cpp:
  23296. (WebCore::InspectorDOMAgent::toggleStyleEnabled):
  23297. (WebCore::InspectorDOMAgent::buildObjectForStyle):
  23298. (WebCore::InspectorDOMAgent::buildArrayForDisabledStyleProperties):
  23299. * inspector/InspectorDOMAgent.h:
  23300. * inspector/front-end/DOMAgent.js:
  23301. (WebInspector.CSSStyleDeclaration):
  23302. 2010-03-28 Pavel Feldman <pfeldman@chromium.org>
  23303. Reviewed by Timothy Hatcher.
  23304. Web Inspector: resource links should navigate to resource panel enabler when resource tracking is off.
  23305. https://bugs.webkit.org/show_bug.cgi?id=36722
  23306. * English.lproj/localizedStrings.js:
  23307. * inspector/front-end/inspector.js:
  23308. (WebInspector.documentMouseOver):
  23309. (WebInspector.documentClick.followLink):
  23310. (WebInspector.documentClick):
  23311. 2010-03-28 Dirk Schulze <krit@webkit.org>
  23312. Unreviewed build-fix for chromium linux.
  23313. SVGResourceMarker needs to be moved to RenderersSVGResourceMarker
  23314. https://bugs.webkit.org/show_bug.cgi?id=36185
  23315. * svg/SVGStyledElement.cpp:
  23316. (WebCore::SVGStyledElement::invalidateResources):
  23317. 2010-03-28 Dirk Schulze <krit@webkit.org>
  23318. Reviewed by Nikolas Zimmermann.
  23319. SVGResourceMarker needs to be moved to RenderersSVGResourceMarker
  23320. https://bugs.webkit.org/show_bug.cgi?id=36185
  23321. This moves SVGResourceMarker to RenderersSVGResourceMarker. This follows other
  23322. SVG resources like masker and clipper and makes DRT results more readable and
  23323. adds additonal informations.
  23324. Some marker specific code also moved out from RenderSVGViewportContainer to
  23325. RenderersSVGResourceMarker.
  23326. * Android.mk:
  23327. * GNUmakefile.am:
  23328. * WebCore.gypi:
  23329. * WebCore.pro:
  23330. * WebCore.vcproj/WebCore.vcproj:
  23331. * WebCore.xcodeproj/project.pbxproj:
  23332. * rendering/RenderPath.cpp:
  23333. (WebCore::RenderPath::calculateMarkerBoundsIfNeeded):
  23334. * rendering/RenderSVGImage.cpp:
  23335. (WebCore::RenderSVGImage::destroy):
  23336. * rendering/RenderSVGResource.h:
  23337. (WebCore::):
  23338. * rendering/RenderSVGResourceMarker.cpp: Added.
  23339. (WebCore::RenderSVGResourceMarker::RenderSVGResourceMarker):
  23340. (WebCore::RenderSVGResourceMarker::~RenderSVGResourceMarker):
  23341. (WebCore::RenderSVGResourceMarker::layout):
  23342. (WebCore::RenderSVGResourceMarker::addClient):
  23343. (WebCore::RenderSVGResourceMarker::invalidateClients):
  23344. (WebCore::RenderSVGResourceMarker::invalidateClient):
  23345. (WebCore::RenderSVGResourceMarker::applyViewportClip):
  23346. (WebCore::RenderSVGResourceMarker::markerBoundaries):
  23347. (WebCore::RenderSVGResourceMarker::localToParentTransform):
  23348. (WebCore::RenderSVGResourceMarker::referencePoint):
  23349. (WebCore::RenderSVGResourceMarker::angle):
  23350. (WebCore::RenderSVGResourceMarker::markerTransformation):
  23351. (WebCore::RenderSVGResourceMarker::draw):
  23352. (WebCore::RenderSVGResourceMarker::markerContentTransformation):
  23353. (WebCore::RenderSVGResourceMarker::viewportTransform):
  23354. (WebCore::RenderSVGResourceMarker::calcViewport):
  23355. * rendering/RenderSVGResourceMarker.h: Added.
  23356. (WebCore::RenderSVGResourceMarker::renderName):
  23357. (WebCore::RenderSVGResourceMarker::applyResource):
  23358. (WebCore::RenderSVGResourceMarker::resourceBoundingBox):
  23359. (WebCore::RenderSVGResourceMarker::markerUnits):
  23360. (WebCore::RenderSVGResourceMarker::resourceType):
  23361. * rendering/RenderSVGViewportContainer.cpp:
  23362. (WebCore::RenderSVGViewportContainer::calcViewport):
  23363. (WebCore::RenderSVGViewportContainer::viewportTransform):
  23364. * rendering/RenderSVGViewportContainer.h:
  23365. * rendering/SVGMarkerData.h:
  23366. (WebCore::SVGMarkerData::SVGMarkerData):
  23367. (WebCore::SVGMarkerData::marker):
  23368. (WebCore::SVGMarkerData::updateTypeAndMarker):
  23369. * rendering/SVGMarkerLayoutInfo.cpp:
  23370. (WebCore::processStartAndMidMarkers):
  23371. (WebCore::SVGMarkerLayoutInfo::calculateBoundaries):
  23372. (WebCore::SVGMarkerLayoutInfo::addLayoutedMarker):
  23373. * rendering/SVGMarkerLayoutInfo.h:
  23374. (WebCore::MarkerLayout::MarkerLayout):
  23375. (WebCore::SVGMarkerLayoutInfo::midMarker):
  23376. * rendering/SVGRenderSupport.cpp:
  23377. (WebCore::deregisterFromResources):
  23378. * rendering/SVGRenderSupport.h:
  23379. * rendering/SVGRenderTreeAsText.cpp:
  23380. (WebCore::operator<<):
  23381. (WebCore::writeSVGResource):
  23382. * svg/SVGMarkerElement.cpp:
  23383. (WebCore::SVGMarkerElement::svgAttributeChanged):
  23384. (WebCore::SVGMarkerElement::childrenChanged):
  23385. (WebCore::SVGMarkerElement::setOrientToAuto):
  23386. (WebCore::SVGMarkerElement::setOrientToAngle):
  23387. (WebCore::SVGMarkerElement::createRenderer):
  23388. * svg/SVGMarkerElement.h:
  23389. (WebCore::SVGMarkerElement::):
  23390. * svg/SVGStyledElement.cpp:
  23391. (WebCore::SVGStyledElement::invalidateResources):
  23392. * svg/graphics/SVGResource.h:
  23393. (WebCore::):
  23394. (WebCore::SVGResource::isFilter):
  23395. * svg/graphics/SVGResourceMarker.cpp: Removed.
  23396. * svg/graphics/SVGResourceMarker.h: Removed.
  23397. 2010-03-28 Joseph Pecoraro <joepeck@webkit.org>
  23398. Reviewed by Pavel Feldman.
  23399. Web Inspector: Consolidate Tree Hierarchy Attribute HTML Generation
  23400. https://bugs.webkit.org/show_bug.cgi?id=36719
  23401. Consolidates the generation of Element Tree Hierarchy attribute code
  23402. generation to a single function: _attributeHTML.
  23403. * inspector/front-end/ElementsTreeOutline.js:
  23404. (WebInspector.ElementsTreeElement.prototype._addNewAttribute): convert to use attributeHTML.
  23405. (WebInspector.ElementsTreeElement.prototype._attributeEditingCommitted.regenerateStyledAttribute): convert to use attributeHTML.
  23406. (WebInspector.ElementsTreeElement.prototype._attributeEditingCommitted):
  23407. (WebInspector.ElementsTreeElement.prototype._attributeHTML): a single point for generating the html for attributes.
  23408. 2010-03-28 Joseph Pecoraro <joepeck@webkit.org>
  23409. Reviewed by Pavel Feldman.
  23410. Web Inspector: Edit Tag Names
  23411. https://bugs.webkit.org/show_bug.cgi?id=36481
  23412. Ensure blacklisting happens by checking it in _startEditingTagName
  23413. instead of all the possible entry points.
  23414. * inspector/front-end/ElementsTreeOutline.js:
  23415. (WebInspector.ElementsTreeElement.prototype._startEditingFromEvent): don't check blacklist here.
  23416. (WebInspector.ElementsTreeElement.prototype._startEditingTagName): check blacklist here.
  23417. 2010-03-28 Kim Grönholm <kim.gronholm@nomovok.com>
  23418. Reviewed by Simon Hausmann.
  23419. [Qt] GraphicsLayer: Timing functions don't work with transitions
  23420. https://bugs.webkit.org/show_bug.cgi?id=36589
  23421. If the animation value doesn't have timing function set, we need to
  23422. use the animation's timing function.
  23423. Fixed also a bug in passing the duration to solveCubicBezierFunction.
  23424. The duration was divided two times by 1000 and meanwhile casted to int.
  23425. It needs to be kept as double and divided by 1000 only once.
  23426. Test case: https://bugs.webkit.org/attachment.cgi?id=51619
  23427. * platform/graphics/qt/GraphicsLayerQt.cpp:
  23428. (WebCore::applyTimingFunction):
  23429. (WebCore::AnimationQt:::AnimationQtBase):
  23430. (WebCore::AnimationQt::updateCurrentTime):
  23431. 2010-03-27 Joseph Pecoraro <joepeck@webkit.org>
  23432. Reviewed by Pavel Feldman.
  23433. Web Inspector: Edit Tag Names
  23434. https://bugs.webkit.org/show_bug.cgi?id=36481
  23435. Allow tabbing back and forth between the tag name and element
  23436. attributes when editing. Also, fixed a number of minor issues with
  23437. editing attributes and tabbing.
  23438. * inspector/front-end/ElementsTreeOutline.js:
  23439. (WebInspector.ElementsTreeElement.prototype._startEditingTagName): find the tag name if it wasn't provided.
  23440. (WebInspector.ElementsTreeElement.prototype._attributeEditingCommitted): fix tabbing issues, enable tab to tag name.
  23441. (WebInspector.ElementsTreeElement.prototype._attributeEditingCommitted.regenerateStyledAttribute): cleanup styles when tabbing.
  23442. * inspector/front-end/inspector.css: do not display <br>s while editing
  23443. 2010-03-27 Joseph Pecoraro <joepeck@webkit.org>
  23444. Reviewed by Pavel Feldman.
  23445. Web Inspector: Edit Tag Names
  23446. https://bugs.webkit.org/show_bug.cgi?id=36481
  23447. Allow editing an Element's Tag Name by double clicking
  23448. on the tag name in the Element's Tree Hierarchy.
  23449. The usual asynchronous InspectorBackend, InspectorDOMAgent, InspectorFrontend flow.
  23450. * inspector/InspectorBackend.cpp: moved DOM manipulation to InspectorDOMAgent
  23451. (WebCore::InspectorBackend::removeNode):
  23452. (WebCore::InspectorBackend::changeTagName):
  23453. * inspector/InspectorBackend.h:
  23454. * inspector/InspectorBackend.idl:
  23455. * inspector/InspectorDOMAgent.cpp:
  23456. (WebCore::InspectorDOMAgent::removeNode):
  23457. (WebCore::InspectorDOMAgent::changeTagName):
  23458. * inspector/InspectorDOMAgent.h:
  23459. * inspector/InspectorFrontend.cpp:
  23460. (WebCore::InspectorFrontend::didChangeTagName):
  23461. * inspector/InspectorFrontend.h:
  23462. * inspector/front-end/DOMAgent.js:
  23463. Handle the UI for editing an Element's tag name.
  23464. * inspector/front-end/ElementsTreeOutline.js:
  23465. (WebInspector.ElementsTreeElement.prototype._startEditingFromEvent): allow editing from double click.
  23466. (WebInspector.ElementsTreeElement.prototype._startEditingTagName.keyupListener): update the closing tag
  23467. (WebInspector.ElementsTreeElement.prototype._startEditingTagName.editingComitted): remove extra listener and commit
  23468. (WebInspector.ElementsTreeElement.prototype._startEditingTagName.editingCancelled): remove extra listener and cancel
  23469. (WebInspector.ElementsTreeElement.prototype._startEditingTagName):
  23470. (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted.cancel):
  23471. (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted.moveToNextAttributeIfNeeded):
  23472. (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted.editTagNameCallback):
  23473. (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted):
  23474. (WebInspector.ElementsTreeElement.prototype._distinctClosingTagElement): get the closing tag for an opening tag
  23475. (WebInspector.ElementsTreeElement.prototype._nodeTitleInfo): wrap the tagName in span.webkit-html-tag-name
  23476. Miscellaneous updates.
  23477. * inspector/front-end/treeoutline.js: fixed a typo.
  23478. 2010-03-27 Dmitry Gorbik <socket.h@gmail.com>
  23479. Reviewed by Pavel Feldman.
  23480. Fix the regression caused by r28078: a global variable
  23481. definition masks a local one in an inspector console
  23482. https://bugs.webkit.org/show_bug.cgi?id=32442
  23483. * inspector/front-end/InjectedScript.js:
  23484. (injectedScriptConstructor):
  23485. 2010-03-27 Dan Bernstein <mitz@apple.com>
  23486. Reviewed by Darin Adler.
  23487. <rdar://problem/7801598> REGRESSION (r56182): iWeb shadow drawn around image rectangle, not around opaque part of the image
  23488. https://bugs.webkit.org/show_bug.cgi?id=36700
  23489. * css/CSSPrimitiveValue.cpp:
  23490. (WebCore::CSSPrimitiveValue::createColor): Reverted to returning an RGB color value rather than an
  23491. identifier for the transparent color.
  23492. 2010-03-26 Joseph Pecoraro <joepeck@webkit.org>
  23493. Reviewed by Pavel Feldman.
  23494. Web Inspector: Converge Inspector ids to be long, not ints
  23495. https://bugs.webkit.org/show_bug.cgi?id=36706
  23496. Part 1: Converge on `long` for callIds, nodeIds, and other Ids.
  23497. * inspector/InspectorController.cpp:
  23498. * inspector/InspectorController.h:
  23499. * inspector/InspectorDOMAgent.cpp:
  23500. * inspector/InspectorFrontend.cpp:
  23501. * inspector/InspectorFrontend.h:
  23502. 2010-03-27 Pavel Feldman <pfeldman@chromium.org>
  23503. Reviewed by Timothy Hatcher.
  23504. Web Inspector: add layout test for styles panel.
  23505. https://bugs.webkit.org/show_bug.cgi?id=36699
  23506. Test: inspector/elements-panel-styles.html
  23507. * inspector/front-end/inspector.css:
  23508. (#elements-content):
  23509. (#elements-sidebar):
  23510. * inspector/front-end/inspector.js:
  23511. (WebInspector.displayNameForURL):
  23512. * inspector/front-end/utilities.js:
  23513. (String.prototype.trimURL):
  23514. 2010-03-27 Mark Rowe <mrowe@apple.com>
  23515. Reviewed by Darin Adler.
  23516. CSSPrimitiveValue::setFloatValue/setStringValue should throw an exception if passed an incorrect unit type.
  23517. <http://webkit.org/b/36680> / <rdar://problem/7801016>
  23518. Test: fast/dom/setPrimitiveValue-exceptions.html
  23519. * css/CSSPrimitiveValue.cpp:
  23520. (WebCore::CSSPrimitiveValue::setFloatValue): Throw an INVALID_ACCESS_ERR if either of our type or the passed-in
  23521. type is not a numeric type.
  23522. (WebCore::CSSPrimitiveValue::setStringValue): Throw an INVALID_ACCESS_ERR if either of our type or the passed-in
  23523. type is not a string type.
  23524. 2010-03-27 Robert Hogan <robert@webkit.org>
  23525. Reviewed by nobody, fix typo in previous commit.
  23526. Allow plugins implemented by the application, such as mimetype 'x-qt-plugin',
  23527. when pluginsEnabled is false
  23528. Fix parentheses typo in r56661. This happened while rebasing and was not present
  23529. in the reviewed patch, so committing unreviewed.
  23530. https://bugs.webkit.org/attachment.cgi?id=49515
  23531. * loader/FrameLoader.cpp:
  23532. (WebCore::FrameLoader::requestObject):
  23533. 2010-03-26 Robert Hogan <robert@roberthogan.net>
  23534. Reviewed by Simon Hausmann.
  23535. Allow plugins implemented by the application, such as mimetype 'x-qt-plugin',
  23536. when pluginsEnabled is false.
  23537. The purpose of disabling plugins is to prevent the execution of third-party code
  23538. that may be untrustworthy. Qt plugins are implemented by the client rather than
  23539. loaded from an external source, so the client should have the opportunity to
  23540. consider them separately from other plugins.
  23541. Add a function MimeTypeRegistry::isApplicationPluginMIMEType() that WebKit
  23542. uses in conjunction with arePluginsEnabled() to determine if it should attempt
  23543. to load a plugin. If isApplicationPluginMIMEType() returns true, WebKit will load
  23544. the plugin even if arePluginsEnabled() is false.
  23545. Currently, only Qt has application-implemented plugins: these use the mimetype
  23546. 'x-qt-plugin' and 'x-qt-styled-widget'. This patch permits Qt clients'
  23547. reimplementation of QWebPage::createPlugin() to decide whether or not
  23548. to create a Qt plugin, even when arePluginsEnabled is false.
  23549. For all platforms apart from Qt, isApplicationPluginMIMEType() returns false.
  23550. https://bugs.webkit.org/show_bug.cgi?id=32196
  23551. Test: plugins/application-plugin-plugins-disabled.html
  23552. * loader/FrameLoader.cpp:
  23553. (WebCore::FrameLoader::requestObject):
  23554. * platform/MIMETypeRegistry.h:
  23555. * platform/brew/MIMETypeRegistryBrew.cpp:
  23556. (WebCore::MIMETypeRegistry::isApplicationPluginMIMEType):
  23557. * platform/chromium/MIMETypeRegistryChromium.cpp:
  23558. (WebCore::MIMETypeRegistry::isApplicationPluginMIMEType):
  23559. * platform/gtk/MIMETypeRegistryGtk.cpp:
  23560. (WebCore::MIMETypeRegistry::isApplicationPluginMIMEType):
  23561. * platform/haiku/MIMETypeRegistryHaiku.cpp:
  23562. (WebCore::MIMETypeRegistry::isApplicationPluginMIMEType):
  23563. * platform/mac/MIMETypeRegistryMac.mm:
  23564. (WebCore::MIMETypeRegistry::isApplicationPluginMIMEType):
  23565. * platform/qt/MIMETypeRegistryQt.cpp:
  23566. (WebCore::MIMETypeRegistry::isApplicationPluginMIMEType):
  23567. * platform/win/MIMETypeRegistryWin.cpp:
  23568. (WebCore::MIMETypeRegistry::isApplicationPluginMIMEType):
  23569. * platform/wince/MIMETypeRegistryWince.cpp:
  23570. (WebCore::MIMETypeRegistry::isApplicationPluginMIMEType):
  23571. * platform/wx/MimeTypeRegistryWx.cpp:
  23572. (WebCore::MIMETypeRegistry::isApplicationPluginMIMEType):
  23573. 2010-03-27 Dan Bernstein <mitz@apple.com>
  23574. Reviewed by Mark Rowe.
  23575. Fix Acid3 text-shadow rendering regression introduced in r56597.
  23576. * platform/graphics/mac/FontMac.mm:
  23577. (WebCore::Font::drawGlyphs): Revert to using the simple shadow logic for zero-blur shadows,
  23578. except for color bitmap fonts.
  23579. 2010-03-26 Daniel Bates <dbates@rim.com>
  23580. Reviewed by Beth Dakin.
  23581. https://bugs.webkit.org/show_bug.cgi?id=9268
  23582. As per sections 14.2 (http://www.w3.org/TR/CSS2/colors.html#background)
  23583. and 17.5.1 (http://www.w3.org/TR/CSS2/tables.html#table-layers) of the
  23584. CSS 2.1 spec., the background-image of a table-row should span the
  23585. entire area of the table-row (i.e cover all the <td>'s). Moreover,
  23586. fixes background image painting with respect to row-groups, columns
  23587. and column-groups (*).
  23588. Currently, the background-image of a table row, row-group, and column-group
  23589. is inherited by the table cells. This directly contradicts section 14.2.
  23590. Instead, the background-image should cover the entire area of the table row,
  23591. row-group, column, or column-group, respectively as described in section 17.5.1.
  23592. (*) A follow up patch to compute the absolute content box of a column, and
  23593. column-group is needed so that background image positioning for these table
  23594. elements works. See bug #36104.
  23595. Tests: fast/table/table-background.html
  23596. fast/table/table-cell-border-draws-on-top-of-col-background.html
  23597. fast/table/table-cell-border-draws-on-top-of-col-group-background.html
  23598. fast/table/table-cell-border-draws-on-top-of-row-background.html
  23599. fast/table/table-cell-border-draws-on-top-of-row-group-background.html
  23600. fast/table/table-cell-overrides-row-background.html
  23601. fast/table/table-col-background.html
  23602. fast/table/table-col-group-background.html
  23603. fast/table/table-col-group-col-span-background.html
  23604. fast/table/table-col-group-span-background.html
  23605. fast/table/table-col-span-background.html
  23606. fast/table/table-row-background-left-50px.html
  23607. fast/table/table-row-background-right-100percent.html
  23608. fast/table/table-row-background-right-50px.html
  23609. fast/table/table-row-background.html
  23610. fast/table/table-row-group-background-positioned.html
  23611. fast/table/table-row-group-background.html
  23612. * rendering/RenderBoxModelObject.cpp:
  23613. (WebCore::RenderBoxModelObject::paintFillLayerExtended):
  23614. (WebCore::RenderBoxModelObject::calculateBackgroundImageGeometry): Modified
  23615. to call RenderObject::adjustBackgroundImagePosition.
  23616. * rendering/RenderBoxModelObject.h:
  23617. * rendering/RenderObject.h:
  23618. (WebCore::RenderObject::adjustBackgroundImagePosition): Added.
  23619. * rendering/RenderTableCell.cpp:
  23620. (WebCore::RenderTableCell::adjustBackgroundImagePosition): Added.
  23621. * rendering/RenderTableCell.h:
  23622. 2010-03-26 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  23623. Unreviewed, minor build fix.
  23624. [Gtk] Guard defined but not used function
  23625. Eliminate the "defined but not used" warning after r52684.
  23626. No new tests as there is no new functionality.
  23627. * platform/ContextMenu.cpp:
  23628. 2010-03-26 Justin Schuh <jschuh@chromium.org>
  23629. Reviewed by Adam Barth.
  23630. Security: iFrame.src accepts JavaScript URL via nodeValue or textContent
  23631. https://bugs.webkit.org/show_bug.cgi?id=36502
  23632. Overrode inherited nodeValue and textContent in Attr.idl so they proxy
  23633. to value, which performs a security check.
  23634. Test: http/tests/security/xss-DENIED-iframe-src-alias.html
  23635. * bindings/js/JSAttrCustom.cpp:
  23636. (WebCore::JSAttr::nodeValue):
  23637. (WebCore::JSAttr::setNodeValue):
  23638. (WebCore::JSAttr::textContent):
  23639. (WebCore::JSAttr::setTextContent):
  23640. * bindings/v8/custom/V8AttrCustom.cpp:
  23641. (WebCore::V8Attr::nodeValueAccessorSetter):
  23642. (WebCore::V8Attr::nodeValueAccessorGetter):
  23643. (WebCore::V8Attr::textContentAccessorSetter):
  23644. (WebCore::V8Attr::textContentAccessorGetter):
  23645. * dom/Attr.idl:
  23646. 2010-03-26 Eric Carlson <eric.carlson@apple.com>
  23647. <rdar://problem/7320584>
  23648. https://bugs.webkit.org/show_bug.cgi?id=36681
  23649. "new Audio()" doesn't work with plug-in backed media engine.
  23650. Don't require plug-in backed <video> and <audio> elements to be in the document to play.
  23651. * html/HTMLMediaElement.cpp:
  23652. (WebCore::HTMLMediaElement::HTMLMediaElement): Initialize m_proxyWidget
  23653. (WebCore::HTMLMediaElement::createRenderer): Set renderer widget if it has already been
  23654. allocated.
  23655. (WebCore::HTMLMediaElement::scheduleLoad): Call createMediaPlayerProxy to make sure we
  23656. have a plug-in proxy.
  23657. (WebCore::HTMLMediaElement::loadResource): Ditto.
  23658. (WebCore::HTMLMediaElement::ensureMediaPlayer): Allocate media player.
  23659. (WebCore::HTMLMediaElement::setMediaPlayerProxy): Call ensureMediaPlayer.
  23660. (WebCore::HTMLMediaElement::getPluginProxyParams): New, return the url and params vectors.
  23661. (WebCore::HTMLMediaElement::finishParsingChildren): Call createMediaPlayerProxy.
  23662. (WebCore::HTMLMediaElement::createMediaPlayerProxy): New, allocate the proxy widget if necessary.
  23663. * html/HTMLMediaElement.h:
  23664. * loader/EmptyClients.h:
  23665. (WebCore::EmptyFrameLoaderClient::createMediaPlayerProxyPlugin): Add declaration.
  23666. * loader/FrameLoader.cpp:
  23667. (WebCore::toPlugInElement): Don't allow an audio or video element to be cast to a plug-in element.
  23668. (WebCore::FrameLoader::loadPlugin):
  23669. (WebCore::FrameLoader::loadMediaPlayerProxyPlugin): New, allocate a media player proxy plug-in.
  23670. * loader/FrameLoader.h: Declare loadMediaPlayerProxyPlugin.
  23671. * loader/FrameLoaderClient.h: Declare createMediaPlayerProxyPlugin.
  23672. * rendering/RenderEmbeddedObject.cpp:
  23673. (WebCore::RenderEmbeddedObject::updateWidget): Call loadMediaPlayerProxyPlugin when passed an
  23674. audio or video node.
  23675. * rendering/RenderLayerCompositor.cpp:
  23676. (WebCore::RenderLayerCompositor::requiresCompositingForVideo):
  23677. * rendering/RenderVideo.cpp:
  23678. (WebCore::RenderVideo::RenderVideo): Get default width and height from defaultSize.
  23679. (WebCore::RenderVideo::defaultSize): New, return the spec defined default width and height.
  23680. * rendering/RenderVideo.h:
  23681. 2010-03-26 Simon Fraser <simon.fraser@apple.com>
  23682. Reviewed by Dan Bernstein, Darin Adler.
  23683. Re-entrant layout via plug-ins may cause crashes with bad RenderWidgets
  23684. https://bugs.webkit.org/show_bug.cgi?id=36675
  23685. <rdar://problem/7787617>
  23686. Fix two places in the code where RenderWidgets can get destroyed while being iterated over.
  23687. This can happen when plug-ins execute script from NPP_SetWindow, and that script makes a change
  23688. to the page that destroys a RenderWidget.
  23689. Tests: plugins/reentrant-update-widget-positions.html
  23690. plugins/update-widgets-crash.html
  23691. * page/FrameView.cpp:
  23692. (WebCore::FrameView::updateWidgets): ref() the RenderEmbeddedObjects that are put into the
  23693. vector before iterating of them, and deref() them at the end. Rather than checking the m_widgetUpdateSet
  23694. to see if the RenderWidget is still live, test object->node().
  23695. * rendering/RenderView.cpp:
  23696. (WebCore::RenderView::RenderView): Initialize some data members to make it more obvious in the debugger
  23697. that the object is not garbage.
  23698. (WebCore::RenderView::updateWidgetPositions): Use a Vector of RenderWidget* to keep the RenderWidgets
  23699. alive during iteration, by reffing and dereffing them.
  23700. * rendering/RenderWidget.h:
  23701. (WebCore::RenderWidget::ref): Make this and deref() public.
  23702. 2010-03-26 Beth Dakin <bdakin@apple.com>
  23703. Reviewed by Darin Adler.
  23704. Partial fix for https://bugs.webkit.org/show_bug.cgi?id=36564
  23705. Performance regression for setting content of <text> in SVG
  23706. -and corresponding-
  23707. <rdar://problem/7693963>
  23708. toClipPath() is extremely inefficient, so this patch removes the
  23709. call to it from RenderSVGResourceClipper::resourceBoundingBox()
  23710. which is very hot code in SVG with clip-paths. It is sufficient to
  23711. call unite with the objectBoundingBox(), which will return early if
  23712. objectBoundingBox() is empty.
  23713. * rendering/RenderSVGResourceClipper.cpp:
  23714. (WebCore::RenderSVGResourceClipper::resourceBoundingBox):
  23715. 2010-03-26 Joseph Pecoraro <joepeck@webkit.org>
  23716. Reviewed by Dave Hyatt.
  23717. Generated run-in Content is Mistakenly Getting Deleted
  23718. https://bugs.webkit.org/show_bug.cgi?id=36505
  23719. <rdar://problem/7767161>
  23720. Test: fast/runin/generated2.html
  23721. Test: fast/runin/generated3.html
  23722. Test: fast/runin/generated4.html
  23723. Do not destroy :before/:after generated content with display run-in
  23724. when relaying out different nodes. Have their real owners correctly
  23725. handle them.
  23726. * rendering/RenderObjectChildList.cpp:
  23727. (WebCore::RenderObjectChildList::updateBeforeAfterContent): simplified logic
  23728. (WebCore::RenderObjectChildList::beforeAfterContainer): skip generated run-ins when checking children, check for them in grandchildren
  23729. 2010-03-25 Ojan Vafai <ojan@chromium.org>
  23730. Reviewed by Darin Adler.
  23731. shift+home/end and cmd+shift+left/right don't extend the selection correctly
  23732. https://bugs.webkit.org/show_bug.cgi?id=36539
  23733. * WebCore.base.exp:
  23734. * editing/SelectionController.cpp:
  23735. (WebCore::SelectionController::modify):
  23736. * editing/SelectionController.h:
  23737. 2010-03-26 Janne Koskinen <janne.p.koskinen@digia.com>
  23738. Reviewed by Laszlo Gombos.
  23739. Don't undefine SKIP_STATIC_CONSTRUCTORS_ON_GCC for Symbian HW targets.
  23740. https://bugs.webkit.org/show_bug.cgi?id=34081
  23741. Defining StringImpl instances as globals will cause a crash on process exit as
  23742. StringImpl::Remove expects TLS which was already deleted at time of exiting main and ends up
  23743. constructing one exiting thread.
  23744. * config.h:
  23745. 2010-03-26 Andrey Kosyakov <caseq@chromium.org>
  23746. Reviewed by Pavel Feldman.
  23747. Send worker resource content to inspector to enable display of web
  23748. workers in inspector's resource tab.
  23749. https://bugs.webkit.org/show_bug.cgi?id=36658
  23750. * inspector/InspectorController.cpp:
  23751. (WebCore::InspectorController::resourceRetrievedByXMLHttpRequest):
  23752. (WebCore::InspectorController::scriptImported):
  23753. * inspector/InspectorResource.cpp:
  23754. (WebCore::InspectorResource::type):
  23755. (WebCore::InspectorResource::setOverrideContent):
  23756. (WebCore::InspectorResource::sourceString):
  23757. * inspector/InspectorResource.h:
  23758. * workers/DefaultSharedWorkerRepository.cpp:
  23759. (WebCore::SharedWorkerScriptLoader::notifyFinished):
  23760. * workers/Worker.cpp:
  23761. (WebCore::Worker::notifyFinished):
  23762. 2010-03-26 Yael Aharon <yael.aharon@nokia.com>
  23763. Reviewed by Antti Koivisto.
  23764. Fix the rendering of HTMLProgressElement
  23765. https://bugs.webkit.org/show_bug.cgi?id=36206
  23766. Update the rendering and css to conform to
  23767. http://www.whatwg.org/specs/web-apps/current-work/complete.html#the-progress-element-0.
  23768. Updated the tests and the expected results accordingly.
  23769. * css/html.css:
  23770. (progress):
  23771. * rendering/RenderProgress.cpp:
  23772. (WebCore::RenderProgress::RenderProgress):
  23773. (WebCore::RenderProgress::updateFromElement):
  23774. * rendering/RenderProgress.h:
  23775. (WebCore::RenderProgress::isProgress):
  23776. 2010-03-26 Julien Chaffraix <jchaffraix@webkit.org>
  23777. Unreviewed build fix.
  23778. FontPlatformDataPango.cpp: prototype for
  23779. 'WebCore::FontPlatformData::FontPlatformData(cairo_font_face_t*, int, bool, bool)'
  23780. does not match any in class
  23781. https://bugs.webkit.org/show_bug.cgi?id=36496
  23782. * platform/graphics/gtk/FontPlatformDataPango.cpp:
  23783. (WebCore::FontPlatformData::FontPlatformData): The 'size' parameter
  23784. should be a float to match the declaration and the other definitions.
  23785. 2010-03-26 Shu Chang <chang.shu@nokia.com>
  23786. Reviewed by Eric Seidel.
  23787. [Qt] Prevent referring d->m_job in the future because calling abort()
  23788. deletes the instance itself.
  23789. https://bugs.webkit.org/show_bug.cgi?id=36618
  23790. Test: http/tests/appcache/fallback.html
  23791. * platform/network/qt/ResourceHandleQt.cpp:
  23792. (WebCore::ResourceHandle::cancel):
  23793. 2010-03-26 Stephen White <senorblanco@chromium.org>
  23794. Unreviewed; build fix.
  23795. Rolling out 56620; too many layout test failures.
  23796. Covered by fast/css/*.
  23797. * css/CSSPrimitiveValue.cpp:
  23798. (WebCore::CSSPrimitiveValue::cleanup):
  23799. (WebCore::CSSPrimitiveValue::cssText):
  23800. * css/CSSPrimitiveValue.h:
  23801. (WebCore::CSSPrimitiveValue::):
  23802. 2010-03-26 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
  23803. Reviewed by Simon Hausmann.
  23804. [Qt] Build JavaScriptCore as a static library.
  23805. https://bugs.webkit.org/show_bug.cgi?id=36590
  23806. This patch takes what was left of the unused JavaScriptCore.pro
  23807. and moved the compilation logic from JavaScriptCore.pri to
  23808. JavaScriptCore.pro.
  23809. * WebCore.pro:
  23810. 2010-03-26 Olivier Goffart <ogoffart@trolltech.com>
  23811. Reviewed by Simon Hausmann.
  23812. [Qt] Fix compilation on Windows
  23813. For some reason, the MSVC compiler choose the
  23814. operator+(const QString &, const QString &) instead of
  23815. operator+(const WebCore::String &, const WebCore::String &)
  23816. resulting in errors when QT_USE_FAST_OPERATOR_PLUS is used.
  23817. * dom/XMLTokenizerQt.cpp:
  23818. (WebCore::handleElementNamespaces):
  23819. 2010-03-24 Stephen White <senorblanco@chromium.org>
  23820. Reviewed by Darin Adler.
  23821. In order to speed up multiple calls to CSSPrimitiveValue::cssText(),
  23822. this CL caches the String result. When m_value is changed, the
  23823. cached string is cleared. This gives a good speedup on benchmarks
  23824. which do a lot of CSS property gets, such as Peacekeeper.
  23825. The processing cost should be negligible, since the strings are
  23826. refcounted. The memory cost is an additional 4 bytes per
  23827. CSSPrimitiveValue, and the extended lifetime of the computed string
  23828. (potentially, the same as the lifetime of the CSSPrimitiveValue).
  23829. https://bugs.webkit.org/show_bug.cgi?id=36556
  23830. Covered by fast/css/large-number-round-trip.html, and more.
  23831. * css/CSSPrimitiveValue.cpp:
  23832. (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
  23833. (WebCore::CSSPrimitiveValue::cleanup):
  23834. (WebCore::CSSPrimitiveValue::cssText):
  23835. * css/CSSPrimitiveValue.h:
  23836. 2010-03-26 Qi Zhang <qi.2.zhang@nokia.com>
  23837. Reviewed by Laszlo Gombos.
  23838. [Qt] fast/canvas/drawImage-with-negative-source-destination.html failed
  23839. https://bugs.webkit.org/show_bug.cgi?id=35005
  23840. To support negative width or height at context.drawImage
  23841. * platform/graphics/qt/StillImageQt.cpp:
  23842. (WebCore::StillImage::draw):
  23843. 2010-03-08 Philippe Normand <pnormand@igalia.com>
  23844. Reviewed by Gustavo Noronha.
  23845. [GStreamer] soften dependency on libsoup in the http src element
  23846. https://bugs.webkit.org/show_bug.cgi?id=35864
  23847. Replaced SoupURI calls with KURL and pause/resume internal soup
  23848. messages only if the element is compiled for a port depending on
  23849. libsoup.
  23850. * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
  23851. (webkit_web_src_init):
  23852. (webKitWebSrcSetUri):
  23853. (webKitWebSrcNeedDataMainCb):
  23854. (webKitWebSrcEnoughDataMainCb):
  23855. 2010-03-25 Ilya Tikhonovsky <loislo@chromium.org>
  23856. Reviewed by Pavel Feldman.
  23857. Web Inspector: Shot record filter is implemented in Timeline Panel.
  23858. https://bugs.webkit.org/show_bug.cgi?id=36606
  23859. * English.lproj/localizedStrings.js:
  23860. * inspector/front-end/TimelinePanel.js:
  23861. (WebInspector.TimelinePanel):
  23862. (WebInspector.TimelinePanel.prototype.get statusBarItems):
  23863. (WebInspector.TimelinePanel.prototype._createStatusbarButtons):
  23864. (WebInspector.TimelinePanel.prototype._toggleFilterButtonClicked):
  23865. (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
  23866. (WebInspector.TimelinePanel.prototype._addToRecordsWindow):
  23867. (WebInspector.TimelineRecordGraphRow.prototype.update):
  23868. (WebInspector.TimelinePanel.FormattedRecord.prototype.get _isLongEvent):
  23869. * inspector/front-end/inspector.css:
  23870. 2010-03-25 Pavel Feldman <pfeldman@chromium.org>
  23871. Reviewed by Timothy Hatcher.
  23872. Web Inspector: Implement CSSStyleSelector::pseudoStyleForElement and use it in the InspectorDOMAgent.
  23873. https://bugs.webkit.org/show_bug.cgi?id=36509
  23874. This change provides pseudo elements information into the inspector styles sidebar pane.
  23875. Changes applied:
  23876. - CSSStyleSelector::pseudoStyleRulesForElement implemented. I changed the signature to accept
  23877. PseudoId instead of a String since it better reflected the needs;
  23878. - Accompanied elementStyle checks with m_collectRulesOnly checks;
  23879. - Removed pseudoStyleRulesForElement usage from DOMWindow::getMatchedCSSRules. It was anyways
  23880. returning 0, while I would need to convert String to PseudoId in order to leave the call in place;
  23881. - Needed to introduce AFTER_LAST_INTERNAL_PSEUDOID marker const in RenderStyleConstants' PseudoId enum
  23882. - InspectorDOMAgent is now iterating over all pseudo ids to get all styles (including internal ones).
  23883. - Brushed up front-end code so that proper overriding took place locally within pseudo id categories.
  23884. * English.lproj/localizedStrings.js:
  23885. * css/CSSStyleSelector.cpp:
  23886. (WebCore::CSSStyleSelector::styleRulesForElement):
  23887. (WebCore::CSSStyleSelector::pseudoStyleRulesForElement):
  23888. (WebCore::CSSStyleSelector::SelectorChecker::checkSelector):
  23889. (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
  23890. * css/CSSStyleSelector.h:
  23891. * inspector/InspectorDOMAgent.cpp:
  23892. (WebCore::InspectorDOMAgent::getStyles):
  23893. (WebCore::InspectorDOMAgent::buildObjectForAttributeStyles):
  23894. (WebCore::InspectorDOMAgent::buildArrayForCSSRules):
  23895. (WebCore::InspectorDOMAgent::buildArrayForPseudoElements):
  23896. * inspector/InspectorDOMAgent.h:
  23897. * inspector/front-end/StylesSidebarPane.js:
  23898. (WebInspector.StylesSidebarPane.prototype.update.callback):
  23899. (WebInspector.StylesSidebarPane.prototype.update):
  23900. (WebInspector.StylesSidebarPane.prototype._update):
  23901. (WebInspector.StylesSidebarPane.prototype._refreshStyleRules):
  23902. (WebInspector.StylesSidebarPane.prototype._rebuildStyleRules.insertInheritedNodeSeparator):
  23903. (WebInspector.StylesSidebarPane.prototype._rebuildStyleRules):
  23904. (WebInspector.StylesSidebarPane.prototype._markUsedProperties):
  23905. (WebInspector.StylesSidebarPane.prototype._refreshSectionsForStyleRules):
  23906. (WebInspector.StylesSidebarPane.prototype._rebuildSectionsForStyleRules):
  23907. (WebInspector.StylesSidebarPane.prototype._changeColorFormat):
  23908. (WebInspector.StylesSidebarPane.prototype.addBlankSection):
  23909. (WebInspector.StylesSidebarPane.prototype.removeSection):
  23910. * inspector/front-end/inspector.css:
  23911. (.styles-sidebar-separator):
  23912. * page/DOMWindow.cpp:
  23913. (WebCore::DOMWindow::getMatchedCSSRules):
  23914. * rendering/style/RenderStyleConstants.h:
  23915. (WebCore::):
  23916. 2010-03-25 Charlie Reis <creis@chromium.org>
  23917. Reviewed by Adam Barth.
  23918. onbeforeunload not called at window close + frame or iframe focused
  23919. https://bugs.webkit.org/show_bug.cgi?id=27481
  23920. Test: fast/events/onbeforeunload-focused-iframe.html
  23921. Replaces initial manual tests with a layout test.
  23922. * manual-tests/onbeforeunload-focused-iframe.html: Removed.
  23923. * manual-tests/resources/focused-iframe.html: Removed.
  23924. 2010-03-25 Eric Uhrhane <ericu@chromium.org>
  23925. Reviewed by David Levin.
  23926. Missing lock in call to doneCreatingDatabase
  23927. https://bugs.webkit.org/show_bug.cgi?id=36473
  23928. Added new test storage/open-database-over-quota.html.
  23929. * storage/DatabaseTracker.cpp:
  23930. (WebCore::DatabaseTracker::canEstablishDatabase): Added missing lock call.
  23931. 2010-03-25 Ojan Vafai <ojan@chromium.org>
  23932. Reviewed by Eric Seidel.
  23933. [chromium] REGRESSION: Some LayoutTests fail after r56567
  23934. https://bugs.webkit.org/show_bug.cgi?id=36630
  23935. Fix boolean logic goofup. This was a last minute code review
  23936. change that didn't get tested on Windows before commit.
  23937. * editing/SelectionController.cpp:
  23938. (WebCore::SelectionController::setIsDirectional):
  23939. 2010-03-25 Dan Bernstein <mitz@apple.com>
  23940. Reviewed by Darin Adler.
  23941. <rdar://problem/7728903> Support color bitmap fonts
  23942. Test: platform/mac/fonts/color-bitmap.html
  23943. * platform/graphics/mac/FontMac.mm:
  23944. (WebCore::showGlyphsWithAdvances): Added. Calls CGContextShowGlyphsWithAdvances()
  23945. or CTFontShowGlyphs() depending on whether the font is a color bitmap font.
  23946. (WebCore::Font::drawGlyphs): Use showGlyphsWithAdvances(). Don’t include the font’s matrix in
  23947. the context’s text matrix when drawing with a color bitmap font, because CTFontShowGlyphs()
  23948. factors it in.
  23949. * platform/graphics/mac/FontPlatformData.h:
  23950. (WebCore::FontPlatformData::FontPlatformData): Added m_isColorBitmapFont member
  23951. and initialized it in constructors.
  23952. (WebCore::FontPlatformData::isColorBitmapFont): Added this getter.
  23953. * platform/graphics/mac/FontPlatformDataMac.mm:
  23954. (WebCore::FontPlatformData::FontPlatformData): Initialize m_isColorBitmapFont.
  23955. (WebCore::FontPlatformData::operator=): Copy m_isColorBitmapFont.
  23956. (WebCore::FontPlatformData::setFont): Set m_isColorBitmapFont.
  23957. 2010-03-25 Adam Barth <abarth@webkit.org>
  23958. Reviewed by Sam Weinig.
  23959. Implement allow-top-navigation for HTML5 sandbox attribute
  23960. https://bugs.webkit.org/show_bug.cgi?id=36549
  23961. Tests: fast/frames/sandboxed-iframe-navigation-top-by-constant-name.html
  23962. fast/frames/sandboxed-iframe-navigation-top-by-constant-name2.html
  23963. fast/frames/sandboxed-iframe-navigation-top-by-name-denied.html
  23964. fast/frames/sandboxed-iframe-navigation-top-by-name.html
  23965. fast/frames/sandboxed-iframe-navigation-top-denied.html
  23966. fast/frames/sandboxed-iframe-navigation-top.html
  23967. * bindings/generic/BindingDOMWindow.h:
  23968. (WebCore::::createWindow):
  23969. * bindings/js/JSDOMWindowCustom.cpp:
  23970. (WebCore::createWindow):
  23971. Moved the security check to FrameLoader because we need to allow
  23972. window.open navigation to succeed sometimes when the
  23973. SandboxNavigation bit is set.
  23974. * html/HTMLIFrameElement.cpp:
  23975. (WebCore::parseSandboxAttribute):
  23976. Added allow-top-navigation to the parser.
  23977. * loader/FrameLoader.cpp:
  23978. (WebCore::FrameLoader::createWindow):
  23979. The SandboxNavigation check now occurs after we search for the frame
  23980. by name. Notice that the named frame navigation case is caught by
  23981. the generic navigation access check.
  23982. (WebCore::FrameLoader::shouldAllowNavigation):
  23983. Update the navigation access check to allow navigating of top unless
  23984. it's forbidden.
  23985. * loader/FrameLoaderTypes.h:
  23986. Introduce a bit for SandboxedTopNavigation.
  23987. (WebCore::):
  23988. 2010-03-25 Dumitru Daniliuc <dumi@chromium.org>
  23989. Unreviewed, Chromium build fix.
  23990. V8CustomVoidCallback should not check if a return value is a
  23991. boolean. It should only convert the value to a boolean.
  23992. * bindings/v8/custom/V8CustomVoidCallback.cpp:
  23993. (WebCore::invokeCallback):
  23994. 2010-03-25 Dmitry Titov <dimich@chromium.org>
  23995. No review, rolling out r56585.
  23996. http://trac.webkit.org/changeset/56585
  23997. https://bugs.webkit.org/show_bug.cgi?id=36621
  23998. Broke Chromium builds on waterfall
  23999. * plugins/PluginView.cpp:
  24000. (WebCore::PluginView::getValue):
  24001. * plugins/PluginView.h:
  24002. * plugins/PluginViewNone.cpp:
  24003. (WebCore::PluginView::setJavaScriptPaused):
  24004. 2010-03-25 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  24005. Reviewed by Darin Adler.
  24006. Fix build if NPAPI support is disabled
  24007. https://bugs.webkit.org/show_bug.cgi?id=36621
  24008. No new tests, this is a build fix.
  24009. * plugins/PluginView.cpp: Guard getValueStatic() with
  24010. NETSCAPE_PLUGIN_API
  24011. (WebCore::PluginView::getValue):
  24012. * plugins/PluginView.h: Guard getValue() with NETSCAPE_PLUGIN_API
  24013. * plugins/PluginViewNone.cpp: Guard platformGetValue() and
  24014. platformGetValueStatic with NETSCAPE_PLUGIN_API;
  24015. Guard privateBrowsingStateChanged() and setJavaScriptPaused() with
  24016. PLATFORM(MAC)
  24017. 2010-03-25 Drew Wilson <atwilson@chromium.org>
  24018. Reviewed by Nate Chapin.
  24019. [v8] Error in getScriptExecutionContext() when worker context is terminating.
  24020. https://bugs.webkit.org/show_bug.cgi?id=36565
  24021. Removed WorkerScriptExecutionProxy::retrieve() and added WorkerScriptController::controllerForContext(). This allows
  24022. callers to differentiate between "the current context is shutting down" vs "the current context is not a worker context".
  24023. Test: Existing worker tests suffice.
  24024. * bindings/v8/V8DOMWrapper.cpp:
  24025. (WebCore::V8DOMWrapper::getConstructor):
  24026. Changed to use WorkerScriptController::controllerForContext() instead of WorkerScriptExecutionProxy::retrieve().
  24027. * bindings/v8/V8Utilities.cpp:
  24028. (WebCore::getScriptExecutionContext):
  24029. Changed to use WorkerScriptController::controllerForContext() instead of WorkerScriptExecutionProxy::retrieve().
  24030. * bindings/v8/WorkerContextExecutionProxy.cpp:
  24031. Removed WorkerScriptExecutionProxy::retrieve().
  24032. * bindings/v8/WorkerContextExecutionProxy.h:
  24033. Removed WorkerScriptExecutionProxy::retrieve().
  24034. * bindings/v8/WorkerScriptController.cpp:
  24035. (WebCore::WorkerScriptController::controllerForContext):
  24036. Added helper function to get the WorkerScriptController for the current context.
  24037. * bindings/v8/WorkerScriptController.h:
  24038. Added declaration for controllerForContext().
  24039. 2010-03-25 Simon Hausmann <simon.hausmann@nokia.com>
  24040. Reviewed by Kenneth Rohde Christiansen.
  24041. [Qt] Fix the package build on Maemo 5
  24042. https://bugs.webkit.org/show_bug.cgi?id=36607
  24043. Always embed the stylesheet for the no-listbox rendering. This way it'll be
  24044. included in the generated files for the package generation.
  24045. * WebCore.pri:
  24046. 2010-03-24 Dumitru Daniliuc <dumi@chromium.org>
  24047. Reviewed by Dimitri Glazkov.
  24048. Changing the V8 and JSC implementations of
  24049. SQLStatementErrorCallback to interpret as false all results that
  24050. could be converted to a false boolean. Pretty much a revert of
  24051. r54981.
  24052. https://bugs.webkit.org/show_bug.cgi?id=36569
  24053. * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
  24054. (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
  24055. * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp:
  24056. (WebCore::V8CustomSQLStatementErrorCallback::handleEvent):
  24057. * bindings/v8/custom/V8CustomVoidCallback.cpp:
  24058. (WebCore::invokeCallback):
  24059. * bindings/v8/custom/V8CustomVoidCallback.h:
  24060. 2010-03-25 Dmitry Titov <dimich@chromium.org>
  24061. Unreviewed, fix Chromium tests.
  24062. Recent http://trac.webkit.org/changeset/56489 made all urls in Chromium that
  24063. have unspecified port to return invalidPortNumber from KURL::port().
  24064. * platform/KURLGoogle.cpp: Return 0 for unspecified ports, mimic WebKit KURL behavior for invalid ports.
  24065. (WebCore::KURL::port):
  24066. 2010-03-25 Dirk Schulze <krit@webkit.org>
  24067. Reviewed by Nikolas Zimmermann.
  24068. This is a follow up of:
  24069. https://bugs.webkit.org/show_bug.cgi?id=30055
  24070. Bad DOM performance in large SVG files
  24071. Just save and restore the GraphicsContext, if we realy modify it.
  24072. (Cairo)Path::contains checks if a point is in the boundingBox
  24073. as a heuristic. The intention was to make the process faster for
  24074. points outside of this rect, but it rather causes the
  24075. opposite.
  24076. No new test cases added. No change in functionality.
  24077. * platform/graphics/cairo/PathCairo.cpp:
  24078. (WebCore::Path::contains):
  24079. * rendering/RenderPath.cpp:
  24080. (WebCore::RenderPath::paint):
  24081. 2010-03-25 Ojan Vafai <ojan@chromium.org>
  24082. Reviewed by David Levin.
  24083. mouse-based selections are always directional on Windows/Linux
  24084. https://bugs.webkit.org/show_bug.cgi?id=25195
  24085. Change m_lastChangeWasHorizontalExtension to m_isDirectional
  24086. and make m_isDirectional always be true for Windows/Linux.
  24087. * editing/SelectionController.cpp:
  24088. (WebCore::SelectionController::SelectionController):
  24089. (WebCore::SelectionController::setSelection):
  24090. (WebCore::SelectionController::setIsDirectional):
  24091. (WebCore::SelectionController::willBeModified):
  24092. When double-clicking, the base/extent will be in the middle
  24093. of the selection instead of the start/end of it. Changed to
  24094. maintain that modifications after double-click still move the
  24095. start/end of the selection, not the base/extent.
  24096. (WebCore::SelectionController::modify):
  24097. * editing/SelectionController.h:
  24098. * page/EventHandler.cpp:
  24099. (WebCore::EventHandler::handleMousePressEventSingleClick):
  24100. (WebCore::EventHandler::updateSelectionForMouseDrag):
  24101. 2010-03-25 Simon Fraser <simon.fraser@apple.com>
  24102. Revert r56565 which was based on an incorrect premise.
  24103. * page/animation/CompositeAnimation.cpp:
  24104. (WebCore::CompositeAnimation::clearRenderer):
  24105. (WebCore::CompositeAnimation::updateKeyframeAnimations):
  24106. (WebCore::CompositeAnimation::getAnimatedStyle):
  24107. (WebCore::CompositeAnimation::setAnimating):
  24108. (WebCore::CompositeAnimation::timeToNextService):
  24109. (WebCore::CompositeAnimation::getAnimationForProperty):
  24110. (WebCore::CompositeAnimation::suspendAnimations):
  24111. (WebCore::CompositeAnimation::resumeAnimations):
  24112. (WebCore::CompositeAnimation::isAnimatingProperty):
  24113. (WebCore::CompositeAnimation::pauseAnimationAtTime):
  24114. (WebCore::CompositeAnimation::numberOfActiveAnimations):
  24115. 2010-03-25 Simon Fraser <simon.fraser@apple.com>
  24116. Reviewed by Eric Carlson.
  24117. Make calls to m_keyframeAnimations.checkConsistency() debug-only
  24118. https://bugs.webkit.org/show_bug.cgi?id=36555
  24119. Remove lots of calls to m_keyframeAnimations.checkConsistency(); which were left after some earlier
  24120. debugging. Leave one in CompositeAnimation::animate() to catch any future issues, which is OK since
  24121. these calls are no-ops in release builds.
  24122. * page/animation/CompositeAnimation.cpp:
  24123. (WebCore::CompositeAnimation::clearRenderer):
  24124. (WebCore::CompositeAnimation::updateKeyframeAnimations):
  24125. (WebCore::CompositeAnimation::getAnimatedStyle):
  24126. (WebCore::CompositeAnimation::setAnimating):
  24127. (WebCore::CompositeAnimation::timeToNextService):
  24128. (WebCore::CompositeAnimation::getAnimationForProperty):
  24129. (WebCore::CompositeAnimation::suspendAnimations):
  24130. (WebCore::CompositeAnimation::resumeAnimations):
  24131. (WebCore::CompositeAnimation::isAnimatingProperty):
  24132. (WebCore::CompositeAnimation::pauseAnimationAtTime):
  24133. (WebCore::CompositeAnimation::numberOfActiveAnimations):
  24134. 2010-03-25 Simon Fraser <simon.fraser@apple.com>
  24135. Reviewed by Geoffrey Garen.
  24136. https://bugs.webkit.org/show_bug.cgi?id=36557
  24137. Animations use the wrong timing-function sometimes
  24138. Fix an issue where animations picked the wrong style for their "unanimated" value.
  24139. Previously, the "unanimated" style was considered to be the style before the animation
  24140. was applied. This caused us to pick up stale values for animation timing functions, for
  24141. blending when a property is missing from the first keyframe, and for resuming transitions
  24142. once an animation ends.
  24143. Instead, we need to use the "current" style, which is the one that causes the animation
  24144. to kick off.
  24145. Tests: animations/longhand-timing-function.html
  24146. animations/transition-and-animation-3.html
  24147. animations/unanimated-style.html
  24148. * page/animation/CompositeAnimation.cpp:
  24149. (WebCore::CompositeAnimation::updateKeyframeAnimations):
  24150. 2010-03-25 Gavin Barraclough <barraclough@apple.com>
  24151. Reviewed by Geoff Garen.
  24152. Bug 36611 - Cleanup JSC::CString
  24153. Rename CString::c_str() -> CString::data(), CString::size() -> CString::length(),
  24154. remove UString::getCString() (all uses are wrong, should use UString::UTF8String()).
  24155. * bridge/NP_jsobject.cpp:
  24156. (_NPN_Enumerate):
  24157. * bridge/c/c_utility.cpp:
  24158. (JSC::Bindings::convertValueToNPVariant):
  24159. * bridge/jni/jsc/JNIBridgeJSC.cpp:
  24160. (JavaField::valueFromInstance):
  24161. (JavaField::setValueToInstance):
  24162. * bridge/jni/jsc/JavaInstanceJSC.cpp:
  24163. (JavaInstance::invokeMethod):
  24164. * bridge/jni/jsc/JavaStringJSC.h:
  24165. (JSC::Bindings::JavaStringImpl::UTF8String):
  24166. 2010-03-25 Jakub Wieczorek <jwieczorek@webkit.org>
  24167. Reviewed by Eric Seidel.
  24168. [Qt] RenderTheme: fix size adjustment for text fields
  24169. https://bugs.webkit.org/show_bug.cgi?id=36413
  24170. To match other ports, remove the hardcoded dimensions for text fields so that
  24171. the default ones from WebCore can be used.
  24172. Properly apply the correct padding to text areas - this fixes their appearance
  24173. with the Oxygen style.
  24174. * platform/qt/RenderThemeQt.cpp:
  24175. (WebCore::RenderThemeQt::computeSizeBasedOnStyle):
  24176. 2010-03-25 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
  24177. Reviewed by Simon Hausmann.
  24178. [Qt] Implement ChromeClient::windowResizerRect()
  24179. https://bugs.webkit.org/show_bug.cgi?id=21300
  24180. The helper function geometryRelativeToOwnerWidget() in the page
  24181. client is used to clip the resize rect to the actual size of the
  24182. viewport, not the size of the QGraphicsView.
  24183. * platform/qt/QWebPageClient.h:
  24184. 2010-03-25 Joseph Pecoraro <joepeck@webkit.org>
  24185. Reviewed by Pavel Feldman.
  24186. Web Inspector: reloading debug target window with cmd-R from inspector window produces beep.
  24187. https://bugs.webkit.org/show_bug.cgi?id=36554
  24188. * inspector/front-end/inspector.js:
  24189. (WebInspector.documentKeyDown): prevent the default behavior, if handled, which would result in a system beep.
  24190. 2010-03-25 Jochen Eisinger <jochen@chromium.org>
  24191. Reviewed by Jeremy Orlow.
  24192. Forward DatabaseTracker::canEstablishDatabase to chromium layer.
  24193. https://bugs.webkit.org/show_bug.cgi?id=36595
  24194. * storage/chromium/DatabaseObserver.h:
  24195. * storage/chromium/DatabaseTrackerChromium.cpp:
  24196. (WebCore::DatabaseTracker::canEstablishDatabase):
  24197. 2010-03-25 yael aharon <yael.aharon@nokia.com>
  24198. Reviewed by Laszlo Gombos.
  24199. [Qt] Windowed netscape plugins don't work with QGraphicsWebView on Symbian
  24200. https://bugs.webkit.org/show_bug.cgi?id=35112
  24201. Add a proxy widget when loading a QWidget based plugin in a QGraphicsWebView.
  24202. * plugins/symbian/PluginContainerSymbian.cpp:
  24203. (PluginContainerSymbian::PluginContainerSymbian):
  24204. (PluginContainerSymbian::focusInEvent):
  24205. * plugins/symbian/PluginContainerSymbian.h:
  24206. (WebCore::PluginContainerSymbian::proxy):
  24207. * plugins/symbian/PluginViewSymbian.cpp:
  24208. (WebCore::PluginView::updatePluginWidget):
  24209. (WebCore::PluginView::platformStart):
  24210. (WebCore::PluginView::platformDestroy):
  24211. 2010-03-25 Simon Fraser <simon.fraser@apple.com>
  24212. Reviewed by Adele Peterson.
  24213. https://bugs.webkit.org/show_bug.cgi?id=35714
  24214. Computed style on delayed transform animations is incorrect
  24215. When fetching computed style while a delayed accelerated animation is in effect,
  24216. we would get the value form the first keyframe, rather than getting the current
  24217. style.
  24218. Fix by checking to see whether we've in the delay phase (with no backwards-fill)
  24219. in KeyframeAnimation::getAnimatedStyle().
  24220. Test: compositing/animation/computed-style-during-delay.html
  24221. * page/animation/KeyframeAnimation.cpp:
  24222. (WebCore::KeyframeAnimation::getAnimatedStyle):
  24223. 2010-03-25 Yury Semikhatsky <yurys@chromium.org>
  24224. Reviewed by Pavel Feldman.
  24225. Initialize Web Inspector title with inspected page URL when opening Web Inspector.
  24226. https://bugs.webkit.org/show_bug.cgi?id=36534
  24227. * inspector/InspectorController.cpp:
  24228. (WebCore::InspectorController::setFrontend):
  24229. 2010-03-25 Antti Koivisto <koivisto@iki.fi>
  24230. Reviewed by Kenneth Rohde Christiansen.
  24231. https://bugs.webkit.org/show_bug.cgi?id=36316
  24232. Tiles of selected content do not update if not in viewport
  24233. Don't clip repaints to viewport when tiling is enabled.
  24234. * page/Frame.cpp:
  24235. (WebCore::Frame::setView):
  24236. (WebCore::Frame::setTiledBackingStoreEnabled):
  24237. 2010-03-25 Diego Gonzalez <diego.gonzalez@openbossa.org>
  24238. Reviewed by Eric Seidel.
  24239. Missing forward ENABLE_DATALIST macro to JavaScript enabled features macros
  24240. on WebKit.pri
  24241. [Qt] Forward ENABLE_DATALIST macro to JavaScript enabled macros
  24242. https://bugs.webkit.org/show_bug.cgi?id=36547
  24243. * WebCore.pri:
  24244. 2010-03-25 Pavel Feldman <pfeldman@chromium.org>
  24245. Reviewed by Timothy Hatcher.
  24246. Web Inspector: Expect console object wrapping to fail.
  24247. https://bugs.webkit.org/show_bug.cgi?id=36587
  24248. * inspector/front-end/InjectedScript.js:
  24249. (injectedScriptConstructor):
  24250. 2010-03-25 Joanmarie Diggs <joanmarie.diggs@gmail.com>
  24251. Reviewed by Eric Seidel.
  24252. https://bugs.webkit.org/show_bug.cgi?id=36371
  24253. [Gtk] Elements with a title attribute should not be ignored
  24254. * accessibility/AccessibilityRenderObject.cpp:
  24255. (AccessibilityRenderObject::accessibilityIsIgnored):
  24256. 2010-03-24 Steve Block <steveblock@google.com>
  24257. Reviewed by David Levin.
  24258. Adds a missing ENABLE(WORKERS) guards to the V8 bindings.
  24259. https://bugs.webkit.org/show_bug.cgi?id=36550
  24260. Build fix only, no new tests.
  24261. * bindings/v8/V8DOMWrapper.cpp:
  24262. (WebCore::V8DOMWrapper::instantiateV8Object):
  24263. 2010-03-25 Leandro Pereira <leandro@profusion.mobi>
  24264. Reviewed by Eric Seidel.
  24265. Add EFL-specific code to platform/ScrollView.cpp and
  24266. platform/Scrollbar.cpp.
  24267. http://webkit.org/b/36305
  24268. * platform/ScrollView.cpp:
  24269. * platform/Scrollbar.cpp:
  24270. 2010-03-25 Tasuku Suzuki <tasuku.suzuki@nokia.com>
  24271. Reviewed by Eric Seidel.
  24272. [Qt]Fix compile error with QT_NO_LIBRARY
  24273. https://bugs.webkit.org/show_bug.cgi?id=36533
  24274. * platform/FileSystem.h:
  24275. * platform/qt/FileSystemQt.cpp:
  24276. (WebCore::unloadModule):
  24277. 2010-03-25 Tasuku Suzuki <tasuku.suzuki@nokia.com>
  24278. Reviewed by Eric Seidel.
  24279. [Qt]Fix compile error with QT_NO_ANIMATION
  24280. https://bugs.webkit.org/show_bug.cgi?id=36526
  24281. * platform/graphics/qt/GraphicsLayerQt.cpp:
  24282. (WebCore::GraphicsLayerQtImpl::~GraphicsLayerQtImpl):
  24283. * platform/graphics/qt/GraphicsLayerQt.h:
  24284. 2010-03-25 Tony Chang <tony@chromium.org>
  24285. Reviewed by Eric Seidel.
  24286. https://bugs.webkit.org/show_bug.cgi?id=33697
  24287. Have dragOpFromIEOp("move") return DragOperationGeneric | DragOperationMove
  24288. because only returning Generic doesn't work for platforms that don't
  24289. have a generic operation.
  24290. Covered by existing tests (fast/events/drag-and-drop.html).
  24291. * dom/Clipboard.cpp:
  24292. (WebCore::dragOpFromIEOp):
  24293. (WebCore::Clipboard::destinationOperation):
  24294. (WebCore::Clipboard::setDestinationOperation):
  24295. 2010-03-25 Fumitoshi Ukai <ukai@chromium.org>
  24296. Reviewed by Eric Seidel.
  24297. [Qt] websocket/tests/long-invalid-header.html fails
  24298. https://bugs.webkit.org/show_bug.cgi?id=36492
  24299. trim message at most 128 bytes from the current position.
  24300. I believe it's enough data to investigate the error reason and
  24301. it makes test not depend on buffered size.
  24302. * websockets/WebSocketHandshake.cpp:
  24303. (WebCore::trimConsoleMessage):
  24304. (WebCore::WebSocketHandshake::readServerHandshake):
  24305. (WebCore::WebSocketHandshake::readHTTPHeaders):
  24306. 2010-03-24 Jon Honeycutt <jhoneycutt@apple.com>
  24307. <rdar://problem/7780798> Missing plug-ins should be represented by text
  24308. only, instead of lego block
  24309. https://bugs.webkit.org/show_bug.cgi?id=36583
  24310. Reviewed by Dan Bernstein.
  24311. * rendering/RenderEmbeddedObject.cpp:
  24312. (WebCore::RenderEmbeddedObject::paintReplaced):
  24313. Set the font rendering mode and the computed size, so that the text will
  24314. draw properly on Windows.
  24315. 2010-03-24 Vangelis Kokkevis <vangelis@chromium.org>
  24316. Reviewed by Dimitri Glazkov.
  24317. Removing unecessary redraws of LayerSkia contents:
  24318. https://bugs.webkit.org/show_bug.cgi?id=36470
  24319. Test: No new functionality added, no tests.
  24320. * platform/graphics/skia/LayerRendererSkia.cpp:
  24321. (WebCore::LayerRendererSkia::drawLayerInCanvasRecursive):
  24322. Debug borders now rendered at composite time rather than update time.
  24323. * platform/graphics/skia/LayerSkia.cpp:
  24324. (WebCore::LayerSkia::updateContents):
  24325. (WebCore::LayerSkia::drawDebugBorder):
  24326. Debug border drawing removed from updateContents and split into a separate method that
  24327. can be called at composite time.
  24328. (WebCore::LayerSkia::setBounds):
  24329. Resetting the bounds causes the layer to redraw its contents.
  24330. (WebCore::LayerSkia::setNeedsDisplay):
  24331. * platform/graphics/skia/LayerSkia.h:
  24332. Added declaration for drawDebugBorders method.
  24333. 2010-03-24 Mark Rowe <mrowe@apple.com>
  24334. Revert the portion of r56489 that dealt with port zero as it introduced some test failures.
  24335. * platform/KURL.cpp:
  24336. (WebCore::KURL::port): Use the "ok" argument to charactersToUIntStrict to determine whether
  24337. it was able to successfully parse the string as an unsigned integer, rather than relying on
  24338. the fact it returned zero when it failed.
  24339. 2010-03-24 Gavin Barraclough <barraclough@apple.com>
  24340. Reviewed by Sam Weinig.
  24341. * platform/text/String.cpp:
  24342. (WebCore::putUTF8Triple): Correct capitalization of function name.
  24343. (WebCore::String::utf8): Fix C-style casts.
  24344. (WebCore::String::fromUTF8): Remove unnecessary newline.
  24345. (WebCore::String::fromUTF8WithLatin1Fallback): Use early return.
  24346. 2010-03-24 Mark Rowe <mrowe@apple.com>
  24347. Reviewed by Darin Adler.
  24348. WebKit should treat port numbers outside the valid range as being blacklisted
  24349. <http://webkit.org/b/36571> / <rdar://problem/7790908>
  24350. * platform/KURL.cpp:
  24351. (WebCore::KURL::port): Map invalid port numbers to invalidPortNumber.
  24352. (WebCore::portAllowed): Add invalidPortNumber to the blacklist.
  24353. * platform/KURLGoogle.cpp: invalid port numbers to invalidPortNumber.
  24354. (WebCore::KURL::port): Add invalidPortNumber to the blacklist.
  24355. Also bring this in to sync with KURL. Having this identical code in two places is stupid.
  24356. 2010-03-24 Sam Weinig <sam@webkit.org>
  24357. Reviewed by Mark Rowe.
  24358. Add some missing exports.
  24359. * WebCore.base.exp:
  24360. 2010-03-24 Gavin Barraclough <barraclough@apple.com>
  24361. Reviewed by Sam Weinig.
  24362. Switch String::latin1, String::utf8, String::fromUTF8 to
  24363. use WTF's Unicode conversion methods rather than TextEncoder.
  24364. These methods only perform simple conversion, and don't need
  24365. really require TextEncoder's full capability (to look up arbitrary
  24366. encodings by name), switching to only be dependent on WTF will
  24367. make it easier if we chose to move WebCore::String to WTF.
  24368. * platform/text/String.cpp:
  24369. (WebCore::String::latin1):
  24370. (WebCore::putUTF8triple):
  24371. (WebCore::String::utf8):
  24372. (WebCore::String::fromUTF8):
  24373. 2010-03-24 Dmitry Titov <dimich@chromium.org>
  24374. No review, rolling out r56453.
  24375. http://trac.webkit.org/changeset/56453
  24376. https://bugs.webkit.org/show_bug.cgi?id=36426
  24377. In Chromium port, it broke invalid-image-data-standalone.html
  24378. invalid-image-data.html multipart-wait-before-boundary.html
  24379. stop-crash.html win-boundary-crash.html
  24380. * loader/FrameLoader.cpp:
  24381. (WebCore::FrameLoader::finishedLoadingDocument):
  24382. 2010-03-24 Ilya Tikhonovsky <loislo@chromium.org>
  24383. Reviewed by Pavel Feldman.
  24384. Web Inspector: Significant scroll speed degradation if Timeline has
  24385. an expanded record with significant number of children.
  24386. https://bugs.webkit.org/show_bug.cgi?id=36543
  24387. * inspector/front-end/TimelinePanel.js:
  24388. (WebInspector.TimelinePanel.prototype._updateBoundaries):
  24389. (WebInspector.TimelinePanel.prototype._addToRecordsWindow):
  24390. (WebInspector.TimelinePanel.prototype._filterRecords):
  24391. (WebInspector.TimelinePanel.prototype._refreshRecords):
  24392. 2010-03-24 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  24393. Reviewed by Eric Carlson.
  24394. [GStreamer] Fails to go to Loaded state because of floating point discrepancies
  24395. https://bugs.webkit.org/show_bug.cgi?id=35891
  24396. Use the m_fillStatus variable, which is more reliable, instead of
  24397. using the calculation, for the completed case.
  24398. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  24399. (WebCore::MediaPlayerPrivate::fillTimerFired):
  24400. 2010-03-24 Dmitry Titov <dimich@chromium.org>
  24401. Unreviewed, Chromium test fix.
  24402. Recent r56445 added CustomEvent and a test but it didn't work on Chromium bots.
  24403. Test crashed due to infinte recursion because the compiler did not have the right definition of toV8(CustomEvent*)
  24404. and was substituting toV8(Event*).
  24405. Fixing test fast/events/custom-event.html
  24406. * bindings/v8/custom/V8EventCustom.cpp:
  24407. 2010-03-24 MORITA Hajime <morrita@google.com>
  24408. Reviewed by Darin Adler.
  24409. Refactoring: HTMLFormControlElement should not have redundant null check
  24410. https://bugs.webkit.org/show_bug.cgi?id=36487
  24411. No new tests as there is no new functionality.
  24412. * html/HTMLFormControlElement.cpp:
  24413. (WebCore::HTMLFormControlElement::dispatchFocusEvent):
  24414. (WebCore::HTMLFormControlElement::dispatchBlurEvent):
  24415. 2010-03-24 Eric Uhrhane <ericu@chromium.org>
  24416. Reviewed by Alexey Proskuryakov.
  24417. DOMCoreException needs NoStaticTables modifier
  24418. https://bugs.webkit.org/show_bug.cgi?id=36458
  24419. No new tests, but this shows up in tests of Database accesses from the
  24420. Worker thread that I'll be checking in soon. The symptom is that
  24421. DOMCoreException.toString() returns [object DOMException] instead of
  24422. something more helpful.
  24423. * dom/DOMCoreException.idl: Added NoStaticTables.
  24424. 2010-03-24 Drew Wilson <atwilson@chromium.org>
  24425. Reviewed by Dmitry Titov.
  24426. Failed assertion in V8Proxy::setDOMException() if worker is shutting down.
  24427. https://bugs.webkit.org/show_bug.cgi?id=36514
  24428. Test: none (existing worker tests suffice)
  24429. * bindings/v8/V8Proxy.cpp:
  24430. (WebCore::V8Proxy::setDOMException):
  24431. Updated setDOMException() to check for an empty exception (due to no active context) and avoid throwing in that case.
  24432. 2010-03-23 Evan Martin <evan@chromium.org>
  24433. Reviewed by Dmitry Titov.
  24434. [chromium] use integral glyph widths
  24435. https://bugs.webkit.org/show_bug.cgi?id=36510
  24436. Despite WebKit (and Skia, to an extent) supporting non-integral
  24437. glyph widths, the font code path we hit in Skia only supports
  24438. integral glyph positions. This means that we would accumulate
  24439. offsets when drawing a sequence up non-integer-width glyphs
  24440. which would cause gaps when snapped to the pixel grid when drawing.
  24441. * platform/graphics/chromium/SimpleFontDataLinux.cpp:
  24442. (WebCore::SimpleFontData::platformWidthForGlyph):
  24443. round glyph widths to integers.
  24444. 2010-03-24 Dean Jackson <dino@apple.com>
  24445. Reviewed by Kevin Decker.
  24446. <rdar://problem/7785305>
  24447. Fix regression caused by r55576. It turned out that ensuring
  24448. CoreAnimation always gets a correct fill parameter caused flashing
  24449. as non-filled animations ended (CA briefly showed the initial animation
  24450. value before the style system set the final value).
  24451. * platform/graphics/mac/GraphicsLayerCA.mm:
  24452. (WebCore::GraphicsLayerCA::setupAnimation):
  24453. 2010-03-24 Hayato Ito <hayato@chromium.org>
  24454. Reviewed by Shinichiro Hamaji.
  24455. Refactor computePageRects so that Mac can make use of it.
  24456. https://bugs.webkit.org/show_bug.cgi?id=36159
  24457. Refactoring only, so no new tests.
  24458. * WebCore.base.exp:
  24459. * page/PrintContext.cpp:
  24460. (WebCore::PrintContext::computePageRects):
  24461. (WebCore::PrintContext::computePageRectsWithPageSize):
  24462. (WebCore::PrintContext::computePageRectsWithPageSizeInternal):
  24463. (WebCore::PrintContext::pageNumberForElement):
  24464. (WebCore::PrintContext::numberOfPages):
  24465. * page/PrintContext.h:
  24466. 2010-03-24 Jeremy Moskovich <jeremy@chromium.org>
  24467. Reviewed by Jeremy Orlow.
  24468. Add some diagnostics to try to track down cause of crash in ArchiveFactory::isArchiveMimeType().
  24469. https://bugs.webkit.org/show_bug.cgi?id=36426
  24470. No new tests as there is no new functionality.
  24471. * loader/FrameLoader.cpp:
  24472. (WebCore::FrameLoader::finishedLoadingDocument): Make copy of mimeType string to isolate crash.
  24473. 2010-03-24 Anton Muhin <antonm@chromium.org>
  24474. Reviewed by Nate Chapin.
  24475. Use newly introduced SetPrototype method to deal with global objects.
  24476. https://bugs.webkit.org/show_bug.cgi?id=36497
  24477. No new tests, should be covered by the current test infrastructure.
  24478. * bindings/v8/V8DOMWindowShell.cpp:
  24479. (WebCore::V8DOMWindowShell::installDOMWindow):
  24480. * bindings/v8/V8DOMWrapper.cpp:
  24481. (WebCore::V8DOMWrapper::getConstructor):
  24482. * bindings/v8/WorkerContextExecutionProxy.cpp:
  24483. (WebCore::WorkerContextExecutionProxy::initContextIfNeeded):
  24484. 2010-03-24 Dmitry Titov <dimich@chromium.org>
  24485. Unreviewed, Chromium build fix.
  24486. * platform/chromium/PopupMenuChromium.cpp:
  24487. (WebCore::PopupContainer::PopupContainer): Fix order of initializers.
  24488. (WebCore::PopupContainer::layout): Remove unused variable.
  24489. 2010-03-23 Kenneth Rohde Christiansen <kenneth@webkit.org>
  24490. Reviewed by Simon Hausmann.
  24491. Add a way to check if the page client is making use of
  24492. a QWidget.
  24493. * platform/qt/QWebPageClient.h:
  24494. (QWebPageClient::isQWidgetClient):
  24495. 2010-03-24 Jay Campan <jcampan@google.com>
  24496. Reviewed by Darin Fisher.
  24497. Making Chromium select popups not steal activation from the browser.
  24498. Select popups are now like autocomplete popups, shown in non-activated
  24499. windows.
  24500. https://bugs.webkit.org/show_bug.cgi?id=36062
  24501. * page/chromium/ChromeClientChromium.h:
  24502. * platform/chromium/PopupMenuChromium.cpp:
  24503. (WebCore::):
  24504. (WebCore::PopupListBox::setMaxHeight):
  24505. (WebCore::PopupListBox::disconnectClient):
  24506. (WebCore::PopupListBox::PopupListBox):
  24507. (WebCore::PopupContainer::create):
  24508. (WebCore::PopupContainer::PopupContainer):
  24509. (WebCore::PopupContainer::showPopup):
  24510. (WebCore::PopupContainer::showExternal):
  24511. (WebCore::PopupContainer::hidePopup):
  24512. (WebCore::PopupContainer::layout):
  24513. (WebCore::PopupContainer::chromeClientChromium):
  24514. (WebCore::PopupListBox::hidePopup):
  24515. (WebCore::PopupListBox::layout):
  24516. (WebCore::PopupMenu::~PopupMenu):
  24517. (WebCore::PopupMenu::show):
  24518. * platform/chromium/PopupMenuChromium.h:
  24519. (WebCore::PopupItem::):
  24520. (WebCore::PopupItem::PopupItem):
  24521. (WebCore::PopupContainerSettings::):
  24522. (WebCore::PopupContainer::):
  24523. (WebCore::PopupContainer::listBox):
  24524. (WebCore::PopupContainer::popupType):
  24525. 2010-03-10 David Levin <levin@chromium.org>
  24526. Reviewed by Oliver Hunt.
  24527. Need to move items that CanvasRenderingContext2D depends on into CanvasSurface.
  24528. https://bugs.webkit.org/show_bug.cgi?id=35453
  24529. Prepartory changes to allow for an OffscreenCanvas which may be used in a worker
  24530. or outside of the DOM.
  24531. No change in functionality, so new tests.
  24532. * dom/CanvasSurface.cpp: Moved functionality that CanvasRenderingContext2D depends on
  24533. into this class (and removed dependencies on document/html element).
  24534. (WebCore::CanvasSurface::CanvasSurface):
  24535. (WebCore::CanvasSurface::~CanvasSurface): Put the desctructor in the cpp file
  24536. to avoid needing access to ~ImageBuffer in the header file.
  24537. (WebCore::CanvasSurface::setSurfaceSize): Does basic items needed
  24538. when the size changes. It is protected to force outside callers to go
  24539. through HTMLCanvasElement::setSize.
  24540. (WebCore::CanvasSurface::toDataURL): Just moved from HTMLCanvasElement and
  24541. made a note about a method to fix for worker usage.
  24542. (WebCore::CanvasSurface::willDraw): Made this virtual to allow an overide
  24543. which uses the renderbox and tracks a dirtyRect.
  24544. (WebCore::CanvasSurface::convertLogicalToDevice): Moved and changed to
  24545. rely on a member variable for page scale (to avoid using the document).
  24546. (WebCore::CanvasSurface::createImageBuffer):
  24547. (WebCore::CanvasSurface::drawingContext): Simple move from HTMLCanvasElement.
  24548. (WebCore::CanvasSurface::buffer): Ditto.
  24549. (WebCore::CanvasSurface::baseTransform): Ditto.
  24550. * dom/CanvasSurface.h:
  24551. (WebCore::CanvasSurface::width): Simple move from HTMLCanvasElement.
  24552. (WebCore::CanvasSurface::height): Ditto.
  24553. (WebCore::CanvasSurface::size): Ditto.
  24554. (WebCore::CanvasSurface::setOriginTainted): Ditto.
  24555. (WebCore::CanvasSurface::originClean): Ditto.
  24556. (WebCore::CanvasSurface::hasCreatedImageBuffer): Ditto (with small name change).
  24557. * html/HTMLCanvasElement.cpp:
  24558. (WebCore::HTMLCanvasElement::HTMLCanvasElement): Pass in the scale factor to CanvasSurface
  24559. so it doesn't need the document.
  24560. (WebCore::HTMLCanvasElement::willDraw): Moved the relevant portion to CanvasSurface.
  24561. (WebCore::HTMLCanvasElement::reset): Small changes due to refactoring.
  24562. (WebCore::HTMLCanvasElement::paint): Ditto.
  24563. * html/HTMLCanvasElement.h:
  24564. (WebCore::HTMLCanvasElement::setSize): Ditto.
  24565. * platform/MIMETypeRegistry.cpp:
  24566. (WebCore::MIMETypeRegistry::isSupportedImageMIMETypeForEncoding): Added assert
  24567. to verify that this is only called on the main thread.
  24568. * platform/graphics/Image.cpp:
  24569. (WebCore::Image::nullImage): Ditto.
  24570. * platform/graphics/cg/ImageBufferCG.cpp:
  24571. (WebCore::utiFromMIMEType): Ditto.
  24572. 2010-03-24 Alexander Pavlov <apavlov@chromium.org>
  24573. Reviewed by Pavel Feldman.
  24574. Inspector: XML Tags should not be converted to lowercase
  24575. https://bugs.webkit.org/show_bug.cgi?id=28600
  24576. * inspector/front-end/ElementsPanel.js:
  24577. (WebInspector.ElementsPanel.prototype.updateBreadcrumb):
  24578. (WebInspector.ElementsPanel.prototype.decorateNodeLabel):
  24579. * inspector/front-end/ElementsTreeOutline.js:
  24580. (WebInspector.ElementsTreeOutline.prototype.nodeNameToCorrectCase):
  24581. (WebInspector.ElementsTreeElement.prototype._updateChildren):
  24582. (WebInspector.ElementsTreeElement.prototype._nodeTitleInfo):
  24583. 2010-03-03 Kenneth Rohde Christiansen <kenneth@webkit.org>
  24584. Reviewed by Antti Koivisto.
  24585. Add support for DOM Level 3 Custom Event
  24586. http://www.w3.org/TR/DOM-Level-3-Events
  24587. V8 Generator change by Nate Chapin <japhet@chromium.org>, Thanks!
  24588. Test: fast/events/custom-event.html
  24589. * DerivedSources.cpp:
  24590. * GNUmakefile.am:
  24591. * WebCore.gypi:
  24592. * WebCore.pri:
  24593. * WebCore.pro:
  24594. * WebCore/DerivedSources.make:
  24595. * WebCore.vcproj/WebCore.vcproj:
  24596. * WebCore.xcodeproj/project.pbxproj:
  24597. * bindings/js/JSEventCustom.cpp:
  24598. (WebCore::toJS):
  24599. * bindings/scripts/CodeGeneratorJS.pm:
  24600. * bindings/scripts/CodeGeneratorV8.pm:
  24601. * dom/CustomEvent.cpp: Added.
  24602. (WebCore::CustomEvent::CustomEvent):
  24603. (WebCore::CustomEvent::initCustomEvent):
  24604. (WebCore::CustomEvent::isCustomEvent):
  24605. * dom/CustomEvent.h: Added.
  24606. (WebCore::CustomEvent::create):
  24607. (WebCore::CustomEvent::detail):
  24608. * dom/Document.cpp:
  24609. (WebCore::Document::createEvent):
  24610. * dom/Event.cpp:
  24611. (WebCore::Event::isCustomEvent):
  24612. * dom/Event.h:
  24613. 2010-03-24 Alexander Pavlov <apavlov@chromium.org>
  24614. Reviewed by Pavel Feldman.
  24615. Web Inspector: Error when highlighting JavaScript with an invalid mime type
  24616. https://bugs.webkit.org/show_bug.cgi?id=36530
  24617. * inspector/front-end/SourceTokenizer.js:
  24618. (WebInspector.SourceTokenizer.Registry):
  24619. * inspector/front-end/SourceView.js:
  24620. (WebInspector.SourceView.prototype._contentLoaded):
  24621. (WebInspector.SourceView.prototype._canonicalMimeType):
  24622. * inspector/front-end/TextEditorHighlighter.js:
  24623. (WebInspector.TextEditorHighlighter):
  24624. 2010-03-24 Pavel Feldman <pfeldman@chromium.org>
  24625. Not reviewed. Chromium test fix: added a frameCount check to the
  24626. debugger function call.
  24627. * bindings/v8/V8Proxy.cpp:
  24628. (WebCore::V8Proxy::createUtilityContext):
  24629. 2010-03-19 Miikka Heikkinen <miikka.heikkinen@digia.com>
  24630. Reviewed by Simon Hausmann.
  24631. [Qt] Support for QT_LIBINFIX in Symbian builds
  24632. Configuring Qt with -qtlibinfix parameter will enable installing
  24633. an alternate version of Qt on devices that already have it on ROM.
  24634. This patch provides support for infixed builds of Webkit.
  24635. * WebCore.pro:
  24636. 2010-03-24 Kent Tamura <tkent@chromium.org>
  24637. Reviewed by Darin Adler.
  24638. Make Icon::createIconForFiles() optional.
  24639. https://bugs.webkit.org/show_bug.cgi?id=35072
  24640. r54923 made Icon::createIconForFiles() deprecated. However moving
  24641. existing icon loading code to outside of WebCore is not good. So,
  24642. we assume:
  24643. - ChromeClient::chooseIconForFiles(), renamed from iconForFiles(), is
  24644. the primary API to load icons.
  24645. - Icon::createIconForFiles() is an optional API to help
  24646. implementing ChromeClient::iconForFiles().
  24647. This patch removes a call to Icon::createIconForFiles() from
  24648. FileChooser::loadIcon(), and ChromeClient::chooseIconForFiles() of
  24649. non-Chromium ports calls Icon::createIconForFiles().
  24650. * WebCore.base.exp: Export FileChooser::iconLoaded(),
  24651. Icon::createIconForFiles(), and Icon::~Icon().
  24652. * WebCore.xcodeproj/project.pbxproj: Export Icon.h
  24653. * loader/EmptyClient.h: Rename iconForFiles() to chooseIconForFiles().
  24654. * page/Chrome.cpp: ditto.
  24655. * page/Chrome.h: ditto.
  24656. * page/ChromeClient.h: ditto.
  24657. * platform/FileChooser.cpp:
  24658. (WebCore::FileChooser::loadIcon):
  24659. * platform/graphics/Icon.h: Remove a comment on createIconForFiles().
  24660. * platform/graphics/chromium/IconChromiumLinux.cpp: Remove createIconForFiles().
  24661. * platform/graphics/chromium/IconChromiumMac.cpp: ditto.
  24662. * platform/graphics/chromium/IconChromiumWin.cpp: ditto.
  24663. * rendering/RenderFileUploadControl.cpp: Rename iconForFiles() to chooseIconForFiles().
  24664. * rendering/RenderFileUploadControl.h: ditto.
  24665. 2010-03-23 Dan Bernstein <mitz@apple.com>
  24666. Fixed typos.
  24667. * manual-tests/plugin-visible-rect-change.html:
  24668. 2010-03-23 Dan Bernstein <mitz@apple.com>
  24669. Reviewed by John Sullivan.
  24670. WebCore part of
  24671. <rdar://problem/7197736> Plug-in clip rect does not update when overflow
  24672. clip changes
  24673. https://bugs.webkit.org/show_bug.cgi?id=36479.
  24674. * manual-tests/plugin-visible-rect-change.html: Added.
  24675. * platform/mac/WidgetMac.mm:
  24676. (WebCore::WidgetPrivate::WidgetPrivate): Added previousVisibleRect.
  24677. (WebCore::Widget::setFrameRect): If the visible rect changed but the
  24678. frame rect did not, send a -visibleRectDidChange message to the view,
  24679. if it responds to it.
  24680. (WebCore::Widget::releasePlatformWidget): Reset previousVisibleRect.
  24681. * rendering/RenderWidget.cpp:
  24682. (WebCore::RenderWidget::setWidgetGeometry): Track changes to the clip rect
  24683. imposed by the enclosing layer. Call Widget::setFrameRect when it changes,
  24684. even if the frame rect did not.
  24685. * rendering/RenderWidget.h:
  24686. (WebCore::RenderWidget::windowClipRect): Added this accessor.
  24687. 2010-03-23 Simon Fraser <simon.fraser@apple.com>
  24688. Reviewed by Dan Bernstein.
  24689. Assertion ASSERTION FAILED: rootLayer == m_clipRectsRoot at hulu.com
  24690. https://bugs.webkit.org/show_bug.cgi?id=34065
  24691. Fix another cause of assertions related to the clip rects root. Embeds
  24692. with zero size caused the overlap testing to fail, yet we require them to work
  24693. for correct compositing, so when the composited bounds is empty, use a 1x1 rect
  24694. for overlap testing.
  24695. Test: compositing/geometry/empty-embed-rects.html
  24696. * rendering/RenderLayerCompositor.cpp:
  24697. (WebCore::RenderLayerCompositor::addToOverlapMap):
  24698. (WebCore::RenderLayerCompositor::computeCompositingRequirements):
  24699. 2010-03-23 David Levin <levin@chromium.org>
  24700. Reviewed by Nate Chapin.
  24701. [chromium] XMLHttpRequest.send sends 'undefined' string when passed undefined value.
  24702. https://bugs.webkit.org/show_bug.cgi?id=36506
  24703. Test: http/tests/xmlhttprequest/send-undefined-and-null.html
  24704. * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
  24705. (WebCore::isDocumentType): Unrelated style fix: fixed the casing of the method.
  24706. (WebCore::V8XMLHttpRequest::sendCallback): Added check for null/undefined to do the send.
  24707. This mirrors what is done in the JSC bindings. Previously, sending 'null' worked because
  24708. the last case, which did "toWebCoreStringWithNullCheck", resulted in sending an empty
  24709. request body.
  24710. 2010-03-23 Chris Evans <cevans@chromium.org>
  24711. Reviewed by Darin Adler.
  24712. Fix hard-to-see crash due to incorrect libxml API usage.
  24713. https://bugs.webkit.org/show_bug.cgi?id=36000
  24714. Test: fast/text/bad-encoding.html
  24715. * dom/XMLTokenizerLibxml2.cpp:
  24716. (WebCore::XMLTokenizer::doEnd): Avoid operations on a closed context.
  24717. 2010-03-23 Nate Chapin <japhet@chromium.org>
  24718. Unreviewed, revert r56376.
  24719. This revision introduced a crash in a couple of layout tests
  24720. on Chromium Linux.
  24721. * page/chromium/ChromeClientChromium.h:
  24722. * platform/chromium/PopupMenuChromium.cpp:
  24723. (WebCore::):
  24724. (WebCore::PopupContainer::create):
  24725. (WebCore::PopupContainer::PopupContainer):
  24726. (WebCore::PopupContainer::showPopup):
  24727. (WebCore::PopupContainer::showExternal):
  24728. (WebCore::PopupContainer::hidePopup):
  24729. (WebCore::PopupMenu::show):
  24730. * platform/chromium/PopupMenuChromium.h:
  24731. (WebCore::PopupItem::):
  24732. (WebCore::PopupItem::PopupItem):
  24733. (WebCore::PopupContainerSettings::):
  24734. (WebCore::PopupContainer::listBox):
  24735. 2010-03-23 David Hyatt <hyatt@apple.com>
  24736. Reviewed by Simon Fraser and Darin Adler.
  24737. https://bugs.webkit.org/show_bug.cgi?id=36272, make sure nth-child can work when the portion with "n" is omitted.
  24738. Added fast/css/nth-child-implied-step.html
  24739. * css/CSSGrammar.y:
  24740. * css/tokenizer.flex:
  24741. 2010-03-23 Darin Adler <darin@apple.com>
  24742. Reviewed by Sam Weinig.
  24743. Reduce and straighten internal use of DOMImplementation
  24744. https://bugs.webkit.org/show_bug.cgi?id=36501
  24745. * WebCore.xcodeproj/project.pbxproj: Xcode decided to
  24746. re-sort this file.
  24747. * dom/Clipboard.cpp: Removed unneeded include of DOMImplementation.h.
  24748. * dom/DOMImplementation.cpp: Removed unneeded createDocument and
  24749. createHTMLDocument functions. These should be done directly instead
  24750. of involving the DOMImplementation class.
  24751. * dom/DOMImplementation.h: Ditto.
  24752. * dom/DocumentType.cpp: Removed unneeded include of DOMImplementation.h.
  24753. * html/HTMLViewSourceDocument.cpp:
  24754. (WebCore::HTMLViewSourceDocument::createTokenizer): Don't allocate a
  24755. DOMImplementation object just to use a class member function.
  24756. * loader/CachedFont.cpp: Removed unneeded include of DOMImplementation.h.
  24757. * xml/XMLHttpRequest.cpp:
  24758. (WebCore::XMLHttpRequest::responseXML): Use Document::create to create a
  24759. new document instead of involving DOMImplementation.
  24760. * xml/XSLTProcessor.cpp:
  24761. (WebCore::XSLTProcessor::createDocumentFromSource): Ditto. And in the case
  24762. where we do need to call DOMImplementation to interpret the MIME type,
  24763. don't allocate a DOMImplementation object just to use a class member
  24764. function.
  24765. 2010-03-23 Luiz Agostini <luiz.agostini@openbossa.org>
  24766. Reviewed by Kenneth Rohde Christiansen.
  24767. [Qt] Maemo5 theme - all <select> elements should be rendered as menu lists.
  24768. https://bugs.webkit.org/show_bug.cgi?id=36367
  24769. Enabling NO_LISTBOX_RENDERING in WebCore.pri for Maemo5.
  24770. * WebCore.pri:
  24771. 2010-03-22 Joseph Pecoraro <joepeck@webkit.org>
  24772. Reviewed by David Kilzer.
  24773. Upstream iPhone KeyEvent platform code and share with Mac platform
  24774. https://bugs.webkit.org/show_bug.cgi?id=35870
  24775. * platform/iphone/KeyEventCodesIPhone.h: Improper comment for #endif.
  24776. * platform/iphone/KeyEventIPhone.mm: Fixed headers.
  24777. 2010-03-23 David Hyatt <hyatt@apple.com>
  24778. Reviewed by Jeremy Orlow.
  24779. https://bugs.webkit.org/show_bug.cgi?id=36277, make sure nth-child supports the positive unary prefix (+) as well as the negative
  24780. one (-).
  24781. Added fast/css/nth-child-unary-prefix.html
  24782. * css/tokenizer.flex:
  24783. 2010-03-23 Andrey Kosyakov <caseq@chromium.org>
  24784. Reviewed by Dmitry Titov.
  24785. Change notification sent to inspector frontend on workers creation / destruction
  24786. to be posted asynchronously to avoid JS reenterability problems. Also, renamed
  24787. willDestroyWorker to didDestroyWorker to reflect that it gets called later and got
  24788. rid of explicit IDs for workers (use addresses instead).
  24789. https://bugs.webkit.org/show_bug.cgi?id=36213
  24790. * inspector/InjectedScriptHost.cpp:
  24791. (WebCore::InjectedScriptHost::didDestroyWorker):
  24792. * inspector/InjectedScriptHost.h:
  24793. * inspector/InjectedScriptHost.idl:
  24794. * inspector/InspectorController.cpp:
  24795. (WebCore::PostWorkerNotificationToFrontendTask::create):
  24796. (WebCore::PostWorkerNotificationToFrontendTask::PostWorkerNotificationToFrontendTask):
  24797. (WebCore::PostWorkerNotificationToFrontendTask::performTask):
  24798. (WebCore::InspectorController::postWorkerNotificationToFrontend):
  24799. (WebCore::InspectorController::didCreateWorker):
  24800. (WebCore::InspectorController::didDestroyWorker):
  24801. * inspector/InspectorController.h:
  24802. (WebCore::InspectorController::):
  24803. * inspector/InspectorFrontend.cpp:
  24804. (WebCore::InspectorFrontend::didDestroyWorker):
  24805. * inspector/InspectorFrontend.h:
  24806. * inspector/InspectorWorkerResource.h:
  24807. (WebCore::InspectorWorkerResource::create):
  24808. (WebCore::InspectorWorkerResource::id):
  24809. (WebCore::InspectorWorkerResource::InspectorWorkerResource):
  24810. * inspector/front-end/InjectedFakeWorker.js:
  24811. (InjectedFakeWorker.FakeWorker.prototype.terminate):
  24812. * inspector/front-end/WorkersSidebarPane.js:
  24813. (WebInspector.didDestroyWorker):
  24814. * workers/AbstractWorker.cpp:
  24815. (WebCore::AbstractWorker::AbstractWorker):
  24816. (WebCore::AbstractWorker::onDestroyWorker):
  24817. * workers/AbstractWorker.h:
  24818. (WebCore::AbstractWorker::asID):
  24819. * workers/SharedWorker.cpp:
  24820. (WebCore::SharedWorker::SharedWorker):
  24821. * workers/Worker.cpp:
  24822. (WebCore::Worker::Worker):
  24823. 2010-03-22 David Hyatt <hyatt@apple.com>
  24824. Reviewed by Sam Weinig.
  24825. https://bugs.webkit.org/show_bug.cgi?id=36266, support DOM Level 3 focusin/focusout events. Add support for
  24826. IE onfocusin/onfocusout extensions to HTML. The old DOM level 2 names (DOMFocusIn/DOMFocusOut are still supported).
  24827. Added fast/events/focusinout.html
  24828. * dom/Document.cpp:
  24829. (WebCore::Document::setFocusedNode):
  24830. * dom/Event.cpp:
  24831. (WebCore::Event::aliasedType):
  24832. (WebCore::Event::hasAliasedType):
  24833. * dom/Event.h:
  24834. * dom/EventNames.h:
  24835. * dom/EventTarget.cpp:
  24836. (WebCore::EventTarget::fireEventListeners):
  24837. * dom/EventTarget.h:
  24838. * dom/Node.cpp:
  24839. (WebCore::Node::dispatchUIEvent):
  24840. * html/HTMLAttributeNames.in:
  24841. * html/HTMLButtonElement.cpp:
  24842. (WebCore::HTMLButtonElement::parseMappedAttribute):
  24843. * html/HTMLElement.cpp:
  24844. (WebCore::HTMLElement::parseMappedAttribute):
  24845. * html/HTMLFormControlElement.cpp:
  24846. (WebCore::HTMLTextFormControlElement::parseMappedAttribute):
  24847. * html/HTMLFrameSetElement.cpp:
  24848. (WebCore::HTMLFrameSetElement::parseMappedAttribute):
  24849. * html/HTMLSelectElement.cpp:
  24850. (WebCore::HTMLSelectElement::parseMappedAttribute):
  24851. * svg/SVGElement.cpp:
  24852. (WebCore::SVGElement::parseMappedAttribute):
  24853. 2010-03-23 MORITA Hajime <morrita@google.com>
  24854. Reviewed by Alexey Proskuryakov.
  24855. WebCore::SelectionController::setSelection NULL pointer
  24856. https://bugs.webkit.org/show_bug.cgi?id=31545
  24857. Added missing NULL-check that other APIs have.
  24858. Test: svg/dom/frame-related-api-during-load.html
  24859. * svg/SVGSVGElement.cpp:
  24860. (WebCore::SVGSVGElement::deselectAll):
  24861. 2010-03-23 Qi Zhang <qi.2.zhang@nokia.com>
  24862. Reviewed by Simon Hausmann.
  24863. [Qt] LayoutTests/fast/canvas/fillrect_gradient.html failed
  24864. https://bugs.webkit.org/show_bug.cgi?id=36444
  24865. Handle duplicated or unsorted colorStop at platformDestory
  24866. * platform/graphics/qt/GradientQt.cpp:
  24867. (WebCore::Gradient::platformGradient):
  24868. 2010-03-23 Julien Chaffraix <jchaffraix@webkit.org>
  24869. Unreviewed build fix.
  24870. Try to make the window buildbot happy.
  24871. * xml/XMLHttpRequestProgressEventThrottle.cpp:
  24872. * xml/XMLHttpRequestProgressEventThrottle.h: Move initialization of the
  24873. static const in the cpp file.
  24874. 2010-03-23 Pavel Feldman <pfeldman@chromium.org>
  24875. Reviewed by Timothy Hatcher.
  24876. Web Inspector: make gear menu appear on styles panel at all times.
  24877. https://bugs.webkit.org/show_bug.cgi?id=36490
  24878. * inspector/front-end/inspector.css:
  24879. 2010-03-23 Pavel Feldman <pfeldman@chromium.org>
  24880. Reviewed by Timothy Hatcher.
  24881. Web Inspector: render nodes in inherited style bars as links.
  24882. https://bugs.webkit.org/show_bug.cgi?id=36486
  24883. * English.lproj/localizedStrings.js:
  24884. * inspector/front-end/BreakpointsSidebarPane.js:
  24885. (WebInspector.BreakpointsSidebarPane.prototype._appendBreakpointElement.breakpointClicked):
  24886. (WebInspector.BreakpointsSidebarPane.prototype._appendBreakpointElement):
  24887. * inspector/front-end/StylesSidebarPane.js:
  24888. (WebInspector.StylesSidebarPane.prototype._update.else.insertInheritedNodeSeparator):
  24889. (WebInspector.StylesSidebarPane.prototype._update):
  24890. (WebInspector.StylesSidebarPane.prototype._selectNode):
  24891. * inspector/front-end/inspector.js:
  24892. 2010-03-23 Julien Chaffraix <jchaffraix@webkit.org>
  24893. Reviewed by Alexey Proskuryakov.
  24894. [XHR] onProgress event needs to be dispatched according to what the specification states
  24895. https://bugs.webkit.org/show_bug.cgi?id=18654
  24896. Test: http/tests/xmlhttprequest/xmlhttprequest-50ms-download-dispatch.html
  24897. * Android.mk:
  24898. * GNUmakefile.am:
  24899. * WebCore.gypi:
  24900. * WebCore.pro:
  24901. * WebCore.vcproj/WebCore.vcproj:
  24902. * WebCore.xcodeproj/project.pbxproj:
  24903. Added XMLHttpRequestProgressEventThrottle to the build systems.
  24904. * xml/XMLHttpRequest.cpp:
  24905. (WebCore::XMLHttpRequest::XMLHttpRequest): Created the throttle.
  24906. (WebCore::XMLHttpRequest::callReadyStateChangeListener): The 'readyState' event are
  24907. dispatched using the XMLHttpRequestProgressEventThrottle now. For the DONE state, we
  24908. need to flush any pending progress event as we do not want it to be dispatched after
  24909. the DONE readyState event.
  24910. (WebCore::XMLHttpRequest::createRequest): Made this event use the
  24911. XMLHttpRequestProgressEventThrottle for event dispatching.
  24912. (WebCore::XMLHttpRequest::abort): Ditto.
  24913. (WebCore::XMLHttpRequest::networkError): Ditto.
  24914. (WebCore::XMLHttpRequest::abortError): Ditto.
  24915. (WebCore::XMLHttpRequest::didReceiveData): Ditto. Also fixed a potential warning.
  24916. (WebCore::XMLHttpRequest::suspend):
  24917. (WebCore::XMLHttpRequest::resume): Implemented the logic for suspend / resume.
  24918. * xml/XMLHttpRequest.h:
  24919. * xml/XMLHttpRequestProgressEventThrottle.cpp: Added.
  24920. (WebCore::XMLHttpRequestProgressEventThrottle::XMLHttpRequestProgressEventThrottle):
  24921. (WebCore::XMLHttpRequestProgressEventThrottle::~XMLHttpRequestProgressEventThrottle):
  24922. (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent): Implemented the bulk
  24923. of the event throttling here: we use a timer to do so, as long as the timer is active it means
  24924. that events are coming faster than the throttling time and we coalesce them.
  24925. (WebCore::XMLHttpRequestProgressEventThrottle::dispatchEvent): Generic method to dispatch an event.
  24926. (WebCore::XMLHttpRequestProgressEventThrottle::flushProgressEvent): Called when we want to dispatch
  24927. any pending events and stopping any further dispatching.
  24928. (WebCore::XMLHttpRequestProgressEventThrottle::dispatchPausedEvent): Used to dispatch the event
  24929. that was queued due to the object being suspended.
  24930. (WebCore::XMLHttpRequestProgressEventThrottle::fired): Used to dispatch any coalesced event.
  24931. (WebCore::XMLHttpRequestProgressEventThrottle::hasEventToDispatch): Used to check if we have
  24932. an event to dispatch.
  24933. (WebCore::XMLHttpRequestProgressEventThrottle::suspend): Marked the object as suspended.
  24934. (WebCore::XMLHttpRequestProgressEventThrottle::resume): Dispatched the event that was queued.
  24935. * xml/XMLHttpRequestProgressEventThrottle.h: Added.
  24936. (WebCore::):
  24937. (WebCore::XMLHttpRequestProgressEventThrottle::suspended):
  24938. 2010-03-23 Pavel Feldman <pfeldman@chromium.org>
  24939. Reviewed by Timothy Hatcher.
  24940. Web Inspector: Element inspector search funtion: Error dispatching: performSearch.
  24941. https://bugs.webkit.org/show_bug.cgi?id=36488
  24942. Test: inspector/elements-panel-search.html
  24943. * inspector/front-end/ElementsPanel.js:
  24944. (WebInspector.ElementsPanel.prototype.performSearch):
  24945. (WebInspector.ElementsPanel.prototype.addNodesToSearchResult):
  24946. * inspector/front-end/InjectedScript.js:
  24947. (injectedScriptConstructor.):
  24948. (injectedScriptConstructor):
  24949. 2010-03-23 Qi Zhang <qi.2.zhang@nokia.com>
  24950. Reviewed by Simon Hausmann.
  24951. [Qt] fast/canvas/patternfill-repeat.html failed.
  24952. https://bugs.webkit.org/show_bug.cgi?id=34477
  24953. Change Pattern to expose the repeatX and repeatY
  24954. At GraphicsContextQt to apply repeatX and repeatY
  24955. * platform/graphics/Pattern.h:
  24956. (WebCore::Pattern::repeatX):
  24957. (WebCore::Pattern::repeatY):
  24958. * platform/graphics/qt/GraphicsContextQt.cpp:
  24959. (WebCore::GraphicsContext::drawLine):
  24960. (WebCore::GraphicsContext::fillRect):
  24961. (WebCore::GraphicsContext::rotate):
  24962. 2010-03-23 Alex Milowski <alex@milowski.com>
  24963. Reviewed by Kenneth Rohde Christiansen.
  24964. Removed the use of beta STIX fonts.
  24965. * css/mathml.css:
  24966. 2010-03-23 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  24967. Reviewed by Holger Freyther.
  24968. [GTK] Does not build with latest GTK+ development release
  24969. https://bugs.webkit.org/show_bug.cgi?id=36398
  24970. Fix building with newest GTK+ versions.
  24971. * GNUmakefile.am:
  24972. * platform/gtk/GtkPluginWidget.cpp:
  24973. (WebCore::GtkPluginWidget::invalidateRect):
  24974. (WebCore::GtkPluginWidget::paint):
  24975. * platform/gtk/GtkVersioning.h: Added.
  24976. * platform/gtk/PlatformScreenGtk.cpp:
  24977. (WebCore::getVisual):
  24978. (WebCore::screenRect):
  24979. (WebCore::screenAvailableRect):
  24980. * platform/gtk/ScrollbarGtk.cpp:
  24981. (ScrollbarGtk::paint):
  24982. * plugins/gtk/gtk2xtbin.c:
  24983. (gtk_xtbin_set_position):
  24984. (gtk_xtbin_unrealize):
  24985. 2010-03-23 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  24986. Reviewed by Kenneth Rohde Christiansen.
  24987. [Qt] Remove support for Qt v4.4
  24988. https://bugs.webkit.org/show_bug.cgi?id=36389
  24989. No new tests as there is no new functionality.
  24990. * WebCore.pri:
  24991. * WebCore.pro:
  24992. * platform/network/qt/ResourceHandleQt.cpp:
  24993. (WebCore::ResourceHandle::willLoadFromCache):
  24994. * platform/qt/CookieJarQt.cpp:
  24995. (WebCore::setCookies):
  24996. (WebCore::cookies):
  24997. * platform/qt/KURLQt.cpp:
  24998. (WebCore::KURL::operator QUrl):
  24999. * platform/qt/ScrollbarThemeQt.cpp:
  25000. (WebCore::ScrollbarThemeQt::paintScrollCorner):
  25001. * plugins/mac/PluginViewMac.cpp:
  25002. 2010-03-23 Kent Tamura <tkent@chromium.org>
  25003. Reviewed by Adam Barth.
  25004. Add checks if setNeedsWillValidateCheck() and
  25005. setNeedsValidityCheck() are called correctly.
  25006. https://bugs.webkit.org/show_bug.cgi?id=34924
  25007. Introduce HTMLFormControlElement::m_willValidate and
  25008. m_isValid. They are the caches of willValidate() and
  25009. isValidFormControlElement(). setNeedsWillValidateCheck() updates
  25010. m_willValidate and setNeedsValidityCheck() updates m_isValid.
  25011. willValidate() and isValidFormControlElement() have assertions to
  25012. check m_willvalidate or m_isValid has the correct state. If
  25013. setNeedsWillValidateCheck() or setNeedsValidityCheck() is needed
  25014. to be called and is not called, these assertions fail.
  25015. * html/HTMLButtonElement.h:
  25016. (WebCore::HTMLButtonElement::recalcWillValidate):
  25017. * html/HTMLFieldSetElement.h:
  25018. (WebCore::HTMLFieldSetElement::recalcWillValidate):
  25019. * html/HTMLFormControlElement.cpp:
  25020. (WebCore::HTMLFormControlElement::HTMLFormControlElement):
  25021. (WebCore::HTMLFormControlElement::parseMappedAttribute):
  25022. (WebCore::HTMLFormControlElement::recalcWillValidate):
  25023. (WebCore::HTMLFormControlElement::willValidate):
  25024. (WebCore::HTMLFormControlElement::setNeedsWillValidateCheck):
  25025. (WebCore::HTMLFormControlElement::validationMessage):
  25026. (WebCore::HTMLFormControlElement::isValidFormControlElement):
  25027. (WebCore::HTMLFormControlElement::setNeedsValidityCheck):
  25028. * html/HTMLFormControlElement.h:
  25029. * html/HTMLInputElement.cpp:
  25030. (WebCore::HTMLInputElement::setInputType):
  25031. (WebCore::HTMLInputElement::parseMappedAttribute):
  25032. (WebCore::HTMLInputElement::setValue):
  25033. (WebCore::HTMLInputElement::recalcWillValidate):
  25034. * html/HTMLInputElement.h:
  25035. * html/HTMLTextAreaElement.cpp:
  25036. (WebCore::HTMLTextAreaElement::setNonDirtyValue):
  25037. 2010-03-22 Pavel Feldman <pfeldman@chromium.org>
  25038. Reviewed by Dave Hyatt.
  25039. Web Inspector: display CSS selector source line in the styles sidebar pane.
  25040. https://bugs.webkit.org/show_bug.cgi?id=36414
  25041. This change adds a sourceLine field into the CSSStyleRule that is populated
  25042. from within the parser. CSSParser is now keeping track of the line numbers
  25043. and last selector line number that is being used while creating CSSStyleRules.
  25044. Test: inspector/styles-source-lines.html
  25045. * css/CSSGrammar.y:
  25046. * css/CSSParser.cpp:
  25047. (WebCore::CSSParser::CSSParser):
  25048. (WebCore::CSSParser::lex):
  25049. (WebCore::CSSParser::countLines):
  25050. (WebCore::CSSParser::createStyleRule):
  25051. * css/CSSParser.h:
  25052. (WebCore::CSSParser::updateLastSelectorLine):
  25053. * css/CSSStyleRule.cpp:
  25054. (WebCore::CSSStyleRule::CSSStyleRule):
  25055. * css/CSSStyleRule.h:
  25056. (WebCore::CSSStyleRule::create):
  25057. (WebCore::CSSStyleRule::sourceLine):
  25058. * css/tokenizer.flex:
  25059. * inspector/InspectorDOMAgent.cpp:
  25060. (WebCore::InspectorDOMAgent::buildObjectForRule):
  25061. * inspector/front-end/DOMAgent.js:
  25062. (WebInspector.CSSStyleDeclaration.parseRule):
  25063. * inspector/front-end/StylesSidebarPane.js:
  25064. (WebInspector.StylePropertiesSection):
  25065. 2010-03-22 Qi Zhang <qi.2.zhang@nokia.com>
  25066. Reviewed by Laszlo Gombos.
  25067. [Qt] Fix arc function in canvas
  25068. https://bugs.webkit.org/show_bug.cgi?id=36296
  25069. Based on HTLM5 spec (4.8.10.1.8 Complex shapes), arc function should draw a line to previous point, not only the arc.
  25070. * platform/graphics/qt/PathQt.cpp:
  25071. (WebCore::Path::addArc):
  25072. 2010-03-19 Abhishek Arya <inferno@chromium.org>
  25073. Reviewed by Adam Barth.
  25074. https://bugs.webkit.org/show_bug.cgi?id=36339
  25075. Off-by-one memory corruption fix for long invalid websockets upgrade header
  25076. Test: websocket/tests/long-invalid-header.html
  25077. * websockets/WebSocketHandshake.cpp:
  25078. (WebCore::WebSocketHandshake::readServerHandshake):
  25079. 2010-03-22 Fumitoshi Ukai <ukai@chromium.org>
  25080. Unreviewed build fix for Chromim Mac at r56376
  25081. Fix initializer order of PopupContainer.
  25082. * platform/chromium/PopupMenuChromium.cpp:
  25083. (WebCore::PopupContainer::PopupContainer):
  25084. 2010-03-22 Jay Campan <jcampan@google.com>
  25085. Reviewed by Darin Fisher.
  25086. Making Chromium select popups not steal activation from the browser.
  25087. Select popups are now like autocomplete popups, shown in non-activated
  25088. windows.
  25089. https://bugs.webkit.org/show_bug.cgi?id=36062
  25090. * page/chromium/ChromeClientChromium.h:
  25091. * platform/chromium/PopupMenuChromium.cpp:
  25092. (WebCore::):
  25093. (WebCore::PopupContainer::create):
  25094. (WebCore::PopupContainer::PopupContainer):
  25095. (WebCore::PopupContainer::~PopupContainer):
  25096. (WebCore::PopupContainer::showPopup):
  25097. (WebCore::PopupContainer::showExternal):
  25098. (WebCore::PopupContainer::hidePopup):
  25099. (WebCore::PopupMenu::show):
  25100. * platform/chromium/PopupMenuChromium.h:
  25101. (WebCore::PopupContainer::):
  25102. (WebCore::PopupContainer::popupType):
  25103. 2010-03-22 Dmitry Titov <dimich@chromium.org>
  25104. Reviewed by Nate Chapin.
  25105. [v8] Crash if the worker is terminated before its initial script is executed.
  25106. https://bugs.webkit.org/show_bug.cgi?id=36336
  25107. Test: fast/workers/termination-early.html
  25108. * bindings/v8/WorkerContextExecutionProxy.cpp:
  25109. (WebCore::WorkerContextExecutionProxy::initContextIfNeeded): Check for 0 context. When terminated, the v8 heap initialization returns 0.
  25110. (WebCore::WorkerContextExecutionProxy::evaluate): Don't execute script if initialization failed.
  25111. * bindings/v8/WorkerContextExecutionProxy.h:
  25112. 2010-03-22 Andrey Kosyakov <caseq@chromium.org>
  25113. Reviewed by Pavel Feldman.
  25114. Support creation of fake workers before document is loaded by deferring
  25115. attaching of fake workers iframe until document is loaded and buffering all
  25116. messages addressed to worker.
  25117. https://bugs.webkit.org/show_bug.cgi?id=36445
  25118. * inspector/front-end/InjectedFakeWorker.js:
  25119. (InjectedFakeWorker.FakeWorker.prototype.postMessage):
  25120. (InjectedFakeWorker.FakeWorker.prototype._buildWorker):
  25121. (InjectedFakeWorker.FakeWorker.prototype._attachWorkerFrameToDocument):
  25122. (InjectedFakeWorker.FakeWorker.prototype._onWorkerFrameLoaded):
  25123. 2010-03-22 Darin Fisher <darin@chromium.org>
  25124. Reviewed by Brady Eidson.
  25125. HistoryController::replaceState() should modify m_currentItem
  25126. instead of the current HistoryItem of the BackForwardList.
  25127. https://bugs.webkit.org/show_bug.cgi?id=36435
  25128. Test: fast/loader/stateobjects/replacestate-in-iframe.html
  25129. * loader/HistoryController.cpp:
  25130. (WebCore::HistoryController::replaceState):
  25131. 2010-03-22 Joseph Pecoraro <joepeck@webkit.org>
  25132. Reviewed by David Kilzer.
  25133. Upstream Part of the iPhone Platform sharing code with the Mac Platform
  25134. https://bugs.webkit.org/show_bug.cgi?id=35870
  25135. <rdar://problem/7707283> and <rdar://problem/7707318>
  25136. Part 3 of 3: Shared code between iphone and mac. The shared code was
  25137. refactored to be usable by both platforms without platform specific
  25138. typing, meaning no NSEvent versus WebEvent special cases.
  25139. Shared code usable by either mac or iphone platforms.
  25140. * platform/cocoa/KeyEventCocoa.h:
  25141. * platform/cocoa/KeyEventCocoa.mm:
  25142. (WebCore::keyIdentifierForCharCode):
  25143. (WebCore::windowsKeyCodeForKeyCode):
  25144. (WebCore::windowsKeyCodeForCharCode):
  25145. Make use of the shared code. Keep anything platform specific in the
  25146. original file before calling the shared code.
  25147. * platform/iphone/KeyEventIPhone.mm:
  25148. (WebCore::keyIdentifierForKeyEvent):
  25149. * platform/mac/KeyEventMac.mm:
  25150. (WebCore::keyIdentifierForKeyEvent):
  25151. (WebCore::windowsKeyCodeForKeyEvent):
  25152. 2010-03-22 Kevin Decker <kdecker@apple.com>
  25153. Reviewed by Simon Fraser.
  25154. https://bugs.webkit.org/show_bug.cgi?id=36328
  25155. * rendering/RenderEmbeddedObject.cpp:
  25156. (WebCore::RenderEmbeddedObject::RenderEmbeddedObject): Fix a find/repalce mistake from my earlier patch.
  25157. Rename m_setShowsMissingPluginIndicator -> m_showsMissingPluginIndicator.
  25158. (WebCore::RenderEmbeddedObject::updateWidget): Don't update the widget if we're showing
  25159. the missing plug-in indicator.
  25160. (WebCore::RenderEmbeddedObject::paint):Fix a find/repalce mistake from my earlier patch.
  25161. Rename m_setShowsMissingPluginIndicator -> m_showsMissingPluginIndicator.
  25162. (WebCore::RenderEmbeddedObject::paintReplaced): Ditto.
  25163. * rendering/RenderEmbeddedObject.h: Ditto.
  25164. (WebCore::RenderEmbeddedObject::setShowsMissingPluginIndicator): Ditto.
  25165. (WebCore::RenderEmbeddedObject::showsMissingPluginIndicator): Ditto.
  25166. 2010-03-22 Joseph Pecoraro <joepeck@webkit.org>
  25167. Reviewed by David Kilzer.
  25168. Upstream Part of the iPhone Platform sharing code with the Mac Platform
  25169. https://bugs.webkit.org/show_bug.cgi?id=35870
  25170. <rdar://problem/7707283>
  25171. Part 2 of 3: No changes other than moving code around.
  25172. Copied KeyEvent function from platform/mac to a platform/cocoa shared directory.
  25173. * WebCore.xcodeproj/project.pbxproj: Added cocoa group and new files.
  25174. * platform/cocoa/KeyEventCocoa.h: Added.
  25175. * platform/cocoa/KeyEventCocoa.mm: Copied from WebCore/platform/mac/KeyEventMac.mm.
  25176. (WebCore::keyIdentifierForKeyEvent):
  25177. (WebCore::windowsKeyCodeForKeyEvent): Include the shared code.
  25178. * platform/mac/KeyEventMac.mm:
  25179. 2010-03-22 Joseph Pecoraro <joepeck@webkit.org>
  25180. Reviewed by David Kilzer.
  25181. Part 1 of 3: Upstream iPhone KeyEvent platform code and share with Mac platform
  25182. https://bugs.webkit.org/show_bug.cgi?id=35870
  25183. <rdar://problem/7707283>
  25184. * WebCore.xcodeproj/project.pbxproj: Added iphone group and new files.
  25185. * platform/iphone: Added.
  25186. * platform/iphone/KeyEventCodesIPhone.h: Added.
  25187. * platform/iphone/KeyEventIPhone.mm: Added. Ensure PLATFORM(IPHONE)
  25188. * platform/mac/KeyEventMac.mm: Ensure PLATFORM(MAC)
  25189. 2010-03-22 Kevin Decker <kdecker@apple.com>
  25190. Attempt to fix the Leopard build.
  25191. * rendering/RenderEmbeddedObject.cpp: Add ".f" to contants.
  25192. 2010-03-22 Justin Schuh <jschuh@chromium.org>
  25193. Reviewed by Dirk Schulze.
  25194. Out of bounds read in SVG feColorMatrix filter
  25195. https://bugs.webkit.org/show_bug.cgi?id=32714
  25196. Prevents an invalid read when a valid values attribute is not
  25197. supplied for an feColorMatrix SVG filter. Also fixes general
  25198. handling of missing or invalid values attribute.
  25199. Tests: svg/filters/feColorMatrix-invalid-value.svg
  25200. svg/filters/feColorMatrix-values.svg
  25201. * svg/SVGFEColorMatrixElement.cpp:
  25202. (WebCore::SVGFEColorMatrixElement::build):
  25203. 2010-03-22 Philippe Normand <pnormand@igalia.com>
  25204. Reviewed by Eric Carlson.
  25205. [GStreamer] Use ImageBuffer API to do painting
  25206. https://bugs.webkit.org/show_bug.cgi?id=35783
  25207. New ImageGStreamer class abstracting the conversion of GStreamer
  25208. buffers to cairo surfaces. Using this makes the painting code of
  25209. the player more generic.
  25210. * GNUmakefile.am:
  25211. * platform/graphics/gstreamer/ImageGStreamer.h: Added.
  25212. (WebCore::ImageGStreamer::image):
  25213. * platform/graphics/gstreamer/ImageGStreamerCairo.cpp: Added.
  25214. (ImageGStreamer::createImage):
  25215. (ImageGStreamer::ImageGStreamer):
  25216. (ImageGStreamer::~ImageGStreamer):
  25217. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  25218. (WebCore::MediaPlayerPrivate::paint):
  25219. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
  25220. 2010-03-22 Beth Dakin <bdakin@apple.com>
  25221. Reviewed by Darin Adler.
  25222. Fix for <rdar://problem/7766437> With Web Inspector opened, a crash
  25223. occurs at Webcore:getMatchedCSSRules() when navigating to a
  25224. previous page
  25225. defaultView() can legitimately by null (as it is in this case), so
  25226. it must be null-checked.
  25227. * inspector/InspectorDOMAgent.cpp:
  25228. (WebCore::InspectorDOMAgent::getStyles):
  25229. (WebCore::InspectorDOMAgent::getComputedStyle):
  25230. (WebCore::InspectorDOMAgent::getMatchedCSSRules):
  25231. 2010-03-22 Kevin Decker <kdecker@apple.com>
  25232. Reviewed by Darin.
  25233. https://bugs.webkit.org/show_bug.cgi?id=36328
  25234. * loader/FrameLoader.cpp:
  25235. (WebCore::FrameLoader::loadPlugin): Call setShowsMissingPluginIndicator(true) in cases that fail
  25236. to generate a widget.
  25237. * rendering/RenderEmbeddedObject.cpp: Added new missing plug-in related static constants
  25238. (WebCore::RenderEmbeddedObject::RenderEmbeddedObject): Initialize newly boolean to false.
  25239. (WebCore::RenderEmbeddedObject::paint): Added.
  25240. (WebCore::RenderEmbeddedObject::paintReplaced): Added. Draws a subtle rounded rectangle
  25241. containing the text "Missing Plug-in".
  25242. * rendering/RenderEmbeddedObject.h: Added the following two methods below.
  25243. (WebCore::RenderEmbeddedObject::setShowsMissingPluginIndicator):
  25244. (WebCore::RenderEmbeddedObject::showsMissingPluginIndicator):
  25245. * rendering/RenderWidget.h: Moved paint(PaintInfo&, int, int) from private to protected.
  25246. 2010-03-22 Jakub Wieczorek <faw217@gmail.com>
  25247. Reviewed by Kenneth Rohde Christiansen.
  25248. [Qt] Phonon media backend: expose supported MIME types to WebCore
  25249. https://bugs.webkit.org/show_bug.cgi?id=33453
  25250. MediaPlayerPrivate should expose the MIME types that are supported
  25251. by the underlying backend in Phonon.
  25252. * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:
  25253. (WebCore::MediaPlayerPrivate::supportedTypesCache):
  25254. (WebCore::MediaPlayerPrivate::getSupportedTypes):
  25255. (WebCore::MediaPlayerPrivate::supportsType):
  25256. * platform/graphics/qt/MediaPlayerPrivatePhonon.h:
  25257. 2010-03-22 Alexander Pavlov <apavlov@chromium.org>
  25258. Reviewed by Pavel Feldman.
  25259. Web Inspector: AuditRules still use getMatchedCSSRules as a part of the img-related audit.
  25260. https://bugs.webkit.org/show_bug.cgi?id=36424
  25261. * inspector/front-end/AuditRules.js:
  25262. (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun):
  25263. (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun.receivedImages):
  25264. (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun.pushImageNodes):
  25265. * inspector/front-end/InjectedScript.js:
  25266. (injectedScriptConstructor):
  25267. 2010-03-22 Darin Adler <darin@apple.com>
  25268. Reviewed by Dan Bernstein.
  25269. TextBreakIteratorICU.cpp is incompatible with new UBreakIterator type in ICU 4.4
  25270. https://bugs.webkit.org/show_bug.cgi?id=36381
  25271. * platform/text/TextBreakIteratorICU.cpp:
  25272. (WebCore::setUpIterator): Use reinterpret_cast instead of static_cast or relying
  25273. on conversion to void*.
  25274. (WebCore::textBreakFirst): Ditto.
  25275. (WebCore::textBreakLast): Ditto.
  25276. (WebCore::textBreakNext): Ditto.
  25277. (WebCore::textBreakPrevious): Ditto.
  25278. (WebCore::textBreakPreceding): Ditto.
  25279. (WebCore::textBreakFollowing): Ditto.
  25280. (WebCore::textBreakCurrent): Ditto.
  25281. (WebCore::isTextBreak): Ditto.
  25282. (WebCore::setUpIteratorWithRules): Ditto.
  25283. 2010-03-22 Eric Carlson <eric.carlson@apple.com>
  25284. Reviewed by Sam Weinig.
  25285. Typo in GPL license text
  25286. https://bugs.webkit.org/show_bug.cgi?id=36442
  25287. Fix typo - "aint with this library" -> "along with this library".
  25288. * bindings/scripts/CodeGenerator.pm:
  25289. * bindings/scripts/CodeGeneratorJS.pm:
  25290. * bindings/scripts/CodeGeneratorObjC.pm:
  25291. * bindings/scripts/CodeGeneratorV8.pm:
  25292. * bindings/scripts/IDLParser.pm:
  25293. * bindings/scripts/IDLStructure.pm:
  25294. * bindings/scripts/generate-bindings.pl:
  25295. 2010-03-22 Jakub Wieczorek <jwieczorek@webkit.org>
  25296. Reviewed by Simon Hausmann.
  25297. [Qt] Don't construct a QLineEdit every time when painting a text field
  25298. https://bugs.webkit.org/show_bug.cgi?id=36373
  25299. Instead, keep one instance per RenderTheme around.
  25300. * platform/qt/RenderThemeQt.cpp:
  25301. (WebCore::findFrameLineWidth):
  25302. 2010-03-22 Luiz Agostini <luiz.agostini@openbossa.org>
  25303. Reviewed by Kenneth Rohde Christiansen.
  25304. [Qt] Multiselect Popup - adjusting QtAbstractWebPopup
  25305. https://bugs.webkit.org/show_bug.cgi?id=36186
  25306. QtAbstractWebPopup must provide new methods to be used by its descendants that
  25307. wish to handle <select multiple> elements.
  25308. * platform/qt/QtAbstractWebPopup.cpp:
  25309. (WebCore::QtAbstractWebPopup::selectItem):
  25310. (WebCore::QtAbstractWebPopup::multiple):
  25311. * platform/qt/QtAbstractWebPopup.h:
  25312. 2010-03-22 Alex Milowski <alex@milowski.com>
  25313. Reviewed by Kenneth Rohde Christiansen.
  25314. Added basic support for mfrac (fractions)
  25315. Test: mathml/presentation/fractions.xhtml
  25316. * WebCore.xcodeproj/project.pbxproj:
  25317. * mathml/MathMLInlineContainerElement.cpp:
  25318. (WebCore::MathMLInlineContainerElement::createRenderer):
  25319. * mathml/RenderMathMLFraction.cpp: Added.
  25320. (WebCore::RenderMathMLFraction::RenderMathMLFraction):
  25321. (WebCore::RenderMathMLFraction::updateFromElement):
  25322. (WebCore::RenderMathMLFraction::addChild):
  25323. * mathml/RenderMathMLFraction.h: Added.
  25324. 2010-03-22 Kevin Decker <kdecker@apple.com>
  25325. Reviewed by John Sullivan.
  25326. https://bugs.webkit.org/show_bug.cgi?id=36328
  25327. * page/mac/WebCoreViewFactory.h: Added -missingPluginText method
  25328. * platform/LocalizedStrings.h: Added missingPluginText()
  25329. * platform/gtk/LocalizedStringsGtk.cpp: Likewise.
  25330. * platform/mac/LocalizedStringsMac.mm: Same here.
  25331. * platform/qt/Localizations.cpp: Ditto.
  25332. 2010-03-22 Yury Semikhatsky <yurys@chromium.org>
  25333. Reviewed by Pavel Feldman.
  25334. Handle worker exceptions in V8MessageHandler like it's done in regular documents. This way all worker exceptions will be logged in the console not only those which happen in event listeners.
  25335. https://bugs.webkit.org/show_bug.cgi?id=31171
  25336. * bindings/v8/V8AbstractEventListener.cpp:
  25337. (WebCore::V8AbstractEventListener::invokeEventHandler): Removed explicit call to reportException.
  25338. * bindings/v8/V8Utilities.cpp: reportException function was removed since it's not used.
  25339. (WebCore::getScriptExecutionContext):
  25340. * bindings/v8/V8Utilities.h:
  25341. * bindings/v8/WorkerContextExecutionProxy.cpp:
  25342. (WebCore::v8MessageHandler):
  25343. (WebCore::WorkerContextExecutionProxy::initContextIfNeeded): Setup message handler when first worker context is created.
  25344. 2010-03-22 Leandro Pereira <leandro@profusion.mobi>
  25345. Reviewed by Simon Hausmann.
  25346. Add EFL-specific code to page/EventHandler.cpp.
  25347. http://webkit.org/b/36306
  25348. * page/EventHandler.cpp:
  25349. 2010-03-22 Leandro Pereira <leandro@profusion.mobi>
  25350. Reviewed by Simon Hausmann.
  25351. Add EFL-specific code to platform/DragImage.h and
  25352. platform/DragData.h.
  25353. http://webkit.org/b/36310
  25354. * platform/DragImage.h:
  25355. * platform/DragData.h:
  25356. 2010-03-22 Leandro Pereira <leandro@profusion.mobi>
  25357. Reviewed by Simon Hausmann.
  25358. Add EFL-specific code to platform/FileSystem.h.
  25359. http://webkit.org/b/36313
  25360. * platform/FileSystem.h:
  25361. 2010-03-22 Leandro Pereira <leandro@profusion.mobi>
  25362. Reviewed by Simon Hausmann.
  25363. Add EFL-specific code to platform/Cursor.h.
  25364. http://webkit.org/b/36319
  25365. * platform/Cursor.h:
  25366. 2010-03-22 Leandro Pereira <leandro@profusion.mobi>
  25367. Reviewed by Simon Hausmann.
  25368. Add EFL-specific code to platform/NotImplemented.h.
  25369. http://webkit.org/b/36320
  25370. * platform/NotImplemented.h:
  25371. 2010-03-21 Kim Grönholm <kim.gronholm@nomovok.com>
  25372. Reviewed by Simon Hausmann.
  25373. [Qt] GraphicsLayer: matrix interpolations in transform-animations don't behave correctly
  25374. https://bugs.webkit.org/show_bug.cgi?id=35520
  25375. The case where the list of source and target transform operations are
  25376. not the same but have the same size needs to be special-cased in
  25377. GraphicsLayerQt, as well as the case where the source or target
  25378. operation list is empty. The URLs listed here render correctly after
  25379. applying the patch.
  25380. Tests: https://bug-35520-attachments.webkit.org/attachment.cgi?id=49890
  25381. https://bug-35520-attachments.webkit.org/attachment.cgi?id=49889
  25382. * platform/graphics/qt/GraphicsLayerQt.cpp:
  25383. (WebCore::TransformAnimationQt::applyFrame):
  25384. 2010-03-21 Dmitry Gorbik <socket.h@gmail.com>
  25385. <http://webkit.org/b/14858> <col> width ignored when not tied to a single cell
  25386. Reviewed by David Kilzer.
  25387. Fixed width calculation for cells with span when <col> is defined.
  25388. Test: fast/table/col-width-span-expand.html
  25389. * rendering/RenderTableCell.cpp:
  25390. (WebCore::RenderTableCell::styleOrColWidth): Added the calculation of cell width
  25391. in case of <col> defined and span > 1.
  25392. 2010-03-20 Antonio Gomes <tonikitoo@webkit.org>
  25393. Reviewed by Kenneth Christiansen.
  25394. Patch by Antonio Gomes <tonikitoo@webkit.org>
  25395. Spatial Navigation: Code simplification in FocusController.cpp and SpatialNavigation.cpp (part I)
  25396. https://bugs.webkit.org/show_bug.cgi?id=36168
  25397. Make use of isNull and document methods introduced in FocusCandidate class by patch in bug 36167.
  25398. No functionalty change.
  25399. * page/FocusController.cpp:
  25400. (WebCore::updateFocusCandidateIfCloser):
  25401. * page/SpatialNavigation.cpp:
  25402. (WebCore::distanceInDirection):
  25403. 2010-03-20 Kevin Ollivier <kevino@theolliviers.com>
  25404. [wx] Build fixes after recent changes.
  25405. * platform/graphics/wx/ImageWx.cpp:
  25406. * wscript:
  25407. 2010-03-20 Joseph Pecoraro <joepeck@webkit.org>
  25408. Reviewed by David Kilzer.
  25409. Assertion failure in media/video-controls-with-mutation-event-handler.html
  25410. https://bugs.webkit.org/show_bug.cgi?id=36376
  25411. Test: media/video-controls-with-mutation-event-handler.html
  25412. Break early (when not attached) in the defaultEventHandler before the
  25413. slider is completely set up.
  25414. * rendering/MediaControlElements.cpp:
  25415. (WebCore::MediaControlTimelineElement::defaultEventHandler):
  25416. (WebCore::MediaControlVolumeSliderElement::defaultEventHandler):
  25417. * rendering/RenderMedia.cpp:
  25418. (WebCore::RenderMedia::createVolumeSlider):
  25419. 2010-03-19 Shinichiro Hamaji <hamaji@chromium.org>
  25420. Reviewed by Dan Bernstein.
  25421. WebCore::RenderButton::styleDidChange ReadAV@NULL (6739b7fe455ecb54a6812c0866c3b47c)
  25422. https://bugs.webkit.org/show_bug.cgi?id=34641
  25423. Don't dig into buttons and menu lists when finding which element
  25424. should be modified by :first-letter pseudo class. Even before
  25425. this change, we didn't dig into inline buttons and menu lists as
  25426. they are replaced so this issue wasn't found long time.
  25427. Test: fast/css/first-letter-block-form-controls-crash.html
  25428. * rendering/RenderBlock.cpp:
  25429. (WebCore::RenderBlock::updateFirstLetter):
  25430. 2010-03-19 Adam Barth <abarth@webkit.org>
  25431. Reviewed by Daniel Bates.
  25432. Change XSSAuditor block syntax
  25433. https://bugs.webkit.org/show_bug.cgi?id=34436
  25434. Update our blocking syntax to something more reasonable. Also,
  25435. implemented a way for a web site to disable the filter.
  25436. Tests: http/tests/security/xssAuditor/no-protection-script-tag.html
  25437. http/tests/security/xssAuditor/xss-protection-parsing-01.html
  25438. * page/XSSAuditor.cpp:
  25439. (WebCore::XSSAuditor::xssProtection):
  25440. (WebCore::XSSAuditor::findInRequest):
  25441. * page/XSSAuditor.h:
  25442. * platform/network/HTTPParsers.cpp:
  25443. (WebCore::skipToken):
  25444. (WebCore::parseXSSProtectionHeader):
  25445. * platform/network/HTTPParsers.h:
  25446. (WebCore::):
  25447. 2010-03-19 Eric Uhrhane <ericu@chromium.org>
  25448. Reviewed by Dmitry Titov.
  25449. Refactor DatabaseTracker.cpp for thread safety
  25450. https://bugs.webkit.org/show_bug.cgi?id=34991
  25451. This enables calling into DatabaseTracker from multiple context threads,
  25452. as will happen once Workers can access the Database. It required a fair
  25453. amount of reshuffling of locks. I ended up splitting the public
  25454. interface [calls that take locks and call private functions] from the
  25455. implementations [calls that assert that locks are already held] in order
  25456. to avoid lock conflicts. I also had to make sure we weren't sharing
  25457. Strings or SecurityOrigins across threads.
  25458. No new tests.
  25459. Allow access to database handles from multiple threads IFF SQLite is new enough and the user requests it.
  25460. * platform/sql/SQLiteDatabase.cpp:
  25461. (WebCore::SQLiteDatabase::SQLiteDatabase):
  25462. (WebCore::SQLiteDatabase::disableThreadingChecks):
  25463. * platform/sql/SQLiteDatabase.h:
  25464. (WebCore::SQLiteDatabase::sqlite3Handle):
  25465. (WebCore::SQLiteDatabase::disableThreadingChecks):
  25466. Remove an asynchronous call from Database::close back to the execution thread, so that cleanup can be more deterministic.
  25467. * storage/Database.cpp:
  25468. (WebCore::Database::markAsDeletedAndClose):
  25469. (WebCore::Database::close):
  25470. * storage/Database.h:
  25471. (WebCore::Database::):
  25472. * storage/DatabaseDetails.h:
  25473. (WebCore::DatabaseDetails::DatabaseDetails):
  25474. (WebCore::DatabaseDetails::thread):
  25475. * storage/DatabaseTask.cpp:
  25476. (WebCore::DatabaseCloseTask::doPerformTask):
  25477. * storage/DatabaseThread.cpp:
  25478. (WebCore::DatabaseThread::databaseThread):
  25479. Any Strings that get stored in DatabaseTracker, and any Strings returned from DatabaseTracker, are now threadsafeCopies.
  25480. Public functions now take all needed locks, then generally call only private functions [there are a few exceptions: deletion functions and origins()].
  25481. Private functions no longer take locks.
  25482. m_quotaMapGuard becomes m_databaseGuard, and now protects m_database, m_quotaMap, m_proposedDatabases, m_databaseDirectoryPath, m_originsBeingDeleted, m_beingCreated, and m_beingDeleted.
  25483. m_proposedDatabases replaces m_proposedDatabase, to account for reentrancy.
  25484. * storage/DatabaseTracker.h:
  25485. * storage/DatabaseTracker.cpp:
  25486. (WebCore::DatabaseTracker::originQuotaManagerNoLock):
  25487. (WebCore::DatabaseTracker::originQuotaManager):
  25488. (WebCore::DatabaseTracker::DatabaseTracker):
  25489. (WebCore::DatabaseTracker::setDatabaseDirectoryPath):
  25490. (WebCore::DatabaseTracker::databaseDirectoryPath):
  25491. (WebCore::DatabaseTracker::trackerDatabasePath):
  25492. (WebCore::DatabaseTracker::openTrackerDatabase):
  25493. (WebCore::DatabaseTracker::canEstablishDatabase):
  25494. (WebCore::DatabaseTracker::hasEntryForOriginNoLock):
  25495. (WebCore::DatabaseTracker::hasEntryForOrigin):
  25496. (WebCore::DatabaseTracker::hasEntryForDatabase):
  25497. (WebCore::DatabaseTracker::originPath):
  25498. (WebCore::DatabaseTracker::fullPathForDatabaseNoLock):
  25499. (WebCore::DatabaseTracker::fullPathForDatabase):
  25500. (WebCore::DatabaseTracker::populateOrigins):
  25501. (WebCore::DatabaseTracker::origins):
  25502. (WebCore::DatabaseTracker::databaseNamesForOriginNoLock):
  25503. (WebCore::DatabaseTracker::databaseNamesForOrigin):
  25504. (WebCore::DatabaseTracker::detailsForNameAndOrigin):
  25505. (WebCore::DatabaseTracker::setDatabaseDetails):
  25506. (WebCore::DatabaseTracker::usageForDatabase):
  25507. (WebCore::DatabaseTracker::addOpenDatabase):
  25508. (WebCore::DatabaseTracker::removeOpenDatabase):
  25509. (WebCore::DatabaseTracker::usageForOriginNoLock):
  25510. (WebCore::DatabaseTracker::usageForOrigin):
  25511. (WebCore::DatabaseTracker::quotaForOriginNoLock):
  25512. (WebCore::DatabaseTracker::quotaForOrigin):
  25513. (WebCore::DatabaseTracker::setQuota):
  25514. (WebCore::DatabaseTracker::addDatabase):
  25515. (WebCore::DatabaseTracker::deleteAllDatabases):
  25516. (WebCore::DatabaseTracker::deleteOrigin):
  25517. (WebCore::DatabaseTracker::deleteDatabase):
  25518. (WebCore::DatabaseTracker::deleteDatabaseFile):
  25519. (WebCore::DatabaseTracker::setClient):
  25520. (WebCore::DatabaseTracker::scheduleNotifyDatabaseChanged):
  25521. (WebCore::DatabaseTracker::notifyDatabasesChanged):
  25522. These functions keep track of in-progress deletions and creations, so that we can make sure nobody every deletes a database file while a live database is using it.
  25523. (WebCore::DatabaseTracker::canCreateDatabase):
  25524. (WebCore::DatabaseTracker::recordCreatingDatabase):
  25525. (WebCore::DatabaseTracker::doneCreatingDatabase):
  25526. (WebCore::DatabaseTracker::creatingDatabase):
  25527. (WebCore::DatabaseTracker::canDeleteDatabase):
  25528. (WebCore::DatabaseTracker::recordDeletingDatabase):
  25529. (WebCore::DatabaseTracker::doneDeletingDatabase):
  25530. (WebCore::DatabaseTracker::deletingDatabase):
  25531. (WebCore::DatabaseTracker::canDeleteOrigin):
  25532. (WebCore::DatabaseTracker::deletingOrigin):
  25533. (WebCore::DatabaseTracker::recordDeletingOrigin):
  25534. (WebCore::DatabaseTracker::doneDeletingOrigin):
  25535. Any SecurityOrigins stored in OriginQuotaManager are now threadsafeCopies of inputs. There's a new tryLock() function in addition to the existing lock().
  25536. * storage/OriginQuotaManager.cpp:
  25537. (WebCore::OriginQuotaManager::tryLock):
  25538. (WebCore::OriginQuotaManager::trackOrigin):
  25539. * storage/OriginQuotaManager.h:
  25540. * page/SecurityOrigin.cpp:
  25541. (WebCore::SecurityOrigin::databaseIdentifier):
  25542. Removed DEFINE_STATIC_LOCAL wrapper on a local variable; it appears to have been a small optimization, but it's not thread-safe.
  25543. 2010-03-19 Luiz Agostini <luiz.agostini@openbossa.org>
  25544. Reviewed by Antti Koivisto.
  25545. Multiselect popups - rendering
  25546. https://bugs.webkit.org/show_bug.cgi?id=36006
  25547. The objective of this patch is to create a compile time flag that can be used
  25548. to force all <select> elements to be rendered as menu lists.
  25549. Theme stylesheet mechanism has been used to change the appearance of the elements.
  25550. Class QtStyleOptionWebComboBox has been introduced to provide to QStyle objects
  25551. the needed information to render <select multiple> comboboxes.
  25552. * WebCore.pri:
  25553. * WebCore.pro:
  25554. * css/themeQtNoListboxes.css: Added.
  25555. (select[size][multiple]):
  25556. * dom/SelectElement.h:
  25557. (WebCore::SelectElementData::usesMenuList):
  25558. * platform/qt/QtStyleOptionWebComboBox.h: Added.
  25559. (WebCore::QtStyleOptionWebComboBox::QtStyleOptionWebComboBox):
  25560. (WebCore::QtStyleOptionWebComboBox::multiple):
  25561. (WebCore::QtStyleOptionWebComboBox::checkMultiple):
  25562. * platform/qt/RenderThemeQt.cpp:
  25563. (WebCore::RenderThemeQt::extraDefaultStyleSheet):
  25564. (WebCore::RenderThemeQt::paintMenuList):
  25565. (WebCore::RenderThemeQt::paintMenuListButton):
  25566. * platform/qt/RenderThemeQt.h:
  25567. 2010-03-19 Zhenyao Mo <zmo@google.com>
  25568. Reviewed by Oliver Hunt.
  25569. Update WebGLArray.slice() to new spec
  25570. https://bugs.webkit.org/show_bug.cgi?id-35612
  25571. * bindings/js/JSWebGLArrayCustom.cpp: Adding support for default inputs.
  25572. (WebCore::JSWebGLArray::slice):
  25573. * bindings/v8/custom/V8WebGLArrayCustom.cpp: Ditto.
  25574. (WebCore::V8WebGLArray::sliceCallback):
  25575. * html/canvas/WebGLArray.cpp: Map start/end to offset/length.
  25576. (WebCore::WebGLArray::calculateOffsetAndLength):
  25577. * html/canvas/WebGLArray.h: Modified slice parameters.
  25578. * html/canvas/WebGLArray.idl: Define custom binding for slice().
  25579. * html/canvas/WebGLByteArray.cpp: Modified slice parameters.
  25580. (WebCore::WebGLByteArray::slice):
  25581. * html/canvas/WebGLByteArray.h: Ditto.
  25582. * html/canvas/WebGLFloatArray.cpp: Ditto.
  25583. (WebCore::WebGLFloatArray::slice):
  25584. * html/canvas/WebGLFloatArray.h: Ditto.
  25585. * html/canvas/WebGLIntArray.cpp: Ditto.
  25586. (WebCore::WebGLIntArray::slice):
  25587. * html/canvas/WebGLIntArray.h: Ditto.
  25588. * html/canvas/WebGLShortArray.cpp: Ditto.
  25589. (WebCore::WebGLShortArray::slice):
  25590. * html/canvas/WebGLShortArray.h: Ditto.
  25591. * html/canvas/WebGLUnsignedByteArray.cpp: Ditto.
  25592. (WebCore::WebGLUnsignedByteArray::slice):
  25593. * html/canvas/WebGLUnsignedByteArray.h: Ditto.
  25594. * html/canvas/WebGLUnsignedIntArray.cpp: Ditto.
  25595. (WebCore::WebGLUnsignedIntArray::slice):
  25596. * html/canvas/WebGLUnsignedIntArray.h: Ditto.
  25597. * html/canvas/WebGLUnsignedShortArray.cpp: Ditto.
  25598. (WebCore::WebGLUnsignedShortArray::slice):
  25599. * html/canvas/WebGLUnsignedShortArray.h: Ditto.
  25600. 2010-03-19 Yong Li <yong.li@torchmobile.com> and Andy Estes <aestes@apple.com>
  25601. Reviewed by Darin Adler.
  25602. Ensure the segments inside SharedBuffer are merged before constructing
  25603. a CFData with it.
  25604. https://bugs.webkit.org/show_bug.cgi?id=50843
  25605. * manual-tests/WebKitSite.webarchive: Added.
  25606. * manual-tests/webarchive-test.html: Added.
  25607. * platform/cf/SharedBufferCF.cpp:
  25608. (WebCore::SharedBuffer::createCFData):
  25609. 2010-03-19 Justin Schuh <jschuh@chromium.org>
  25610. Reviewed by Oliver Hunt.
  25611. Security: ReadAV@NULL for negative feMorphology filter radius
  25612. https://bugs.webkit.org/show_bug.cgi?id=34566
  25613. Prevents building the filter if either radius is negative.
  25614. Catches negative radii resulting from conversions.
  25615. Test: svg/filters/feMorphology-invalid-radius.svg
  25616. * svg/SVGFEMorphologyElement.cpp:
  25617. (WebCore::SVGFEMorphologyElement::build):
  25618. * svg/graphics/filters/SVGFEMorphology.cpp:
  25619. (WebCore::FEMorphology::apply):
  25620. 2010-03-19 Chris Marrin <cmarrin@apple.com>
  25621. Reviewed by Simon Fraser.
  25622. Fixed a crash with AnimationController getting deleted out from under itself.
  25623. It's possible for the Frame that owns an AnimationController to get deleted
  25624. in the EndTransitionEvent (or other animation events) to get deleted in the
  25625. event handler. Normally this case is protected against by preventing the Frame
  25626. from getting deleted until the end of the runloop. But native uses of the
  25627. WebView can subvert this protection. So I added a protector to the
  25628. animation event dispatcher to protect it in those cases.
  25629. Test: transitions/transition-end-event-destroy-iframe.html
  25630. * page/animation/AnimationController.cpp:
  25631. (WebCore::AnimationControllerPrivate::updateStyleIfNeededDispatcherFired):
  25632. 2010-03-19 Luiz Agostini <luiz.agostini@openbossa.org>
  25633. Reviewed by Antti Koivisto.
  25634. Multiselect Popup - PopupMenuClient extension
  25635. https://bugs.webkit.org/show_bug.cgi?id=36178
  25636. PopupMenuClient class is the interface used by combobox popup implementations.
  25637. It needs to be extended to handle <select multiple> needs.
  25638. A new interface named ListPopupMenuClient that inherits from PopupMenuClient was created.
  25639. The use of this new class instead of adding methods to PopupMenuClient avoids changes
  25640. in other non related implementations of PopupMenuClient.
  25641. RenderMenuList has changed to inherit ListPopupMenuClient instead of PopupMenuClient
  25642. and to have the new methods implemented.
  25643. * platform/PopupMenuClient.h:
  25644. * rendering/RenderMenuList.cpp:
  25645. (WebCore::RenderMenuList::listBoxSelectItem):
  25646. (WebCore::RenderMenuList::multiple):
  25647. * rendering/RenderMenuList.h:
  25648. 2010-03-19 Simon Fraser <simon.fraser@apple.com>
  25649. Reviewed by Dimitri Glazkov.
  25650. https://bugs.webkit.org/show_bug.cgi?id=36387
  25651. REGRESSION: Can "uncheck" radio buttons by clicking on them
  25652. My change in r56174 caused radio buttons and checkboxes to go down the same code path by virtue
  25653. of allowsIndeterminate(), but this broke save/restore behavior on radio buttons.
  25654. Fix by saving and restoring both the intermediate and checked state for radio buttons
  25655. and checkboxes, as well as the "current radio button" state.
  25656. Test: fast/forms/radio-checkbox-restore-indeterminate.html
  25657. * html/HTMLInputElement.cpp:
  25658. (WebCore::EventHandlingState::EventHandlingState): New struct to hold state between preDispatchEventHandler()
  25659. and postDispatchEventHandler().
  25660. (WebCore::HTMLInputElement::preDispatchEventHandler): Store intermedate and checked state
  25661. and the current radio button.
  25662. (WebCore::HTMLInputElement::postDispatchEventHandler): Restore state as appropriate.
  25663. * html/HTMLInputElement.h: Add a comment to clarify how 'intermediate' interacts with 'checked', according
  25664. to the spec.
  25665. 2010-03-19 Alexander Pavlov <apavlov@chromium.org>
  25666. Reviewed by Pavel Feldman.
  25667. Web Inspector: caret moves past prompt in javascript console
  25668. https://bugs.webkit.org/show_bug.cgi?id=26602
  25669. Having noticed any Element children besides a leading <br> (which are empty
  25670. text nodes), WebCore editing facility thinks it should delete the <br>,
  25671. thus clearing away the text prompt contents.
  25672. * inspector/front-end/TextPrompt.js:
  25673. (WebInspector.TextPrompt.prototype.clearAutoComplete):
  25674. (WebInspector.TextPrompt.prototype._completionsReady):
  25675. * inspector/front-end/utilities.js:
  25676. (Element.prototype.pruneEmptyTextNodes):
  25677. 2010-03-19 Adam Roben <aroben@apple.com>
  25678. Windows clean build fix after r56192
  25679. * WebCore.vcproj/WebCore.vcproj: Copy headers from
  25680. platform/graphics/cg to $WebKitOutputDir as part of the post-build
  25681. event so that WebKit can use them. (The only one we currently require
  25682. is FontPlatformData.h.)
  25683. * platform/graphics/win/FontPlatformDataCGWin.cpp: Touched to force a
  25684. build.
  25685. 2010-03-19 Joseph Pecoraro <joepeck@webkit.org>
  25686. Reviewed by David Kilzer.
  25687. Assertion failure in media/video-controls-with-mutation-event-handler.html
  25688. https://bugs.webkit.org/show_bug.cgi?id=36376
  25689. Fix crashing test. Underlying the media element's volume slider is a
  25690. range input, which sanitizes values before expected on the media control.
  25691. * rendering/RenderMedia.cpp:
  25692. (WebCore::RenderMedia::createVolumeSlider):
  25693. 2010-03-19 Brady Eidson <beidson@apple.com>
  25694. Reviewed by Darin Adler.
  25695. 3 of the new HTML5 loading events need to be asynchronous.
  25696. Laying the groundwork for:
  25697. https://bugs.webkit.org/show_bug.cgi?id=36201
  25698. https://bugs.webkit.org/show_bug.cgi?id=36202
  25699. https://bugs.webkit.org/show_bug.cgi?id=36334
  25700. https://bugs.webkit.org/show_bug.cgi?id=36335
  25701. Document already had an asynchronous event delivery mechanism for storage events, so
  25702. we can repurpose that for all async events.
  25703. No new tests. (No change in behavior)
  25704. * dom/Document.cpp:
  25705. (WebCore::Document::Document):
  25706. (WebCore::Document::implicitClose): Use Document::schedule* for the related events.
  25707. (WebCore::Document::enqueueEvent): Renamed from enqueueStorageEvent
  25708. (WebCore::Document::pendingEventTimerFired): Renamed from "storageEventTimerFired"
  25709. (WebCore::Document::statePopped): Use Document::schedulePopstateEvent
  25710. (WebCore::Document::enqueuePageshowEvent): All Pageshow events are piped through here.
  25711. This will be made asynchronous in a separate patch.
  25712. (WebCore::Document::enqueueHashchangeEvent): All Hashchange events are piped through here.
  25713. This will be made asynchronous in a separate patch.
  25714. (WebCore::Document::enqueuePopstateEvent): All Popstate events are piped through here.
  25715. This will be made asynchronous in a separate patch.
  25716. * dom/Document.h:
  25717. (WebCore::):
  25718. * history/CachedFrame.cpp:
  25719. (WebCore::CachedFrameBase::restore): Use Document::enqueuePageshowEvent
  25720. * loader/FrameLoader.cpp:
  25721. (WebCore::FrameLoader::loadInSameDocument): Use Document::enqueueHashchangeEvent
  25722. * storage/StorageEventDispatcher.cpp:
  25723. (WebCore::StorageEventDispatcher::dispatch): Use Document::enqueueEvent
  25724. 2010-03-19 Kevin Decker <kdecker@apple.com>
  25725. Reviewed by Darin Adler and Brady Eidson.
  25726. First step toward:
  25727. https://bugs.webkit.org/show_bug.cgi?id=36328
  25728. This is the first step torward eliminating the WebKit WebNullPluginView class. The responsibility for this will soon
  25729. be in platform-independent code in WebCore. The plan is to change RenderEmbeddedObject and give it the capability of
  25730. drawing the missing plug-in text.
  25731. * loader/FrameLoader.cpp:
  25732. (WebCore::FrameLoader::requestObject): Renamed the renderer parameter to requestEmbeddedObject and made it
  25733. a RenderEmbeddedObject.
  25734. (WebCore::FrameLoader::loadPlugin): Likewise.
  25735. * loader/FrameLoader.h: Updated loadPlugin() and requestObject() method signatures accordingly.
  25736. 2010-03-19 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  25737. Reviewed by Simon Hausmann.
  25738. [Qt] Disable TILED_BACKING_STORE if Qt version is earlier than Qt4.6
  25739. https://bugs.webkit.org/show_bug.cgi?id=36348
  25740. Backing store implementation for QtWebKit requires at least Qt
  25741. version 4.6.
  25742. No new tests as there is no new functionality.
  25743. * WebCore.pri:
  25744. 2010-03-19 Joseph Pecoraro <joepeck@webkit.org>
  25745. Reviewed by David Kilzer.
  25746. <input type=range> does not validate correctly without a renderer and the tests are incorrect
  25747. https://bugs.webkit.org/show_bug.cgi?id=36259
  25748. Setting value attribute on an <input type=range> to an out-of-range value fires oninput
  25749. https://bugs.webkit.org/show_bug.cgi?id=16990
  25750. Part 2 of 2: When setting the range element's value, overflows and underflows
  25751. are automatically sanitized to valid values. Moved the general case
  25752. sanitization code out of the Renderer into HTMLInputElement::sanitizeValue.
  25753. * html/HTMLInputElement.cpp:
  25754. (WebCore::HTMLInputElement::value): when getting a default value on reset() ensure the defaultValue is provided
  25755. (WebCore::HTMLInputElement::sanitizeValue): clamp the value within the max/min/step range constraints
  25756. * html/StepRange.cpp:
  25757. (WebCore::StepRange::StepRange): allow const element in the constructor
  25758. (WebCore::StepRange::clampValue): clamp from a String value
  25759. * html/StepRange.h:
  25760. (WebCore::StepRange::defaultValue): easy calculation of the default value for max/min/step range constraints
  25761. * rendering/RenderSlider.cpp:
  25762. (WebCore::RenderSlider::updateFromElement): no longer handle the general case sanitization in the renderer
  25763. 2010-03-19 Joseph Pecoraro <joepeck@webkit.org>
  25764. Reviewed by David Kilzer.
  25765. <input type=range> does not validate correctly without a renderer and the tests are incorrect
  25766. https://bugs.webkit.org/show_bug.cgi?id=36259
  25767. Part 1 of 2: Refactoring the SliderRange struct out of RenderSlider
  25768. into a more appropriate place. Changed the named to StepRange. Changed
  25769. from a struct to a class.
  25770. Added new files to the build.
  25771. * GNUmakefile.am:
  25772. * WebCore.gypi:
  25773. * WebCore.pro:
  25774. * WebCore.vcproj/WebCore.vcproj:
  25775. * WebCore.xcodeproj/project.pbxproj:
  25776. Renamed and moved class SliderRange to StepRange.
  25777. * html/StepRange.cpp: Added.
  25778. (WebCore::StepRange::StepRange):
  25779. (WebCore::StepRange::clampValue):
  25780. (WebCore::StepRange::valueFromElement):
  25781. (WebCore::sliderPosition):
  25782. * html/StepRange.h: Added.
  25783. (WebCore::StepRange::proportionFromValue):
  25784. (WebCore::StepRange::valueFromProportion):
  25785. * rendering/RenderSlider.cpp:
  25786. (WebCore::RenderSlider::updateFromElement): updated to use StepRange
  25787. (WebCore::RenderSlider::setValueForPosition): updated to use StepRange
  25788. 2010-03-19 Antti Koivisto <koivisto@iki.fi>
  25789. Reviewed by Simon Hausmann.
  25790. https://bugs.webkit.org/show_bug.cgi?id=36366
  25791. Repaint loop when painting using scaled CTMs with different translations
  25792. The code in RenderBoxModelScaleObserver::shouldPaintBackgroundAtLowQuality
  25793. tests if the scaling has changed from the previous value by comparing the
  25794. transformations. The test fails if the scale is the same but the translation
  25795. changes. This can lead to infinite repaint loop if the document is painted
  25796. in pieces using different translations (for example for tiling).
  25797. * rendering/RenderBoxModelObject.cpp:
  25798. (WebCore::RenderBoxModelScaleObserver::shouldPaintBackgroundAtLowQuality):
  25799. 2010-03-19 Pavel Feldman <pfeldman@chromium.org>
  25800. Reviewed by Timothy Hatcher.
  25801. Web Inspector: editing shorthands does not always work.
  25802. https://bugs.webkit.org/show_bug.cgi?id=36362
  25803. * inspector/InspectorDOMAgent.cpp:
  25804. (WebCore::InspectorDOMAgent::applyStyleText):
  25805. (WebCore::InspectorDOMAgent::populateObjectWithStyleProperties):
  25806. (WebCore::InspectorDOMAgent::shorthandValue):
  25807. * inspector/InspectorDOMAgent.h:
  25808. * inspector/front-end/StylesSidebarPane.js:
  25809. (WebInspector.StylePropertyTreeElement.prototype):
  25810. * inspector/front-end/inspector.css:
  25811. (.section .properties li.disabled .enabled-button):
  25812. * inspector/front-end/inspector.js:
  25813. (WebInspector.startEditing.editingCommitted):
  25814. 2010-03-19 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
  25815. Reviewed by Simon Hausmann.
  25816. [Qt] Don't replace clip when drawing complex text
  25817. * platform/graphics/qt/FontQt.cpp:
  25818. 2010-03-18 Darin Fisher <darin@chromium.org>
  25819. Reviewed by Adam Barth.
  25820. If a frame is already in the document, then setting its "src" attribute
  25821. should add the resultant navigation to history.
  25822. https://bugs.webkit.org/show_bug.cgi?id=9166
  25823. This behavior is specified in section 4.8.2 of the HTML5 spec.
  25824. Test: fast/loader/frame-src-change-added-to-history.html
  25825. * html/HTMLFrameElementBase.cpp:
  25826. (WebCore::HTMLFrameElementBase::openURL):
  25827. (WebCore::HTMLFrameElementBase::setLocation):
  25828. * html/HTMLFrameElementBase.h:
  25829. * loader/FrameLoader.cpp:
  25830. (WebCore::FrameLoader::requestFrame):
  25831. * loader/FrameLoader.h:
  25832. 2010-03-18 Chris Evans <cevans@chromium.org>
  25833. Reviewed by Nikolas Zimmermann.
  25834. Fix a minor crash with mismatched array sizes in SVG animation
  25835. elements.
  25836. https://bugs.webkit.org/show_bug.cgi?id=35606
  25837. Test: svg/animations/keypoints-mismatch.svg
  25838. * svg/SVGAnimationElement.cpp:
  25839. (WebCore::SVGAnimationElement::startedActiveInterval):
  25840. Globally apply validations relevant to all animation types.
  25841. 2010-03-18 Vangelis Kokkevis <vangelis@chromium.org>
  25842. Reviewed by Adam Barth.
  25843. Implement software composited graphics layers in Chromium using the Skia library.
  25844. https://bugs.webkit.org/show_bug.cgi?id=35557
  25845. This is an initial step in the implementation. Layer compositing is functioning
  25846. but not optimized in any way. Subsesquent check-ins will be necessary to fine tune
  25847. it.
  25848. Test: No new exposed functionality so no new tests.
  25849. * WebCore.gypi:
  25850. Added new source files to the chromium build
  25851. * platform/graphics/GraphicsLayer.h:
  25852. Added necessary typedef's and forward declarations for Chromium.
  25853. * platform/graphics/skia/GraphicsLayerSkia.cpp: Added.
  25854. * platform/graphics/skia/GraphicsLayerSkia.h: Added.
  25855. Declaration and implementation of the platform-specific GraphicsLayer class.
  25856. * platform/graphics/skia/LayerRendererSkia.cpp: Added.
  25857. * platform/graphics/skia/LayerRendererSkia.h: Added.
  25858. Declaration and implementation of the Skia-based software compositor.
  25859. * platform/graphics/skia/LayerSkia.cpp: Added.
  25860. * platform/graphics/skia/LayerSkia.h: Added.
  25861. Declaration and implementation of a compositable layer that uses a Skia canvas
  25862. for backing store.
  25863. 2010-03-18 Kenneth Rohde Christiansen <kenneth@webkit.org>
  25864. Reviewed by Darin Adler.
  25865. Make setPrinting() with printing=false, restore the previous
  25866. media type in use.
  25867. Test: fast/media/print-restores-previous-mediatype.html
  25868. * page/Frame.cpp:
  25869. (WebCore::Frame::setPrinting):
  25870. * page/FrameView.cpp:
  25871. (WebCore::FrameView::adjustMediaTypeForPrinting):
  25872. * page/FrameView.h:
  25873. 2010-03-18 David Kilzer <ddkilzer@apple.com>
  25874. <http://webkit.org/b/36338> Remove unused RenderReplaced::adjustOverflowForBoxShadowAndReflect() declaration
  25875. Rubber-stamped by Darin Adler.
  25876. This declaration should have been removed in r47440.
  25877. * rendering/RenderReplaced.h:
  25878. (WebCore::RenderReplaced::adjustOverflowForBoxShadowAndReflect): Removed.
  25879. 2010-03-18 Jian Li <jianli@chromium.org>
  25880. Reviewed by Dmitry Titov.
  25881. Dragging a PDF image triggers assertion in DragController::startDrag()
  25882. https://bugs.webkit.org/show_bug.cgi?id=36247
  25883. Test: fast/images/drag-pdf-as-image.html
  25884. * platform/graphics/cg/PDFDocumentImage.cpp:
  25885. (WebCore::PDFDocumentImage::filenameExtension):
  25886. * platform/graphics/cg/PDFDocumentImage.h:
  25887. 2010-03-18 Simon Fraser <simon.fraser@apple.com>
  25888. Reviewed by Dan Bernstein.
  25889. Avoid taking a reference to a String owned by a temporary AtomicString.
  25890. * css/CSSSelector.cpp:
  25891. (WebCore::CSSSelector::RareData::parseNth):
  25892. 2010-03-18 Chris Marrin <cmarrin@apple.com>
  25893. Reviewed by Simon Fraser.
  25894. Fixed parenting issues with HW layers on Windows
  25895. https://bugs.webkit.org/show_bug.cgi?id=32449
  25896. CACF can't properly fix superlayer changes, so a layer added
  25897. as a sublayer must have a null superlayer. I changed a couple of
  25898. places that change sublayers to removeFromSuperlayer while adding
  25899. to a new layer. This fixes both the problem of disappearing children
  25900. and children getting doubled. Also got rid of removeSublayer(). Layers
  25901. should always be removed from their parent with removeFromSuperlayer().
  25902. This also removed moveLayer(), which is not used and may not be safe in how
  25903. it copies.
  25904. * platform/graphics/win/GraphicsLayerCACF.cpp:Changed setName to be like Mac, to give more debugging info (to fix problems like these)
  25905. (WebCore::GraphicsLayerCACF::setName):
  25906. * platform/graphics/win/WKCACFLayer.cpp:Make sure superlayer is null before adding
  25907. (WebCore::WKCACFLayer::insertSublayer):
  25908. (WebCore::WKCACFLayer::replaceSublayer):
  25909. (WebCore::WKCACFLayer::removeFromSuperlayer):
  25910. (WebCore::WKCACFLayer::setSublayers):
  25911. (WebCore::WKCACFLayer::printLayer):print the superlayer for better debugging
  25912. * platform/graphics/win/WKCACFLayer.h:
  25913. 2010-03-18 Dimitri Glazkov <dglazkov@chromium.org>
  25914. Unreviewed, build fix.
  25915. [Chromium] Change the order of mac/ and cg/ include dirs to fix compile break
  25916. due to http://trac.webkit.org/changeset/56192,
  25917. * WebCore.gyp/WebCore.gyp: Changed the order.
  25918. 2010-03-18 David Hyatt <hyatt@apple.com>
  25919. Reviewed by Oliver Hunt.
  25920. https://bugs.webkit.org/show_bug.cgi?id=36325
  25921. Add support for stopImmediatePropagation from DOM Level 3 Events.
  25922. Added fast/events/stop-immediate-propagation.html.
  25923. * dom/Event.cpp:
  25924. (WebCore::Event::Event):
  25925. * dom/Event.h:
  25926. (WebCore::Event::timeStamp):
  25927. (WebCore::Event::stopPropagation):
  25928. (WebCore::Event::stopImmediatePropagation):
  25929. (WebCore::Event::propagationStopped):
  25930. (WebCore::Event::immediatePropagationStopped):
  25931. * dom/Event.idl:
  25932. * dom/EventTarget.cpp:
  25933. (WebCore::EventTarget::fireEventListeners):
  25934. 2010-03-18 Dimitri Glazkov <dglazkov@chromium.org>
  25935. Unreviewed, build fix.
  25936. Return frame accessor back to Geolocation, it's used in GeolocationServiceChromium.
  25937. The accessor was removed in http://trac.webkit.org/changeset/56188.
  25938. * page/Geolocation.h:
  25939. (WebCore::Geolocation::frame): Added back.
  25940. 2010-03-18 Brent Fulgham <bfulgham@webkit.org>
  25941. Reviewed by Adam Roben.
  25942. Help reduce build problems due to font declarations.
  25943. https://bugs.webkit.org/show_bug.cgi?id=36190
  25944. Functions unchanged, no new tests.
  25945. * WebCore.vcproj/WebCore.vcproj: Add new file, and show
  25946. movement of FontPlatformData.h to cg/ directory.
  25947. * platform/graphics/cairo/FontPlatformData.h: Merge in
  25948. WinCairo-specific declarations. Correct constructor
  25949. declaration to use type float for font size.
  25950. (WebCore::FontPlatformData::FontPlatformData):
  25951. (WebCore::FontPlatformData::hfont):
  25952. (WebCore::FontPlatformData::useGDI):
  25953. (WebCore::FontPlatformData::fontFace):
  25954. (WebCore::FontPlatformData::setSize):
  25955. (WebCore::FontPlatformData::hash):
  25956. (WebCore::FontPlatformData::isHashTableDeletedValue):
  25957. * platform/graphics/cairo/FontPlatformDataCairo.cpp:
  25958. (WebCore::FontPlatformData::FontPlatformData): Correct
  25959. constructor to accept type float for font size.
  25960. * platform/graphics/cg/FontPlatformData.h: Copied from WebCore/platform/graphics/win/FontPlatformData.h.
  25961. (WebCore::FontPlatformData::FontPlatformData):
  25962. (WebCore::FontPlatformData::hfont):
  25963. (WebCore::FontPlatformData::cgFont):
  25964. (WebCore::FontPlatformData::operator==):
  25965. * platform/graphics/win/FontPlatformData.h: Removed.
  25966. * platform/graphics/win/FontPlatformDataCairoWin.cpp:
  25967. (WebCore::FontPlatformData::operator==): Move implementation
  25968. here (previously in header) to match other cairo-based ports.
  25969. * platform/graphics/win/RefCountedHFONT.h: Added. This
  25970. was extracted from win/FontPlatformData.h, and is now shared
  25971. by the cg/FontPlatformData.h and cairo/FontPlatformData.h
  25972. (WebCore::RefCountedHFONT::create):
  25973. (WebCore::RefCountedHFONT::createDeleted):
  25974. (WebCore::RefCountedHFONT::~RefCountedHFONT):
  25975. (WebCore::RefCountedHFONT::hfont):
  25976. (WebCore::RefCountedHFONT::hash):
  25977. (WebCore::RefCountedHFONT::RefCountedHFONT):
  25978. 2010-03-18 Simon Fraser <simon.fraser@apple.com>
  25979. No review.
  25980. Fix brace style after r56170.
  25981. * css/CSSStyleSelector.cpp:
  25982. (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
  25983. 2010-03-18 Simon Fraser <simon.fraser@apple.com>
  25984. Reviewed by Dave Hyatt.
  25985. https://bugs.webkit.org/show_bug.cgi?id=36274
  25986. CSS3 :nth-child selector 'odd' keyword case sensitivity test fails
  25987. The tests for "odd", "even" etc. for nth-child selectors should be case insensitive.
  25988. Test: fast/css/nth-child-odd-case-insensitive.html
  25989. * css/CSSSelector.cpp:
  25990. (WebCore::CSSSelector::RareData::parseNth):
  25991. 2010-03-18 David Hyatt <hyatt@apple.com>
  25992. Reviewed by Oliver Hunt.
  25993. https://bugs.webkit.org/show_bug.cgi?id=36265
  25994. Add support for event.defaultPrevented from DOM level 3.
  25995. Added fast/events/defaultprevented.html
  25996. * dom/Event.idl:
  25997. 2010-03-18 Darin Adler <darin@apple.com>
  25998. Reviewed by Kenneth Rohde Christiansen.
  25999. Remove Geolocation.lastPosition, no longer in the spec.
  26000. https://bugs.webkit.org/show_bug.cgi?id=36255
  26001. rdar://problem/7746357
  26002. * WebCore.base.exp: Updated since Geolocation's destructor is now non-virtual.
  26003. * page/Geolocation.cpp:
  26004. (WebCore::Geolocation::lastPosition): Add an assertion; it's only legal to
  26005. call this if access to the location is allowed.
  26006. * page/Geolocation.h: Removed unneeded includes. Made destructor non-virtual,
  26007. although it will still be virtual if any of the base classes have a virtual
  26008. destructor. Made lastPosition, isAllowed, and isDenied functions private.
  26009. Removed unused suspend, resume, setShouldClearCache, shouldClearCache,
  26010. and frame functions.
  26011. * page/Geolocation.idl: Removed lastPosition read-only attribute. No longer in
  26012. the Geolocation specification.
  26013. 2010-03-18 David Hyatt <hyatt@apple.com>
  26014. Reviewed by Simon Fraser.
  26015. https://bugs.webkit.org/show_bug.cgi?id=36275
  26016. Make sure :not does not allow pseudo-elements inside it. (Hooray for another pointless
  26017. restriction on :not.)
  26018. Added fast/css/invalid-not-with-pseudo-element.html
  26019. * css/CSSGrammar.y:
  26020. * css/CSSSelector.h:
  26021. (WebCore::CSSSelector::matchesPseudoElement):
  26022. 2010-03-18 Dan Bernstein <mitz@apple.com>
  26023. Reviewed by Darin Adler.
  26024. <rdar://problem/7761400> Rework the fix for
  26025. https://bugs.webkit.org/show_bug.cgi?id=18722
  26026. Test: fast/dynamic/float-remove-above-line-2.html
  26027. * rendering/RenderBlock.cpp:
  26028. (WebCore::RenderBlock::removeFloatingObject): Treat 0- and less-than-0-height floats
  26029. as having a height of 1 so that they intersect with the line they originate on.
  26030. (WebCore::RenderBlock::clearFloats): Use numeric_limits.
  26031. * rendering/RenderBlockLineLayout.cpp:
  26032. (WebCore::RenderBlock::layoutInlineChildren): Removed the intersection checks here,
  26033. so that a float is always included in the float list of the line it originates on, even
  26034. if it does not intersect that line. This ensures that every float is accounted for, which
  26035. is necessary during incremental layout when adding floats from clean lines.
  26036. 2010-03-18 Antti Koivisto <koivisto@iki.fi>
  26037. Reviewed by Kenneth Rohde Christiansen.
  26038. https://bugs.webkit.org/show_bug.cgi?id=36102
  26039. [Qt] Scaling control API for tiled backing store
  26040. Commit the new scale synchronously after unfreeze to avoid ugliness.
  26041. * platform/graphics/TiledBackingStore.cpp:
  26042. (WebCore::TiledBackingStore::TiledBackingStore):
  26043. (WebCore::TiledBackingStore::setContentsScale):
  26044. (WebCore::TiledBackingStore::commitScaleChange):
  26045. (WebCore::TiledBackingStore::setContentsFrozen):
  26046. * platform/graphics/TiledBackingStore.h:
  26047. 2010-03-18 David Hyatt <hyatt@apple.com>
  26048. Reviewed by Simon Fraser.
  26049. https://bugs.webkit.org/show_bug.cgi?id=36281
  26050. Make sure an exception is raised if an @import rule is inserted in the wrong place.
  26051. Also make sure (so that this particular test case passes) that rgba(0, 0, 0, 0) is dumped
  26052. as transparent by getComputedStyle, since it most commonly occurs in background-color and
  26053. that default makes more sense than dumping rgba values.
  26054. Added fast/css/invalid-import-insertion.html
  26055. * css/CSSPrimitiveValue.cpp:
  26056. (WebCore::CSSPrimitiveValue::createColor):
  26057. * css/CSSStyleSheet.cpp:
  26058. (WebCore::CSSStyleSheet::insertRule):
  26059. 2010-03-18 Luiz Agostini <luiz.agostini@openbossa.org>
  26060. Reviewed by Kenneth Rohde Christiansen.
  26061. Multiselect Popup - Listbox click simulation
  26062. https://bugs.webkit.org/show_bug.cgi?id=36177
  26063. Listbox popups will need to notify the corresponding select elements that a
  26064. selection change happened. The current HTMLSelectElement interface does not
  26065. allow multiple selections.
  26066. The new method listBoxSelectItem will be used for that. I have refactored part
  26067. of the mouse handling code in bug 36124 and I am now reusing it here for
  26068. <select multiple> popups. All the other cases will handled as they were before to be
  26069. sure that no side effects will show up.
  26070. * dom/SelectElement.cpp:
  26071. (WebCore::SelectElement::updateListBoxSelection):
  26072. (WebCore::SelectElement::listBoxOnChange):
  26073. * dom/SelectElement.h:
  26074. * html/HTMLSelectElement.cpp:
  26075. (WebCore::HTMLSelectElement::listBoxPopupClick):
  26076. * html/HTMLSelectElement.h:
  26077. 2010-03-12 Ojan Vafai <ojan@chromium.org>
  26078. Reviewed by David Levin.
  26079. smartdelete should only occur after double-click
  26080. https://bugs.webkit.org/show_bug.cgi?id=35314
  26081. 1. Consolidate all notions of selection-granularity into SelectionController.
  26082. 2. Now only mouse-based selections store a selection-granularity. This matches NSTextView.
  26083. New tests were added in http://trac.webkit.org/changeset/55913.
  26084. * WebCore.base.exp:
  26085. * editing/MoveSelectionCommand.cpp:
  26086. (WebCore::MoveSelectionCommand::MoveSelectionCommand):
  26087. (WebCore::MoveSelectionCommand::doApply):
  26088. * editing/MoveSelectionCommand.h:
  26089. (WebCore::MoveSelectionCommand::create):
  26090. * editing/SelectionController.cpp:
  26091. (WebCore::SelectionController::SelectionController):
  26092. (WebCore::SelectionController::setSelection):
  26093. (WebCore::SelectionController::modify):
  26094. (WebCore::SelectionController::clear):
  26095. * editing/SelectionController.h:
  26096. (WebCore::SelectionController::setSelection):
  26097. (WebCore::SelectionController::granularity):
  26098. * editing/VisibleSelection.cpp:
  26099. (WebCore::VisibleSelection::VisibleSelection):
  26100. (WebCore::VisibleSelection::expandUsingGranularity):
  26101. (WebCore::VisibleSelection::setStartAndEndFromBaseAndExtentRespectingGranularity):
  26102. (WebCore::VisibleSelection::validate):
  26103. * editing/VisibleSelection.h:
  26104. (WebCore::operator==):
  26105. * loader/FrameLoader.cpp:
  26106. (WebCore::FrameLoader::clear):
  26107. * page/DOMSelection.cpp:
  26108. (WebCore::DOMSelection::extend):
  26109. * page/DragController.cpp:
  26110. (WebCore::DragController::concludeEditDrag):
  26111. * page/EventHandler.cpp:
  26112. (WebCore::EventHandler::selectClosestWordFromMouseEvent):
  26113. (WebCore::EventHandler::selectClosestWordOrLinkFromMouseEvent):
  26114. (WebCore::EventHandler::handleMousePressEventTripleClick):
  26115. (WebCore::EventHandler::handleMousePressEventSingleClick):
  26116. (WebCore::EventHandler::updateSelectionForMouseDrag):
  26117. * page/Frame.cpp:
  26118. (WebCore::Frame::Frame):
  26119. (WebCore::Frame::selectionGranularity):
  26120. * page/Frame.h:
  26121. * rendering/RenderTextControl.cpp:
  26122. (WebCore::RenderTextControl::setSelectionRange):
  26123. 2010-03-18 Dimitri Glazkov <dglazkov@chromium.org>
  26124. Unreviewed, build fix.
  26125. [V8] Turn npObjectTypeInfo into a function, make everyone happy.
  26126. * bindings/v8/NPV8Object.cpp:
  26127. (WebCore::npObjectTypeInfo): Added new function.
  26128. (npCreateV8ScriptObject):
  26129. * bindings/v8/NPV8Object.h: Turned npObjectTypeInfo into function.
  26130. * bindings/v8/V8NPObject.cpp: Replaced references to function
  26131. 2010-03-18 David Hyatt <hyatt@apple.com>
  26132. Reviewed by Simon Fraser.
  26133. https://bugs.webkit.org/show_bug.cgi?id=36283
  26134. The wrong constants were being used for the code that attempted to compact the background-repeat shorthand to
  26135. a single value.
  26136. Added fast/backgrounds/background-repeat-computed-style.html
  26137. * css/CSSComputedStyleDeclaration.cpp:
  26138. (WebCore::fillRepeatToCSSValue):
  26139. 2010-03-18 Simon Fraser <simon.fraser@apple.com>
  26140. Reviewed by Dave Hyatt.
  26141. https://bugs.webkit.org/show_bug.cgi?id=36273
  26142. CSS3 :indeterminate and input type=radio test fails
  26143. The :indeterminate pseudo-class should apply to both radio buttons and checkboxes.
  26144. * html/HTMLInputElement.cpp:
  26145. (WebCore::HTMLInputElement::setIndeterminate): Use allowsIndeterminate() to determine if the input
  26146. supports the indeterminate state.
  26147. (WebCore::HTMLInputElement::preDispatchEventHandler): Use allowsIndeterminate() to determine whether
  26148. to handle the indeterminate state.
  26149. (WebCore::HTMLInputElement::postDispatchEventHandler): Ditto.
  26150. * html/HTMLInputElement.h:
  26151. (WebCore::HTMLInputElement::allowsIndeterminate): New utility method, returns true for radio buttons
  26152. and checkboxes.
  26153. 2010-03-18 Simon Fraser <simon.fraser@apple.com>
  26154. Reviewed by Dave Hyatt.
  26155. https://bugs.webkit.org/show_bug.cgi?id=36271
  26156. CSS3 :enabled on an input type=hidden element fails
  26157. The CSS3 selectors spec now makes it clear that hidden inputs should respect
  26158. the :enabled and :disabled pseudo-classes.
  26159. Test: fast/forms/hidden-input-enabled.html
  26160. * css/CSSStyleSelector.cpp:
  26161. (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): Remove checks for hidden inputs.
  26162. 2010-03-18 Enrica Casucci <enrica@apple.com>
  26163. Reviewed by Simon Fraser.
  26164. Intro text at Star Wars demo is clipped.
  26165. <rdar://problem/7560979>
  26166. https://bugs.webkit.org/show_bug.cgi?id=33909
  26167. Test: compositing/repaint/layer-repaint.html
  26168. We are flipping the coordinates for drawing, therefore
  26169. we must flip them also when we invalidate the rectangles.
  26170. * platform/graphics/win/GraphicsLayerCACF.cpp:
  26171. (WebCore::WebLayer::setNeedsDisplay):
  26172. 2010-03-18 Nate Chapin <japhet@chromium.org>
  26173. Unreviewed, Chromium build fix.
  26174. Missed a #include in V8Collection.h.
  26175. * bindings/v8/V8Collection.h:
  26176. 2010-03-18 David Hyatt <hyatt@apple.com>
  26177. Reviewed by Simon Fraser.
  26178. Fix for https://bugs.webkit.org/show_bug.cgi?id=36284.
  26179. Make sure the CSS parser properly rejects negative border widths.
  26180. Added fast/borders/negative-border-width.html
  26181. * css/CSSParser.cpp:
  26182. (WebCore::CSSParser::parseValue):
  26183. 2010-03-18 Nate Chapin <japhet@chromium.org>
  26184. Reviewed by Dimitri Glazkov.
  26185. [V8] Remove V8Index.h and all references to V8ClassIndex.
  26186. https://bugs.webkit.org/show_bug.cgi?id=33477
  26187. * WebCore.gypi:
  26188. * bindings/scripts/CodeGeneratorV8.pm:
  26189. * bindings/v8/NPV8Object.cpp:
  26190. * bindings/v8/NPV8Object.h:
  26191. * bindings/v8/V8Collection.h:
  26192. * bindings/v8/V8DOMWindowShell.cpp:
  26193. * bindings/v8/V8DOMWindowShell.h:
  26194. * bindings/v8/V8DOMWrapper.cpp:
  26195. * bindings/v8/V8DOMWrapper.h:
  26196. * bindings/v8/V8GCController.cpp:
  26197. * bindings/v8/V8Helpers.cpp:
  26198. * bindings/v8/V8Index.h: Removed.
  26199. * bindings/v8/V8IsolatedContext.h:
  26200. * bindings/v8/V8NPObject.cpp:
  26201. * bindings/v8/V8Proxy.cpp:
  26202. * bindings/v8/V8Proxy.h:
  26203. * bindings/v8/V8SVGPODTypeWrapper.h:
  26204. * bindings/v8/WorkerContextExecutionProxy.cpp:
  26205. * bindings/v8/WorkerContextExecutionProxy.h:
  26206. * bindings/v8/WrapperTypeInfo.h: Move WrapperTypeInfo struct into its own file from V8Index.h.
  26207. * bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp:
  26208. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  26209. * bindings/v8/custom/V8EventSourceConstructor.cpp:
  26210. * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
  26211. * bindings/v8/custom/V8HTMLAudioElementConstructor.h:
  26212. * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
  26213. * bindings/v8/custom/V8HTMLImageElementConstructor.h:
  26214. * bindings/v8/custom/V8HTMLOptionElementConstructor.cpp:
  26215. * bindings/v8/custom/V8HTMLOptionElementConstructor.h:
  26216. * bindings/v8/custom/V8HistoryCustom.cpp:
  26217. * bindings/v8/custom/V8LocationCustom.cpp:
  26218. * bindings/v8/custom/V8WebGLArrayCustom.h:
  26219. * bindings/v8/custom/V8WebGLByteArrayCustom.cpp:
  26220. * bindings/v8/custom/V8WebGLFloatArrayCustom.cpp:
  26221. * bindings/v8/custom/V8WebGLIntArrayCustom.cpp:
  26222. * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
  26223. * bindings/v8/custom/V8WebGLShortArrayCustom.cpp:
  26224. * bindings/v8/custom/V8WebGLUnsignedByteArrayCustom.cpp:
  26225. * bindings/v8/custom/V8WebGLUnsignedIntArrayCustom.cpp:
  26226. * bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp:
  26227. * bindings/v8/custom/V8WebKitPointConstructor.cpp:
  26228. 2010-03-18 Yury Semikhatsky <yurys@chromium.org>
  26229. Reviewed by Pavel Feldman.
  26230. Preserve console history between debugging sessions.
  26231. https://bugs.webkit.org/show_bug.cgi?id=36223
  26232. * inspector/front-end/ConsoleView.js:
  26233. (WebInspector.ConsoleView.prototype._settingsLoaded):
  26234. (WebInspector.ConsoleView.prototype._enterKeyPressed.printResult):
  26235. (WebInspector.ConsoleView.prototype._enterKeyPressed):
  26236. * inspector/front-end/Settings.js:
  26237. (WebInspector.Settings.prototype._load):
  26238. 2010-03-18 Kim Grönholm <kim.gronholm@nomovok.com>
  26239. Reviewed by Simon Hausmann.
  26240. [Qt] GraphicsLayer: Pausing and resuming of animations don't work as expected
  26241. https://bugs.webkit.org/show_bug.cgi?id=36219
  26242. addAnimation and pauseAnimation were handling animation state changes in
  26243. the wrong way.
  26244. Apparently WebCore calls addAnimation for resuming, so we have to make
  26245. sure to resume an existing animation if that happens. Also, timeOffset
  26246. is now used for synchronization of the Qt animation clock with the
  26247. WebCore clock, as opposed to using it as a delay timer.
  26248. Both those fixes were necessary to get the layout test to work.
  26249. LayoutTests/animations/play-state.html now passed on Qt.
  26250. * platform/graphics/qt/GraphicsLayerQt.cpp:
  26251. (WebCore::AnimationQtBase::AnimationQtBase):
  26252. (WebCore::TransformAnimationQt::updateState):
  26253. (WebCore::GraphicsLayerQt::addAnimation):
  26254. (WebCore::GraphicsLayerQt::pauseAnimation):
  26255. 2010-03-18 Adam Langley <agl@chromium.org>
  26256. Reviewed by David Levin.
  26257. [chromium] Fix inverted logic in per-strike renderer patch.
  26258. I screwed up in r55089 and got one of the conditions backwards. Thanks
  26259. to Roman Tsisyk for pointing it out.
  26260. https://bugs.webkit.org/show_bug.cgi?id=35495
  26261. Test: platform/chromium/fast/text/chromium-linux-fontconfig-renderstyle.html
  26262. * platform/graphics/chromium/FontPlatformDataLinux.cpp:
  26263. (WebCore::FontPlatformData::querySystemForRenderStyle):
  26264. 2010-03-18 Pavel Feldman <pfeldman@chromium.org>
  26265. Reviewed by Timothy Hatcher.
  26266. Web Inspector: Show inherited styles for a selected DOM element
  26267. https://bugs.webkit.org/show_bug.cgi?id=28039
  26268. * English.lproj/localizedStrings.js:
  26269. * inspector/InspectorDOMAgent.cpp:
  26270. (WebCore::InspectorDOMAgent::getStyles):
  26271. (WebCore::InspectorDOMAgent::populateObjectWithStyleProperties):
  26272. * inspector/front-end/DOMAgent.js:
  26273. (WebInspector.CSSStyleDeclaration):
  26274. * inspector/front-end/StylesSidebarPane.js:
  26275. (WebInspector.StylesSidebarPane.prototype._update):
  26276. (WebInspector.StylesSidebarPane.prototype._containsInherited):
  26277. (WebInspector.StylePropertiesSection):
  26278. (WebInspector.StylePropertiesSection.prototype.isPropertyInherited):
  26279. (WebInspector.StylePropertiesSection.prototype.onpopulate):
  26280. 2010-03-15 Antonio Gomes <tonikitoo@webkit.org>
  26281. Reviewed by Gustavo Noronha.
  26282. Patch by Antonio Gomes <tonikitoo@webkit.org>
  26283. Spatial Navigation: Add isNull() and document() convenience methods to FocusCandidate.
  26284. https://bugs.webkit.org/show_bug.cgi?id=36167
  26285. It turns out that Spatial Navigation related code (in FocusController.cpp for
  26286. instance) can be simplified and look better if FocusCandidate class offer some
  26287. convenience method. This patch introduces a couple of them (isNull and a Document
  26288. getter). It also adds another constructor that receives a Node as parameter.
  26289. A followup refactoring patch will be making use of these helper methods.
  26290. * page/SpatialNavigation.h:
  26291. (WebCore::FocusCandidate::FocusCandidate): Added a "Node*" parameter
  26292. to FocusCandidate's constructor.
  26293. (WebCore::FocusCandidate::isNull): In the Spatial Navigation logic, a NULL
  26294. FocusCandidate object is one that does not hold a valid reference to a "Node*".
  26295. (WebCore::FocusCandidate::document): This method returns a pointer for the FocusCandidate
  26296. node's document, if |node| is a valid pointer.
  26297. 2010-03-18 Noam Rosenthal <noam.rosenthal@nokia.com>
  26298. Reviewed by Antti Koivisto.
  26299. [Qt] [Performance] GraphicsLayerQt updates the scene too often
  26300. https://bugs.webkit.org/show_bug.cgi?id=36158
  26301. This fix makes sure that flushChanges is only called when necessary,
  26302. by calling the notifySync function asynchronously, which makes sure flushChanges() is called
  26303. after the WebCore compositor has made all its changes.
  26304. This has shown a visual improvement on several test-cases.
  26305. * Makefile:
  26306. * platform/graphics/qt/GraphicsLayerQt.cpp:
  26307. (WebCore::GraphicsLayerQtImpl::):
  26308. (WebCore::GraphicsLayerQtImpl::notifySyncRequired):
  26309. (WebCore::GraphicsLayerQtImpl::notifyChange):
  26310. (WebCore::GraphicsLayerQtImpl::flushChanges):
  26311. (WebCore::GraphicsLayerQt::setMaskLayer):
  26312. (WebCore::GraphicsLayerQt::setPosition):
  26313. (WebCore::GraphicsLayerQt::setAnchorPoint):
  26314. (WebCore::GraphicsLayerQt::setSize):
  26315. (WebCore::GraphicsLayerQt::setTransform):
  26316. (WebCore::GraphicsLayerQt::setChildrenTransform):
  26317. (WebCore::GraphicsLayerQt::setPreserves3D):
  26318. (WebCore::GraphicsLayerQt::setMasksToBounds):
  26319. (WebCore::GraphicsLayerQt::setDrawsContent):
  26320. (WebCore::GraphicsLayerQt::setBackgroundColor):
  26321. (WebCore::GraphicsLayerQt::clearBackgroundColor):
  26322. (WebCore::GraphicsLayerQt::setContentsOpaque):
  26323. (WebCore::GraphicsLayerQt::setBackfaceVisibility):
  26324. (WebCore::GraphicsLayerQt::setOpacity):
  26325. (WebCore::GraphicsLayerQt::setContentsRect):
  26326. 2010-03-18 Stephen White <senorblanco@chromium.org>
  26327. Reviewed by Oliver Hunt.
  26328. Parsing of rgb() colors in HTML canvas is still fairly slow.
  26329. findNamedColor() was showing up as hot, so this patch attempts to
  26330. avoid calling it by putting the rgb() check ahead of the named
  26331. colors. It also removes a call to Color::Color() from
  26332. CanvasStyle, which was doing a redundant check for the hex
  26333. color and named colors, which CSSParser already does. Finally, it
  26334. changes the ad-hoc parser to check for negative values, and clamps them
  26335. at zero. This avoids the lex/yacc path for rgb() colors with
  26336. negative color components.
  26337. https://bugs.webkit.org/show_bug.cgi?id=36199
  26338. Covered by fast/canvas/set-colors.html.
  26339. * css/CSSParser.cpp:
  26340. (WebCore::parseInt):
  26341. (WebCore::CSSParser::parseColor):
  26342. * html/canvas/CanvasStyle.cpp:
  26343. (WebCore::CanvasStyle::applyFillColor):
  26344. 2010-03-18 David Kilzer <ddkilzer@apple.com>
  26345. <http://webkit.org/b/36246> Node::removeAllEventListenersSlowCase is declared but not used
  26346. Reviewed by Sam Weinig.
  26347. * dom/Node.h:
  26348. (WebCore::Node::removeAllEventListenersSlowCase): Removed
  26349. declaration. Implementation was removed in r48701.
  26350. 2010-03-17 Stephan Aßmus <superstippi@gmx.de>
  26351. Reviewed by Oliver Hunt.
  26352. [Haiku] Implement ImageBuffer support
  26353. https://bugs.webkit.org/show_bug.cgi?id=35288
  26354. Covered by existing tests.
  26355. The StillImage class implements WebCore::Image by wrapping a native
  26356. BBitmap. It will be needed to implement WebCore::ImageBuffer. This
  26357. solution is just like it's done in the Qt port.
  26358. * platform/graphics/haiku/StillImageHaiku.cpp: Added.
  26359. (WebCore::StillImage::StillImage):
  26360. (WebCore::StillImage::destroyDecodedData):
  26361. (WebCore::StillImage::decodedSize):
  26362. (WebCore::StillImage::size):
  26363. (WebCore::StillImage::nativeImageForCurrentFrame):
  26364. (WebCore::StillImage::draw):
  26365. * platform/graphics/haiku/StillImageHaiku.h: Added.
  26366. (WebCore::StillImage::create):
  26367. 2010-03-17 Holger Hans Peter Freyther <zecke@selfish.org>
  26368. Rubber stamped by Gustavo Noronha Silva.
  26369. [Gtk+] Avoid making a copy of the HTTPHeaderMap.
  26370. ResourceRequest::httpHeaderFields() is returning a const
  26371. reference but we are storing it as a simple value. This
  26372. means that we run either the copy constructor or the assignment
  26373. operator and make a copy of the RefPtrs.
  26374. This extra copy can be avoided easily by storing
  26375. the result as a const reference.
  26376. * platform/network/soup/ResourceRequestSoup.cpp:
  26377. (WebCore::ResourceRequest::toSoupMessage):
  26378. * platform/network/soup/ResourceResponseSoup.cpp:
  26379. (WebCore::ResourceResponseSoup::toSoupMessage):
  26380. 2010-03-17 Alexander Pavlov <apavlov@chromium.org>
  26381. Reviewed by Pavel Feldman.
  26382. Web Inspector: When switching resources in the Resources panel, the Content tab is always selected
  26383. https://bugs.webkit.org/show_bug.cgi?id=36222
  26384. * inspector/front-end/ResourcesPanel.js:
  26385. (WebInspector.ResourcesPanel.prototype.showResource):
  26386. 2010-03-17 Brady Eidson <beidson@apple.com>
  26387. Reviewed by Darin Adler.
  26388. databaseIdentifiers are not filtered for slashes
  26389. <rdar://problem/7708789> and https://bugs.webkit.org/show_bug.cgi?id=36243
  26390. In addition to filtering for '/' and '\', to remove the directory vulnerability
  26391. on all platforms, it seems worth it to also escape other characters that are
  26392. obviously dangerous or illegal to have in a filename (mostly inspired by the
  26393. Windows illegal-character list).
  26394. No new tests - It's unclear how a test could possibly work into our testing
  26395. infrastructure.
  26396. * page/SecurityOrigin.cpp:
  26397. (WebCore::): Added a 128-bool table "needsEscaping" that has a true/false answer
  26398. for lower-ASCII.
  26399. (WebCore::SecurityOrigin::SecurityOrigin):
  26400. (WebCore::SecurityOrigin::createFromDatabaseIdentifier): "Unescape" the host
  26401. component using the KURL utility.
  26402. (WebCore::shouldEscapeUChar): If the char is lower-ASCII, look it up in the
  26403. needsEscaping table. Otherwise, let it pass.
  26404. (WebCore::encodedHost): Modeled after KURL's host escaping method, but targeted
  26405. for the escaping considerations for the host component. We don't use the KURL
  26406. version because this one is "different" enough because it operates on UTF16 and
  26407. has its own "is bad character?" decider.
  26408. (WebCore::SecurityOrigin::databaseIdentifier): Create the escaped host if needed,
  26409. and use it instead of the unescaped host.
  26410. * page/SecurityOrigin.h:
  26411. 2010-03-17 Dmitry Titov <dimich@chromium.org>
  26412. Reviewed by Dimitri Glazkov.
  26413. [v8] Avoid reentry into v8 after TerminateExecution() on a worker thread.
  26414. https://bugs.webkit.org/show_bug.cgi?id=36239
  26415. Test: fast/workers/termination-with-port-messages.html
  26416. * bindings/v8/V8Proxy.h:
  26417. (WebCore::throwError): Avoid throwing if v8 execution is terminated anyways.
  26418. * bindings/v8/WorkerScriptController.h:
  26419. (WebCore::WorkerScriptController::proxy): Return V8 proxy as 0 if execution is terminating. Callers to check for 0 before invoking v8.
  26420. * bindings/v8/custom/V8WorkerContextCustom.cpp:
  26421. (WebCore::SetTimeoutOrInterval): Bail out if v8 proxy is 0.
  26422. (WebCore::toV8): Ditto
  26423. 2010-03-17 José Millán Soto <jmillan@igalia.com>
  26424. Reviewed by Adam Barth.
  26425. Change the way of prefetching DNS to allow prefetching function to use full URL
  26426. https://bugs.webkit.org/show_bug.cgi?id=35589
  26427. Creates a new function, ResourceHandle::prepareForURL, whose default implementation
  26428. calls prefetchDNS with the host of the given URL as the parameter.
  26429. Soup implementation of ResourceHandle::prepareForURL executes soup_session_prepare_for_uri.
  26430. Soup implementation of prefetchDNS is removed.
  26431. Changed various prefetchDNS calls to ResourceHandle::prepareForURL calls.
  26432. * GNUmakefile.am:
  26433. * html/HTMLAnchorElement.cpp:
  26434. (WebCore::HTMLAnchorElement::parseMappedAttribute):
  26435. * html/HTMLLinkElement.cpp:
  26436. (WebCore::HTMLLinkElement::process):
  26437. * page/Chrome.cpp:
  26438. (WebCore::Chrome::mouseDidMoveOverElement):
  26439. * platform/network/DNS.h:
  26440. * platform/network/ResourceHandle.cpp:
  26441. (WebCore::ResourceHandle::prepareForURL):
  26442. * platform/network/ResourceHandle.h:
  26443. * platform/network/chromium/DNSChromium.cpp:
  26444. (WebCore::ResourceHandle::prepareForURL):
  26445. * platform/network/soup/DNSSoup.cpp: Removed.
  26446. * platform/network/soup/ResourceHandleSoup.cpp:
  26447. (WebCore::ResourceHandle::prepareForURL):
  26448. * wml/WMLAElement.cpp:
  26449. (WebCore::WMLAElement::parseMappedAttribute):
  26450. 2010-03-17 Kenneth Russell <kbr@google.com>
  26451. Reviewed by Darin Fisher.
  26452. Revert WebGL context attributes changes 33416 / r56074 and 36200 / r56093
  26453. https://bugs.webkit.org/show_bug.cgi?id=36233
  26454. The patch for bug 33416, which added multisampling support to the
  26455. WebGL back buffer, uncovered some OpenGL driver bugs on the build
  26456. bots which need further investigation to determine the appropriate
  26457. workaround. Reverting this change, the minor build fix in 36189,
  26458. and the skipping of the affected tests in bug 36200.
  26459. Built and tested WebKit and Chromium and ran all WebGL layout
  26460. tests in both.
  26461. * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
  26462. (WebCore::V8HTMLCanvasElement::getContextCallback):
  26463. * platform/graphics/GraphicsContext3D.h:
  26464. * platform/graphics/mac/Canvas3DLayer.h:
  26465. * platform/graphics/mac/Canvas3DLayer.mm:
  26466. (-[Canvas3DLayer drawInCGLContext:pixelFormat:forLayerTime:displayTime:]):
  26467. * platform/graphics/mac/GraphicsContext3DMac.cpp:
  26468. (WebCore::GraphicsContext3D::GraphicsContext3D):
  26469. (WebCore::GraphicsContext3D::~GraphicsContext3D):
  26470. (WebCore::GraphicsContext3D::reshape):
  26471. (WebCore::GraphicsContext3D::bindFramebuffer):
  26472. (WebCore::GraphicsContext3D::readPixels):
  26473. * platform/graphics/mac/GraphicsLayerCA.mm:
  26474. (WebCore::GraphicsLayerCA::setContentsToGraphicsContext3D):
  26475. 2010-03-17 Yael Aharon <yael.aharon@nokia.com>
  26476. Reviewed by Darin Adler.
  26477. Optimize painting for HTMLProgressElement
  26478. https://bugs.webkit.org/show_bug.cgi?id=36113
  26479. Cache the progress bar's position, so it is not required to recalculate
  26480. it for each repaint.
  26481. Call repaintRectangle() when the position changes.
  26482. No new tests, as no new functionality introduced.
  26483. * html/HTMLProgressElement.cpp:
  26484. (WebCore::HTMLProgressElement::parseMappedAttribute):
  26485. * platform/qt/RenderThemeQt.cpp:
  26486. (WebCore::RenderThemeQt::getNumberOfPixelsForProgressPosition):
  26487. (WebCore::RenderThemeQt::paintProgressBar):
  26488. * platform/qt/RenderThemeQt.h:
  26489. * rendering/RenderProgress.cpp:
  26490. (WebCore::RenderProgress::RenderProgress):
  26491. (WebCore::RenderProgress::updateFromElement):
  26492. * rendering/RenderProgress.h:
  26493. (WebCore::RenderProgress::position):
  26494. * rendering/RenderTheme.cpp:
  26495. (WebCore::RenderTheme::getNumberOfPixelsForProgressPosition):
  26496. * rendering/RenderTheme.h:
  26497. 2010-03-17 Antonio Gomes <tonikitoo@webkit.org>
  26498. Mac Buildfix: Using ASSERT_UNUSED instead of ASSERT.
  26499. Reviewed by Simon fraser.
  26500. Patch by Antonio Gomes <tonikitoo@webkit.org>
  26501. * dom/SelectElement.cpp:
  26502. (WebCore::SelectElement::listBoxDefaultEventHandler):
  26503. 2010-03-17 Enrica Casucci <enrica@apple.com>
  26504. Reviewed by Darin Adler.
  26505. Missing support for showing compositing layers borders and repaint count on Windows.
  26506. <rdar://problem/7760736>
  26507. <https://bugs.webkit.org/show_bug.cgi?id=36197>
  26508. * platform/graphics/win/GraphicsLayerCACF.cpp:
  26509. (WebCore::WebLayer::drawInContext): Modified to use the correct font on Windows.
  26510. 2010-03-16 Luiz Agostini <luiz.agostini@openbossa.org>
  26511. Reviewed by Antti Koivisto.
  26512. [Qt] Multiselect Popup - SelectElement refactoring.
  26513. https://bugs.webkit.org/show_bug.cgi?id=36124
  26514. As it is today it is not possible to the menulists popups to tell SelectElement
  26515. that more then one option is selected. If you select one the other ones
  26516. selected state will turn off.
  26517. For <select multiple> I needed to extend the API used by menulist popups. This
  26518. is the first step. Just refactoring SelectElement without any behavior change.
  26519. Separating code that will be reused in future patches.
  26520. * dom/SelectElement.cpp:
  26521. (WebCore::SelectElement::updateSelectedState):
  26522. (WebCore::SelectElement::listBoxDefaultEventHandler):
  26523. * dom/SelectElement.h:
  26524. 2010-03-17 Nate Chapin <japhet@chromium.org>
  26525. Unreviewed, Chromium build fix.
  26526. Delete the correct file this time.
  26527. * bindings/v8/custom/V8XMLHttpRequestCustom.cpp: Copied from WebCore/bindings/v8/custom/V8XMLHttpRequestCustom.cpp.
  26528. * bindings/v8/custom/V8XMLHttpRequestUploadCustom.cpp: Removed.
  26529. 2010-03-17 Nate Chapin <japhet@chromium.org>
  26530. Reviewed by Dimitri Glazkov.
  26531. [V8] Remove custom bindings callbacks that aren't in use.
  26532. (The relevant .idl doesn't mark them as V8Custom or Custom).
  26533. https://bugs.webkit.org/show_bug.cgi?id=33066
  26534. * Android.v8bindings.mk:
  26535. * WebCore.gypi:
  26536. * bindings/scripts/CodeGeneratorV8.pm:
  26537. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  26538. * bindings/v8/custom/V8WebGLArrayCustom.h:
  26539. * bindings/v8/custom/V8WebGLByteArrayCustom.cpp:
  26540. * bindings/v8/custom/V8WebGLFloatArrayCustom.cpp:
  26541. * bindings/v8/custom/V8WebGLIntArrayCustom.cpp:
  26542. * bindings/v8/custom/V8WebGLShortArrayCustom.cpp:
  26543. * bindings/v8/custom/V8WebGLUnsignedByteArrayCustom.cpp:
  26544. * bindings/v8/custom/V8WebGLUnsignedIntArrayCustom.cpp:
  26545. * bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp:
  26546. * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
  26547. * bindings/v8/custom/V8XMLHttpRequestUploadCustom.cpp: Removed.
  26548. 2010-03-17 Steve Block <steveblock@google.com>
  26549. Reviewed by Dimitri Glazkov.
  26550. Adds ENABLE(WORKERS) guards to V8 bindings
  26551. https://bugs.webkit.org/show_bug.cgi?id=36221
  26552. Build fix only, no new tests.
  26553. * bindings/v8/V8DOMWrapper.cpp:
  26554. (WebCore::V8DOMWrapper::instantiateV8Object):
  26555. * bindings/v8/V8Proxy.cpp:
  26556. (WebCore::toV8Context):
  26557. 2010-03-17 Yury Semikhatsky <yurys@chromium.org>
  26558. Reviewed by Pavel Feldman.
  26559. Remove unused reference to InspectorController from InspectorFrontend.
  26560. https://bugs.webkit.org/show_bug.cgi?id=36218
  26561. * inspector/InspectorFrontend.h:
  26562. 2010-03-17 Ilya Tikhonovsky <loislo@chromium.org>
  26563. Reviewed by Pavel Feldman.
  26564. WebInspector: Timeline improvements - next iteration.
  26565. The top level records should be collapsed.
  26566. Virtually linked events should be nested in Timeline like Send Request and
  26567. corresponding Received Responce, Timer Install and Timer Fire etc.
  26568. It should be possible to see Main Resource request.
  26569. https://bugs.webkit.org/show_bug.cgi?id=36122
  26570. * inspector/InspectorController.cpp:
  26571. (WebCore::InspectorController::resetScriptObjects):
  26572. (WebCore::InspectorController::didReceiveResponse):
  26573. * inspector/InspectorTimelineAgent.cpp:
  26574. (WebCore::InspectorTimelineAgent::willReceiveResourceResponse):
  26575. (WebCore::InspectorTimelineAgent::didReceiveResourceResponse):
  26576. * inspector/InspectorTimelineAgent.h:
  26577. * inspector/front-end/TimelinePanel.js:
  26578. (WebInspector.TimelinePanel):
  26579. (WebInspector.TimelinePanel.prototype._createStatusbarButtons):
  26580. (WebInspector.TimelinePanel.prototype.addRecordToTimeline):
  26581. (WebInspector.TimelinePanel.prototype._findParentRecord):
  26582. (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
  26583. (WebInspector.TimelinePanel.prototype.resize):
  26584. (WebInspector.TimelinePanel.prototype._createTopLevelRecord):
  26585. (WebInspector.TimelinePanel.prototype.reset):
  26586. (WebInspector.TimelinePanel.prototype._clean):
  26587. (WebInspector.TimelinePanel.prototype._refresh):
  26588. (WebInspector.TimelinePanel.prototype._refreshRecords):
  26589. (WebInspector.TimelinePanel.prototype._addToRecordsWindow):
  26590. (WebInspector.TimelineCalculator.prototype.computeBarGraphPercentages):
  26591. (WebInspector.TimelineCalculator.prototype.updateBoundaries):
  26592. (WebInspector.TimelineRecordGraphRow):
  26593. (WebInspector.TimelineRecordGraphRow.prototype.update):
  26594. (WebInspector.TimelinePanel.FormattedRecord):
  26595. (WebInspector.TimelinePanel.FormattedRecord.prototype.get children):
  26596. (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
  26597. * inspector/front-end/inspector.css:
  26598. * loader/ResourceLoader.cpp:
  26599. (WebCore::ResourceLoader::didReceiveResponse):
  26600. 2010-03-17 Alexander Pavlov <apavlov@chromium.org>
  26601. Reviewed by Pavel Feldman.
  26602. Web Inspector: Reimplement style-related audits using native API
  26603. https://bugs.webkit.org/show_bug.cgi?id=36172
  26604. * inspector/InspectorBackend.cpp:
  26605. (WebCore::InspectorBackend::getAllStyles):
  26606. * inspector/InspectorBackend.h:
  26607. * inspector/InspectorBackend.idl:
  26608. * inspector/InspectorDOMAgent.cpp:
  26609. (WebCore::InspectorDOMAgent::getAllStyles):
  26610. (WebCore::InspectorDOMAgent::getMatchedCSSRules):
  26611. (WebCore::InspectorDOMAgent::buildObjectForStyleSheet):
  26612. (WebCore::InspectorDOMAgent::buildObjectForRule):
  26613. * inspector/InspectorDOMAgent.h:
  26614. * inspector/InspectorFrontend.cpp:
  26615. (WebCore::InspectorFrontend::didGetAllStyles):
  26616. * inspector/InspectorFrontend.h:
  26617. * inspector/front-end/AuditRules.js:
  26618. (WebInspector.AuditRules.evaluateInTargetWindow):
  26619. (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.evalCallback.selectorsCallback):
  26620. (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.evalCallback.routine):
  26621. (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.evalCallback):
  26622. (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.routine):
  26623. (WebInspector.AuditRules.UnusedCssRule.prototype.doRun):
  26624. (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun):
  26625. (WebInspector.AuditRules.CssInHeadRule.prototype.doRun):
  26626. (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun):
  26627. * inspector/front-end/DOMAgent.js:
  26628. * inspector/front-end/InjectedScript.js:
  26629. (injectedScriptConstructor):
  26630. 2010-03-17 Steve Block <steveblock@google.com>
  26631. Reviewed by Jeremy Orlow.
  26632. Replace instances of bzero in WebCore/bridge common code with memset
  26633. https://bugs.webkit.org/show_bug.cgi?id=36214
  26634. Syntax change only, no new tests.
  26635. * bridge/jni/JNIUtility.cpp:
  26636. (JSC::Bindings::getJNIField):
  26637. * bridge/jni/jsc/JNIBridgeJSC.cpp:
  26638. (JavaField::dispatchValueFromInstance):
  26639. * bridge/jni/jsc/JNIUtilityPrivate.cpp:
  26640. (JSC::Bindings::convertValueToJValue):
  26641. * bridge/jni/v8/JNIUtilityPrivate.cpp:
  26642. (JSC::Bindings::convertNPVariantToJValue):
  26643. * bridge/jni/v8/JavaNPObjectV8.cpp:
  26644. (JSC::Bindings::AllocJavaNPObject):
  26645. 2010-03-17 Yury Semikhatsky <yurys@chromium.org>
  26646. Reviewed by Pavel Feldman.
  26647. Mark inspector resources as changed so that they are reloaded on the next frontend connection.
  26648. Split resetScriptObjects into code specific for page navigation and insepctor frontend disconnection.
  26649. https://bugs.webkit.org/show_bug.cgi?id=36183
  26650. * WebCore.xcodeproj/project.pbxproj: Added InspectorWorkerResource.h to the project file.
  26651. * inspector/InspectorController.cpp:
  26652. (WebCore::InspectorController::disconnectFrontend):
  26653. (WebCore::InspectorController::unbindAllResources):
  26654. (WebCore::InspectorController::didCommitLoad):
  26655. * inspector/InspectorController.h:
  26656. * inspector/InspectorResource.cpp:
  26657. (WebCore::InspectorResource::releaseScriptObject):
  26658. 2010-03-17 Pavel Feldman <pfeldman@chromium.org>
  26659. Reviewed by Timothy Hatcher.
  26660. Web Inspector: Capture main resource load events in timeline panel.
  26661. https://bugs.webkit.org/show_bug.cgi?id=36188
  26662. * inspector/front-end/TimelinePanel.js:
  26663. (WebInspector.TimelinePanel.prototype._createStatusbarButtons):
  26664. (WebInspector.TimelinePanel.prototype._toggleTimelineButtonClicked):
  26665. (WebInspector.TimelinePanel.prototype.timelineWasStopped):
  26666. (WebInspector.TimelinePanel.prototype.addRecordToTimeline):
  26667. (WebInspector.TimelinePanel.prototype._clearPanel):
  26668. (WebInspector.TimelinePanel.FormattedRecord):
  26669. 2010-03-17 Zoltan Horvath <zoltan@webkit.org>
  26670. Reviewed by Eric Seidel.
  26671. Allow custom memory allocation control for AtomicString class
  26672. https://bugs.webkit.org/show_bug.cgi?id=35907
  26673. Inherits the following class from FastAllocBase because it is
  26674. instantiated by 'new':
  26675. class name - instantiated at: WebCore/'location'
  26676. AtomicString - WebCore/html/HTMLTableElement.cpp:525
  26677. * platform/text/AtomicString.h:
  26678. 2010-03-16 John Abd-El-Malek <jam@chromium.org>
  26679. Reviewed by Darin Fisher.
  26680. Give keyboard focus to PluginDocuments by default
  26681. https://bugs.webkit.org/show_bug.cgi?id=36147
  26682. Test: http/tests/plugins/plugin-document-has-focus.html
  26683. * loader/PluginDocument.cpp:
  26684. (WebCore::PluginDocument::pluginNode):
  26685. * loader/PluginDocument.h:
  26686. * page/EventHandler.cpp:
  26687. (WebCore::eventTargetNodeForDocument):
  26688. 2010-03-16 Chris Fleizach <cfleizach@apple.com>
  26689. Reviewed by Darin Adler.
  26690. REGRESSION (r53857): Crash when tabbing to <map>
  26691. https://bugs.webkit.org/show_bug.cgi?id=36017
  26692. Test: fast/events/imagemap-norender-crash.html
  26693. * html/HTMLMapElement.cpp:
  26694. (WebCore::HTMLMapElement::imageElement):
  26695. 2010-03-16 Brent Fulgham <bfulgham@webkit.org>
  26696. Build fix. No Review.
  26697. Correct missing includes in cURL network backend introduced
  26698. by recent changes in WebKit.
  26699. * platform/network/curl/ResourceHandleCurl.cpp: Add missing
  26700. includes for SharedBuffer and PassRefPtr.
  26701. (WebCore::ResourceHandle::loadResourceSynchronously): Correct
  26702. constructor signature for ResourceHandle to match @r55688.
  26703. * platform/network/curl/ResourceHandleManager.cpp: Add missing
  26704. include for RetainPtr.
  26705. 2010-03-16 Zhenyao Mo <zmo@google.com>
  26706. Reviewed by Darin Fisher.
  26707. Hook up WebGLContextAttributes to OpenGL context creation code
  26708. https://bugs.webkit.org/show_bug.cgi?id=33416
  26709. Test: fast/canvas/webgl/context-attributes-alpha-depth-stencil-antialias.html
  26710. * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp: Fix an index bug.
  26711. * platform/graphics/GraphicsContext3D.h: Add members/functions for multisampling/stencil buffer purpose.
  26712. * platform/graphics/mac/Canvas3DLayer.h: Add GraphicsContext3D as a member of Canvas3DLayer.
  26713. * platform/graphics/mac/Canvas3DLayer.mm: Add multisampling support.
  26714. * platform/graphics/mac/GraphicsContext3DMac.cpp: Hook up WebGLContextAttributes to OpenGL context creation code for Mac.
  26715. * platform/graphics/mac/GraphicsLayerCA.mm: Adjust to modified Canvas3DLayer init call.
  26716. 2010-03-16 Joanmarie Diggs <joanmarie.diggs@gmail.com>
  26717. Reviewed by Xan Lopez.
  26718. https://bugs.webkit.org/show_bug.cgi?id=35504
  26719. [Gtk] Evaluate and fix AtkTable for layout tables
  26720. Causes "layout tables" to be exposed as AccessibilityTables for Gtk.
  26721. * accessibility/AccessibilityTable.cpp:
  26722. (AccessibilityTable::isTableExposableThroughAccessibility):
  26723. 2010-03-16 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  26724. Unreviewed. Build fix for distcheck.
  26725. * GNUmakefile.am:
  26726. 2010-03-15 Darin Fisher <darin@chromium.org>
  26727. Reviewed by Adam Barth.
  26728. https://bugs.webkit.org/show_bug.cgi?id=36152
  26729. [chromium] Add support for history.pushState and history.replaceState
  26730. This is covered by the existing tests in fast/loader/stateobjects
  26731. * bindings/v8/SerializedScriptValue.cpp:
  26732. (WebCore::ZigZag::Deserializer::deserialize):
  26733. (WebCore::SerializedScriptValue::deserialize):
  26734. * bindings/v8/SerializedScriptValue.h:
  26735. Switch to returning v8::Null instead of the empty value to match JSC
  26736. and the spec.
  26737. * loader/FrameLoader.cpp:
  26738. (WebCore::FrameLoader::loadInSameDocument): Call
  26739. dispatchDidNavigateWithinPage just before dispatching events to the
  26740. page. This ordering is important since the event handlers could
  26741. destroy the page or start another navigation.
  26742. * loader/FrameLoaderClient.h: Add dispatchDidNavigateWithinPage to
  26743. notify the client whenever a navigation occurs without changing any of
  26744. the documents in the page.
  26745. 2010-03-16 Adam Roben <aroben@apple.com>
  26746. Fix linker warnings when building WebCore on Windows
  26747. Rubber-stamped by Steve Falkenburg.
  26748. * WebCore.vcproj/WebCore.vcproj: Exclude JSDOMFormData.cpp from the
  26749. build, since it's already included in DerivedSources.cpp. Also let VS
  26750. sort this file as it saw fit.
  26751. 2010-03-15 Antti Koivisto <koivisto@iki.fi>
  26752. Reviewed by Simon Hausmann.
  26753. https://bugs.webkit.org/show_bug.cgi?id=36121
  26754. [Qt] Make WebKit scrollbars work with tiling
  26755. Translate coordinates correctly.
  26756. * page/Frame.cpp:
  26757. (WebCore::Frame::tiledBackingStorePaintEnd):
  26758. 2010-03-16 Jakub Wieczorek <jwieczorek@webkit.org>
  26759. Reviewed by Eric Seidel.
  26760. [Qt] MediaPlayerPrivate: Initialize m_mediaPlayerControl to 0 to avoid crashes
  26761. when no media services can be found.
  26762. https://bugs.webkit.org/show_bug.cgi?id=36142
  26763. * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
  26764. (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
  26765. 2010-03-16 Adam Barth <abarth@webkit.org>
  26766. Unreviewed.
  26767. noscript tag should render when @sandbox disables JavaScript
  26768. https://bugs.webkit.org/show_bug.cgi?id=36092
  26769. Add missing "!" in plugin code. Should fix plugins/embed-inside-object
  26770. on Gtk and Qt.
  26771. * plugins/PluginView.cpp:
  26772. (WebCore::PluginView::load):
  26773. 2010-03-16 Nate Chapin <japhet@chromium.org>
  26774. Reviewed by Dimitri Glazkov.
  26775. [V8] Delete DerivedSourcesAllInOne.cpp.
  26776. https://bugs.webkit.org/show_bug.cgi?id=33048
  26777. * Android.v8bindings.mk:
  26778. * bindings/v8/DerivedSourcesAllInOne.cpp: Removed.
  26779. 2010-03-16 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  26780. Revert r56006 as it caused functional issues. We will work on a
  26781. testcase, and rework the fix, and land when we have this a bit
  26782. more testable.
  26783. * platform/gtk/RenderThemeGtk.cpp:
  26784. (WebCore::RenderThemeGtk::paintMediaPlayButton):
  26785. 2010-03-16 Pavel Feldman <pfeldman@chromium.org>
  26786. Reviewed by Timothy Hatcher.
  26787. Web Inspector: Errors when inspecting styles of non-renderable elements in XHTML.
  26788. https://bugs.webkit.org/show_bug.cgi?id=35025
  26789. * inspector/InspectorDOMAgent.cpp:
  26790. (WebCore::InspectorDOMAgent::getStyles):
  26791. * inspector/front-end/DOMAgent.js:
  26792. (WebInspector.DOMNode.prototype._addAttribute):
  26793. (WebInspector.DOMWindow.prototype.Object):
  26794. * inspector/front-end/MetricsSidebarPane.js:
  26795. * inspector/front-end/StylesSidebarPane.js:
  26796. (WebInspector.StylesSidebarPane.prototype.update.callback):
  26797. (WebInspector.StylesSidebarPane.prototype.update):
  26798. (WebInspector.StylesSidebarPane.prototype._update):
  26799. 2010-03-12 Antonio Gomes <tonikitoo@webkit.org>
  26800. Reviewed by Simon Fraser.
  26801. Patch by Antonio Gomes <tonikitoo@webkit.org>
  26802. Spatial Navigation: Add a scrollIntoView call when focusing an element.
  26803. https://bugs.webkit.org/show_bug.cgi?id=36020
  26804. When focusing an element in Spatial Navigation logic, it is desired to make
  26805. this element visible in the current viewport. For that to happen, there
  26806. could be a call to Element's scrollIntoView method at focusing time. However
  26807. for visual aspects, it is preferable to scroll to an inflated rect of |element|
  26808. in order to consider the focus outline width.
  26809. As Element's scrollIntoView method does not provide this flexibility, patch adds
  26810. a custom scrollIntoView method to SpatialNavigation.h .
  26811. * page/FocusController.cpp:
  26812. (WebCore::FocusController::advanceFocusDirectionally):
  26813. * page/SpatialNavigation.cpp:
  26814. (WebCore::scrollIntoView):
  26815. * page/SpatialNavigation.h:
  26816. 2010-03-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  26817. Reviewed by Eric Seidel.
  26818. [GTK] Position queries are lagging
  26819. https://bugs.webkit.org/show_bug.cgi?id=34372
  26820. Normalize timeout priorities through the GStreamer media player as
  26821. a whole. This should help avoid that any of them is starved.
  26822. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  26823. (WebCore::MediaPlayerPrivate::volumeChanged):
  26824. (WebCore::MediaPlayerPrivate::processBufferingStats):
  26825. (WebCore::MediaPlayerPrivate::muteChanged):
  26826. * platform/graphics/gstreamer/VideoSinkGStreamer.cpp:
  26827. (webkit_video_sink_render):
  26828. * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
  26829. (webKitWebSrcNeedDataCb):
  26830. (webKitWebSrcEnoughDataCb):
  26831. (webKitWebSrcSeekDataCb):
  26832. 2010-03-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  26833. Reviewed by Eric Seidel.
  26834. [GTK] Position queries are lagging
  26835. https://bugs.webkit.org/show_bug.cgi?id=34372
  26836. Use default priority also for parsing data: URIs.
  26837. * platform/network/soup/ResourceHandleSoup.cpp:
  26838. (WebCore::startData):
  26839. 2010-03-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  26840. Reviewed by Eric Seidel.
  26841. [GTK] Position queries are lagging
  26842. https://bugs.webkit.org/show_bug.cgi?id=34372
  26843. Normalize SharedTimers priorities to always be
  26844. G_PRIORITY_DEFAULT. As it is currently, timers that should happen
  26845. immediately (0 miliseconds delay) end up delayed by a lot of time
  26846. due to glib starving lower priority sources.
  26847. * platform/gtk/SharedTimerGtk.cpp:
  26848. (WebCore::setSharedTimerFireTime):
  26849. 2010-03-16 Xan Lopez <xlopez@igalia.com>
  26850. Reviewed by Gustavo Noronha.
  26851. Add support for Fast Mobile Scrolling in the build system.
  26852. * GNUmakefile.am:
  26853. 2010-03-11 Yury Semikhatsky <yurys@chromium.org>
  26854. Reviewed by Pavel Feldman.
  26855. Introduce InspectorFrontendClient that provides InspectorFrontend with an interface to the embedder. InspectorClient now serves as a delegate for InspectorController and does not contain methods for managing inspector frontend window. That allows to create remote InspectorFrontendHost.
  26856. Introduce InspectorFrontendClient that would provide InspectorFrontend with an interface to the embedder
  26857. https://bugs.webkit.org/show_bug.cgi?id=35036
  26858. * GNUmakefile.am:
  26859. * WebCore.Inspector.exp:
  26860. * WebCore.base.exp:
  26861. * WebCore.gypi:
  26862. * WebCore.order:
  26863. * WebCore.pro:
  26864. * WebCore.xcodeproj/project.pbxproj:
  26865. * inspector/ConsoleMessage.cpp:
  26866. (WebCore::ConsoleMessage::addToFrontend):
  26867. * inspector/ConsoleMessage.h:
  26868. * inspector/InspectorClient.h:
  26869. * inspector/InspectorController.cpp:
  26870. (WebCore::InspectorController::InspectorController):
  26871. (WebCore::InspectorController::~InspectorController):
  26872. (WebCore::InspectorController::inspectedPageDestroyed):
  26873. (WebCore::InspectorController::windowVisible):
  26874. (WebCore::InspectorController::frontendReady):
  26875. (WebCore::InspectorController::willCloseFrontend):
  26876. (WebCore::InspectorController::addConsoleMessage):
  26877. (WebCore::InspectorController::setInspectorFrontendClient):
  26878. (WebCore::InspectorController::inspectedWindowScriptObjectCleared):
  26879. (WebCore::InspectorController::setFrontend):
  26880. (WebCore::InspectorController::show):
  26881. (WebCore::InspectorController::close):
  26882. (WebCore::InspectorController::releaseDOMAgent):
  26883. (WebCore::InspectorController::populateScriptObjects):
  26884. (WebCore::InspectorController::didCommitLoad):
  26885. (WebCore::InspectorController::getProfile):
  26886. (WebCore::InspectorController::enableDebugger):
  26887. * inspector/InspectorController.h:
  26888. (WebCore::InspectorController::hasInspectorFrontendClient):
  26889. * inspector/InspectorFrontend.cpp:
  26890. (WebCore::InspectorFrontend::InspectorFrontend):
  26891. (WebCore::InspectorFrontend::~InspectorFrontend):
  26892. (WebCore::InspectorFrontend::addConsoleMessage):
  26893. (WebCore::InspectorFrontend::bringToFront):
  26894. (WebCore::InspectorFrontend::inspectedURLChanged):
  26895. * inspector/InspectorFrontend.h:
  26896. * inspector/InspectorFrontendClient.h: Added.
  26897. (WebCore::InspectorFrontendClient::~InspectorFrontendClient):
  26898. * inspector/InspectorFrontendClientLocal.cpp: Added.
  26899. (WebCore::FrontendMenuProvider::create):
  26900. (WebCore::FrontendMenuProvider::disconnect):
  26901. (WebCore::FrontendMenuProvider::FrontendMenuProvider):
  26902. (WebCore::FrontendMenuProvider::~FrontendMenuProvider):
  26903. (WebCore::FrontendMenuProvider::populateContextMenu):
  26904. (WebCore::FrontendMenuProvider::contextMenuItemSelected):
  26905. (WebCore::FrontendMenuProvider::contextMenuCleared):
  26906. (WebCore::InspectorFrontendClientLocal::InspectorFrontendClientLocal):
  26907. (WebCore::InspectorFrontendClientLocal::~InspectorFrontendClientLocal):
  26908. (WebCore::InspectorFrontendClientLocal::windowObjectCleared):
  26909. (WebCore::InspectorFrontendClientLocal::frontendLoaded):
  26910. (WebCore::InspectorFrontendClientLocal::canAttachWindow):
  26911. (WebCore::InspectorFrontendClientLocal::changeAttachedWindowHeight):
  26912. (WebCore::InspectorFrontendClientLocal::moveWindowBy):
  26913. (WebCore::InspectorFrontendClientLocal::showContextMenu):
  26914. (WebCore::InspectorFrontendClientLocal::setAttachedWindow):
  26915. (WebCore::InspectorFrontendClientLocal::restoreAttachedWindowHeight):
  26916. (WebCore::InspectorFrontendClientLocal::constrainedAttachedWindowHeight):
  26917. * inspector/InspectorFrontendClientLocal.h: Added.
  26918. * inspector/InspectorFrontendHost.cpp:
  26919. (WebCore::InspectorFrontendHost::InspectorFrontendHost):
  26920. (WebCore::InspectorFrontendHost::~InspectorFrontendHost):
  26921. (WebCore::InspectorFrontendHost::loaded):
  26922. (WebCore::InspectorFrontendHost::attach):
  26923. (WebCore::InspectorFrontendHost::detach):
  26924. (WebCore::InspectorFrontendHost::closeWindow):
  26925. (WebCore::InspectorFrontendHost::bringToFront):
  26926. (WebCore::InspectorFrontendHost::inspectedURLChanged):
  26927. (WebCore::InspectorFrontendHost::canAttachWindow):
  26928. (WebCore::InspectorFrontendHost::setAttachedWindowHeight):
  26929. (WebCore::InspectorFrontendHost::moveWindowBy):
  26930. (WebCore::InspectorFrontendHost::showContextMenu):
  26931. * inspector/InspectorFrontendHost.h:
  26932. (WebCore::InspectorFrontendHost::create):
  26933. * inspector/InspectorFrontendHost.idl:
  26934. * inspector/front-end/InspectorFrontendHostStub.js:
  26935. (.WebInspector.InspectorFrontendHostStub.prototype.bringToFront):
  26936. (.WebInspector.InspectorFrontendHostStub.prototype.inspectedURLChanged):
  26937. * inspector/front-end/inspector.js:
  26938. (WebInspector.loaded):
  26939. (WebInspector.close):
  26940. (WebInspector.bringToFront):
  26941. (WebInspector.inspectedURLChanged):
  26942. * loader/EmptyClients.h:
  26943. (WebCore::EmptyInspectorClient::openInspectorFrontend):
  26944. * loader/FrameLoader.cpp:
  26945. (WebCore::FrameLoader::dispatchDidClearWindowObjectInWorld):
  26946. * page/Page.cpp:
  26947. (WebCore::Page::Page):
  26948. (WebCore::Page::~Page):
  26949. * page/Page.h:
  26950. * platform/ContextMenu.cpp:
  26951. (WebCore::ContextMenu::populate):
  26952. (WebCore::ContextMenu::addInspectElementItem):
  26953. 2010-03-16 Pavel Feldman <pfeldman@chromium.org>
  26954. Reviewed by Timothy Hatcher.
  26955. Web Inspector: migrate to native styles inspector in
  26956. order to inspect styles from foreighn domains.
  26957. https://bugs.webkit.org/show_bug.cgi?id=36117
  26958. * inspector/InspectorBackend.cpp:
  26959. (WebCore::InspectorBackend::getStyles):
  26960. (WebCore::InspectorBackend::getInlineStyle):
  26961. (WebCore::InspectorBackend::getComputedStyle):
  26962. (WebCore::InspectorBackend::applyStyleText):
  26963. (WebCore::InspectorBackend::setStyleText):
  26964. (WebCore::InspectorBackend::setStyleProperty):
  26965. (WebCore::InspectorBackend::toggleStyleEnabled):
  26966. (WebCore::InspectorBackend::setRuleSelector):
  26967. (WebCore::InspectorBackend::addRule):
  26968. * inspector/InspectorBackend.h:
  26969. * inspector/InspectorBackend.idl:
  26970. * inspector/InspectorDOMAgent.cpp:
  26971. (WebCore::InspectorDOMAgent::InspectorDOMAgent):
  26972. (WebCore::InspectorDOMAgent::getStyles):
  26973. (WebCore::InspectorDOMAgent::getInlineStyle):
  26974. (WebCore::InspectorDOMAgent::getComputedStyle):
  26975. (WebCore::InspectorDOMAgent::getMatchedCSSRules):
  26976. (WebCore::InspectorDOMAgent::getAttributeStyles):
  26977. (WebCore::InspectorDOMAgent::applyStyleText):
  26978. (WebCore::InspectorDOMAgent::setStyleText):
  26979. (WebCore::InspectorDOMAgent::setStyleProperty):
  26980. (WebCore::InspectorDOMAgent::toggleStyleEnabled):
  26981. (WebCore::InspectorDOMAgent::setRuleSelector):
  26982. (WebCore::InspectorDOMAgent::addRule):
  26983. (WebCore::InspectorDOMAgent::bindStyle):
  26984. (WebCore::InspectorDOMAgent::bindRule):
  26985. (WebCore::InspectorDOMAgent::buildObjectForStyle):
  26986. (WebCore::InspectorDOMAgent::populateObjectWithStyleProperties):
  26987. (WebCore::InspectorDOMAgent::buildObjectForRule):
  26988. (WebCore::InspectorDOMAgent::uniqueStyleProperties):
  26989. (WebCore::InspectorDOMAgent::longhandProperties):
  26990. (WebCore::InspectorDOMAgent::shorthandPriority):
  26991. (WebCore::InspectorDOMAgent::ruleAffectsNode):
  26992. (WebCore::InspectorDOMAgent::toArray):
  26993. * inspector/InspectorDOMAgent.h:
  26994. * inspector/InspectorFrontend.cpp:
  26995. (WebCore::InspectorFrontend::didGetEventListenersForNode):
  26996. (WebCore::InspectorFrontend::didGetStyles):
  26997. (WebCore::InspectorFrontend::didGetComputedStyle):
  26998. (WebCore::InspectorFrontend::didGetInlineStyle):
  26999. (WebCore::InspectorFrontend::didApplyStyleText):
  27000. (WebCore::InspectorFrontend::didSetStyleText):
  27001. (WebCore::InspectorFrontend::didSetStyleProperty):
  27002. (WebCore::InspectorFrontend::didToggleStyleEnabled):
  27003. (WebCore::InspectorFrontend::didSetRuleSelector):
  27004. (WebCore::InspectorFrontend::didAddRule):
  27005. * inspector/InspectorFrontend.h:
  27006. * inspector/front-end/DOMAgent.js:
  27007. (WebInspector.CSSStyleDeclaration):
  27008. * inspector/front-end/ElementsTreeOutline.js:
  27009. * inspector/front-end/InjectedScript.js:
  27010. * inspector/front-end/MetricsSidebarPane.js:
  27011. (WebInspector.MetricsSidebarPane.prototype.update):
  27012. (WebInspector.MetricsSidebarPane.prototype.editingCommitted):
  27013. * inspector/front-end/StylesSidebarPane.js:
  27014. (WebInspector.StylesSidebarPane.prototype.update):
  27015. (WebInspector.StylePropertiesSection.prototype.editingSelectorCommitted.callback):
  27016. (WebInspector.StylePropertiesSection.prototype.editingSelectorCommitted):
  27017. (WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCommitted.callback):
  27018. (WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCommitted):
  27019. (WebInspector.StylePropertyTreeElement.prototype):
  27020. (WebInspector.StylePropertyTreeElement.prototype.):
  27021. 2010-03-16 Shinichiro Hamaji <hamaji@chromium.org>
  27022. Reviewed by Darin Adler.
  27023. RenderText::m_text should be a String, not RefPtr<StringImpl>
  27024. https://bugs.webkit.org/show_bug.cgi?id=36010
  27025. Refactoring only, so no new tests.
  27026. * platform/text/PlatformString.h:
  27027. (WebCore::String::makeLower):
  27028. (WebCore::String::makeUpper):
  27029. (WebCore::String::makeSecure):
  27030. (WebCore::String::makeCapitalized):
  27031. (WebCore::String::containsOnlyASCII):
  27032. * rendering/RenderText.cpp:
  27033. (WebCore::RenderText::RenderText):
  27034. (WebCore::RenderText::widthFromCache):
  27035. (WebCore::RenderText::trimmedPrefWidths):
  27036. (WebCore::RenderText::containsOnlyWhitespace):
  27037. (WebCore::RenderText::setTextInternal):
  27038. (WebCore::RenderText::setText):
  27039. (WebCore::RenderText::previousOffset):
  27040. (WebCore::RenderText::previousOffsetForBackwardDeletion):
  27041. (WebCore::RenderText::nextOffset):
  27042. * rendering/RenderText.h:
  27043. (WebCore::RenderText::text):
  27044. (WebCore::RenderText::characters):
  27045. (WebCore::RenderText::textLength):
  27046. 2010-03-16 Adam Barth <abarth@webkit.org>
  27047. Reviewed by Darin Adler.
  27048. noscript tag should render when @sandbox disables JavaScript
  27049. https://bugs.webkit.org/show_bug.cgi?id=36092
  27050. Instead of talking to Settings directly to figure out if JavaScript is
  27051. enabled in a frame, we need to talk to the ScriptController. The
  27052. ScriptController is better at answering that question because it knows
  27053. about @sandbox.
  27054. Test: fast/frames/sandboxed-iframe-noscript.html
  27055. * dom/Document.cpp:
  27056. (WebCore::Document::Document):
  27057. * html/HTMLCanvasElement.cpp:
  27058. (WebCore::HTMLCanvasElement::createRenderer):
  27059. * html/HTMLElement.cpp:
  27060. (WebCore::HTMLElement::rendererIsNeeded):
  27061. * html/HTMLParser.cpp:
  27062. (WebCore::HTMLParser::noscriptCreateErrorCheck):
  27063. (WebCore::HTMLParser::isInline):
  27064. * plugins/PluginView.cpp:
  27065. (WebCore::PluginView::load):
  27066. 2010-03-15 John Gregg <johnnyg@google.com>
  27067. Reviewed by David Levin.
  27068. Notification object should expose absolute URL of icon
  27069. https://bugs.webkit.org/show_bug.cgi?id=35800
  27070. Covered by existing tests.
  27071. * notifications/Notification.cpp:
  27072. (WebCore::Notification::Notification):
  27073. * notifications/Notification.h:
  27074. (WebCore::Notification::iconURL):
  27075. 2010-03-15 Leandro Pereira <leandro@profusion.mobi>
  27076. Reviewed by Holger Freyther.
  27077. Add EFL port files to platform/efl.
  27078. http://webkit.org/b/35887
  27079. * platform/efl/ClipboardEfl.cpp: Added.
  27080. * platform/efl/PasteboardEfl.cpp: Added.
  27081. 2010-03-15 Kent Tamura <tkent@chromium.org>
  27082. Reviewed by Eric Seidel.
  27083. Don't submit disabled menu options.
  27084. https://bugs.webkit.org/show_bug.cgi?id=35056
  27085. Test: fast/forms/menulist-disabled-selected-option.html
  27086. * dom/OptionElement.h:
  27087. * dom/SelectElement.cpp:
  27088. (WebCore::SelectElement::appendFormData):
  27089. If a selected option is disabled, skip it.
  27090. Remove code for non-selected menulist because of compatibility with
  27091. other browsers.
  27092. 2010-03-15 Leandro Pereira <leandro@profusion.mobi>
  27093. Reviewed by Holger Freyther.
  27094. Add EFL port files to platform/efl.
  27095. http://webkit.org/b/35884
  27096. * platform/efl/FileSystemEfl.cpp: Added.
  27097. 2010-03-15 Leandro Pereira <leandro@profusion.mobi>
  27098. Reviewed by Holger Freyther.
  27099. Add EFL port files to platform/efl.
  27100. http://webkit.org/b/35882
  27101. * platform/efl/ContextMenuItemEfl.cpp: Added.
  27102. 2010-03-15 Joanmarie Diggs <joanmarie.diggs@gmail.com>
  27103. Reviewed by Holger Freyther.
  27104. https://bugs.webkit.org/show_bug.cgi?id=35502
  27105. [Gtk] Objects of ATK_ROLE_TABLE should not implement AtkText
  27106. Simple change to stop tables from implementing AtkText.
  27107. * accessibility/gtk/AccessibilityObjectAtk.cpp:
  27108. (getInterfaceMaskFromObject):
  27109. 2010-03-15 Adam Bergkvist <adam.bergkvist@ericsson.com>
  27110. Reviewed by Adam Barth.
  27111. According to the updated specification, a data field should always
  27112. result in a newline character being appended to the data buffer
  27113. regardless if the data buffer contains any data or not. However, upon
  27114. event dispatch, the last newline will be removed. This differs from an
  27115. older version of the specification where a newline character was
  27116. appended before the data value only if the buffer already contained
  27117. data. As a result, EventSource now supports receiving events with empty
  27118. data or newline characters only.
  27119. https://bugs.webkit.org/show_bug.cgi?id=33210
  27120. * page/EventSource.cpp:
  27121. (WebCore::EventSource::parseEventStreamLine):
  27122. 2010-03-15 Valters Svabe <vsvabe@gmail.com>
  27123. Reviewed by Darin Adler.
  27124. :after selector displays in wrong place with nested div
  27125. https://bugs.webkit.org/show_bug.cgi?id=32288
  27126. Make sure we don't append things after :after-generated content, if
  27127. it's inside an anonymous block.
  27128. Test: fast/css-generated-content/block-after.html
  27129. * rendering/RenderBlock.cpp:
  27130. (WebCore::RenderBlock::addChild):
  27131. 2010-03-15 Leandro Pereira <leandro@profusion.mobi>
  27132. Reviewed by Eric Seidel.
  27133. Add EFL port files to platform/efl.
  27134. http://webkit.org/b/35885
  27135. * platform/efl/KURLEfl.cpp: Added.
  27136. 2010-03-15 Chris Fleizach <cfleizach@apple.com>
  27137. Reviewed by Beth Dakin.
  27138. VO not able to perform a VO-spacebar on facebook links
  27139. https://bugs.webkit.org/show_bug.cgi?id=36132
  27140. When a label element is used as a click event handler, and it doesn't have any
  27141. corresponding control, it should handle the action itself.
  27142. Test: accessibility/label-element-press.html
  27143. * html/HTMLLabelElement.cpp:
  27144. (WebCore::HTMLLabelElement::accessKeyAction):
  27145. 2010-03-15 Cameron Zwarich <zwarich@apple.com>
  27146. Reviewed by Geoff Garen.
  27147. Bug 36135 - GCController::garbageCollectNow() crashes when called from garbage collection
  27148. <https://bugs.webkit.org/show_bug.cgi?id=36135>
  27149. <rdar://problem/7752552>
  27150. * bindings/js/GCController.cpp:
  27151. (WebCore::GCController::garbageCollectNow): Fail silently if garbage collection is
  27152. active rather than hitting the CRASH() reentrancy guard.
  27153. 2010-03-15 Simon Fraser <simon.fraser@apple.com>
  27154. Reviewed by Dan Bernstein.
  27155. Drop out of compositing mode when no elements need to composite
  27156. https://bugs.webkit.org/show_bug.cgi?id=36134
  27157. When no more elements on the page need to be composited, drop out of compositing
  27158. mode altogether, including removing the layer-backed view that hosts the layers.
  27159. * rendering/RenderLayerCompositor.cpp:
  27160. (WebCore::RenderLayerCompositor::updateCompositingLayers): If the list of child layers to attach at
  27161. the root is empty, we have no composited layers, and can drop out of compositing mode by calling
  27162. willMoveOffscreen().
  27163. (WebCore::RenderLayerCompositor::computeCompositingRequirements): In several places,
  27164. use willBeComposited rather than calling needsToBeComposited(), because it avoids
  27165. recomputing state that we know already (but assert that we're getting it right).
  27166. When we're assessing the root layer in post-order, see if we have any child layers that
  27167. are compositing, and also whether the root itself needs to composite. If neither are
  27168. true, then we can drop out of compositing mode.
  27169. (WebCore::RenderLayerCompositor::needsToBeComposited):
  27170. (WebCore::RenderLayerCompositor::requiresCompositingLayer): Move the
  27171. "inCompositingMode() && layer->isRootLayer()" test out of requiresCompositingLayer()
  27172. and into needsToBeComposited() so that we can call requiresCompositingLayer() separately
  27173. on the root layer above.
  27174. 2010-03-15 Leandro Pereira <leandro@profusion.mobi>
  27175. Reviewed by Kenneth Rohde Christiansen.
  27176. Add EFL port files to platform/efl.
  27177. http://webkit.org/b/35888
  27178. * platform/efl/SoundEfl.cpp: Added.
  27179. 2010-03-15 Andy Estes <aestes@apple.com>
  27180. Reviewed by John Sullivan.
  27181. For continuous scrolling devices on the Mac (trackpads and Mighty/Magic
  27182. Mice), set the number of wheel ticks equal to the atomic increment of
  27183. the device: a pixel. This ensures that any scrolling action will
  27184. generate at least one wheel tick, regardless of the speed/length of
  27185. the gesture.
  27186. https://bugs.webkit.org/show_bug.cgi?id=29601
  27187. <rdar://problem/7453254>
  27188. Tests: fast/events/continuous-platform-wheelevent-in-scrolling-div.html
  27189. fast/events/platform-wheelevent-in-scrolling-div.html
  27190. * platform/mac/WebCoreSystemInterface.h: Modify method signature.
  27191. * platform/mac/WebCoreSystemInterface.mm: Ditto.
  27192. * platform/mac/WheelEventMac.mm:
  27193. (WebCore::PlatformWheelEvent::PlatformWheelEvent): Call into
  27194. WebKitSystemInterface to determine both wheelTicksX/Y and deltaX/Y.
  27195. WKSI will query the event system for number of wheel ticks and
  27196. pixels/lines scrolled based on the device type.
  27197. 2010-03-15 Philippe Normand <pnormand@igalia.com>
  27198. Reviewed by Gustavo Noronha Silva.
  27199. [GStreamer] duration query optimizations
  27200. https://bugs.webkit.org/show_bug.cgi?id=36116
  27201. Don't reattempt duration queries that previously failed and cache
  27202. media duration only if it's known.
  27203. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  27204. (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
  27205. (WebCore::MediaPlayerPrivate::duration):
  27206. (WebCore::MediaPlayerPrivate::updateStates):
  27207. (WebCore::MediaPlayerPrivate::durationChanged):
  27208. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
  27209. 2010-03-11 Peter Kasting <pkasting@google.com>
  27210. Reviewed by Adam Barth.
  27211. Clean up more bits of the open-source image decoders. In addition to
  27212. simplifying things somewhat, this makes all the decoders the same in
  27213. terms of how they construct "image reader" subclasses and init scale
  27214. data.
  27215. https://bugs.webkit.org/show_bug.cgi?id=36040
  27216. No functional change, so no tests.
  27217. * platform/image-decoders/ImageDecoder.h: Reorder a few declarations to try and group/order members slightly better.
  27218. (WebCore::ImageDecoder::ImageDecoder):
  27219. * platform/image-decoders/gif/GIFImageDecoder.cpp: Move reader construction into decode(). Prep scale data in setSize(). Remove useless comment.
  27220. (WebCore::GIFImageDecoder::setData):
  27221. (WebCore::GIFImageDecoder::setSize):
  27222. (WebCore::GIFImageDecoder::frameBufferAtIndex):
  27223. (WebCore::GIFImageDecoder::decode):
  27224. * platform/image-decoders/gif/GIFImageDecoder.h: Prep scale data in setSize().
  27225. * platform/image-decoders/gif/GIFImageReader.cpp: Prep scale data in setSize().
  27226. (GIFImageReader::read):
  27227. * platform/image-decoders/ico/ICOImageDecoder.cpp: Shorten code.
  27228. (WebCore::ICOImageDecoder::setSize):
  27229. * platform/image-decoders/jpeg/JPEGImageDecoder.cpp: Fix style. Move reader construction into decode().
  27230. (WebCore::JPEGImageReader::close):
  27231. (WebCore::JPEGImageReader::skipBytes):
  27232. (WebCore::JPEGImageDecoder::decode):
  27233. * platform/image-decoders/jpeg/JPEGImageDecoder.h: Move reader construction into decode().
  27234. (WebCore::JPEGImageDecoder::filenameExtension):
  27235. * platform/image-decoders/png/PNGImageDecoder.cpp: Move reader construction into decode(). Track completion on decoder, not reader. Prep scale data in setSize(). Remove useless comment.
  27236. (WebCore::PNGImageReader::PNGImageReader):
  27237. (WebCore::PNGImageReader::close):
  27238. (WebCore::PNGImageReader::decode):
  27239. (WebCore::PNGImageDecoder::setSize):
  27240. (WebCore::PNGImageDecoder::frameBufferAtIndex):
  27241. (WebCore::PNGImageDecoder::headerAvailable):
  27242. (WebCore::PNGImageDecoder::pngComplete):
  27243. (WebCore::PNGImageDecoder::decode):
  27244. * platform/image-decoders/png/PNGImageDecoder.h: Move reader construction into decode(). Track completion on decoder, not reader. Prep scale data in setSize().
  27245. (WebCore::PNGImageDecoder::filenameExtension):
  27246. (WebCore::PNGImageDecoder::isComplete):
  27247. 2010-03-15 Philippe Normand <pnormand@igalia.com>
  27248. Reviewed by Gustavo Noronha Silva.
  27249. [GStreamer] updateStates called for all elements posting a state-change
  27250. https://bugs.webkit.org/show_bug.cgi?id=36115
  27251. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  27252. (WebCore::mediaPlayerPrivateMessageCallback): Update player state
  27253. only for state-change messages coming from playbin2 directly.
  27254. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
  27255. (WebCore::MediaPlayerPrivate::pipeline): public accessor for the
  27256. playbin element.
  27257. 2010-03-15 Jian Li <jianli@chromium.org>
  27258. Reviewed by Nate Chapin.
  27259. [v8] Add V8 bindings for DOMFormData.
  27260. https://bugs.webkit.org/show_bug.cgi?id=36026
  27261. Test: http/tests/local/send-form-data.html
  27262. * Android.v8bindings.mk:
  27263. * WebCore.gypi:
  27264. * bindings/v8/V8Index.h:
  27265. * bindings/v8/custom/V8DOMFormDataCustom.cpp: Added.
  27266. * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
  27267. (WebCore::V8XMLHttpRequest::sendCallback):
  27268. 2010-03-15 Jian Li <jianli@chromium.org>
  27269. Reviewed by Sam Weinig.
  27270. Add DOMFormData.idl to expose FormData interface.
  27271. https://bugs.webkit.org/show_bug.cgi?id=36024
  27272. The implementation is based on XMLHttpRequest 2 spec:
  27273. http://dev.w3.org/2006/webapi/XMLHttpRequest-2/#formdata
  27274. Test: http/tests/local/send-form-data.html
  27275. * Android.derived.jscbindings.mk:
  27276. * Android.derived.v8bindings.mk:
  27277. * Android.jscbindings.mk:
  27278. * DerivedSources.cpp:
  27279. * DerivedSources.make:
  27280. * GNUmakefile.am:
  27281. * WebCore.pri:
  27282. * WebCore.vcproj/WebCore.vcproj:
  27283. * WebCore.xcodeproj/project.pbxproj:
  27284. * bindings/js/JSDOMFormDataCustom.cpp: Added.
  27285. * bindings/js/JSXMLHttpRequestCustom.cpp:
  27286. (WebCore::JSXMLHttpRequest::send):
  27287. * bindings/scripts/CodeGeneratorJS.pm:
  27288. * html/DOMFormData.idl: Added.
  27289. * page/DOMWindow.idl:
  27290. 2010-03-15 Patrik Persson <patrik.j.persson@ericsson.com>
  27291. Reviewed by Darin Adler.
  27292. https://bugs.webkit.org/show_bug.cgi?id=32369
  27293. Revise iframe sandbox behavior to match the updated HTML5 spec.
  27294. - Enables window.sessionStorage in sandboxed iframes.
  27295. - Raises SECURITY_ERR exceptions when window.localStorage or
  27296. window.openDatabase() is blocked by iframe sandboxing.
  27297. Note: window.sessionStorage does not raise exceptions.
  27298. WebKit would previously return null references in these cases. The
  27299. new behavior is in accordance with HTML5:
  27300. http://dev.w3.org/html5/webstorage/ (sections 4.2 and 4.3)
  27301. http://dev.w3.org/html5/webdatabase/ (section 4.1)
  27302. http://www.mail-archive.com/whatwg@lists.whatwg.org/msg19786.html
  27303. * inspector/InspectorController.cpp:
  27304. (WebCore::InspectorController::selectDOMStorage): exception handling
  27305. * inspector/InspectorDOMStorageResource.cpp:
  27306. (WebCore::InspectorDOMStorageResource::handleEvent): exception handling
  27307. * page/DOMWindow.cpp:
  27308. (WebCore::DOMWindow::sessionStorage): re-enabled in iframe sandbox
  27309. (WebCore::DOMWindow::localStorage): raise exception rather than return null
  27310. (WebCore::DOMWindow::openDatabase): raise exception rather than return null
  27311. * page/DOMWindow.h: added exceptions to interface
  27312. * page/DOMWindow.idl: added exceptions to interface
  27313. * page/SecurityOrigin.h:
  27314. (WebCore::SecurityOrigin::canAccessLocalStorage): renamed function to reflect its purpose
  27315. * storage/StorageEventDispatcher.cpp:
  27316. (WebCore::StorageEventDispatcher::dispatch): exception handling
  27317. 2010-03-15 Alexander Pavlov <apavlov@chromium.org>
  27318. Reviewed by Timothy Hatcher.
  27319. Web Inspector: Implement a progress indicator in the Audits panel
  27320. when resources are reloading
  27321. https://bugs.webkit.org/show_bug.cgi?id=35971
  27322. * English.lproj/localizedStrings.js:
  27323. * GNUmakefile.am:
  27324. * WebCore.gypi:
  27325. * inspector/front-end/AuditLauncherView.js:
  27326. (WebInspector.AuditLauncherView.prototype.updateResourceTrackingState):
  27327. (WebInspector.AuditLauncherView.prototype.get totalResources):
  27328. (WebInspector.AuditLauncherView.prototype.set totalResources):
  27329. (WebInspector.AuditLauncherView.prototype.get loadedResources):
  27330. (WebInspector.AuditLauncherView.prototype.set loadedResources):
  27331. (WebInspector.AuditLauncherView.prototype._resetResourceCount):
  27332. (WebInspector.AuditLauncherView.prototype.resourceStarted):
  27333. (WebInspector.AuditLauncherView.prototype.resourceFinished):
  27334. (WebInspector.AuditLauncherView.prototype.reset):
  27335. (WebInspector.AuditLauncherView.prototype._setAuditRunning):
  27336. (WebInspector.AuditLauncherView.prototype._launchButtonClicked):
  27337. (WebInspector.AuditLauncherView.prototype._createCategoryElement):
  27338. (WebInspector.AuditLauncherView.prototype._createLauncherUI):
  27339. (WebInspector.AuditLauncherView.prototype._updateResourceProgress):
  27340. (WebInspector.AuditLauncherView.prototype._updateButton):
  27341. * inspector/front-end/AuditsPanel.js:
  27342. (WebInspector.AuditsPanel.prototype.resourceStarted):
  27343. (WebInspector.AuditsPanel.prototype.resourceFinished):
  27344. (WebInspector.AuditsPanel.prototype.reset):
  27345. * inspector/front-end/Images/spinner.gif: Added.
  27346. * inspector/front-end/WebKit.qrc:
  27347. * inspector/front-end/audits.css:
  27348. (.audit-launcher-view .resource-progress > img):
  27349. * inspector/front-end/inspector.js:
  27350. (WebInspector.updateResource):
  27351. 2010-03-15 Philippe Normand <pnormand@igalia.com>
  27352. Reviewed by Gustavo Noronha Silva.
  27353. [GStreamer] replace g_idle_add / g_timeout_add calls with Timers in the gstreamer player
  27354. https://bugs.webkit.org/show_bug.cgi?id=35735
  27355. Replaced g_idle_add calls with Timers immediately started once
  27356. only. The g_timeout_add was replaced by a periodic Timer.
  27357. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  27358. (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
  27359. (WebCore::MediaPlayerPrivate::~MediaPlayerPrivate):
  27360. (WebCore::MediaPlayerPrivate::volumeChangedTimerFired):
  27361. (WebCore::MediaPlayerPrivate::volumeChanged):
  27362. (WebCore::MediaPlayerPrivate::processBufferingStats):
  27363. (WebCore::MediaPlayerPrivate::fillTimerFired):
  27364. (WebCore::MediaPlayerPrivate::maxTimeLoaded):
  27365. (WebCore::MediaPlayerPrivate::updateStates):
  27366. (WebCore::MediaPlayerPrivate::muteChangedTimerFired):
  27367. (WebCore::MediaPlayerPrivate::muteChanged):
  27368. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
  27369. 2010-03-12 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  27370. Reviewed by Eric Carlson.
  27371. media/video-preload.html fails
  27372. https://bugs.webkit.org/show_bug.cgi?id=35793
  27373. Only effectively load, and start buffering when playing, or when
  27374. the preload attribute is set.
  27375. Test: media/video-preload.html
  27376. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  27377. (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
  27378. (WebCore::MediaPlayerPrivate::load):
  27379. (WebCore::MediaPlayerPrivate::commitLoad):
  27380. (WebCore::MediaPlayerPrivate::prepareToPlay):
  27381. (WebCore::MediaPlayerPrivate::setPreload):
  27382. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
  27383. 2010-03-15 Shu Chang <Chang.Shu@nokia.com>
  27384. Reviewed by Holger Freyther.
  27385. [Qt] The behavior of QGradient with no stops is defined differently from HTML5 spec,
  27386. where the latter requires the gradient to be transparent black. Explicitly added a
  27387. transparent black color stop to match the HTML5 behavior.
  27388. https://bugs.webkit.org/show_bug.cgi?id=36060
  27389. * platform/graphics/qt/GradientQt.cpp:
  27390. (WebCore::Gradient::platformGradient):
  27391. 2010-03-11 Antonio Gomes <tonikitoo@webkit.org>
  27392. Rubber-stamped by Holger Freyther.
  27393. Patch by Antonio Gomes <tonikitoo@webkit.org>
  27394. Some minor code clean ups in SpatialNavigation.cpp
  27395. * page/SpatialNavigation.cpp:
  27396. (WebCore::distanceInDirection):
  27397. (WebCore::deflateIfOverlapped):
  27398. 2010-03-13 Ilya Tikhonovsky <loislo@chromium.org>
  27399. Reviewed by Timothy Hatcher.
  27400. WebInspector: Position of GraphBar elements is calculating more carefully
  27401. and they fully visible at the bottom of Timeline panel.
  27402. http://bugs.webkit.org/show_bug.cgi?id=35966
  27403. * inspector/front-end/TimelinePanel.js:
  27404. (WebInspector.TimelineRecordGraphRow.prototype.update):
  27405. 2010-03-15 MORITA Hajime <morrita@google.com>
  27406. Reviewed by Alexey Proskuryakov.
  27407. Selection.modify extends too far with 'lineboundary'.
  27408. https://bugs.webkit.org/show_bug.cgi?id=33413
  27409. Selection.modify() with 'lineboundary' granularity implies just
  27410. "Go to the end of the line", unlike selection expansion with
  27411. other type of granularities. This change handled LineGranularity
  27412. as special case, to look-up end of line with UPSTREAM affinity.
  27413. Doing this prevents look-up algorithm to go next line.
  27414. Test: editing/selection/extend-selection-expected.txt
  27415. * dom/Position.cpp:
  27416. (WebCore::Position::getInlineBoxAndOffset):
  27417. Handled an edge case for node look-up with UPSTREAM.
  27418. * editing/SelectionController.cpp:
  27419. (WebCore::SelectionController::modifyExtendingForward):
  27420. Added UPSTREAM tweak for the case for LineGranularity.
  27421. 2010-03-14 Yuzo Fujishima <yuzo@google.com>
  27422. Reviewed by Shinichiro Hamaji.
  27423. Always call PrintContext.end() from PrintContext::pageNumberForElement().
  27424. Without this change, WebKit remains in printing mode after determining the page number if the specified element is found.
  27425. https://bugs.webkit.org/show_bug.cgi?id=36049
  27426. Test: printing/return-from-printing-mode.html
  27427. * page/PrintContext.cpp:
  27428. (WebCore::PrintContext::pageNumberForElement):
  27429. 2010-03-11 Philippe Normand <pnormand@igalia.com>
  27430. Reviewed by Gustavo Noronha Silva.
  27431. [GStreamer] progressTimer never stopped after EOS
  27432. https://bugs.webkit.org/show_bug.cgi?id=36007
  27433. Mark the pipeline as paused only if playback hasn't ended
  27434. yet. When didEnd() is triggered, the pipeline is paused (but
  27435. paused() still returns false) and a timeupdate event is fired,
  27436. those 2 conditions allow the HTMLMediaElement to stop the
  27437. progressTimer (in updatePlayerState, via mediaPlayerTimeChanged).
  27438. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  27439. (WebCore::MediaPlayerPrivate::updateStates):
  27440. 2010-03-14 Chang Shu <chang.shu@nokia.com>
  27441. Reviewed by Simon Hausmann.
  27442. [Qt] [Symbian] Added block for ENABLE_SYMBIAN_DIALOG_PROVIDERS
  27443. on Symbian platform.
  27444. https://bugs.webkit.org/show_bug.cgi?id=35919
  27445. * WebCore.pro:
  27446. 2010-03-14 Yael Aharon <yael.aharon@nokia.com>
  27447. Reviewed by Darin Adler.
  27448. Support for HTMLProgressElement
  27449. https://bugs.webkit.org/show_bug.cgi?id=35937
  27450. Added support for HTMLProgressElement.
  27451. This implementation is enabled only for Qt, because only RenderThemeQt
  27452. was modified to actually draw the progress element.
  27453. The labels attribute of the progress element will be implemented in a
  27454. separate patch.
  27455. Tests: fast/dom/HTMLProgressElement/progress-element.html
  27456. fast/dom/HTMLProgressElement/set-progress-properties.html
  27457. * DerivedSources.cpp:
  27458. * DerivedSources.make:
  27459. * GNUmakefile.am:
  27460. * WebCore.gypi:
  27461. * WebCore.pri:
  27462. * WebCore.pro:
  27463. * WebCore.vcproj/WebCore.vcproj:
  27464. * WebCore.xcodeproj/project.pbxproj:
  27465. * css/CSSPrimitiveValueMappings.h:
  27466. (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
  27467. * css/CSSSelector.cpp:
  27468. (WebCore::CSSSelector::extractPseudoType):
  27469. * css/CSSValueKeywords.in:
  27470. * css/html.css:
  27471. * html/HTMLElement.cpp:
  27472. (WebCore::inlineTagList):
  27473. * html/HTMLElementsAllInOne.cpp:
  27474. * html/HTMLFormControlElement.cpp:
  27475. (WebCore::HTMLFormControlElement::HTMLFormControlElement):
  27476. * html/HTMLFormControlElement.h:
  27477. * html/HTMLProgressElement.cpp: Added.
  27478. (WebCore::HTMLProgressElement::HTMLProgressElement):
  27479. (WebCore::HTMLProgressElement::create):
  27480. (WebCore::HTMLProgressElement::createRenderer):
  27481. (WebCore::HTMLProgressElement::formControlType):
  27482. (WebCore::HTMLProgressElement::parseMappedAttribute):
  27483. (WebCore::HTMLProgressElement::value):
  27484. (WebCore::HTMLProgressElement::setValue):
  27485. (WebCore::HTMLProgressElement::max):
  27486. (WebCore::HTMLProgressElement::setMax):
  27487. (WebCore::HTMLProgressElement::position):
  27488. * html/HTMLProgressElement.h: Added.
  27489. (WebCore::HTMLProgressElement::isOptionalFormControl):
  27490. * html/HTMLProgressElement.idl: Added.
  27491. * html/HTMLTagNames.in:
  27492. * page/DOMWindow.idl:
  27493. * platform/ThemeTypes.h:
  27494. * platform/qt/RenderThemeQt.cpp:
  27495. (WebCore::RenderThemeQt::adjustProgressBarStyle):
  27496. (WebCore::RenderThemeQt::paintProgressBar):
  27497. * platform/qt/RenderThemeQt.h:
  27498. * rendering/RenderObject.h:
  27499. (WebCore::RenderObject::isProgress):
  27500. * rendering/RenderProgress.cpp: Added.
  27501. (WebCore::RenderProgress::RenderProgress):
  27502. (WebCore::RenderProgress::baselinePosition):
  27503. (WebCore::RenderProgress::calcPrefWidths):
  27504. (WebCore::RenderProgress::layout):
  27505. (WebCore::RenderProgress::updateFromElement):
  27506. * rendering/RenderProgress.h: Added.
  27507. (WebCore::RenderProgress::renderName):
  27508. (WebCore::RenderProgress::isProgress):
  27509. (WebCore::toRenderProgress):
  27510. * rendering/RenderTheme.cpp:
  27511. (WebCore::RenderTheme::adjustStyle):
  27512. (WebCore::RenderTheme::paint):
  27513. (WebCore::RenderTheme::paintBorderOnly):
  27514. (WebCore::RenderTheme::paintDecorations):
  27515. (WebCore::RenderTheme::adjustProgressBarStyle):
  27516. * rendering/RenderTheme.h:
  27517. (WebCore::RenderTheme::paintProgressBar):
  27518. 2010-03-14 Oliver Hunt <oliver@apple.com>
  27519. Reviewed by Darin Adler.
  27520. REGRESSION(r53287): drop event is not fired if dataTransfer.dropEffect is not explicitly set
  27521. https://bugs.webkit.org/show_bug.cgi?id=36095
  27522. The issue here is that while dropEffect is meant to be initialized
  27523. to "none", the behaviour of the drag is differs between dragEffect
  27524. not being set and dragEffect being explicitly set to "none"
  27525. This patch corrects this behaviour by making Clipboard distinguish
  27526. between the initial "none" value of dropEffect and an explicit "none".
  27527. This alone is insufficient for correct behaviour, we also need to
  27528. resurrect the removed defaultOperationForDrag function, but we now
  27529. use the function only when dragEffect is uninitialized. There are a
  27530. few tweaks to the behaviour of the defaultOperationForDrag as well
  27531. to ensure exactly the same set of outcomes for all cases that we
  27532. may hit it.
  27533. * dom/Clipboard.cpp:
  27534. (WebCore::Clipboard::Clipboard):
  27535. (WebCore::dragOpFromIEOp):
  27536. (WebCore::Clipboard::destinationOperation):
  27537. * dom/Clipboard.h:
  27538. (WebCore::Clipboard::dropEffect):
  27539. (WebCore::Clipboard::dropEffectIsUninitialized):
  27540. * page/DragController.cpp:
  27541. (WebCore::defaultOperationForDrag):
  27542. (WebCore::DragController::tryDHTMLDrag):
  27543. 2010-03-14 Antti Koivisto <koivisto@iki.fi>
  27544. Reviewed by Simon Hausmann.
  27545. https://bugs.webkit.org/show_bug.cgi?id=35146
  27546. Support tiled backing store
  27547. Implements a basic tiled backing store mechanism. Tiles are created and
  27548. deleted on demand. The page content is cached to the tiles. Tile content
  27549. is kept in sync with the document. Since the backing store covers area
  27550. larger than the currently visible viewport, the document can be scrolled
  27551. quickly without having to enter rendering tree painting.
  27552. The tile management code is platform independent. This patch has simple QPixmap
  27553. based tile implementation for Qt.
  27554. The feature is behind ENABLE_TILED_BACKING_STORE flag.
  27555. * WebCore.pri:
  27556. * WebCore.pro:
  27557. * page/Frame.cpp:
  27558. (WebCore::Frame::Frame):
  27559. (WebCore::Frame::setTiledBackingStoreEnabled):
  27560. (WebCore::Frame::tiledBackingStorePaintBegin):
  27561. (WebCore::Frame::tiledBackingStorePaint):
  27562. (WebCore::Frame::tiledBackingStorePaintEnd):
  27563. (WebCore::Frame::tiledBackingStoreContentsRect):
  27564. * page/Frame.h:
  27565. (WebCore::Frame::tiledBackingStore):
  27566. * page/FrameView.cpp:
  27567. (WebCore::FrameView::repaintContentRectangle):
  27568. (WebCore::FrameView::doDeferredRepaints):
  27569. * page/Settings.cpp:
  27570. (WebCore::Settings::Settings):
  27571. (WebCore::Settings::setTiledBackingStoreEnabled):
  27572. * page/Settings.h:
  27573. (WebCore::Settings::tiledBackingStoreEnabled):
  27574. * platform/graphics/Tile.h: Added.
  27575. (WebCore::Tile::create):
  27576. (WebCore::Tile::coordinate):
  27577. (WebCore::Tile::rect):
  27578. * platform/graphics/TiledBackingStore.cpp: Added.
  27579. (WebCore::TiledBackingStore::TiledBackingStore):
  27580. (WebCore::TiledBackingStore::~TiledBackingStore):
  27581. (WebCore::TiledBackingStore::invalidate):
  27582. (WebCore::TiledBackingStore::updateTileBuffers):
  27583. (WebCore::TiledBackingStore::paint):
  27584. (WebCore::TiledBackingStore::viewportChanged):
  27585. (WebCore::TiledBackingStore::setContentsScale):
  27586. (WebCore::TiledBackingStore::tileDistance):
  27587. (WebCore::TiledBackingStore::createTiles):
  27588. (WebCore::TiledBackingStore::dropOverhangingTiles):
  27589. (WebCore::TiledBackingStore::dropTilesOutsideRect):
  27590. (WebCore::TiledBackingStore::tileAt):
  27591. (WebCore::TiledBackingStore::setTile):
  27592. (WebCore::TiledBackingStore::removeTile):
  27593. (WebCore::TiledBackingStore::mapToContents):
  27594. (WebCore::TiledBackingStore::mapFromContents):
  27595. (WebCore::TiledBackingStore::contentsRect):
  27596. (WebCore::TiledBackingStore::tileRectForCoordinate):
  27597. (WebCore::TiledBackingStore::tileCoordinateForPoint):
  27598. (WebCore::TiledBackingStore::startTileBufferUpdateTimer):
  27599. (WebCore::TiledBackingStore::tileBufferUpdateTimerFired):
  27600. (WebCore::TiledBackingStore::startTileCreationTimer):
  27601. (WebCore::TiledBackingStore::tileCreationTimerFired):
  27602. (WebCore::TiledBackingStore::setContentsFrozen):
  27603. * platform/graphics/TiledBackingStore.h: Added.
  27604. (WebCore::TiledBackingStore::contentsScale):
  27605. (WebCore::TiledBackingStore::contentsFrozen):
  27606. * platform/graphics/TiledBackingStoreClient.h: Added.
  27607. * platform/graphics/qt/TileQt.cpp: Added.
  27608. (WebCore::checkeredPixmap):
  27609. (WebCore::Tile::Tile):
  27610. (WebCore::Tile::~Tile):
  27611. (WebCore::Tile::isDirty):
  27612. (WebCore::Tile::isReadyToPaint):
  27613. (WebCore::Tile::invalidate):
  27614. (WebCore::Tile::updateBackBuffer):
  27615. (WebCore::Tile::swapBackBufferToFront):
  27616. (WebCore::Tile::paint):
  27617. (WebCore::Tile::paintCheckerPattern):
  27618. 2010-03-14 Dan Bernstein <mitz@apple.com>
  27619. Reviewed by Darin Adler.
  27620. WebCore part of removing support for legacy versions of Core Graphics
  27621. * WebCore.vcproj/WebCore.vcproj: Removed FontDatabase.{cpp,h}
  27622. * platform/graphics/win/FontCGWin.cpp:
  27623. (WebCore::Font::drawGlyphs): Removed call to wkCanCreateCGFontWithLOGFONT(),
  27624. as it is now always true.
  27625. * platform/graphics/win/FontCacheWin.cpp:
  27626. (WebCore::FontCache::createFontPlatformData): Ditto.
  27627. * platform/graphics/win/FontCustomPlatformData.cpp:
  27628. (WebCore::FontCustomPlatformData::~FontCustomPlatformData): Updated for
  27629. the removal of m_cgFont.
  27630. (WebCore::FontCustomPlatformData::fontPlatformData): Removed call to
  27631. wkCanCreateCGFontWithLOGFONT(), as it is now always true.
  27632. (WebCore::createFontCustomPlatformData): Ditto. Also updated for change to
  27633. the FontCustomPlatformData constructor.
  27634. * platform/graphics/win/FontCustomPlatformData.h: Removed m_cgFont member.
  27635. (WebCore::FontCustomPlatformData::FontCustomPlatformData): Removed cgFont
  27636. parameter.
  27637. * platform/graphics/win/FontDatabase.cpp: Removed.
  27638. * platform/graphics/win/FontDatabase.h: Removed.
  27639. * platform/graphics/win/FontPlatformDataCGWin.cpp:
  27640. (WebCore::FontPlatformData::platformDataInit): Removed call to
  27641. wkCanCreateCGFontWithLOGFONT(), as it is now always true.
  27642. * platform/win/TemporaryLinkStubs.cpp:
  27643. (WebCore::populateFontDatabase): Removed stub.
  27644. 2010-03-14 Jessie Berlin <jberlin@webkit.org>
  27645. Reviewed by Sam Weinig.
  27646. "event.ctrlKey" is always false when dragging an element with "ctrl" key down
  27647. https://bugs.webkit.org/show_bug.cgi?id=17113
  27648. No new tests.
  27649. * page/DragController.cpp:
  27650. (WebCore::createMouseEvent):
  27651. Use the current state of the shift, ctrl, alt, and meta keys when creating the drag mouse event.
  27652. 2010-03-13 Antonio Gomes <tonikitoo@webkit.org>
  27653. Not reviewed identation fix.
  27654. * manual-tests/spatial-navigation/spatial-navigation-test-cases.html:
  27655. 2010-03-13 Kim Grönholm <kim.gronholm@nomovok.com>
  27656. Reviewed by Kenneth Rohde Christiansen.
  27657. [Qt] GraphicsLayer: Opacity change from zero to non-zero doesn't always have effect with AC
  27658. https://bugs.webkit.org/show_bug.cgi?id=36034
  27659. * platform/graphics/qt/GraphicsLayerQt.cpp:
  27660. (WebCore::OpacityAnimationQt::applyFrame):
  27661. 2010-03-13 Kim Grönholm <kim.gronholm@nomovok.com>
  27662. Reviewed by Kenneth Rohde Christiansen.
  27663. [Qt] GraphicsLayer: Opacity transitions end with begin value
  27664. https://bugs.webkit.org/show_bug.cgi?id=36019
  27665. * platform/graphics/qt/GraphicsLayerQt.cpp:
  27666. (WebCore::AnimationQt::updateCurrentTime):
  27667. 2010-03-13 Dirk Schulze <krit@webkit.org>
  27668. No review, rolling out r55927.
  27669. http://trac.webkit.org/changeset/55927
  27670. https://bugs.webkit.org/show_bug.cgi?id=35793
  27671. Breaks Gtk build bots.
  27672. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  27673. (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
  27674. (WebCore::MediaPlayerPrivate::load):
  27675. (WebCore::MediaPlayerPrivate::setPreload):
  27676. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
  27677. 2010-03-12 Dirk Schulze <krit@webkit.org>
  27678. Reviewed by Nikolas Zimmermann.
  27679. SVG Glyphs - transform path not context
  27680. https://bugs.webkit.org/show_bug.cgi?id=36070
  27681. SVGFont should transform the path of a glyph, not the context. Modifying
  27682. the context causes wrong gradient transformations. This bug doesn't
  27683. influence CG because we generally fill or stroke texts with a mask image.
  27684. All other platforms provide a direct way to make the drawings.
  27685. * svg/SVGFont.cpp:
  27686. (WebCore::Font::drawTextUsingSVGFont):
  27687. 2010-03-12 Beth Dakin <bdakin@apple.com>
  27688. Reviewed by Simon Fraser.
  27689. Fix for https://bugs.webkit.org/show_bug.cgi?id=34942 Fullscreen
  27690. API naming is inconsistent
  27691. -and corresponding-
  27692. <rdar://problem/7729165>
  27693. This patch changes all occurrences of "fullScreen" to the more
  27694. popular "fullscreen." webkitEnterFullScreen and
  27695. webkitExitFullScreen have been maintained for now for backwards
  27696. compatibility.
  27697. * html/HTMLVideoElement.cpp:
  27698. (WebCore::HTMLVideoElement::webkitEnterFullscreen):
  27699. (WebCore::HTMLVideoElement::webkitExitFullscreen):
  27700. * html/HTMLVideoElement.h:
  27701. (WebCore::HTMLVideoElement::webkitEnterFullScreen):
  27702. (WebCore::HTMLVideoElement::webkitExitFullScreen):
  27703. * html/HTMLVideoElement.idl:
  27704. * platform/graphics/mac/MediaPlayerProxy.h:
  27705. 2010-03-12 James Robinson <jamesr@chromium.org>
  27706. Reviewed by Adam Barth.
  27707. Add virtual destructor to DOMWrapperWorld
  27708. https://bugs.webkit.org/show_bug.cgi?id=36077
  27709. DOMWrapperWorld is RefCounted<DOMWrapperWorld>. IsolatedWorld
  27710. inherits from DOMWrapperWorld and has member variables
  27711. with destructors, so DOMWrapperWorld needs to have a declared virtual
  27712. d'tor to ensure that its derived class's destructors are called.
  27713. No new tests, no change in behavior
  27714. * bindings/v8/DOMWrapperWorld.h:
  27715. (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
  27716. 2010-03-11 Gavin Barraclough <barraclough@apple.com>
  27717. Reviewed by Oliver Hunt.
  27718. Bug 36075 - Clean up screwyness re static string impls & Identifiers.
  27719. * platform/text/StringImpl.cpp:
  27720. (WebCore::StringImpl::~StringImpl): Add ASSERT
  27721. (WebCore::StringImpl::sharedBuffer): Add ASSERT
  27722. * platform/text/StringImpl.h:
  27723. (WebCore::StringImpl::setHash): Add ASSERT
  27724. (WebCore::StringImpl::isStatic): added.
  27725. 2010-03-12 Enrica Casucci <enrica@apple.com>
  27726. Reviewed by Simon Fraser.
  27727. Content of 3D tests appears at the bottom right corner sometimes.
  27728. <rdar://problem/7556244>
  27729. <https://bugs.webkit.org/show_bug.cgi?id=36027>
  27730. There were two problems to solve here:
  27731. - the incorrect anchoring of the rootChildLayer that was causing the composited
  27732. content to be positioned incorrectly
  27733. - the failure to paint the non composited content into the backing store when
  27734. animating composited content.
  27735. The first problem has been solved by leaving the original anchor point for the
  27736. rootChildLayer and splitting the tasks of clipping and scrolling using two separate layers.
  27737. The second problem has been solved leveraging the knowledge that WebView has of the dirty region
  27738. of the backing store to pass this information to the layer renderer. This allows the renderer to force
  27739. a paint into the backing store before moving to the compositing.
  27740. Tests: compositing/geometry/horizontal-scroll-composited.html
  27741. compositing/geometry/vertical-scroll-composited.html
  27742. * manual-tests/win/horizontal-scroll-composited.html: Removed. This is now a layout test.
  27743. * manual-tests/win/milliondollar.html: Added.
  27744. * platform/graphics/win/WKCACFLayerRenderer.cpp:
  27745. (WebCore::WKCACFLayerRenderer::WKCACFLayerRenderer): Added initialization of dirty flag.
  27746. (WebCore::WKCACFLayerRenderer::setScrollFrame):
  27747. (WebCore::WKCACFLayerRenderer::updateScrollFrame): Updated to resize and position the clip and scroll layers.
  27748. (WebCore::WKCACFLayerRenderer::setRootChildLayer):
  27749. (WebCore::WKCACFLayerRenderer::createRenderer): Added new layer hierarchy.
  27750. (WebCore::WKCACFLayerRenderer::destroyRenderer): Remove clip layer on destroy.
  27751. (WebCore::WKCACFLayerRenderer::resize):
  27752. (WebCore::WKCACFLayerRenderer::paint): Forcing paint massage to trigger paint into the backing store.
  27753. * platform/graphics/win/WKCACFLayerRenderer.h:
  27754. (WebCore::WKCACFLayerRenderer::setBackingStoreDirty): Added.
  27755. 2010-03-12 Robert Hogan <robert@webkit.org>
  27756. Not reviewed, build fix.
  27757. Revert http://trac.webkit.org/projects/webkit/changeset/55374 which broke
  27758. the !ENABLE(DATABASE) build on all platforms when attempting to fix the
  27759. --minimal build on Qt.
  27760. Support for SQLite now seems to be non-negotiable for the Qt build but making
  27761. it mandatory requires review, so re-break --minimal Qt build for now.
  27762. Qt build issue now tracked at https://bugs.webkit.org/show_bug.cgi?id=36073
  27763. * page/GeolocationPositionCache.cpp:
  27764. 2010-03-12 Dan Bernstein <mitz@apple.com>
  27765. Reviewed by Alexey Proskuryakov.
  27766. <rdar://problem/7709115> REGRESSION: toolbar is missing at http://www.glom.org/
  27767. https://bugs.webkit.org/show_bug.cgi?id=35507
  27768. * css/CSSImportRule.cpp:
  27769. (WebCore::CSSImportRule::setCSSStyleSheet): Extend the change made in
  27770. <http://trac.webkit.org/changeset/48818> to detect the two variants of
  27771. KHTMLFixes.css in @import rules as well as in <link> elements.
  27772. 2010-03-12 Gavin Barraclough <barraclough@apple.com>
  27773. Reviewed by Geoff Garen.
  27774. Bug 36052 - [Qt] REGRESSION(55878) 63 test cases crash
  27775. r55878 changed UStringImpl::empty()->characters() to be non-null,
  27776. so TextBreakIteratorQt.cpp now should check the length of strings
  27777. (previously was assuming all strings with a non-null data pointer
  27778. had a length of at least 1).
  27779. * platform/text/qt/TextBreakIteratorQt.cpp:
  27780. (WebCore::wordBreakIterator):
  27781. (WebCore::characterBreakIterator):
  27782. (WebCore::lineBreakIterator):
  27783. (WebCore::sentenceBreakIterator):
  27784. 2010-03-12 Dirk Schulze <krit@webkit.org>
  27785. Reviewed by Nikolas Zimmermann.
  27786. SVG fallback color doesn't work for bogus gradients.
  27787. https://bugs.webkit.org/show_bug.cgi?id=35479
  27788. Use a given fallback color on ignored gradients if present. Gradients
  27789. must be ignored, if one dimension of the objects boundingBox is zero.
  27790. Test: svg/custom/gradient-with-1d-boundingbox.svg
  27791. * svg/graphics/SVGPaintServer.cpp:
  27792. (WebCore::SVGPaintServer::strokePaintServer):
  27793. * svg/graphics/SVGPaintServerGradient.cpp:
  27794. (WebCore::SVGPaintServerGradient::setup):
  27795. 2010-03-12 David Hyatt <hyatt@apple.com>
  27796. Reviewed by Dan Bernstein.
  27797. https://bugs.webkit.org/show_bug.cgi?id=36069
  27798. Eliminate InlineRunBox.
  27799. * WebCore.xcodeproj/project.pbxproj:
  27800. * rendering/InlineFlowBox.cpp:
  27801. (WebCore::InlineFlowBox::adjustPosition):
  27802. (WebCore::InlineFlowBox::paintFillLayer):
  27803. (WebCore::InlineFlowBox::paintBoxDecorations):
  27804. (WebCore::InlineFlowBox::paintMask):
  27805. * rendering/InlineFlowBox.h:
  27806. (WebCore::InlineFlowBox::InlineFlowBox):
  27807. (WebCore::InlineFlowBox::prevLineBox):
  27808. (WebCore::InlineFlowBox::nextLineBox):
  27809. (WebCore::InlineFlowBox::setNextLineBox):
  27810. (WebCore::InlineFlowBox::setPreviousLineBox):
  27811. * rendering/InlineRunBox.h: Removed.
  27812. * rendering/InlineTextBox.h:
  27813. (WebCore::InlineTextBox::InlineTextBox):
  27814. (WebCore::InlineTextBox::prevTextBox):
  27815. (WebCore::InlineTextBox::nextTextBox):
  27816. (WebCore::InlineTextBox::setNextTextBox):
  27817. (WebCore::InlineTextBox::setPreviousTextBox):
  27818. * rendering/RenderBlock.cpp:
  27819. (WebCore::RenderBlock::destroy):
  27820. (WebCore::RenderBlock::rightmostPosition):
  27821. (WebCore::RenderBlock::leftmostPosition):
  27822. * rendering/RenderInline.cpp:
  27823. (WebCore::RenderInline::destroy):
  27824. (WebCore::RenderInline::absoluteRects):
  27825. (WebCore::RenderInline::absoluteQuads):
  27826. (WebCore::RenderInline::linesBoundingBox):
  27827. (WebCore::RenderInline::linesVisibleOverflowBoundingBox):
  27828. (WebCore::RenderInline::addFocusRingRects):
  27829. (WebCore::RenderInline::paintOutline):
  27830. * rendering/RenderLayer.cpp:
  27831. (WebCore::RenderLayer::localBoundingBox):
  27832. * rendering/RenderLineBoxList.cpp:
  27833. (WebCore::RenderLineBoxList::deleteLineBoxTree):
  27834. (WebCore::RenderLineBoxList::extractLineBox):
  27835. (WebCore::RenderLineBoxList::attachLineBox):
  27836. (WebCore::RenderLineBoxList::removeLineBox):
  27837. (WebCore::RenderLineBoxList::deleteLineBoxes):
  27838. (WebCore::RenderLineBoxList::dirtyLineBoxes):
  27839. (WebCore::RenderLineBoxList::paint):
  27840. (WebCore::RenderLineBoxList::hitTest):
  27841. (WebCore::RenderLineBoxList::dirtyLinesFromChangedChild):
  27842. (WebCore::RenderLineBoxList::checkConsistency):
  27843. * rendering/RenderSVGInline.cpp:
  27844. (WebCore::RenderSVGInline::absoluteRects):
  27845. (WebCore::RenderSVGInline::absoluteQuads):
  27846. * rendering/RenderSVGText.cpp:
  27847. (WebCore::RenderSVGText::absoluteRects):
  27848. (WebCore::RenderSVGText::absoluteQuads):
  27849. (WebCore::RenderSVGText::objectBoundingBox):
  27850. * rendering/RenderText.cpp:
  27851. (WebCore::RenderText::extractTextBox):
  27852. (WebCore::RenderText::attachTextBox):
  27853. (WebCore::RenderText::removeTextBox):
  27854. (WebCore::RenderText::createInlineTextBox):
  27855. (WebCore::RenderText::positionLineBox):
  27856. * rendering/RootInlineBox.h:
  27857. (WebCore::RootInlineBox::nextRootBox):
  27858. (WebCore::RootInlineBox::prevRootBox):
  27859. 2010-03-12 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  27860. Reviewed by Eric Carlson.
  27861. media/video-preload.html fails
  27862. https://bugs.webkit.org/show_bug.cgi?id=35793
  27863. Only effectively load, and start buffering when playing, or when
  27864. the preload attribute is set.
  27865. Test: media/video-preload.html
  27866. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  27867. (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
  27868. (WebCore::MediaPlayerPrivate::load):
  27869. (WebCore::MediaPlayerPrivate::commitLoad):
  27870. (WebCore::MediaPlayerPrivate::prepareToPlay):
  27871. (WebCore::MediaPlayerPrivate::setPreload):
  27872. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
  27873. 2010-03-12 Dmitry Titov <dimich@chromium.org>
  27874. Not reviewed, build fix.
  27875. Reverts 55920 and 55921. Landing for Jian Li.
  27876. * Android.derived.jscbindings.mk:
  27877. * Android.derived.v8bindings.mk:
  27878. * DerivedSources.cpp:
  27879. * DerivedSources.make:
  27880. * GNUmakefile.am:
  27881. * WebCore.gypi:
  27882. * WebCore.pri:
  27883. * WebCore.vcproj/WebCore.vcproj:
  27884. * WebCore.xcodeproj/project.pbxproj:
  27885. * bindings/js/JSDOMFormDataCustom.cpp: Removed.
  27886. * bindings/js/JSXMLHttpRequestCustom.cpp:
  27887. (WebCore::JSXMLHttpRequest::send):
  27888. * bindings/scripts/CodeGeneratorJS.pm:
  27889. * bindings/v8/V8Index.h:
  27890. * bindings/v8/custom/V8DOMFormDataCustom.cpp: Removed.
  27891. * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
  27892. (WebCore::V8XMLHttpRequest::sendCallback):
  27893. * html/DOMFormData.idl: Removed.
  27894. * page/DOMWindow.idl:
  27895. 2010-03-12 Jakob Petsovits <jpetsovits@rim.com>
  27896. Reviewed by Dirk Schulze.
  27897. [OpenVG] Add support for drawing text to PainterOpenVG
  27898. https://bugs.webkit.org/show_bug.cgi?id=35581
  27899. Doesn't come with any actual font classes, as OpenVG
  27900. by itself doesn't provide any access to platform fonts
  27901. but just the means to draw glyphs that have been loaded
  27902. manually before.
  27903. * platform/graphics/openvg/PainterOpenVG.cpp:
  27904. (WebCore::PlatformPainterState::PlatformPainterState):
  27905. (WebCore::PlatformPainterState::copyPaintState):
  27906. (WebCore::PainterOpenVG::textDrawingMode):
  27907. (WebCore::PainterOpenVG::setTextDrawingMode):
  27908. (WebCore::PainterOpenVG::drawText):
  27909. * platform/graphics/openvg/PainterOpenVG.h:
  27910. 2010-03-12 Jakob Petsovits <jpetsovits@rim.com>
  27911. Reviewed by Dirk Schulze.
  27912. [OpenVG] Use masks to implement non-rectilinear clipping
  27913. https://bugs.webkit.org/show_bug.cgi?id=35544
  27914. Requires some additional context switching logic to
  27915. make sure the right context is current when dealing
  27916. with the mask, because we don't store it by ourselves.
  27917. Initial version of this code was written by
  27918. Eli Fidler <efidler@rim.com>, I did a couple of
  27919. bug fixes and efficiency improvements since then.
  27920. * platform/graphics/openvg/GraphicsContextOpenVG.cpp:
  27921. (WebCore::GraphicsContext::clipPath):
  27922. (WebCore::GraphicsContext::clip):
  27923. (WebCore::GraphicsContext::clipOut):
  27924. (WebCore::GraphicsContext::clipOutEllipseInRect):
  27925. (WebCore::GraphicsContext::addInnerRoundedRectClip):
  27926. * platform/graphics/openvg/PainterOpenVG.cpp:
  27927. (WebCore::PlatformPainterState::PlatformPainterState):
  27928. (WebCore::PlatformPainterState::~PlatformPainterState):
  27929. (WebCore::PlatformPainterState::maskingEnabled):
  27930. (WebCore::PlatformPainterState::applyState):
  27931. (WebCore::PlatformPainterState::saveMaskIfNecessary):
  27932. (WebCore::PainterOpenVG::intersectClipRect):
  27933. (WebCore::PainterOpenVG::clipPath):
  27934. (WebCore::PainterOpenVG::save):
  27935. * platform/graphics/openvg/PainterOpenVG.h:
  27936. (WebCore::PainterOpenVG::):
  27937. * platform/graphics/openvg/SurfaceOpenVG.cpp:
  27938. (WebCore::SurfaceOpenVG::makeCurrent):
  27939. (WebCore::SurfaceOpenVG::makeCompatibleCurrent):
  27940. * platform/graphics/openvg/SurfaceOpenVG.h:
  27941. (WebCore::SurfaceOpenVG::):
  27942. 2010-03-12 Jian Li <jianli@chromium.org>
  27943. Reviewed by Sam Weinig.
  27944. Add DOMFormData.idl to expose FormData interface.
  27945. https://bugs.webkit.org/show_bug.cgi?id=36024
  27946. The implementation is based on XMLHttpRequest 2 spec:
  27947. http://dev.w3.org/2006/webapi/XMLHttpRequest-2/#formdata
  27948. Test: http/tests/local/send-form-data.html
  27949. * Android.derived.jscbindings.mk:
  27950. * Android.derived.v8bindings.mk:
  27951. * DerivedSources.cpp:
  27952. * DerivedSources.make:
  27953. * GNUmakefile.am:
  27954. * WebCore.pri:
  27955. * WebCore.vcproj/WebCore.vcproj:
  27956. * WebCore.xcodeproj/project.pbxproj:
  27957. * bindings/js/JSDOMFormDataCustom.cpp: Added.
  27958. * bindings/js/JSXMLHttpRequestCustom.cpp:
  27959. (WebCore::JSXMLHttpRequest::send):
  27960. * bindings/scripts/CodeGeneratorJS.pm:
  27961. * html/DOMFormData.idl: Added.
  27962. * page/DOMWindow.idl:
  27963. 2010-03-12 Jakob Petsovits <jpetsovits@rim.com>
  27964. Reviewed by Dirk Schulze.
  27965. [OpenVG] Add a SurfaceOpenVG constructor for EGL client buffer surfaces
  27966. https://bugs.webkit.org/show_bug.cgi?id=35538
  27967. SurfaceOpenVG can now not only encapsulate pbuffer
  27968. and window surfaces but also VGImage-based ones.
  27969. * platform/graphics/openvg/EGLDisplayOpenVG.cpp:
  27970. (WebCore::EGLDisplayOpenVG::createPbufferFromClientBuffer):
  27971. * platform/graphics/openvg/EGLDisplayOpenVG.h:
  27972. * platform/graphics/openvg/SurfaceOpenVG.cpp:
  27973. (WebCore::SurfaceOpenVG::SurfaceOpenVG):
  27974. * platform/graphics/openvg/SurfaceOpenVG.h:
  27975. 2010-03-12 Alpha Lam <hclam@chromium.org>
  27976. Reviewed by Eric Carlson.
  27977. Fix a crash when resource loading of media element is canceled.
  27978. https://bugs.webkit.org/show_bug.cgi?id=35992
  27979. Use of HTMLMediaElement::duration() after resource loading was canceled
  27980. will cause a crash. This is because HTMLMediaElement::m_player is used
  27981. when NULL.
  27982. Test: http/tests/media/video-cancel-load.html
  27983. * html/HTMLMediaElement.cpp:
  27984. (WebCore::HTMLMediaElement::duration):
  27985. Avoid calling to m_player when it is null.
  27986. (WebCore::HTMLMediaElement::userCancelledLoad):
  27987. Set m_readyState to HAVE_NOTHING.
  27988. 2010-03-12 Dan Bernstein <mitz@apple.com>
  27989. Reviewed by Darin Adler.
  27990. <rdar://problem/7725534> CSSPrimitiveValue::parserValue() returns deleted memory
  27991. https://bugs.webkit.org/show_bug.cgi?id=20069
  27992. No test added, since with the CSS variables feature disabled, the pointer
  27993. to the freed memory is never dereferenced.
  27994. * css/CSSPrimitiveValue.cpp:
  27995. (WebCore::valueOrPropertyName): Changed to return a const AtomicString& from
  27996. a static table.
  27997. (WebCore::CSSPrimitiveValue::parserValue): Updated for the above change.
  27998. 2010-03-12 Dan Bernstein <mitz@apple.com>
  27999. Build fix.
  28000. * platform/chromium/PlatformKeyboardEventChromium.cpp:
  28001. 2010-03-12 Dan Bernstein <mitz@apple.com>
  28002. Reviewed by Darin Adler.
  28003. <rdar://problem/7694674> Hover states not updated when overflow section scrolls under stationary mouse pointer
  28004. https://bugs.webkit.org/show_bug.cgi?id=35949
  28005. Test: fast/events/overflow-scroll-fake-mouse-move.html
  28006. Soon after an overflow section scrolls under the mouse pointer, dispatch
  28007. a fake mouse move event. This is similar to how frame scrolling is handled
  28008. in WebKit, and has the effect of updating hover state, dispatching DOM mouse
  28009. events, and updating the tool tip.
  28010. * page/EventHandler.cpp:
  28011. (WebCore::EventHandler::EventHandler): Initialize m_fakeMouseMoveEventTimer.
  28012. (WebCore::EventHandler::~EventHandler): Assert that the timer is not active.
  28013. (WebCore::EventHandler::clear): Stop the timer.
  28014. (WebCore::EventHandler::handleMousePressEvent): Cancel pending fake mouse
  28015. move events.
  28016. (WebCore::EventHandler::handleMouseMoveEvent): Ditto.
  28017. (WebCore::EventHandler::dispatchFakeMouseMoveEventSoonInQuad): If the mouse
  28018. is in the passed-in quad, ensure that a fake mouse move event is scheduled
  28019. to fire soon.
  28020. (WebCore::EventHandler::cancelFakeMouseMoveEvent): Does what the name says.
  28021. (WebCore::EventHandler::fakeMouseMoveEventTimerFired): Constructs a
  28022. PlatformMouseEvent with the current mouse location, modifier key state and
  28023. time stamp and calls mouseMoved().
  28024. * page/EventHandler.h:
  28025. * platform/PlatformKeyboardEvent.h: Declared getCurrentModifierState().
  28026. * platform/android/KeyEventAndroid.cpp:
  28027. (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Stubbed out.
  28028. * platform/brew/PlatformKeyboardEventBrew.cpp:
  28029. (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Ditto.
  28030. * platform/chromium/PlatformKeyboardEventChromium.cpp:
  28031. (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Added.
  28032. * platform/efl/PlatformKeyboardEventEfl.cpp:
  28033. (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Stubbed out.
  28034. * platform/gtk/KeyEventGtk.cpp:
  28035. (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Ditto.
  28036. * platform/haiku/PlatformKeyboardEventHaiku.cpp:
  28037. (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Added.
  28038. * platform/mac/KeyEventMac.mm:
  28039. (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Ditto.
  28040. * platform/qt/PlatformKeyboardEventQt.cpp:
  28041. (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Stubbed out.
  28042. * platform/win/KeyEventWin.cpp:
  28043. (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Added.
  28044. * platform/wx/KeyboardEventWx.cpp:
  28045. (WebCore::PlatformKeyboardEvent::getCurrentModifierState): Ditto.
  28046. * rendering/RenderLayer.cpp:
  28047. (WebCore::RenderLayer::scrollToOffset): Call
  28048. EventHandler::dispatchFakeMouseMoveEventSoonInQuad(). Moved things around
  28049. a little to avoid computing the repaint rect twice.
  28050. 2010-03-12 Kent Hansen <kent.hansen@nokia.com>
  28051. Reviewed by Darin Adler.
  28052. Webkit doesn't build with workers on and database off
  28053. https://bugs.webkit.org/show_bug.cgi?id=35997
  28054. Added missing ENABLE(DATABASE) guards.
  28055. * workers/WorkerThread.cpp:
  28056. (WebCore::WorkerThreadShutdownStartTask::performTask):
  28057. 2010-03-12 Dan Winship <danw@gnome.org>
  28058. Reviewed by Gustavo Noronha.
  28059. Make the defaultCookieJar use a no-third-party policy. Most
  28060. applications set their own cookie jar, but DumpRenderTree doesn't,
  28061. so it was failing the new third-party-cookie test.
  28062. * platform/network/soup/CookieJarSoup.cpp:
  28063. (WebCore::defaultCookieJar):
  28064. 2010-03-11 Simon Hausmann <simon.hausmann@nokia.com>
  28065. Reviewed by Laszlo Gombos.
  28066. [Qt] Enable network state notifier when compiling against Qt 4.7
  28067. https://bugs.webkit.org/show_bug.cgi?id=35983
  28068. * WebCore.pri:
  28069. * platform/network/qt/NetworkStateNotifierPrivate.h:
  28070. * platform/network/qt/NetworkStateNotifierQt.cpp:
  28071. 2010-03-11 Benjamin Poulain <benjamin.poulain@nokia.com>
  28072. Reviewed by Adam Treat.
  28073. Do not render the full frame when there is some elements with fixed positioning
  28074. https://bugs.webkit.org/show_bug.cgi?id=33150
  28075. The frame view take into acount the list of fixed object when scrolling
  28076. the view. If the number of object is lower than a certain threshold, the pixel
  28077. are blitted, and the invalidated area updated.
  28078. * page/FrameView.cpp:
  28079. (WebCore::FrameView::FrameView):
  28080. (WebCore::FrameView::useSlowRepaints):
  28081. (WebCore::FrameView::useSlowRepaintsIfNotOverlapped):
  28082. (WebCore::FrameView::addFixedObject):
  28083. (WebCore::FrameView::removeFixedObject):
  28084. (WebCore::FrameView::scrollContentsFastPath):
  28085. * page/FrameView.h:
  28086. * platform/ScrollView.cpp:
  28087. (WebCore::ScrollView::scrollContents):
  28088. (WebCore::ScrollView::scrollContentsFastPath):
  28089. * platform/ScrollView.h:
  28090. * rendering/RenderBlock.h:
  28091. (WebCore::RenderBlock::positionedObjects):
  28092. * rendering/RenderBox.cpp:
  28093. (WebCore::RenderBox::styleWillChange):
  28094. * rendering/RenderObject.cpp:
  28095. (WebCore::RenderObject::styleWillChange):
  28096. 2010-03-11 Aaron Boodman <aa@chromium.org>
  28097. Kill WebDocument::applicationID() (part 1).
  28098. Modify interface to WebCore::NotificationPresenter::checkPermission()
  28099. and remove implementation of WebDocument::applicationID(). Breaking
  28100. API changes will be in a subsequent change.
  28101. https://bugs.webkit.org/show_bug.cgi?id=35846
  28102. * notifications/Notification.cpp:
  28103. (WebCore::Notification::Notification):
  28104. * notifications/NotificationCenter.cpp:
  28105. (WebCore::NotificationCenter::checkPermission):
  28106. * notifications/NotificationPresenter.h:
  28107. 2010-03-11 Dmitry Titov <dimich@chromium.org>
  28108. Reviewed by David Levin.
  28109. [v8] Remove obsolete code for delayed dereferencing of DOM objects for single-heap, multithread v8 usage.
  28110. https://bugs.webkit.org/show_bug.cgi?id=36043
  28111. No new tests, no changes in functionality.
  28112. * bindings/v8/DOMData.cpp:
  28113. (WebCore::DOMData::DOMData):
  28114. * bindings/v8/DOMData.h:
  28115. (WebCore::DOMData::handleWeakObject):
  28116. * bindings/v8/DOMDataStore.cpp:
  28117. * bindings/v8/DOMDataStore.h:
  28118. (WebCore::DOMDataStore::domObjectMap):
  28119. (WebCore::DOMDataStore::activeDomObjectMap):
  28120. (WebCore::DOMDataStore::domSvgElementInstanceMap):
  28121. (WebCore::DOMDataStore::domSvgObjectWithContextMap):
  28122. * bindings/v8/ScopedDOMDataStore.cpp:
  28123. (WebCore::ScopedDOMDataStore::ScopedDOMDataStore):
  28124. * bindings/v8/StaticDOMDataStore.cpp:
  28125. (WebCore::StaticDOMDataStore::StaticDOMDataStore):
  28126. * bindings/v8/StaticDOMDataStore.h:
  28127. * bindings/v8/V8DOMMap.cpp:
  28128. (WebCore::removeAllDOMObjectsInCurrentThread):
  28129. 2010-03-11 Gavin Barraclough <barraclough@apple.com>
  28130. Rubber stamped by Oliver Hunt.
  28131. Remove nonsense comments used in development & commited in error.
  28132. * platform/text/StringImpl.h:
  28133. 2010-03-11 Gavin Barraclough <barraclough@apple.com>
  28134. Reviewed by Oliver Hunt.
  28135. https://bugs.webkit.org/show_bug.cgi?id=36041
  28136. Remove unnecessary differences in common code between WebCore::StringImpl & JSC::UStringImpl
  28137. Much of the code in WebCore::StringImpl and JSC::UStringImpl is now very similar,
  28138. but has trivial and unnecessary formatting differences, such as the exact wording
  28139. of comments, missing ASSERTs, functions implemented in the .h vs .cpp etc.
  28140. * platform/text/StringImpl.cpp:
  28141. (WebCore::StringImpl::empty): Reordered in file, made empty()->characters() return a non-null value to match JSC.
  28142. (WebCore::StringImpl::createUninitialized): Added overflow check.
  28143. (WebCore::StringImpl::create): Reordered in file.
  28144. (WebCore::StringImpl::sharedBuffer): Reordered in file.
  28145. * platform/text/StringImpl.h:
  28146. (WebCore::StringImpl::): Remove ThreadGlobalData as friend, move SharableUChar & SharedUChar to WebCore namespace.
  28147. (WebCore::StringImpl::StringImpl): Made static constructor method (used to create empty string) take arguments, to match JSC & prevent accidental use.
  28148. (WebCore::StringImpl::setHash): Added missing ASSERT.
  28149. (WebCore::StringImpl::adopt): Make adpot work with Vectors with a non-zero inline capacity.
  28150. (WebCore::StringImpl::characters): Mark as const to match JSC.
  28151. (WebCore::StringImpl::hash): Use !m_hash instead of m_hash == 0.
  28152. (WebCore::StringImpl::computeHash): Remove redundant 'inline'.
  28153. 2010-03-11 Mark Rowe <mrowe@apple.com>
  28154. Reviewed by David Kilzer.
  28155. <rdar://problem/7745082> Make it possible to build WebKit for older Mac OS X versions from the current Mac OS X version
  28156. Default to using the appropriate SDK if the target Mac OS X version is not the current Mac OS X version.
  28157. * Configurations/Base.xcconfig:
  28158. 2010-03-11 Jungshik Shin <jshin@chromium.org>
  28159. [Chromium]: Plane 2 characters are rendered "blank"
  28160. (not even empty boxes) on Windows even when there are fonts to
  28161. cover them.
  28162. https://bugs.webkit.org/show_bug.cgi?id=35605
  28163. Test:LayoutTests/fast/text/international/plane2.html
  28164. * platform/graphics/chromium/FontCacheChromiumWin.cpp:
  28165. (WebCore::LookupAltName): Add two ExtB fonts to the array (namePairs) that are used for Plane 2 character rendering.
  28166. (WebCore::FontCache::getFontDataForCharacters): Add two more fonts to the fallback font list
  28167. * platform/graphics/chromium/FontUtilsChromiumWin.cpp:
  28168. (WebCore::getFallbackFamily): Fix the fallback font lookup to cover Plane 2 (CJK ExtB).
  28169. 2010-03-11 Leandro Pereira <leandro@profusion.mobi>
  28170. Reviewed by Holger Freyther.
  28171. Add EFL port files to platform/efl.
  28172. http://webkit.org/b/35889
  28173. * platform/efl/SystemTimeEfl.cpp: Added.
  28174. 2010-03-11 Mark Rowe <mrowe@apple.com>
  28175. Reviewed by Tim Hatcher.
  28176. <rdar://problem/7745082> Make it possible to build WebKit for older Mac OS X versions from the current Mac OS X version
  28177. Introduce TARGET_MAC_OS_X_VERSION_MAJOR to represent the Mac OS X version that is being targeted. It defaults to the
  28178. current Mac OS X version unless otherwise specified.
  28179. Key off TARGET_MAC_OS_X_VERSION_MAJOR where we'd previously been keying off MAC_OS_X_VERSION_MAJOR.
  28180. Explicitly map from the target Mac OS X version to the preferred compiler since Xcode's default compiler choice
  28181. may not be usable when targetting a different Mac OS X version.
  28182. Key off TARGET_GCC_VERSION rather than MAC_OS_X_VERSION_MAJOR in locations where we'd previously been keying off
  28183. MAC_OS_X_VERSION_MAJOR but the decision is really related to the compiler version being used.
  28184. * Configurations/Base.xcconfig:
  28185. * Configurations/DebugRelease.xcconfig:
  28186. * Configurations/FeatureDefines.xcconfig:
  28187. * Configurations/Version.xcconfig:
  28188. * Configurations/WebCore.xcconfig:
  28189. 2010-03-11 Anders Carlsson <andersca@apple.com>
  28190. Reviewed by David Hyatt.
  28191. Remove invalidateContents, it isn't used and it never makes sense to only invalidate the contents.
  28192. * loader/EmptyClients.h:
  28193. * page/Chrome.cpp:
  28194. * page/Chrome.h:
  28195. * page/ChromeClient.h:
  28196. * platform/HostWindow.h:
  28197. 2010-03-11 Nate Chapin <japhet@chromium.org>
  28198. Reviewed by Dimitri Glazkov.
  28199. [V8] Remove DOMObjectsInclude.h and update headers accordingly.
  28200. https://bugs.webkit.org/show_bug.cgi?id=36036
  28201. * WebCore.gypi:
  28202. * bindings/v8/DOMData.h:
  28203. * bindings/v8/DOMDataStore.h:
  28204. * bindings/v8/DOMObjectsInclude.h: Removed.
  28205. * bindings/v8/V8DOMMap.cpp:
  28206. * bindings/v8/V8DOMWindowShell.cpp:
  28207. * bindings/v8/V8DOMWrapper.cpp:
  28208. * bindings/v8/V8GCController.cpp:
  28209. * bindings/v8/V8Proxy.cpp:
  28210. 2010-03-11 Simon Fraser <simon.fraser@apple.com>
  28211. Reviewed by Mark Rowe.
  28212. Remove duplicate entries revealed after sorting.
  28213. * WebCore.xcodeproj/project.pbxproj:
  28214. 2010-03-11 Simon Fraser <simon.fraser@apple.com>
  28215. Reviewed by Mark Rowe.
  28216. Sort the project file (also removing some bogus spaces that caused Xcode to rewrite the file
  28217. every time you opened it).
  28218. * WebCore.xcodeproj/project.pbxproj:
  28219. 2010-03-11 Nate Chapin <japhet@chromium.org>
  28220. Reviewed by Dimitri Glazkov.
  28221. Fix style issues and improve comments from
  28222. http://trac.webkit.org/changeset/55853.
  28223. https://bugs.webkit.org/show_bug.cgi?id=36029
  28224. * platform/animation/TimingFunction.h:
  28225. (WebCore::TimingFunction::TimingFunction):
  28226. 2010-03-11 Chris Fleizach <cfleizach@apple.com>
  28227. Reviewed by Beth Dakin.
  28228. accessibilityIsIgnoredBase() needs to respect when platform says include
  28229. https://bugs.webkit.org/show_bug.cgi?id=36025
  28230. Changed accessibilityIsIgnoredBase() to return a policy instead of a yes/no
  28231. answer. This allows the platform to make a yes decision on an element.
  28232. * accessibility/AccessibilityList.cpp:
  28233. (WebCore::AccessibilityList::accessibilityIsIgnored):
  28234. * accessibility/AccessibilityListBox.cpp:
  28235. (WebCore::AccessibilityListBox::accessibilityIsIgnored):
  28236. * accessibility/AccessibilityObject.h:
  28237. (WebCore::):
  28238. (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
  28239. (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):
  28240. * accessibility/AccessibilityRenderObject.cpp:
  28241. (WebCore::AccessibilityRenderObject::accessibilityIsIgnoredBase):
  28242. (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
  28243. * accessibility/AccessibilityRenderObject.h:
  28244. * accessibility/AccessibilitySlider.cpp:
  28245. (WebCore::AccessibilitySlider::accessibilityIsIgnored):
  28246. * accessibility/AccessibilityTable.cpp:
  28247. (WebCore::AccessibilityTable::accessibilityIsIgnored):
  28248. * accessibility/AccessibilityTableCell.cpp:
  28249. (WebCore::AccessibilityTableCell::accessibilityIsIgnored):
  28250. * accessibility/AccessibilityTableRow.cpp:
  28251. (WebCore::AccessibilityTableRow::accessibilityIsIgnored):
  28252. * accessibility/chromium/AccessibilityObjectChromium.cpp:
  28253. (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):
  28254. * accessibility/gtk/AccessibilityObjectAtk.cpp:
  28255. (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):
  28256. * accessibility/mac/AccessibilityObjectMac.mm:
  28257. (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):
  28258. * accessibility/qt/AccessibilityObjectQt.cpp:
  28259. (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):
  28260. * accessibility/win/AccessibilityObjectWin.cpp:
  28261. (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):
  28262. * accessibility/wx/AccessibilityObjectWx.cpp:
  28263. (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):
  28264. 2010-03-11 Kenneth Russell <kbr@google.com>
  28265. Reviewed by Dimitri Glazkov.
  28266. Fix build breakage with ENABLE_3D_CANVAS=0
  28267. https://bugs.webkit.org/show_bug.cgi?id=35995
  28268. No new tests; verified in Chromium that WebGL is disabled in
  28269. ENABLE_3D_CANVAS=0 builds.
  28270. * bindings/v8/custom/V8DocumentCustom.cpp:
  28271. * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
  28272. 2010-03-11 Nate Chapin <japhet@chromium.org>
  28273. Unreviewed, Chromium mac build fix.
  28274. Add an explicit copy constructor to TimingFunction.
  28275. http://trac.webkit.org/changeset/55835 trigged an inlining
  28276. bug in gcc that the copy constructor resolves.
  28277. * platform/animation/TimingFunction.h:
  28278. (WebCore::TimingFunction::TimingFunction):
  28279. 2010-03-11 Chris Fleizach <cfleizach@apple.com>
  28280. Fixing GTK. No review.
  28281. support lang attribute on <option> elements
  28282. https://bugs.webkit.org/show_bug.cgi?id=36021
  28283. We don't need to cast to AccessibilityRenderObject to get language().
  28284. * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
  28285. (webkit_accessible_document_get_locale):
  28286. 2010-03-11 Chris Fleizach <cfleizach@apple.com>
  28287. Reviewed by Darin Adler.
  28288. support lang attribute on <option> elements
  28289. https://bugs.webkit.org/show_bug.cgi?id=36021
  28290. Allow non AccessibilityRenderObject classes to access the lang
  28291. attribute by moving the useful code into AccessibilityObject.
  28292. Test: platform/mac/accessibility/option-with-lang.html
  28293. * accessibility/AccessibilityListBoxOption.cpp:
  28294. (WebCore::AccessibilityListBoxOption::language):
  28295. * accessibility/AccessibilityListBoxOption.h:
  28296. * accessibility/AccessibilityObject.cpp:
  28297. (WebCore::AccessibilityObject::language):
  28298. * accessibility/AccessibilityObject.h:
  28299. * accessibility/AccessibilityRenderObject.cpp:
  28300. (WebCore::AccessibilityRenderObject::language):
  28301. * accessibility/AccessibilityRenderObject.h:
  28302. 2010-03-11 Diego Gonzalez <diego.gonzalez@openbossa.org>
  28303. Reviewed by Simon Hausmann.
  28304. [Qt] Access key modifier should be Ctrl+Alt for Darwin derived OS and Alt for the others
  28305. https://bugs.webkit.org/show_bug.cgi?id=35993
  28306. * page/qt/EventHandlerQt.cpp:
  28307. (WebCore::EventHandler::accessKeyModifiers):
  28308. 2010-03-08 Brett Wilson <brettw@chromium.org>
  28309. Reviewed by Adam Barth.
  28310. Remove the deprecated argument to url_util::IsStandard in preparation
  28311. for deleting that version of the function. Pull the latest googleurl
  28312. with the new version for the Chromium builder.
  28313. * platform/KURLGoogle.cpp:
  28314. (WebCore::KURL::isHierarchical):
  28315. 2010-03-11 Simon Hausmann <simon.hausmann@nokia.com>
  28316. Reviewed by Tor Arne Vestbø.
  28317. [Qt] Make it possible to do builds with separate debug info in packages
  28318. * WebCore.pro:
  28319. 2010-03-11 Simon Hausmann <simon.hausmann@nokia.com>
  28320. Reviewed by Tor Arne Vestbø.
  28321. [Qt] Avoid double-buffering with Qt image decoders
  28322. Pass QIODevice::Unbuffered when opening the QBuffer that
  28323. wraps the image data, to hint to Qt that no extra buffering
  28324. is needed.
  28325. * platform/graphics/qt/ImageDecoderQt.cpp:
  28326. (WebCore::ImageDecoderQt::setData):
  28327. 2010-03-10 Ben Murdoch <benm@google.com>
  28328. Reviewed by Jeremy Orlow.
  28329. [Android] The platform touch events on Android are missing support
  28330. for key modifiers.
  28331. https://bugs.webkit.org/show_bug.cgi?id=35521
  28332. Add support in PlatformToucHEventAndroid for the platform supplying
  28333. key modifiers with touch events.
  28334. Fixes Android so it now passes basic-single-touch-events.html.
  28335. * page/EventHandler.cpp:
  28336. (WebCore::EventHandler::handleTouchEvent): Fix two compiler warnings.
  28337. * platform/PlatformTouchEvent.h:
  28338. (WebCore::PlatformTouchEvent::PlatformTouchEvent): Add support for
  28339. key modifiers on Android.
  28340. * platform/android/PlatformTouchEventAndroid.cpp:
  28341. (WebCore::PlatformTouchEvent::PlatformTouchEvent): ditto.
  28342. 2010-03-10 Steve Block <steveblock@google.com>
  28343. Reviewed by Jeremy Orlow.
  28344. Implements Geolocation maximumAge property
  28345. https://bugs.webkit.org/show_bug.cgi?id=30676
  28346. Test: fast/dom/Geolocation/maximum-age.html
  28347. * WebCore.xcodeproj/project.pbxproj: Modified. Adds GeolocationPositionCache.h to Private headers
  28348. * page/Geolocation.cpp: Modified.
  28349. (WebCore::Geolocation::GeoNotifier::setUseCachedPosition): Added.
  28350. (WebCore::Geolocation::GeoNotifier::runSuccessCallback): Added.
  28351. (WebCore::Geolocation::GeoNotifier::timerFired): Modified. Added logic to handle using a cached position
  28352. (WebCore::Geolocation::Watchers::contains): Added. Required to determine if a notifier is a watch request
  28353. (WebCore::Geolocation::startRequest): Modified. Added logic to check for a cached position
  28354. (WebCore::Geolocation::requestUsesCachedPosition): Added. Callback to Geolocation object when notifier uses a cached position
  28355. (WebCore::Geolocation::makeCachedPositionCallbacks): Added.
  28356. (WebCore::Geolocation::haveSuitableCachedPosition): Added.
  28357. (WebCore::Geolocation::setIsAllowed): Modified.
  28358. (WebCore::Geolocation::positionChanged): Modified. Make callbacks using cached position where appropriate
  28359. (WebCore::Geolocation::geolocationServiceErrorOccurred): Modified. Make callbacks using cached position where appropriate
  28360. * page/Geolocation.h: Modified.
  28361. 2010-03-11 Csaba Osztrogonác <ossy@webkit.org>
  28362. Unreviewed buildfix after r55823. (To fix Qt --minimal build.)
  28363. I have déjà vu, I'm sure that I did it before. (r55598)
  28364. * bindings/js/JSDOMWindowCustom.cpp: Missing #if ENABLE(DATABASE) guard added.
  28365. 2010-03-11 Csaba Osztrogonác <ossy@webkit.org>
  28366. [Qt] Unreviewed buildfix after r55833.
  28367. Rename all instances of data() to characters()
  28368. * bridge/qt/qt_class.cpp:
  28369. (JSC::Bindings::QtClass::fieldNamed):
  28370. * bridge/qt/qt_runtime.cpp:
  28371. (JSC::Bindings::convertValueToQVariant):
  28372. 2010-03-11 Zoltan Horvath <zoltan@webkit.org>
  28373. Reviewed by Simon Hausmann.
  28374. Allow custom memory allocation control for RenderLayerBacking class
  28375. https://bugs.webkit.org/show_bug.cgi?id=35857
  28376. Inherits the following class from Noncopyable because it is
  28377. instantiated by 'new' and no need to be copyable:
  28378. class name - instantiated at: WebCore/'location'
  28379. RenderLayerBacking - rendering/RenderLayer.cpp:3047
  28380. * rendering/RenderLayerBacking.h:
  28381. 2010-03-11 Zoltan Horvath <zoltan@webkit.org>
  28382. Reviewed by Simon Hausmann.
  28383. Allow custom memory allocation control for TimingFunction struct
  28384. https://bugs.webkit.org/show_bug.cgi?id=35855
  28385. Inherits the following struct from FastAllocBase because it is
  28386. instantiated by 'new':
  28387. class name - instantiated at: WebCore/'location'
  28388. TimingFuction - platform/graphics/GraphicsLayer.h:89
  28389. * platform/animation/TimingFunction.h:
  28390. 2010-03-10 Gavin Barraclough <barraclough@apple.com>
  28391. Rubber stamped by Oliver Hunt.
  28392. Rename JSC::UStringImpl::data() to characters(), to match WebCore::StringImpl.
  28393. * bridge/jni/jsc/JavaStringJSC.h:
  28394. (JSC::Bindings::JavaStringImpl::uchars):
  28395. * platform/text/AtomicString.cpp:
  28396. (WebCore::AtomicString::add):
  28397. (WebCore::AtomicString::find):
  28398. 2010-03-10 Gavin Barraclough <barraclough@apple.com>
  28399. Reviewed by Mark Rowe.
  28400. Fix for r55825, threadsafeCopy no longer needs to special-case for
  28401. empty strings (in fact, doing so results in leaks).
  28402. * platform/text/StringImpl.cpp:
  28403. (WebCore::StringImpl::threadsafeCopy):
  28404. 2010-03-10 Chang Shu <chang.shu@nokia.com>
  28405. Reviewed by Darin Adler.
  28406. While calculating alpha channel, convert the floating point value to
  28407. an integer in [0, 256) with equal distribution.
  28408. https://bugs.webkit.org/show_bug.cgi?id=22150
  28409. * css/CSSParser.cpp:
  28410. (WebCore::CSSParser::parseColorParameters):
  28411. 2010-03-10 Gavin Barraclough <barraclough@apple.com>
  28412. Reviewed by Darin Adler, Geoffrey Garen, Maciej Stachowiak.
  28413. https://bugs.webkit.org/show_bug.cgi?id=35991
  28414. Would be faster to not use a thread specific to implement StringImpl::empty()
  28415. Copy JavaScriptCore in making 'static' strings threadsafe, make the empty string a static,
  28416. shared by all threads.
  28417. ~2% progression on Dromaeo DOM core & JS lib tests.
  28418. * platform/ThreadGlobalData.cpp:
  28419. (WebCore::ThreadGlobalData::ThreadGlobalData):
  28420. (WebCore::ThreadGlobalData::~ThreadGlobalData):
  28421. * platform/ThreadGlobalData.h:
  28422. (WebCore::ThreadGlobalData::eventNames):
  28423. * platform/text/StringImpl.cpp:
  28424. (WebCore::StringImpl::StringImpl):
  28425. (WebCore::StringImpl::empty):
  28426. * platform/text/StringImpl.h:
  28427. (WebCore::StringImpl::deref):
  28428. (WebCore::StringImpl::hasOneRef):
  28429. 2010-03-08 Dumitru Daniliuc <dumi@chromium.org>
  28430. Reviewed by Adam Barth.
  28431. Adding support for the optional creation callback that could be
  28432. passed to openDatabase().
  28433. Tests: storage/open-database-creation-callback.html
  28434. storage/open-database-creation-callback-isolated-world.html
  28435. https://bugs.webkit.org/show_bug.cgi?id=34726
  28436. * Android.jscbindings.mk
  28437. * Android.v8bindings.mk
  28438. * GNUmakefile.am:
  28439. * WebCore.gypi:
  28440. * WebCore.pro:
  28441. * WebCore.vcproj/WebCore.vcproj:
  28442. * WebCore.xcodeproj/project.pbxproj:
  28443. * bindings/js/JSDOMWindowCustom.cpp:
  28444. (WebCore::JSDOMWindow::openDatabase):
  28445. * bindings/js/JSDatabaseCallback.cpp: Added.
  28446. (WebCore::JSDatabaseCallback::JSDatabaseCallback):
  28447. (WebCore::JSDatabaseCallback::~JSDatabaseCallback):
  28448. (WebCore::JSDatabaseCallback::handleEvent):
  28449. * bindings/js/JSDatabaseCallback.h: Added.
  28450. (WebCore::JSDatabaseCallback::create):
  28451. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  28452. (WebCore::V8DOMWindow::openDatabaseCallback):
  28453. * bindings/v8/custom/V8DatabaseCallback.cpp: Added.
  28454. (WebCore::V8DatabaseCallback::V8DatabaseCallback):
  28455. (WebCore::V8DatabaseCallback::~V8DatabaseCallback):
  28456. (WebCore::V8DatabaseCallback::handleEvent):
  28457. * bindings/v8/custom/V8DatabaseCallback.h: Added.
  28458. (WebCore::V8DatabaseCallback::create):
  28459. * page/DOMWindow.cpp:
  28460. (WebCore::DOMWindow::openDatabase):
  28461. * page/DOMWindow.h:
  28462. * page/DOMWindow.idl:
  28463. * storage/Database.cpp:
  28464. (WebCore::DatabaseCreationCallbackTask::create):
  28465. (WebCore::DatabaseCreationCallbackTask::performTask):
  28466. (WebCore::DatabaseCreationCallbackTask::DatabaseCreationCallbackTask):
  28467. (WebCore::Database::openDatabase):
  28468. (WebCore::Database::Database):
  28469. (WebCore::Database::performOpenAndVerify):
  28470. (WebCore::Database::performCreationCallback):
  28471. * storage/Database.h:
  28472. (WebCore::Database::isNew):
  28473. * storage/DatabaseCallback.h: Added.
  28474. (WebCore::DatabaseCallback::~DatabaseCallback):
  28475. * workers/WorkerContext.cpp:
  28476. (WebCore::WorkerContext::openDatabase):
  28477. * workers/WorkerContext.h:
  28478. 2010-03-10 Justin Schuh <jschuh@chromium.org>
  28479. Reviewed by Adam Barth.
  28480. Make Chrome consistently handle leading format characters in URLs
  28481. https://bugs.webkit.org/show_bug.cgi?id=35948
  28482. Test: http/tests/security/xss-DENIED-window-open-javascript-url-leading-format-char.html
  28483. * platform/KURLGoogle.cpp:
  28484. 2010-03-10 Jian Li <jianli@chromium.org>
  28485. Reviewed by Dmitry Titov.
  28486. Implementing DOMFormData class.
  28487. https://bugs.webkit.org/show_bug.cgi?id=35707
  28488. This patch only addresses the implementation of DOMFormData class and
  28489. moves the FormData construction logic from HTMLFormElement::createFormData
  28490. to FormData::create() so that it can be used by both HTMLFormElement
  28491. and XMLHttpRequest.
  28492. The DOMFormData IDL interface will be exposed in another patch and the
  28493. test will be added then.
  28494. * Android.mk:
  28495. * GNUmakefile.am:
  28496. * WebCore.gypi:
  28497. * WebCore.pro:
  28498. * WebCore.vcproj/WebCore.vcproj:
  28499. * WebCore.xcodeproj/project.pbxproj:
  28500. * html/DOMFormData.cpp: Added.
  28501. * html/DOMFormData.h: Added.
  28502. * html/FormDataList.h:
  28503. (WebCore::FormDataList::encoding):
  28504. * html/HTMLFormElement.cpp:
  28505. (WebCore::HTMLFormElement::createFormData):
  28506. (WebCore::HTMLFormElement::submit):
  28507. * html/HTMLFormElement.h:
  28508. * platform/network/FormData.cpp:
  28509. (WebCore::FormData::create):
  28510. (WebCore::FormData::createMultiPart):
  28511. (WebCore::FormData::appendDOMFormData):
  28512. * platform/network/FormData.h:
  28513. (WebCore::FormData::boundary):
  28514. * xml/XMLHttpRequest.cpp:
  28515. (WebCore::XMLHttpRequest::send):
  28516. * xml/XMLHttpRequest.h:
  28517. 2010-03-10 Chris Fleizach <cfleizach@apple.com>
  28518. Reviewed by Beth Dakin.
  28519. VoiceOver can navigate to hidden content in widget (WAI-ARIA)
  28520. https://bugs.webkit.org/show_bug.cgi?id=35986
  28521. Elements that are subclassers of AXRenderObject have not been respecting
  28522. aria-hidden and other cases that would make them ignored. This applies
  28523. to tables, rows, cells, select boxes, sliders, and lists. Select boxes
  28524. also need to make sure their option elements respect aria-hidden as well.
  28525. Test: accessibility/aria-hidden-with-elements.html
  28526. * accessibility/AccessibilityList.cpp:
  28527. (WebCore::AccessibilityList::accessibilityIsIgnored):
  28528. * accessibility/AccessibilityListBox.cpp:
  28529. (WebCore::AccessibilityListBox::addChildren):
  28530. (WebCore::AccessibilityListBox::accessibilityIsIgnored):
  28531. (WebCore::AccessibilityListBox::doAccessibilityHitTest):
  28532. * accessibility/AccessibilityListBox.h:
  28533. * accessibility/AccessibilityListBoxOption.cpp:
  28534. (WebCore::AccessibilityListBoxOption::accessibilityIsIgnored):
  28535. * accessibility/AccessibilityListBoxOption.h:
  28536. * accessibility/AccessibilityRenderObject.cpp:
  28537. (WebCore::AccessibilityRenderObject::accessibilityIsIgnoredCommon):
  28538. (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
  28539. (WebCore::AccessibilityRenderObject::doAccessibilityHitTest):
  28540. * accessibility/AccessibilityRenderObject.h:
  28541. * accessibility/AccessibilitySlider.cpp:
  28542. (WebCore::AccessibilitySlider::accessibilityIsIgnored):
  28543. * accessibility/AccessibilitySlider.h:
  28544. (WebCore::AccessibilitySlider::roleValue):
  28545. (WebCore::AccessibilitySliderThumb::roleValue):
  28546. (WebCore::AccessibilitySliderThumb::accessibilityIsIgnored):
  28547. * accessibility/AccessibilityTable.cpp:
  28548. (WebCore::AccessibilityTable::accessibilityIsIgnored):
  28549. * accessibility/AccessibilityTableCell.cpp:
  28550. (WebCore::AccessibilityTableCell::accessibilityIsIgnored):
  28551. * accessibility/AccessibilityTableColumn.cpp:
  28552. (WebCore::AccessibilityTableColumn::accessibilityIsIgnored):
  28553. * accessibility/AccessibilityTableColumn.h:
  28554. (WebCore::AccessibilityTableColumn::roleValue):
  28555. * accessibility/AccessibilityTableHeaderContainer.cpp:
  28556. (WebCore::AccessibilityTableHeaderContainer::accessibilityIsIgnored):
  28557. * accessibility/AccessibilityTableHeaderContainer.h:
  28558. * accessibility/AccessibilityTableRow.cpp:
  28559. (WebCore::AccessibilityTableRow::accessibilityIsIgnored):
  28560. 2010-03-10 Dmitry Titov <dimich@chromium.org>
  28561. Reviewed by Darin Adler.
  28562. Make Document::postTask to use a single queue of tasks, to fire them in order
  28563. https://bugs.webkit.org/show_bug.cgi?id=35943
  28564. Test: existing worker-cloneport.html which was broken by initial patch in http://trac.webkit.org/changeset/55593.
  28565. Additional test which indirectly verifies the order of execution will come as part of https://bugs.webkit.org/show_bug.cgi?id=34726
  28566. * dom/Document.cpp:
  28567. (WebCore::Document::postTask): Always use the same task queue, independent of what thread is posting the task.
  28568. 2010-03-10 Sanjeev Radhakrishnan <sanjeevr@chromium.org>
  28569. Reviewed by Darin Fisher.
  28570. Allow a plugin to participate in the browser's print workflow.
  28571. https://bugs.webkit.org/show_bug.cgi?id=35550
  28572. * loader/PluginDocument.cpp:
  28573. * loader/PluginDocument.h:
  28574. 2010-03-10 Ilya Tikhonovsky <loislo@loislo-macbookpro.local>
  28575. Reviewed by Pavel Feldman.
  28576. Sidebar resize element height was adjusted.
  28577. Display name for Function Call details was adjusted.
  28578. https://bugs.webkit.org/show_bug.cgi?id=35939
  28579. * inspector/front-end/TimelinePanel.js:
  28580. (WebInspector.TimelinePanel.prototype._refreshRecords):
  28581. (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
  28582. 2010-03-10 Charles Wei <charles.wei@torchmobile.com.cn>
  28583. Reviewed by George Staikos.
  28584. Fix https://bugs.webkig.org/show_bug.cgi?id=35207
  28585. When XHTMLMP is enabled, all xhtml documents fail to render for webkit portings wich use libxml2 tokenizer.
  28586. No new tests as all the xhtml test cases in LayoutTests/dom/xhtml fails without this fix when XHTMLMP is enabled.
  28587. * dom/Document.cpp:
  28588. (WebCore::Document::isXHTMLMPDocument):
  28589. * dom/XMLTokenizerLibxml2.cpp:
  28590. (WebCore::XMLTokenizer::internalSubset):
  28591. (WebCore::externalSubsetHandler):
  28592. 2010-03-10 Garret Kelly <gdk@chromium.org>
  28593. Reviewed by Darin Fisher.
  28594. Adding all of the touch-related sources into Chromium's WebCore build.
  28595. https://bugs.webkit.org/show_bug.cgi?id=35874
  28596. Patch tested against the try bots, but the feature is exercised in the
  28597. fast/events/touch tests.
  28598. * WebCore.gypi:
  28599. 2010-03-10 Pavel Feldman <pfeldman@chromium.org>
  28600. Reviewed by Timothy Hatcher.
  28601. Web Inspector: now that audits panel is added, add it to the
  28602. enums (for storing last active, etc.).
  28603. https://bugs.webkit.org/show_bug.cgi?id=35980
  28604. * inspector/InspectorController.cpp:
  28605. (WebCore::InspectorController::setWindowVisible):
  28606. (WebCore::InspectorController::specialPanelForJSName):
  28607. * inspector/InspectorController.h:
  28608. (WebCore::InspectorController::):
  28609. * inspector/InspectorFrontend.cpp:
  28610. (WebCore::InspectorFrontend::showPanel):
  28611. * inspector/front-end/inspector.js:
  28612. (WebInspector.showAuditsPanel):
  28613. 2010-03-10 Nate Chapin <japhet@chromium.org>
  28614. Reviewed by Dimitri Glazkov.
  28615. [V8] Instead of describing the type of a wrapped v8 object
  28616. with an enum value, use a pointer to struct with more complete
  28617. information.
  28618. https://bugs.webkit.org/show_bug.cgi?id=35941
  28619. Refactoring only, so new tests.
  28620. * bindings/scripts/CodeGeneratorV8.pm:
  28621. * bindings/v8/DOMData.cpp:
  28622. * bindings/v8/DOMData.h:
  28623. * bindings/v8/NPV8Object.cpp:
  28624. * bindings/v8/V8Collection.h:
  28625. * bindings/v8/V8DOMWindowShell.cpp:
  28626. * bindings/v8/V8DOMWindowShell.h:
  28627. * bindings/v8/V8DOMWrapper.cpp:
  28628. * bindings/v8/V8DOMWrapper.h:
  28629. * bindings/v8/V8GCController.cpp:
  28630. * bindings/v8/V8Helpers.cpp:
  28631. * bindings/v8/V8Helpers.h:
  28632. * bindings/v8/V8Index.cpp: Removed.
  28633. * bindings/v8/V8Index.h:
  28634. * bindings/v8/V8NPObject.cpp:
  28635. * bindings/v8/V8Proxy.cpp:
  28636. * bindings/v8/V8Proxy.h:
  28637. * bindings/v8/WorkerContextExecutionProxy.cpp:
  28638. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  28639. * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
  28640. * bindings/v8/custom/V8HTMLAudioElementConstructor.h:
  28641. * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
  28642. * bindings/v8/custom/V8HTMLImageElementConstructor.h:
  28643. * bindings/v8/custom/V8HTMLOptionElementConstructor.cpp:
  28644. * bindings/v8/custom/V8HTMLOptionElementConstructor.h:
  28645. * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
  28646. * bindings/v8/custom/V8MessageChannelConstructor.cpp:
  28647. * bindings/v8/custom/V8SharedWorkerCustom.cpp:
  28648. * bindings/v8/custom/V8WebGLArrayBufferCustom.cpp:
  28649. * bindings/v8/custom/V8WebGLArrayCustom.h:
  28650. * bindings/v8/custom/V8WebGLByteArrayCustom.cpp:
  28651. * bindings/v8/custom/V8WebGLFloatArrayCustom.cpp:
  28652. * bindings/v8/custom/V8WebGLIntArrayCustom.cpp:
  28653. * bindings/v8/custom/V8WebGLShortArrayCustom.cpp:
  28654. * bindings/v8/custom/V8WebGLUnsignedByteArrayCustom.cpp:
  28655. * bindings/v8/custom/V8WebGLUnsignedIntArrayCustom.cpp:
  28656. * bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp:
  28657. * bindings/v8/custom/V8WebKitCSSMatrixConstructor.cpp:
  28658. * bindings/v8/custom/V8WebKitPointConstructor.cpp:
  28659. * bindings/v8/custom/V8WebSocketCustom.cpp:
  28660. * bindings/v8/custom/V8WorkerCustom.cpp:
  28661. * bindings/v8/custom/V8XMLHttpRequestConstructor.cpp:
  28662. * bindings/v8/custom/V8XSLTProcessorCustom.cpp:
  28663. 2010-03-10 Antonio Gomes <tonikitoo@webkit.org>
  28664. Reviewed by Dave Hyatt.
  28665. Patch by Antonio Gomes <tonikitoo@webkit.org>
  28666. Extend keyboard navigation to allow directional navigation (Manual tests)
  28667. https://bugs.webkit.org/show_bug.cgi?id=18662
  28668. Adds a manual tests for the Spatial Navigation feature comprasing varios
  28669. Html focusable elements (e.g. <a>, <table>, <iframe>) and much of the logic
  28670. provided by the feature.
  28671. * manual-tests/spatial-navigation/links.html: Added.
  28672. * manual-tests/spatial-navigation/spatial-navigation-test-cases.html: Added.
  28673. 2010-03-10 Leandro Pereira <leandro@profusion.mobi>
  28674. Reviewed by Kenneth Rohde Christiansen.
  28675. Add EFL port files to platform/efl.
  28676. http://webkit.org/b/35890
  28677. * platform/efl/ScrollbarEfl.h: Added.
  28678. * platform/efl/ScrollbarThemeEfl.h: Added.
  28679. 2010-03-10 Pavel Feldman <pfeldman@chromium.org>
  28680. Reviewed by Timothy Hatcher.
  28681. Web Inspector: Audits panel needs an icon.
  28682. Landing icon attached by Timothy. Enabling panel!
  28683. https://bugs.webkit.org/show_bug.cgi?id=35945
  28684. * WebCore.gypi:
  28685. * inspector/front-end/Images/auditsIcon.png: Added.
  28686. * inspector/front-end/WebKit.qrc:
  28687. * inspector/front-end/inspector.css:
  28688. 2010-03-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  28689. Roll-out r55657, as Xan noticed a bad degradation in playing
  28690. youtube HTML5 videos with it, that is fixed with it
  28691. reverted. Looks like we'll need to work a bit more on this.
  28692. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  28693. (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
  28694. (WebCore::MediaPlayerPrivate::~MediaPlayerPrivate):
  28695. (WebCore::MediaPlayerPrivate::volumeChangedTimerFired):
  28696. (WebCore::MediaPlayerPrivate::volumeChanged):
  28697. (WebCore::MediaPlayerPrivate::processBufferingStats):
  28698. (WebCore::MediaPlayerPrivate::fillTimerFired):
  28699. (WebCore::MediaPlayerPrivate::maxTimeLoaded):
  28700. (WebCore::MediaPlayerPrivate::updateStates):
  28701. (WebCore::MediaPlayerPrivate::muteChangedTimerFired):
  28702. (WebCore::MediaPlayerPrivate::muteChanged):
  28703. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
  28704. 2010-03-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  28705. Rubber-stamped by Xan Lopez.
  28706. Fix ready state when buffering under PLAYING. We should not go
  28707. back to HaveNothing in that case.
  28708. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  28709. (WebCore::MediaPlayerPrivate::updateStates):
  28710. 2010-03-10 Ada Chan <adachan@apple.com>
  28711. Reviewed by Adam Roben.
  28712. https://bugs.webkit.org/show_bug.cgi?id=35976
  28713. Retrieve any dwItemData that's set on the context menu item in contextMenuItemByIdOrPosition().
  28714. * platform/win/ContextMenuWin.cpp:
  28715. 2010-03-10 Jeremy Orlow <jorlow@chromium.org>
  28716. Reviewed by Darin Fisher.
  28717. Add IndexedDatabase class and hook it up.
  28718. https://bugs.webkit.org/show_bug.cgi?id=35927
  28719. This change is mostly just adding the plumbing necessary for
  28720. the IndexedDatabaseRequest and IndexedDatabaseSync (not written
  28721. yet).
  28722. This code is non-functional, so no tests (yet).
  28723. * WebCore.gyp/WebCore.gyp:
  28724. * WebCore.gypi:
  28725. * platform/chromium/ChromiumBridge.h:
  28726. * storage/IndexedDatabase.cpp: Added.
  28727. (WebCore::IndexedDatabase::get):
  28728. * storage/IndexedDatabase.h: Added.
  28729. (WebCore::IndexedDatabase::~IndexedDatabase):
  28730. * storage/IndexedDatabaseImpl.cpp: Added.
  28731. (WebCore::IndexedDatabaseImpl::get):
  28732. (WebCore::IndexedDatabaseImpl::IndexedDatabaseImpl):
  28733. (WebCore::IndexedDatabaseImpl::~IndexedDatabaseImpl):
  28734. (WebCore::IndexedDatabaseImpl::open):
  28735. * storage/IndexedDatabaseImpl.h: Added.
  28736. * storage/chromium/IndexedDatabase.cpp: Added.
  28737. (WebCore::IndexedDatabase::get):
  28738. 2010-03-05 Dimitri Glazkov <dglazkov@chromium.org>
  28739. Reviewed by Sam Weinig.
  28740. Add one more parent check during node removal.
  28741. https://bugs.webkit.org/show_bug.cgi?id=35818
  28742. Test: fast/dom/Node/mutation-blur.html
  28743. * dom/ContainerNode.cpp:
  28744. (WebCore::ContainerNode::removeChild): Added check.
  28745. 2010-03-10 Pavel Feldman <pfeldman@chromium.org>
  28746. Not reviewed: added missing quote into localized strings.
  28747. * English.lproj/localizedStrings.js:
  28748. 2010-03-10 Jeremy Orlow <jorlow@chromium.org>
  28749. Commit files that were supposed to go in with the last checkin.
  28750. 2010-03-10 Jeremy Orlow <jorlow@chromium.org>
  28751. Reviewed by Dimitry Glazkov.
  28752. Baby steps towards IndexedDB: Start implementing callbacks.
  28753. https://bugs.webkit.org/show_bug.cgi?id=35911
  28754. This patch adds some infastructure for IndexedDB callbacks in V8.
  28755. It also adds a stub of IDBDatabaseRequest. In the near future,
  28756. I'll gut the event based implementation code, flesh out IDBReqest
  28757. further, and start plumbing IndexedDatabaseRequest.
  28758. Code is not testible because it doesn't work (yet).
  28759. * WebCore.gypi:
  28760. * bindings/v8/DOMObjectsInclude.h:
  28761. * bindings/v8/V8Index.cpp:
  28762. * bindings/v8/V8Index.h:
  28763. * bindings/v8/custom/V8CustomIDBCallback.h: Added.
  28764. (WebCore::V8CustomIDBCallback::create):
  28765. (WebCore::V8CustomIDBCallback::~V8CustomIDBCallback):
  28766. (WebCore::V8CustomIDBCallback::handleEvent):
  28767. (WebCore::V8CustomIDBCallback::V8CustomIDBCallback):
  28768. * bindings/v8/custom/V8IndexedDatabaseRequestCustom.cpp:
  28769. (WebCore::V8IndexedDatabaseRequest::openCallback):
  28770. * storage/IDBDatabaseRequest.h: Added.
  28771. (WebCore::IDBDatabaseRequest::request):
  28772. * storage/IDBDatabaseRequest.idl: Added.
  28773. * storage/IndexedDatabaseRequest.idl:
  28774. 2010-03-10 Holger Hans Peter Freyther <zecke@selfish.org>
  28775. Reviewed by Simon Hausmann.
  28776. [Qt] Non animated gifs are animated in QtWebKit
  28777. https://bugs.webkit.org/show_bug.cgi?id=35955
  28778. Properly map Qt animated and non-animated values to WebCore's
  28779. understanding of animated and non-animated images. Currently
  28780. we can not map anything to the cAnimationLoopNone value.
  28781. * manual-tests/qt/qt-anim.gif: Added.
  28782. * manual-tests/qt/qt-gif-test.html: Added.
  28783. * manual-tests/qt/qt-noanim.gif: Added.
  28784. * platform/graphics/qt/ImageDecoderQt.cpp:
  28785. (WebCore::ImageDecoderQt::repetitionCount):
  28786. 2010-03-07 Holger Hans Peter Freyther <zecke@selfish.org>
  28787. Reviewed by Darin Adler.
  28788. [CAIRO] DoS on iexploder test with high text stroke width.
  28789. https://bugs.webkit.org/show_bug.cgi?id=33759
  28790. Specifying a big text stroke width can make WebKitGTK+ spend
  28791. a very long time in the cairo library for stroking the path of
  28792. the text. The best way to prevent this from happening right now
  28793. is to not stroke paths with a certain width. Samuel proposed to
  28794. not stroke with a width that is twice the width of the text. The
  28795. reason to use twice the text width is that even one stroke of
  28796. any charachter to be drawn would cover the full width.
  28797. Test: fast/text/text-stroke-width-cairo-dos.html
  28798. * platform/graphics/cairo/FontCairo.cpp:
  28799. (WebCore::Font::drawGlyphs):
  28800. 2010-03-10 Andrey Kosyakov <caseq@chromium.org>
  28801. Reviewed by Pavel Feldman.
  28802. Web Inspector: display list of active workers & support debugging
  28803. with fake workers.
  28804. https://bugs.webkit.org/show_bug.cgi?id=35568
  28805. * English.lproj/localizedStrings.js:
  28806. * WebCore.gypi:
  28807. * WebCore.vcproj/WebCore.vcproj:
  28808. * bindings/js/JSInjectedScriptHostCustom.cpp:
  28809. (WebCore::InjectedScriptHost::createInjectedScript):
  28810. (WebCore::InjectedScriptHost::injectedScriptFor):
  28811. * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
  28812. (WebCore::InjectedScriptHost::createInjectedScript):
  28813. (WebCore::InjectedScriptHost::injectedScriptFor):
  28814. * dom/Document.cpp:
  28815. (WebCore::Document::inspectorController):
  28816. * dom/Document.h:
  28817. * dom/ScriptExecutionContext.h:
  28818. (WebCore::ScriptExecutionContext::inspectorController):
  28819. * inspector/InjectedScriptHost.cpp:
  28820. (WebCore::InjectedScriptHost::InjectedScriptHost):
  28821. (WebCore::InjectedScriptHost::injectScript):
  28822. (WebCore::InjectedScriptHost::nextWorkerId):
  28823. (WebCore::InjectedScriptHost::didCreateWorker):
  28824. (WebCore::InjectedScriptHost::willDestroyWorker):
  28825. * inspector/InjectedScriptHost.h:
  28826. * inspector/InjectedScriptHost.idl:
  28827. * inspector/InspectorController.cpp:
  28828. (WebCore::InspectorController::populateScriptObjects):
  28829. (WebCore::InspectorController::resetScriptObjects):
  28830. (WebCore::InspectorController::didCommitLoad):
  28831. (WebCore::InspectorController::didCreateWorker):
  28832. (WebCore::InspectorController::willDestroyWorker):
  28833. * inspector/InspectorController.h:
  28834. * inspector/InspectorFrontend.cpp:
  28835. (WebCore::InspectorFrontend::didCreateWorker):
  28836. (WebCore::InspectorFrontend::willDestroyWorker):
  28837. * inspector/InspectorFrontend.h:
  28838. * inspector/InspectorWorkerResource.h: Added.
  28839. (WebCore::InspectorWorkerResource::create):
  28840. (WebCore::InspectorWorkerResource::id):
  28841. (WebCore::InspectorWorkerResource::url):
  28842. (WebCore::InspectorWorkerResource::isSharedWorker):
  28843. (WebCore::InspectorWorkerResource::InspectorWorkerResource):
  28844. * inspector/front-end/Checkbox.js: Added.
  28845. (WebInspector.Checkbox.callbackWrapper):
  28846. (WebInspector.Checkbox):
  28847. (WebInspector.Checkbox.prototype.checked):
  28848. * inspector/front-end/InjectedFakeWorker.js:
  28849. (InjectedFakeWorker.FakeWorker):
  28850. (InjectedFakeWorker.FakeWorker.prototype.terminate):
  28851. (InjectedFakeWorker.FakeWorker.prototype._handleException):
  28852. (InjectedFakeWorker.FakeWorker.prototype._importScripts):
  28853. (InjectedFakeWorker.FakeWorker.prototype._loadScript):
  28854. (InjectedFakeWorker.FakeWorker.prototype._expandURLAndCheckOrigin):
  28855. * inspector/front-end/ScriptsPanel.js:
  28856. (WebInspector.ScriptsPanel):
  28857. (WebInspector.ScriptsPanel.prototype.debuggerWasEnabled):
  28858. (WebInspector.ScriptsPanel.prototype.debuggerWasDisabled):
  28859. (WebInspector.ScriptsPanel.prototype.reset):
  28860. * inspector/front-end/StylesSidebarPane.js:
  28861. (WebInspector.StylePropertiesSection.showInheritedToggleFunction):
  28862. (WebInspector.StylePropertiesSection):
  28863. * inspector/front-end/WebKit.qrc:
  28864. * inspector/front-end/WorkersSidebarPane.js: Added.
  28865. (WebInspector.WorkersSidebarPane):
  28866. (WebInspector.WorkersSidebarPane.prototype.addWorker):
  28867. (WebInspector.WorkersSidebarPane.prototype.removeWorker):
  28868. (WebInspector.WorkersSidebarPane.prototype.setInstrumentation):
  28869. (WebInspector.WorkersSidebarPane.prototype.reset):
  28870. (WebInspector.WorkersSidebarPane.prototype._onTriggerInstrument):
  28871. (WebInspector.Worker):
  28872. (WebInspector.didCreateWorker):
  28873. (WebInspector.willDestroyWorker):
  28874. * inspector/front-end/inspector.css:
  28875. * inspector/front-end/inspector.html:
  28876. * workers/AbstractWorker.cpp:
  28877. (WebCore::AbstractWorker::AbstractWorker):
  28878. (WebCore::AbstractWorker::~AbstractWorker):
  28879. (WebCore::AbstractWorker::onDestroyWorker):
  28880. (WebCore::AbstractWorker::contextDestroyed):
  28881. * workers/AbstractWorker.h:
  28882. (WebCore::AbstractWorker::id):
  28883. * workers/SharedWorker.cpp:
  28884. (WebCore::SharedWorker::SharedWorker):
  28885. * workers/Worker.cpp:
  28886. (WebCore::Worker::Worker):
  28887. 2010-03-10 Roland Steiner <rolandsteiner@chromium.org>
  28888. Unreviewed build fix. Fix variable name change that somehow didn't
  28889. make it into the patch.
  28890. 2010-03-10 Roland Steiner <rolandsteiner@chromium.org>
  28891. Reviewed by David Levin.
  28892. Bug 28293 - [Chromium] event.datatransfer.getdata("text/uri-list") is treated the same as getdata("URL")
  28893. https://bugs.webkit.org/show_bug.cgi?id=28293
  28894. Change ChromiumDataObject such that it treats types "URL" and "text/uri-list"
  28895. correctly for event.dataTransfer.getData/setData. Currently both are treated
  28896. as synonyms, but for "URL", getData is supposed to only return the first valid URL
  28897. contained within the data for "text/uri-list" (see HTML5 spec).
  28898. Tests: editing/pasteboard/dataTransfer-setData-getData.html
  28899. * platform/chromium/ChromiumDataObject.cpp:
  28900. (WebCore::ChromiumDataObject::clear):
  28901. (WebCore::ChromiumDataObject::clearAllExceptFiles):
  28902. (WebCore::ChromiumDataObject::hasData):
  28903. (WebCore::ChromiumDataObject::ChromiumDataObject):
  28904. * platform/chromium/ChromiumDataObject.h:
  28905. (WebCore::ChromiumDataObject::clearURL):
  28906. (WebCore::ChromiumDataObject::hasValidURL):
  28907. (WebCore::ChromiumDataObject::getURL):
  28908. (WebCore::ChromiumDataObject::setURL):
  28909. * platform/chromium/ClipboardChromium.cpp:
  28910. (WebCore::):
  28911. (WebCore::clipboardTypeFromMIMEType):
  28912. (WebCore::ClipboardChromium::clearData):
  28913. (WebCore::ClipboardChromium::getData):
  28914. (WebCore::ClipboardChromium::setData):
  28915. (WebCore::ClipboardChromium::types):
  28916. * platform/chromium/DragDataChromium.cpp:
  28917. (WebCore::DragData::asURL):
  28918. (WebCore::DragData::canSmartReplace):
  28919. 2010-03-09 Pavel Feldman <pfeldman@chromium.org>
  28920. Reviewed by Timothy Hatcher.
  28921. Web Inspector: REGRESSION: Tall image resources are cropped over the bottom.
  28922. https://bugs.webkit.org/show_bug.cgi?id=34720
  28923. * inspector/front-end/inspector.css:
  28924. 2010-03-09 Pavel Feldman <pfeldman@chromium.org>
  28925. Reviewed by Timothy Hatcher.
  28926. Web Inspector: REGRESSION: Pressing up/down arrow key to change numeric
  28927. value in CSS property takes focus away.
  28928. https://bugs.webkit.org/show_bug.cgi?id=34697
  28929. * inspector/front-end/StylesSidebarPane.js:
  28930. (WebInspector.StylePropertyTreeElement.prototype):
  28931. (WebInspector.StylePropertyTreeElement.prototype.):
  28932. 2010-03-09 Tony Chang <tony@chromium.org>
  28933. Reviewed by Adam Barth.
  28934. https://bugs.webkit.org/show_bug.cgi?id=21840
  28935. https://bugs.webkit.org/show_bug.cgi?id=23993
  28936. Fix an editing bug where replacing a selection would result in the
  28937. new text ending up inside nodes that were not visibly included in the
  28938. selection. Instead, move our destination position out of nodes that
  28939. were not visibly included.
  28940. Tests: editing/deleting/backspace-avoid-preceding-style.html
  28941. editing/inserting/replace-at-visible-boundary.html
  28942. * editing/ReplaceSelectionCommand.cpp:
  28943. (WebCore::positionAvoidingPrecedingNodes):
  28944. (WebCore::ReplaceSelectionCommand::doApply):
  28945. 2010-03-09 Brady Eidson <beidson@apple.com>
  28946. Reviewed by Tim Hatcher.
  28947. REGRESSION: WebInspector docking busted on Windows
  28948. <rdar://problem/7728433> and https://bugs.webkit.org/show_bug.cgi?id=35953
  28949. First off, a bit of settings-key related cleanup. If they're shared over multiple files, these
  28950. things should be properly declared Strings, not random loose char*'s.
  28951. Along with that change, we move the "inspectorStartsAttachedSettingName" from WebKit down to the
  28952. InspectorController in WebCore.
  28953. Finally, when the controller is ready to show the WebInspector window, it can use this newly
  28954. exposed settings key to call "setWindowVisible" directly instead of relying on "showWindow" to do
  28955. it indirectly.
  28956. * WebCore.base.exp:
  28957. * inspector/InspectorBackend.cpp:
  28958. (WebCore::InspectorBackend::saveFrontendSettings):
  28959. * inspector/InspectorController.cpp:
  28960. (WebCore::InspectorController::frontendSettingsSettingName):
  28961. (WebCore::InspectorController::inspectorStartsAttachedSettingName):
  28962. (WebCore::InspectorController::scriptObjectReady): Using the new inspectorStartsAttachedSettingName
  28963. key and some "can I attach this?" logic, call setWindowVisible directly to display the inspector
  28964. window.
  28965. (WebCore::InspectorController::populateScriptObjects):
  28966. * inspector/InspectorController.h:
  28967. 2010-03-09 Alexey Proskuryakov <ap@apple.com>
  28968. Reviewed by Mark Rowe.
  28969. https://bugs.webkit.org/show_bug.cgi?id=35951
  28970. <rdar://problem/7327060> Frequent crashes in Dashcode at JSC::Bindings::ObjcInstance::~ObjcInstance + 80
  28971. * bridge/objc/objc_instance.mm: (createInstanceWrapperCache): Fix Tiger code path, too.
  28972. 2010-03-09 Alexey Proskuryakov <ap@apple.com>
  28973. Reviewed by Oliver Hunt.
  28974. https://bugs.webkit.org/show_bug.cgi?id=35951
  28975. <rdar://problem/7327060> Frequent crashes in Dashcode at JSC::Bindings::ObjcInstance::~ObjcInstance + 80
  28976. * bridge/objc/objc_instance.mm: (createInstanceWrapperCache): It's not correct to use object
  28977. personality for keys, because the key can be a mutable object, so its hash can change over its
  28978. lifetime.
  28979. 2010-03-09 Ojan Vafai <ojan@chromium.org>
  28980. Reviewed by Darin Adler.
  28981. Fix review comment accidentally overlooked in bug 35713
  28982. https://bugs.webkit.org/show_bug.cgi?id=35947
  28983. * editing/DeleteSelectionCommand.cpp:
  28984. (WebCore::DeleteSelectionCommand::setStartingSelectionOnSmartDelete):
  28985. * editing/DeleteSelectionCommand.h:
  28986. 2010-03-03 Ojan Vafai <ojan@chromium.org>
  28987. Reviewed by Adam Barth.
  28988. undo after smartdelete should select the deleted space
  28989. https://bugs.webkit.org/show_bug.cgi?id=35713
  28990. TextEdit behavior is to select the deleted space after a smartdelete.
  28991. Tests: editing/undo/undo-smart-delete-reversed-selection.html
  28992. editing/undo/undo-smart-delete-word.html
  28993. * editing/DeleteSelectionCommand.cpp:
  28994. (WebCore::DeleteSelectionCommand::setStartingSelectionOnSmartDelete):
  28995. (WebCore::DeleteSelectionCommand::initializePositionData):
  28996. * editing/DeleteSelectionCommand.h:
  28997. * editing/VisibleSelection.cpp:
  28998. (WebCore::VisibleSelection::setWithoutValidation):
  28999. This assert looks bogus to me. undo-smart-delete-reversed-selection.html hits it
  29000. but not as a result of the other changes in this patch. The granularity when
  29001. deleting after making a wordgranularity selection is wordgranularity, not charactergranularity.
  29002. 2010-03-09 Steve Falkenburg <sfalken@apple.com>
  29003. Rubber stamped by Adam Roben.
  29004. Load debug version of graphics library in Windows Debug_All builds.
  29005. * platform/graphics/win/WKCACFLayerRenderer.cpp:
  29006. (WebCore::WKCACFLayerRenderer::acceleratedCompositingAvailable):
  29007. 2010-03-09 Brady Eidson <beidson@apple.com>
  29008. Reviewed by Darin Adler.
  29009. Plug-ins don't always respect the cookie accept policy.
  29010. <rdar://problem/7338359> and https://bugs.webkit.org/show_bug.cgi?id=26391
  29011. The problem is that the various plug-in implementations call into a ResourceLoader
  29012. directly instead of filtering the request through FrameLoader. This bypassed the step
  29013. of adding extra fields to the requests, such as the firstPartyForCookies URL.
  29014. Since plug-in code is currently so strewn about and very platform specific, I
  29015. think reworking it needs to be a task for domain experts. I don't know the implications
  29016. of adding *all* the extra fields to plug-in requests, for example.
  29017. There's no harm in this targeted fix for the hole in our cookie accept policy until
  29018. plug-ins can more fundamentally change.
  29019. Test: http/tests/plugins/third-party-cookie-accept-policy.html
  29020. * loader/ResourceLoader.cpp:
  29021. (WebCore::ResourceLoader::load): Don't load a resource without first giving the request
  29022. a firstPartyForCookies URL.
  29023. 2010-03-09 Andy Estes <aestes@apple.com>
  29024. Reviewed by Adele Peterson.
  29025. Check for null renderer in scrollNode().
  29026. https://bugs.webkit.org/show_bug.cgi?id=34700
  29027. Test: fast/events/remove-child-onscroll.html
  29028. * page/EventHandler.cpp:
  29029. (WebCore::scrollNode): Return early if node->renderer() == 0
  29030. 2010-03-09 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  29031. Unreviewed distcheck fix.
  29032. * GNUmakefile.am:
  29033. 2010-03-09 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  29034. Unreviewed build fix (only exposed by make distcheck). The
  29035. SharedWorkers files are not built, they need to be distributed.
  29036. * GNUmakefile.am:
  29037. 2010-03-08 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  29038. Reviewed by Dirk Schulze.
  29039. [GStreamer] Buffering logic is not correct, and does not work very well
  29040. https://bugs.webkit.org/show_bug.cgi?id=35706
  29041. Fix buffering to match GStreamer expectancies regarding the
  29042. pipeline state, so that videos which really need buffering to play
  29043. correctly also work, while maintaining the convenience of
  29044. on-disk-buffering. This required a bit of shuffling of state
  29045. change handling.
  29046. No behaviour change expected.
  29047. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  29048. (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
  29049. (WebCore::MediaPlayerPrivate::processBufferingStats):
  29050. (WebCore::MediaPlayerPrivate::fillTimerFired):
  29051. (WebCore::MediaPlayerPrivate::updateStates):
  29052. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
  29053. 2010-03-09 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  29054. Reviewed by Dirk Schulze.
  29055. [GStreamer] Buffering logic is not correct, and does not work very well
  29056. https://bugs.webkit.org/show_bug.cgi?id=35706
  29057. Do not call pause(), but set the GStreamer state directly. This is
  29058. just a GStreamer implementation detail, and this will avoid having
  29059. side effects in case we change the pause implementation in the
  29060. future.
  29061. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  29062. (WebCore::MediaPlayerPrivate::load):
  29063. 2010-03-09 Chris Fleizach <cfleizach@apple.com>
  29064. Reviewed by Darin Adler.
  29065. AX: hit testing a list box doesn't work anymore
  29066. https://bugs.webkit.org/show_bug.cgi?id=35893
  29067. Since <option> elements don't have renderers, their hit testing needs
  29068. to be handled with a special case.
  29069. Test: platform/mac/accessibility/listbox-hit-test.html
  29070. * accessibility/AccessibilityRenderObject.cpp:
  29071. (WebCore::AccessibilityRenderObject::ariaIsHidden):
  29072. (WebCore::AccessibilityRenderObject::doAccessibilityHitTest):
  29073. 2010-03-09 Pavel Feldman <pfeldman@chromium.org>
  29074. Reviewed by Timothy Hatcher.
  29075. Web Inspector: Refactor Audits panel presentation layer.
  29076. This change removes unnecessary complexity:
  29077. - Audit scores were not used
  29078. - Audit rule parameters are passed as rule constructor arguments
  29079. - View management aligned with the rest of the front-end
  29080. - Single TreeOutline is used for category results (no need to create sections for those)
  29081. - Rules code beautified and simplified where possible
  29082. - Some UI improvements applied (see attached screenshot)
  29083. https://bugs.webkit.org/show_bug.cgi?id=35860
  29084. * inspector/front-end/AuditCategories.js:
  29085. (WebInspector.AuditCategories.PagePerformance.prototype.initialize):
  29086. (WebInspector.AuditCategories.NetworkUtilization.prototype.initialize):
  29087. * inspector/front-end/AuditResultView.js:
  29088. (WebInspector.AuditResultView):
  29089. (WebInspector.AuditCategoryResultPane):
  29090. (WebInspector.AuditCategoryResultPane.prototype._appendResult):
  29091. * inspector/front-end/AuditRules.js:
  29092. (WebInspector.AuditRules.GzipRule.prototype.doRun):
  29093. (WebInspector.AuditRules.CombineExternalResourcesRule):
  29094. (WebInspector.AuditRules.CombineExternalResourcesRule.prototype.doRun):
  29095. (WebInspector.AuditRules.CombineJsResourcesRule):
  29096. (WebInspector.AuditRules.CombineCssResourcesRule):
  29097. (WebInspector.AuditRules.MinimizeDnsLookupsRule):
  29098. (WebInspector.AuditRules.MinimizeDnsLookupsRule.prototype.doRun):
  29099. (WebInspector.AuditRules.ParallelizeDownloadRule):
  29100. (WebInspector.AuditRules.ParallelizeDownloadRule.prototype.doRun):
  29101. (WebInspector.AuditRules.UnusedCssRule):
  29102. (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.evalCallback):
  29103. (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.routine):
  29104. (WebInspector.AuditRules.UnusedCssRule.prototype.doRun):
  29105. (WebInspector.AuditRules.CacheControlRule):
  29106. (WebInspector.AuditRules.CacheControlRule.prototype.doRun):
  29107. (WebInspector.AuditRules.CacheControlRule.prototype.execCheck):
  29108. (WebInspector.AuditRules.BrowserCacheControlRule):
  29109. (WebInspector.AuditRules.BrowserCacheControlRule.prototype.handleNonCacheableResources):
  29110. (WebInspector.AuditRules.BrowserCacheControlRule.prototype.runChecks):
  29111. (WebInspector.AuditRules.ProxyCacheControlRule):
  29112. (WebInspector.AuditRules.ProxyCacheControlRule.prototype.runChecks):
  29113. (WebInspector.AuditRules.ImageDimensionsRule):
  29114. (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun):
  29115. (WebInspector.AuditRules.CssInHeadRule):
  29116. (WebInspector.AuditRules.CssInHeadRule.prototype.doRun):
  29117. (WebInspector.AuditRules.CssInHeadRule.prototype.doRun.routine):
  29118. (WebInspector.AuditRules.StylesScriptsOrderRule):
  29119. (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun):
  29120. (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun.routine):
  29121. (WebInspector.AuditRules.CookieRuleBase):
  29122. (WebInspector.AuditRules.CookieRuleBase.prototype.doRun.resultCallback):
  29123. (WebInspector.AuditRules.CookieRuleBase.prototype.doRun):
  29124. (WebInspector.AuditRules.CookieSizeRule):
  29125. (WebInspector.AuditRules.CookieSizeRule.prototype.processCookies):
  29126. (WebInspector.AuditRules.StaticCookielessRule):
  29127. (WebInspector.AuditRules.StaticCookielessRule.prototype.processCookies):
  29128. * inspector/front-end/AuditsPanel.js:
  29129. (WebInspector.AuditsPanel):
  29130. (WebInspector.AuditsPanel.prototype._executeAudit.ruleResultReadyCallback):
  29131. (WebInspector.AuditsPanel.prototype._executeAudit):
  29132. (WebInspector.AuditsPanel.prototype._reloadResources):
  29133. (WebInspector.AuditsPanel.prototype._didMainResourceLoad):
  29134. (WebInspector.AuditsPanel.prototype.showResults):
  29135. (WebInspector.AuditsPanel.prototype.showLauncherView):
  29136. (WebInspector.AuditsPanel.prototype.get visibleView):
  29137. (WebInspector.AuditsPanel.prototype.set visibleView):
  29138. (WebInspector.AuditsPanel.prototype.show):
  29139. (WebInspector.AuditsPanel.prototype._clearButtonClicked):
  29140. (WebInspector.AuditCategory.prototype.addRule):
  29141. (WebInspector.AuditRule):
  29142. (WebInspector.AuditRule.prototype.set severity):
  29143. (WebInspector.AuditRule.prototype.run):
  29144. (WebInspector.AuditRule.prototype.doRun):
  29145. (WebInspector.AuditCategoryResult):
  29146. (WebInspector.AuditCategoryResult.prototype.addRuleResult):
  29147. (WebInspector.AuditRuleResult):
  29148. (WebInspector.AuditRuleResult.prototype.addChild):
  29149. (WebInspector.AuditRuleResult.prototype.addURL):
  29150. (WebInspector.AuditRuleResult.prototype.addURLs):
  29151. (WebInspector.AuditRuleResult.prototype.addSnippet):
  29152. * inspector/front-end/Settings.js:
  29153. * inspector/front-end/audits.css:
  29154. * inspector/front-end/inspector.js:
  29155. (WebInspector._createPanels):
  29156. (WebInspector.documentKeyDown):
  29157. 2010-03-09 Yury Semikhatsky <yurys@chromium.org>
  29158. Reviewed by Pavel Feldman.
  29159. When enable resource tracking state changes use the same method as
  29160. location.reload for reloading inspected page.
  29161. https://bugs.webkit.org/show_bug.cgi?id=35923
  29162. * inspector/InspectorBackend.cpp:
  29163. (WebCore::InspectorBackend::reloadPage):
  29164. * inspector/InspectorController.cpp:
  29165. (WebCore::InspectorController::enableResourceTracking):
  29166. 2010-03-09 Pavel Feldman <pfeldman@chromium.org>
  29167. Reviewed by Timothy Hatcher.
  29168. Web Inspector: highlight text node containers while searching for node.
  29169. https://bugs.webkit.org/show_bug.cgi?id=35912
  29170. * inspector/InspectorController.cpp:
  29171. (WebCore::InspectorController::mouseDidMoveOverElement):
  29172. 2010-03-09 Philippe Normand <pnormand@igalia.com>
  29173. Reviewed by Gustavo Noronha Silva.
  29174. [GStreamer] player code cleanups
  29175. https://bugs.webkit.org/show_bug.cgi?id=35868
  29176. Cleaned up the private instance variables of the player.
  29177. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  29178. (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
  29179. (WebCore::MediaPlayerPrivate::fillTimerFired):
  29180. (WebCore::MediaPlayerPrivate::mediaLocationChanged):
  29181. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
  29182. 2010-03-09 Philippe Normand <pnormand@igalia.com>
  29183. Reviewed by Gustavo Noronha Silva.
  29184. [GStreamer] player code cleanups
  29185. https://bugs.webkit.org/show_bug.cgi?id=35868
  29186. Splitted GOwnPtrGtk.{cpp,h} to GOwnPtr{Soup,GStreamer}.{cpp,h}.
  29187. * GNUmakefile.am:
  29188. * platform/graphics/gstreamer/GOwnPtrGStreamer.cpp: Added.
  29189. (WTF::GstElement):
  29190. * platform/graphics/gstreamer/GOwnPtrGStreamer.h: Added.
  29191. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  29192. * platform/gtk/GOwnPtrGtk.cpp: Removed.
  29193. * platform/gtk/GOwnPtrGtk.h: Removed.
  29194. * platform/network/soup/CookieJarSoup.cpp:
  29195. * platform/network/soup/DNSSoup.cpp:
  29196. * platform/network/soup/GOwnPtrSoup.cpp: Added.
  29197. (WTF::SoupURI):
  29198. * platform/network/soup/GOwnPtrSoup.h: Added.
  29199. * platform/network/soup/ResourceHandleSoup.cpp:
  29200. * platform/network/soup/ResourceRequestSoup.cpp:
  29201. 2010-03-09 Shinichiro Hamaji <hamaji@chromium.org>
  29202. Reviewed by Eric Seidel.
  29203. [Chromium] Should remove paddings of Win/Linux chromium's buttons
  29204. https://bugs.webkit.org/show_bug.cgi?id=35629
  29205. No new tests, but we may need to rebaseline bunch of expectation
  29206. images in chromium's tree.
  29207. * rendering/RenderThemeChromiumSkia.cpp:
  29208. * rendering/RenderThemeChromiumSkia.h:
  29209. 2010-03-08 Kent Tamura <tkent@chromium.org>
  29210. Reviewed by Adam Barth.
  29211. Implement HTML5 <hgroup> element.
  29212. https://bugs.webkit.org/show_bug.cgi?id=33369
  29213. <hgroup> should behave the same as <nav>, <section>, <article>, and <aside>.
  29214. <hgroup> has no specific parsing rules.
  29215. Test: fast/html/hgroup-element.html
  29216. * css/html.css: Add hgroup as a block element.
  29217. * editing/htmlediting.cpp:
  29218. (WebCore::validBlockTag): Add hgroupTag.
  29219. * html/HTMLElement.cpp:
  29220. (WebCore::createTagPriorityMap): Returns 5 for hgroupTag.
  29221. (WebCore::blockTagList): Add hgroupTag.
  29222. * html/HTMLParser.cpp:
  29223. (WebCore::HTMLParser::getNode): Add hgroupTag.
  29224. * html/HTMLTagNames.in: Add hgroup.
  29225. 2010-03-08 Tony Chang <tony@chromium.org>
  29226. Reviewed by Adam Barth.
  29227. https://bugs.webkit.org/show_bug.cgi?id=32131
  29228. Crash when inserting an ordered list.
  29229. Test: editing/execCommand/insert-ordered-list.html
  29230. * editing/CompositeEditCommand.cpp:
  29231. (WebCore::CompositeEditCommand::moveParagraphs):
  29232. * editing/TextIterator.cpp:
  29233. (WebCore::TextIterator::rangeFromLocationAndLength):
  29234. 2010-03-08 Darin Adler <darin@apple.com>
  29235. Reviewed by Dan Bernstein.
  29236. Added a test for crash when you quit inside an unload handler.
  29237. rdar://problem/6958347
  29238. * manual-tests/quit-inside-unload.html: Added.
  29239. 2010-03-08 Darin Adler <darin@apple.com>
  29240. Reviewed by Jon Honeycutt.
  29241. Don't auto-play <audio> and <video> elements loaded in background tabs
  29242. https://bugs.webkit.org/show_bug.cgi?id=35886
  29243. rdar://problem/7117745
  29244. * manual-tests/video-in-non-frontmost-tab.html: Added.
  29245. * manual-tests/resources/video-tab.html: Added.
  29246. * html/HTMLMediaElement.h: Added MediaCanStartListener as a base class, and
  29247. added the mediaCanStart function as well as a boolean,
  29248. m_isWaitingUntilMediaCanStart.
  29249. * html/HTMLMediaElement.cpp:
  29250. (WebCore::HTMLMediaElement::HTMLMediaElement): Initialize
  29251. m_isWaitingUntilMediaCanStart.
  29252. (WebCore::HTMLMediaElement::~HTMLMediaElement): Call
  29253. removeMediaCanStartListener if m_isWaitingUntilMediaCanStart is true.
  29254. (WebCore::HTMLMediaElement::loadInternal): Set m_isWaitingUntilMediaCanStart
  29255. and call addMediaCanStartListener if canStartMedia is false.
  29256. (WebCore::HTMLMediaElement::mediaCanStart): Clear m_isWaitingUntilMediaCanStart
  29257. and call loadInternal.
  29258. 2010-03-08 Csaba Osztrogonác <ossy@webkit.org>
  29259. [GTK] Unreviewed buildfix after r55688.
  29260. * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
  29261. (webKitWebSrcStart):
  29262. 2010-03-08 Csaba Osztrogonác <ossy@webkit.org>
  29263. [GTK] Unreviewed buildfix after r55688.
  29264. * platform/network/soup/ResourceHandleSoup.cpp:
  29265. (WebCore::):
  29266. 2010-03-08 Csaba Osztrogonác <ossy@webkit.org>
  29267. [Qt] Unreviewed buildfix after r55688.
  29268. * platform/network/qt/ResourceHandleQt.cpp:
  29269. (WebCore::ResourceHandle::loadResourceSynchronously):
  29270. 2010-03-08 Alexey Proskuryakov <ap@apple.com>
  29271. Reviewed by Darin Adler.
  29272. https://bugs.webkit.org/show_bug.cgi?id=35879
  29273. Eliminate m_mightDownloadFromHandle
  29274. It was only used on Mac, and unnecessarily complicated the code.
  29275. No change in behavior, thus no test.
  29276. * loader/MainResourceLoader.cpp:
  29277. (WebCore::MainResourceLoader::loadNow):
  29278. * loader/ResourceLoader.cpp:
  29279. (WebCore::ResourceLoader::load):
  29280. * loader/appcache/ApplicationCacheGroup.cpp:
  29281. (WebCore::ApplicationCacheGroup::createResourceHandle):
  29282. * platform/network/ResourceHandle.cpp:
  29283. (WebCore::ResourceHandle::ResourceHandle):
  29284. (WebCore::ResourceHandle::create):
  29285. * platform/network/ResourceHandle.h:
  29286. * platform/network/ResourceHandleInternal.h:
  29287. (WebCore::ResourceHandleInternal::ResourceHandleInternal):
  29288. * platform/network/mac/ResourceHandleMac.mm:
  29289. (WebCore::ResourceHandle::start):
  29290. 2010-03-02 Peter Kasting <pkasting@google.com>
  29291. Reviewed by Adam Barth.
  29292. Clean up usage of m_failed in open-source image decoders, part 1.
  29293. https://bugs.webkit.org/show_bug.cgi?id=35411
  29294. Makes setFailed() virtual so subclasses can override it (none do yet) to
  29295. do automatic cleanup on failure; makes it return a bool for easy
  29296. tailcalling; makes failed() the only way to access m_failed so
  29297. subclasses are assured setFailed() won't be bypassed. Plus one or two
  29298. other tiny cleanup bits.
  29299. Overriding setFailed() is coming in a subsequent patch because it can be
  29300. hairy and needs close review.
  29301. No functional change, so no tests.
  29302. * platform/graphics/qt/ImageDecoderQt.cpp:
  29303. (WebCore::ImageDecoderQt::setData):
  29304. (WebCore::ImageDecoderQt::frameBufferAtIndex):
  29305. (WebCore::ImageDecoderQt::internalDecodeSize):
  29306. (WebCore::ImageDecoderQt::internalReadImage):
  29307. (WebCore::ImageDecoderQt::internalHandleCurrentImage):
  29308. (WebCore::ImageDecoderQt::forceLoadEverything):
  29309. (WebCore::ImageDecoderQt::clearPointers):
  29310. * platform/graphics/qt/ImageDecoderQt.h:
  29311. * platform/image-decoders/ImageDecoder.h:
  29312. (WebCore::ImageDecoder::ImageDecoder):
  29313. (WebCore::ImageDecoder::setData):
  29314. (WebCore::ImageDecoder::setSize):
  29315. (WebCore::ImageDecoder::setFailed):
  29316. (WebCore::ImageDecoder::failed):
  29317. * platform/image-decoders/bmp/BMPImageDecoder.cpp:
  29318. (WebCore::BMPImageDecoder::isSizeAvailable):
  29319. (WebCore::BMPImageDecoder::frameBufferAtIndex):
  29320. (WebCore::BMPImageDecoder::processFileHeader):
  29321. * platform/image-decoders/gif/GIFImageDecoder.cpp:
  29322. (WebCore::GIFImageDecoder::setData):
  29323. (WebCore::GIFImageDecoder::isSizeAvailable):
  29324. (WebCore::GIFImageDecoder::frameBufferAtIndex):
  29325. (WebCore::GIFImageDecoder::decode):
  29326. (WebCore::GIFImageDecoder::initFrameBuffer):
  29327. * platform/image-decoders/ico/ICOImageDecoder.cpp:
  29328. (WebCore::ICOImageDecoder::decodeAtIndex):
  29329. (WebCore::ICOImageDecoder::processDirectory):
  29330. (WebCore::ICOImageDecoder::processDirectoryEntries):
  29331. * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
  29332. (WebCore::JPEGImageReader::decode):
  29333. (WebCore::JPEGImageDecoder::setData):
  29334. (WebCore::JPEGImageDecoder::isSizeAvailable):
  29335. (WebCore::JPEGImageDecoder::frameBufferAtIndex):
  29336. (WebCore::JPEGImageDecoder::outputScanlines):
  29337. (WebCore::JPEGImageDecoder::decode):
  29338. * platform/image-decoders/png/PNGImageDecoder.cpp:
  29339. (WebCore::decodingFailed):
  29340. (WebCore::PNGImageReader::decode):
  29341. (WebCore::PNGImageDecoder::setData):
  29342. (WebCore::PNGImageDecoder::isSizeAvailable):
  29343. (WebCore::PNGImageDecoder::frameBufferAtIndex):
  29344. (WebCore::PNGImageDecoder::headerAvailable):
  29345. (WebCore::PNGImageDecoder::rowAvailable):
  29346. (WebCore::PNGImageDecoder::decode):
  29347. * platform/image-decoders/png/PNGImageDecoder.h:
  29348. 2010-03-08 Chris Marrin <cmarrin@apple.com>
  29349. Reviewed by Darin Adler.
  29350. Disallow WebGL when HW comp is not turned on at runtime
  29351. https://bugs.webkit.org/show_bug.cgi?id=35759
  29352. When HW comp is turned off with the runtime flag, WebGL would still
  29353. create a context, but silently fail to render. This prevents that.
  29354. Now if HW comp is turned off getContext('webgl') will return null.
  29355. * html/HTMLCanvasElement.cpp:
  29356. (WebCore::HTMLCanvasElement::getContext):
  29357. 2010-03-08 Darin Adler <darin@apple.com>
  29358. Reviewed by Jon Honeycutt.
  29359. https://bugs.webkit.org/show_bug.cgi?id=35876
  29360. Fix minor style issues in HTMLMediaElement and classes derived from it.
  29361. Made many public members private and protected.
  29362. * html/HTMLMediaElement.cpp:
  29363. (WebCore::HTMLMediaElement::screenRect): Got rid of a stray "const" and
  29364. retstructured the function to use early return and get rid of a local.
  29365. * html/HTMLMediaElement.h: Made lots of members private and some
  29366. protected. Also use private inheritance instead of public. Removed
  29367. some unneeded includes.
  29368. * html/HTMLVideoElement.cpp:
  29369. (WebCore::HTMLVideoElement::parseMappedAttribute): Use player() instead
  29370. of m_player; HTMLMediaElement data members are now private, not protected.
  29371. (WebCore::HTMLVideoElement::supportsFullscreen): Ditto.
  29372. (WebCore::HTMLVideoElement::videoWidth): Ditto.
  29373. (WebCore::HTMLVideoElement::videoHeight): Ditto.
  29374. (WebCore::HTMLVideoElement::hasAvailableVideoFrame): Ditto.
  29375. (WebCore::HTMLVideoElement::webkitEnterFullScreen): Use isFullscreen()
  29376. instead of m_isFullscreen; same reason.
  29377. (WebCore::HTMLVideoElement::webkitExitFullScreen): Ditto.
  29378. (WebCore::HTMLVideoElement::webkitDisplayingFullscreen): Ditto.
  29379. * html/HTMLVideoElement.h: Removed an unneeded include. Made many
  29380. public functions private. Got rid of unused paint function, which was
  29381. replaced with paintCurrentFrameInContext a while back.
  29382. 2010-03-08 Joanmarie Diggs <joanmarie.diggs@gmail.com>
  29383. Reviewed by Xan Lopez.
  29384. https://bugs.webkit.org/show_bug.cgi?id=30895
  29385. [Gtk] The accessible hierarchy of tables is significantly incorrect for Atk
  29386. Gives platforms the ability to exclude parts of an AccessibilityTable
  29387. from the accessible hierarchy.
  29388. * accessibility/gtk/AccessibilityObjectAtk.cpp:
  29389. (AccessibilityObject::accessibilityPlatformIncludesObject):
  29390. * accessibility/AccessibilityRenderObject.cpp:
  29391. (AccessibilityRenderObject::determineAccessibilityRole):
  29392. * accessibility/AccessibilityTable.cpp:
  29393. (AccessibilityTable::addChildren):
  29394. * accessibility/AccessibilityTableColumn.h:
  29395. (accessibilityIsIgnored):
  29396. * accessibility/AccessibilityTableHeaderContainer.h:
  29397. (accessibilityIsIgnored):
  29398. * accessibility/AccessibilityTableRow.cpp:
  29399. (accessibilityIsIgnored):
  29400. 2010-03-08 Jian Li <jianli@chromium.org>
  29401. No review. Fix build break on Tiger intel release.
  29402. * html/Blob.cpp:
  29403. * html/Blob.h:
  29404. 2010-03-02 Adam Treat <atreat@rim.com>
  29405. Reviewed by Dave Hyatt.
  29406. Refactor the HostWindow methods for repaint, scroll, invalidate and blit
  29407. of backingstore and window by eliminating the three bools that currently
  29408. exist as params of the repaint method.
  29409. https://bugs.webkit.org/show_bug.cgi?id=34214
  29410. I've added extra methods to provide the hosts with more semantic
  29411. information of what is being requested thus eliminating the need for
  29412. these bools.
  29413. No tests as this change should not introduce any behavior changes in any
  29414. of the ports.
  29415. https://bugs.webkit.org/show_bug.cgi?id=34214
  29416. * loader/EmptyClients.h:
  29417. (WebCore::EmptyChromeClient::invalidateContents):
  29418. (WebCore::EmptyChromeClient::invalidateWindow):
  29419. (WebCore::EmptyChromeClient::invalidateContentsAndWindow):
  29420. (WebCore::EmptyChromeClient::invalidateContentsForSlowScroll):
  29421. * page/Chrome.cpp:
  29422. (WebCore::Chrome::invalidateContents):
  29423. (WebCore::Chrome::invalidateWindow):
  29424. (WebCore::Chrome::invalidateContentsAndWindow):
  29425. (WebCore::Chrome::invalidateContentsForSlowScroll):
  29426. * page/Chrome.h:
  29427. * page/ChromeClient.h:
  29428. * page/FrameView.cpp:
  29429. (WebCore::FrameView::invalidateRect):
  29430. * platform/HostWindow.h:
  29431. * platform/ScrollView.cpp:
  29432. (WebCore::ScrollView::scrollContents):
  29433. (WebCore::ScrollView::wheelEvent):
  29434. 2010-03-08 Adam Barth <abarth@webkit.org>
  29435. Reviewed by Nate Chapin.
  29436. [V8] Block popups from inline script
  29437. https://bugs.webkit.org/show_bug.cgi?id=35474
  29438. Apparently, we're supposed to look at the sourceURL to figure out
  29439. whether we're running a script tag or a hyperlink. This logic is
  29440. copied from the JSC version.
  29441. Test: http/tests/security/popup-blocked-from-window-open.html
  29442. * bindings/v8/ScriptController.cpp:
  29443. (WebCore::ScriptController::processingUserGesture):
  29444. (WebCore::ScriptController::evaluate):
  29445. 2010-03-08 Stuart Morgan <stuartmorgan@chromium.org>
  29446. Reviewed by Darin Adler.
  29447. Move the details of secure text mode into WebCore/platform.
  29448. Move the higher-level logic for secure text mode from Frame
  29449. to SelectionController.
  29450. https://bugs.webkit.org/show_bug.cgi?id=31265
  29451. No new tests: no functional changes.
  29452. * WebCore.gypi:
  29453. * WebCore.xcodeproj/project.pbxproj:
  29454. * dom/Document.cpp:
  29455. (WebCore::Document::setUseSecureKeyboardEntryWhenActive):
  29456. * editing/SelectionController.cpp:
  29457. (WebCore::SelectionController::focusedOrActiveStateChanged):
  29458. (WebCore::SelectionController::updateSecureKeyboardEntryIfActive):
  29459. (WebCore::SelectionController::setUseSecureKeyboardEntry):
  29460. * editing/SelectionController.h:
  29461. * page/Frame.cpp:
  29462. (WebCore::Frame::setDocument):
  29463. * page/Frame.h:
  29464. * platform/SecureTextInput.cpp: Added.
  29465. (WebCore::enableSecureTextInput):
  29466. (WebCore::disableSecureTextInput):
  29467. * platform/SecureTextInput.h: Added.
  29468. (WebCore::enableSecureTextInput):
  29469. (WebCore::disableSecureTextInput):
  29470. 2010-03-08 Brady Eidson <beidson@apple.com>
  29471. Reviewed by Anders Carlsson.
  29472. Relax the 3rd party cookie policy in cases where it won't add a new tracking vector.
  29473. <rdar://problem/7163012> and https://bugs.webkit.org/show_bug.cgi?id=35824
  29474. Test: http/tests/cookies/third-party-cookie-relaxing.html
  29475. If the 3rd-party domain in question already has a cookie set, allow changes
  29476. by setting the first party url of the request to be the url of the request itself:
  29477. * platform/network/cf/ResourceHandleCFNet.cpp:
  29478. (WebCore::makeFinalRequest):
  29479. Ditto:
  29480. * platform/network/mac/ResourceHandleMac.mm:
  29481. (WebCore::ResourceHandle::start):
  29482. (WebCore::ResourceHandle::loadResourceSynchronously):
  29483. I've filed <rdar://problem/7728508> to track changing the policy in our networking layer.
  29484. 2010-03-08 Jian Li <jianli@chromium.org>
  29485. Reviewed by Dmitry Titov.
  29486. Blob.slice support.
  29487. https://bugs.webkit.org/show_bug.cgi?id=32993
  29488. The following semantic is adopted per the discussions on public-webapps:
  29489. 1) File.slice() does a synchronous IO to capture the current size and
  29490. modification time and cache them in the resulting Blob.
  29491. 2) Subsequent Blob operations, like Blob.slice and Blob.size simply
  29492. use the cached values.
  29493. 3) When the underlying file data are accessed, like in XHR.send(), the
  29494. UA will check the cached modification time against the current
  29495. modification time to determine if the file has been changed or not.
  29496. An error or exception will be thrown if needed.
  29497. Also add ENABLE_BLOB_SLICE feature define.
  29498. Test: http/tests/local/send-sliced-dragged-file.html
  29499. * Configurations/FeatureDefines.xcconfig:
  29500. * GNUmakefile.am:
  29501. * WebCore.pri:
  29502. * html/Blob.cpp:
  29503. (WebCore::Blob::Blob):
  29504. (WebCore::Blob::size):
  29505. (WebCore::Blob::slice):
  29506. * html/Blob.h:
  29507. (WebCore::Blob::start):
  29508. (WebCore::Blob::length):
  29509. (WebCore::Blob::modificationTime):
  29510. * html/Blob.idl:
  29511. * platform/network/FormData.cpp:
  29512. (WebCore::FormData::deepCopy):
  29513. (WebCore::FormData::appendFile):
  29514. (WebCore::FormData::appendFileRange):
  29515. * platform/network/FormData.h:
  29516. (WebCore::FormDataElement::FormDataElement):
  29517. (WebCore::operator==):
  29518. * platform/network/mac/FormDataStreamMac.mm:
  29519. (WebCore::advanceCurrentStream):
  29520. (WebCore::openNextStream):
  29521. (WebCore::formCreate):
  29522. (WebCore::formOpen):
  29523. (WebCore::formRead):
  29524. (WebCore::setHTTPBody):
  29525. * xml/XMLHttpRequest.cpp:
  29526. (WebCore::XMLHttpRequest::send):
  29527. 2010-03-08 Daniel Bates <dbates@rim.com>
  29528. Reviewed by Simon Fraser.
  29529. https://bugs.webkit.org/show_bug.cgi?id=34819
  29530. Fixes an issue where we repaint the caret rectangle even if the associated
  29531. selection is not in a content editable element. This is extraneous since the
  29532. caret is only visible when the selection is in a content editable element.
  29533. Hence, we should only repaint the caret rectangle when the associated selection
  29534. is in a content editable element.
  29535. Note, we always paint the caret when caret browsing is enabled.
  29536. Test: fast/repaint/no-caret-repaint-in-non-content-editable-element.html
  29537. * editing/SelectionController.cpp:
  29538. (WebCore::SelectionController::recomputeCaretRect): Modified to call method
  29539. SelectionController::shouldRepaintCaret.
  29540. (WebCore::SelectionController::shouldRepaintCaret): Added.
  29541. (WebCore::SelectionController::invalidateCaretRect): Modified to call method
  29542. SelectionController::shouldRepaintCaret.
  29543. * editing/SelectionController.h:
  29544. 2010-03-08 Eric Carlson <eric.carlson@apple.com>
  29545. Reviewed by Darin Adler.
  29546. YouTube HTML5 video never starts playing on Windows
  29547. https://bugs.webkit.org/show_bug.cgi?id=33954
  29548. * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
  29549. (WebCore::MediaPlayerPrivate::rfc2616DateStringFromTime): New, create an rfc 2616 formatted
  29550. string for an absolute time value.
  29551. (WebCore::addCookieParam): New, add a cookie param and value to a string builder.
  29552. (WebCore::MediaPlayerPrivate::setUpCookiesForQuickTime): Copy cookies for the movie to
  29553. be loaded from CFNetwork into WinINet so they are available when QuickTime tries to
  29554. download the movie.
  29555. (WebCore::MediaPlayerPrivate::load): Call setupCookiesForQuickTime.
  29556. * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:
  29557. 2010-03-08 Eric Uhrhane <ericu@chromium.org>
  29558. Reviewed by David Levin.
  29559. Remove the now-redundant Settings fields for the Database
  29560. https://bugs.webkit.org/show_bug.cgi?id=35763
  29561. No new tests; this code isn't called.
  29562. * WebCore.base.exp:
  29563. * page/Settings.cpp:
  29564. (WebCore::Settings::Settings):
  29565. * page/Settings.h:
  29566. 2010-03-07 David Levin <levin@chromium.org>
  29567. Chromium Linux build fix.
  29568. * platform/graphics/chromium/FontPlatformDataLinux.h: Add "class String" since a debug
  29569. only method returns a String.
  29570. 2010-03-07 Mark Rowe <mrowe@apple.com>
  29571. Chromium build fix.
  29572. * platform/chromium/ClipboardChromium.cpp: Include Image.h since we're using WebCore::Image.
  29573. 2010-03-07 Mark Rowe <mrowe@apple.com>
  29574. Gtk build fix.
  29575. * platform/network/soup/ResourceHandleSoup.cpp: Include SharedBuffer.h since we're using WebCore::SharedBuffer.
  29576. 2010-03-07 Mark Rowe <mrowe@apple.com>
  29577. Gtk build fix.
  29578. * platform/graphics/gtk/ImageGtk.cpp: Include SharedBuffer.h since we're using WebCore::SharedBuffer.
  29579. 2010-03-07 Mark Rowe <mrowe@apple.com>
  29580. Fix builds where USE_CG_SHADING is set.
  29581. * platform/graphics/cg/GradientCG.cpp: Include wtf/RetainPtr.h since WTF::RetainPtr is used when USE_CG_SHADING is set.
  29582. 2010-03-07 Mark Rowe <mrowe@apple.com>
  29583. Windows build fix. Add some required includes.
  29584. * platform/graphics/win/ImageCGWin.cpp:
  29585. * platform/network/cf/ResourceHandleCFNet.cpp:
  29586. * platform/win/ClipboardWin.cpp:
  29587. 2010-03-07 Mark Rowe <mrowe@apple.com>
  29588. Gtk build fix.
  29589. * platform/graphics/GraphicsContext.h: Include wtf/PassOwnPtr.h since some platforms use WTF::PassOwnPtr in this header.
  29590. 2010-03-07 Mark Rowe <mrowe@apple.com>
  29591. Qt build fix.
  29592. * platform/network/qt/ResourceHandleQt.cpp: Include SharedBuffer.h since we're using WebCore::SharedBuffer.
  29593. 2010-03-07 Mark Rowe <mrowe@apple.com>
  29594. Gtk build fix.
  29595. * platform/gtk/ClipboardGtk.cpp: Include Image.h since we're using WebCore::Image.
  29596. 2010-03-07 Mark Rowe <mrowe@apple.com>
  29597. Rubber-stamped by Cameron Zwarich.
  29598. Remove unnecessary includes from header files, adding them to the handful of implementation files that need them.
  29599. * loader/CachedCSSStyleSheet.cpp:
  29600. * loader/CachedFont.cpp:
  29601. * loader/CachedImage.cpp:
  29602. * loader/CachedResource.cpp:
  29603. * loader/CachedResource.h:
  29604. * loader/CachedScript.cpp:
  29605. * loader/CachedXSLStyleSheet.cpp:
  29606. * loader/icon/IconFetcher.cpp:
  29607. * loader/loader.cpp:
  29608. * page/Page.cpp:
  29609. * platform/graphics/Image.cpp:
  29610. * platform/graphics/Image.h:
  29611. * platform/graphics/cg/GraphicsContextPlatformPrivateCG.h:
  29612. * platform/graphics/cg/PDFDocumentImage.cpp:
  29613. * platform/graphics/cg/PathCG.cpp:
  29614. * platform/graphics/mac/ImageMac.mm:
  29615. 2010-03-07 Mark Rowe <mrowe@apple.com>
  29616. Chromium build fix.
  29617. * platform/chromium/ChromiumDataObject.h: Include SharedBuffer.h since the inline constructor of this
  29618. class means that the pointed-to type of the RefPtr member must be available.
  29619. 2010-03-07 Mark Rowe <mrowe@apple.com>
  29620. Qt build fix.
  29621. * platform/network/qt/DnsPrefetchHelper.cpp: Include PlatformString.h since we're using WebCore::String.
  29622. 2010-03-07 Kent Tamura <tkent@chromium.org>
  29623. Reviewed by Eric Seidel.
  29624. Fix a bug that validity.valueMissing for a radio button with required
  29625. in a form element always returns true.
  29626. https://bugs.webkit.org/show_bug.cgi?id=35472
  29627. Test: fast/forms/ValidityState-valueMissing-radio.html
  29628. * html/HTMLInputElement.cpp:
  29629. (WebCore::checkedRadioButtons): Move the location to be used by valueMissing().
  29630. (WebCore::HTMLInputElement::valueMissing):
  29631. Use checkedRadioButtons() instead of document()->checkedRadioButtons().
  29632. 2010-03-07 Mark Rowe <mrowe@apple.com>
  29633. Rubber-stamped by Cameron Zwarich.
  29634. Remove unnecessary includes from header files, adding them to the handful of implementation files that need them.
  29635. * bindings/objc/DOM.mm:
  29636. * loader/CachedImage.h:
  29637. * loader/EmptyClients.h:
  29638. * platform/graphics/GlyphPageTreeNode.cpp:
  29639. * platform/text/CString.h:
  29640. * platform/text/String.cpp:
  29641. * platform/text/mac/TextCodecMac.cpp:
  29642. * svg/graphics/SVGResourceFilter.h:
  29643. * svg/graphics/filters/SVGFEImage.h:
  29644. 2010-03-07 Mark Rowe <mrowe@apple.com>
  29645. Completely remove two files that were deleted in r55635 from the Xcode project.
  29646. * WebCore.xcodeproj/project.pbxproj:
  29647. 2010-03-07 Sam Weinig <sam@webkit.org>
  29648. Reviewed by Dan Bernstein.
  29649. Remove inconsistent "Too few arguments" handling for window.atob() and window.btoa()
  29650. https://bugs.webkit.org/show_bug.cgi?id=35848
  29651. - Take the opportunity to fully autogenerate window.atob() and window.btoa().
  29652. * bindings/js/JSDOMWindowCustom.cpp:
  29653. * page/DOMWindow.cpp:
  29654. (WebCore::DOMWindow::btoa):
  29655. (WebCore::DOMWindow::atob):
  29656. * page/DOMWindow.idl:
  29657. 2010-03-07 Dan Bernstein <mitz@apple.com>
  29658. Reviewed by Simon Fraser.
  29659. <rdar://problem/7722008> Column breaking ignores floats
  29660. https://bugs.webkit.org/show_bug.cgi?id=35837
  29661. Test: fast/multicol/float-truncation.html
  29662. Introduce an earlier column-break if otherwise a float that could fit
  29663. inside a single column will be split between columns.
  29664. It is still possible for floats to be needlessly broken if initially
  29665. they fit in the column, but normal flow truncation then shortens the
  29666. column.
  29667. * rendering/RenderBlock.cpp:
  29668. (WebCore::RenderBlock::visibleTopOfHighestFloatExtendingBelow): Added.
  29669. Returns the visible top of the highest descendant float that visibly
  29670. extends below the given y offset, ignoring floats that are taller than
  29671. the given maximum height.
  29672. (WebCore::RenderBlock::layoutColumns): If the initial column height
  29673. would cause a float to be split, truncate above the float.
  29674. * rendering/RenderBlock.h:
  29675. 2010-03-07 Dmitry Titov <dimich@chromium.org>
  29676. Not reviewed. Revert of r55593 which caused a regression of worker-cloneports.html.
  29677. REGRESSION(55593?): fast/workers/worker-cloneport.html is timing out on Leopard
  29678. https://bugs.webkit.org/show_bug.cgi?id=35819
  29679. * Android.jscbindings.mk:
  29680. * Android.v8bindings.mk:
  29681. * GNUmakefile.am:
  29682. * WebCore.gypi:
  29683. * WebCore.pro:
  29684. * WebCore.vcproj/WebCore.vcproj:
  29685. * WebCore.xcodeproj/project.pbxproj:
  29686. * bindings/js/JSDOMWindowCustom.cpp:
  29687. * bindings/js/JSDatabaseCallback.cpp: Removed.
  29688. * bindings/js/JSDatabaseCallback.h: Removed.
  29689. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  29690. * bindings/v8/custom/V8DatabaseCallback.cpp: Removed.
  29691. * bindings/v8/custom/V8DatabaseCallback.h: Removed.
  29692. * dom/Document.cpp:
  29693. (WebCore::Document::postTask):
  29694. * page/DOMWindow.cpp:
  29695. (WebCore::DOMWindow::openDatabase):
  29696. * page/DOMWindow.h:
  29697. * page/DOMWindow.idl:
  29698. * storage/Database.cpp:
  29699. (WebCore::Database::openDatabase):
  29700. (WebCore::Database::Database):
  29701. (WebCore::Database::performOpenAndVerify):
  29702. * storage/Database.h:
  29703. * storage/DatabaseCallback.h: Removed.
  29704. * workers/WorkerContext.cpp:
  29705. (WebCore::WorkerContext::openDatabase):
  29706. * workers/WorkerContext.h:
  29707. 2010-03-06 Mark Rowe <mrowe@apple.com>
  29708. Rubber-stamped by Sam Weinig.
  29709. Remove unnecessary includes of wtf/Platform.h. This is already pulled in by config.h.
  29710. * accessibility/AccessibilityObject.h:
  29711. * dom/XMLTokenizer.cpp:
  29712. * dom/XMLTokenizerLibxml2.cpp:
  29713. * dom/XMLTokenizerQt.cpp:
  29714. * editing/TextAffinity.h:
  29715. * loader/FrameLoaderClient.h:
  29716. * page/FocusController.cpp:
  29717. * page/FrameTree.cpp:
  29718. * page/Geolocation.h:
  29719. * page/PositionCallback.h:
  29720. * page/PositionErrorCallback.h:
  29721. * platform/Cursor.h:
  29722. * platform/FileSystem.h:
  29723. * platform/FloatConversion.h:
  29724. * platform/KeyboardCodes.h:
  29725. * platform/PlatformKeyboardEvent.h:
  29726. * platform/PlatformTouchPoint.h:
  29727. * platform/SuddenTermination.h:
  29728. * platform/Widget.h:
  29729. * platform/graphics/Color.h:
  29730. * platform/graphics/FloatPoint.h:
  29731. * platform/graphics/FloatSize.h:
  29732. * platform/graphics/GraphicsContext.h:
  29733. * platform/graphics/IntPoint.h:
  29734. * platform/graphics/IntRect.h:
  29735. * platform/graphics/IntSize.h:
  29736. * platform/graphics/openvg/PainterOpenVG.h:
  29737. * platform/graphics/openvg/SurfaceOpenVG.h:
  29738. * platform/network/ResourceHandleClient.h:
  29739. * platform/text/Base64.cpp:
  29740. * rendering/style/SVGRenderStyle.h:
  29741. * xml/XSLTProcessor.cpp:
  29742. * xml/XSLTProcessorLibxslt.cpp:
  29743. * xml/XSLTProcessorQt.cpp:
  29744. 2010-03-06 Sam Weinig <sam@webkit.org>
  29745. Reviewed by Dan Bernstein.
  29746. Move debug only JS wrapper-set tracking code into its own file.
  29747. https://bugs.webkit.org/show_bug.cgi?id=35839
  29748. * GNUmakefile.am: Added new files.
  29749. * WebCore.gypi: Ditto.
  29750. * WebCore.pro: Ditto.
  29751. * WebCore.vcproj/WebCore.vcproj: Ditto.
  29752. * WebCore.xcodeproj/project.pbxproj: Ditto.
  29753. * bindings/js/JSDOMBinding.cpp:
  29754. (WebCore::cacheDOMObjectWrapper):
  29755. (WebCore::forgetDOMObject):
  29756. (WebCore::forgetDOMNode):
  29757. (WebCore::cacheDOMNodeWrapper):
  29758. (WebCore::takeWrappers):
  29759. (WebCore::updateDOMNodeDocument):
  29760. Updated for new signature for willCacheWrapper and didUncacheWrapper.
  29761. * bindings/js/JSDOMWrapper.cpp: Added.
  29762. (WebCore::DOMObject::~DOMObject):
  29763. (WebCore::DOMObject::defineOwnProperty):
  29764. Moved from JSDOMBinding.cpp.
  29765. * bindings/js/JSDebugWrapperSet.cpp: Added.
  29766. (WebCore::JSDebugWrapperSet::shared):
  29767. (WebCore::JSDebugWrapperSet::JSDebugWrapperSet):
  29768. * bindings/js/JSDebugWrapperSet.h: Added.
  29769. (WebCore::JSDebugWrapperSet::add):
  29770. (WebCore::JSDebugWrapperSet::remove):
  29771. (WebCore::JSDebugWrapperSet::contains):
  29772. (WebCore::JSDebugWrapperSet::willCacheWrapper):
  29773. (WebCore::JSDebugWrapperSet::didUncacheWrapper):
  29774. Moved from JSDOMBinding.cpp.
  29775. 2010-03-06 Sam Weinig <sam@webkit.org>
  29776. Rubber-stamped by Dan Bernstein.
  29777. Move DOMObjectHashTableMap, DOMWrapperWorld and WebCoreJSClientData into
  29778. their own files.
  29779. * GNUmakefile.am:
  29780. * WebCore.gypi:
  29781. * WebCore.pro:
  29782. * WebCore.vcproj/WebCore.vcproj:
  29783. * WebCore.xcodeproj/project.pbxproj:
  29784. * bindings/js/DOMObjectHashTableMap.cpp: Copied from bindings/js/JSDOMBinding.cpp.
  29785. * bindings/js/DOMObjectHashTableMap.h: Copied from bindings/js/JSDOMBinding.h.
  29786. (WebCore::DOMObjectHashTableMap::~DOMObjectHashTableMap):
  29787. (WebCore::DOMObjectHashTableMap::get):
  29788. * bindings/js/DOMWrapperWorld.cpp: Copied from bindings/js/JSDOMBinding.cpp.
  29789. (WebCore::forgetWorldOfDOMNodesForDocument):
  29790. * bindings/js/DOMWrapperWorld.h: Copied from bindings/js/JSDOMBinding.h.
  29791. (WebCore::DOMWrapperWorld::create):
  29792. (WebCore::DOMWrapperWorld::rememberDocument):
  29793. (WebCore::DOMWrapperWorld::forgetDocument):
  29794. (WebCore::DOMWrapperWorld::isNormal):
  29795. (WebCore::debuggerWorld):
  29796. (WebCore::pluginWorld):
  29797. (WebCore::currentWorld):
  29798. (WebCore::Document::getWrapperCache):
  29799. * bindings/js/JSDOMBinding.cpp:
  29800. * bindings/js/JSDOMBinding.h:
  29801. * bindings/js/JSDOMWindowBase.cpp:
  29802. * bindings/js/ScriptController.cpp:
  29803. * bindings/js/WebCoreJSClientData.h: Copied from bindings/js/JSDOMBinding.h.
  29804. (WebCore::WebCoreJSClientData::WebCoreJSClientData):
  29805. (WebCore::WebCoreJSClientData::~WebCoreJSClientData):
  29806. (WebCore::WebCoreJSClientData::normalWorld):
  29807. (WebCore::WebCoreJSClientData::getAllWorlds):
  29808. (WebCore::WebCoreJSClientData::rememberWorld):
  29809. (WebCore::WebCoreJSClientData::forgetWorld):
  29810. * bindings/js/WorkerScriptController.cpp:
  29811. 2010-03-06 Dan Bernstein <mitz@apple.com>
  29812. Rubber-stamped by Sam Weinig.
  29813. Remove an unused method.
  29814. * rendering/RenderBlock.cpp:
  29815. (WebCore::RenderBlock::layoutBlock): Changed comment.
  29816. (WebCore::RenderBlock::floatRect): Removed.
  29817. * rendering/RenderBlock.h: Removed floatRect().
  29818. 2010-03-06 Pavel Feldman <pfeldman@chromium.org>
  29819. Reviewed by Timothy Hatcher.
  29820. Web Inspector: make timeline overview bars transparent to mouse events.
  29821. https://bugs.webkit.org/show_bug.cgi?id=35832
  29822. * inspector/front-end/inspector.css:
  29823. 2010-03-06 Pavel Feldman <pfeldman@chromium.org>
  29824. Reviewed by Jeremy Orlow.
  29825. Web Inspector: switching to/from Timeline Panel moves scroller.
  29826. (Also added couple of record details items as I was fixing it).
  29827. https://bugs.webkit.org/show_bug.cgi?id=35829
  29828. * English.lproj/localizedStrings.js:
  29829. * inspector/front-end/TimelinePanel.js:
  29830. (WebInspector.TimelinePanel):
  29831. (WebInspector.TimelinePanel.prototype.get defaultFocusedElement):
  29832. (WebInspector.TimelinePanel.prototype.show):
  29833. (WebInspector.TimelinePanel.prototype._refreshRecords):
  29834. (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
  29835. 2010-03-06 Patrick Gansterer <paroga@paroga.com>
  29836. Reviewed by Eric Seidel.
  29837. Removed unnecessary WinCE file.
  29838. The same functionality is provided by platform/win/SystemTimeWin.cpp.
  29839. https://bugs.webkit.org/show_bug.cgi?id=35799
  29840. * platform/wince/SystemTimeWince.cpp: Removed.
  29841. 2010-03-06 Joanmarie Diggs <joanmarie.diggs@gmail.com>
  29842. Reviewed by Eric Seidel.
  29843. https://bugs.webkit.org/show_bug.cgi?id=30895
  29844. [Gtk] The accessible hierarchy of tables is significantly incorrect for Atk
  29845. This completes the fixing of the Atk table hierarchy which was started
  29846. in bug #35418.
  29847. * accessibility/gtk/AccessibilityObjectAtk.cpp:
  29848. (AccessibilityObject::accessibilityPlatformIncludesObject):
  29849. * accessibility/AccessibilityRenderObject.cpp:
  29850. (AccessibilityRenderObject::determineAccessibilityRole):
  29851. 2010-03-06 MORITA Hajime <morrita@google.com>
  29852. Reviewed by Darin Adler.
  29853. Moved implementations of window.btoa() and window.atob() from
  29854. JSDOMWindow to DOMWindow, and make V8DOMWindow use DOMWindow
  29855. functions instead of having a separate implementation. As a side effect, the
  29856. error message has changed from "Cannot decode base64" to one that
  29857. indicates DOM Exception, which is compatible to Firefox.
  29858. Refactoring: window.btoa() and window.atob() should be implemented on DOMWindow
  29859. https://bugs.webkit.org/show_bug.cgi?id=35723
  29860. No new test. No new functionality.
  29861. * bindings/js/JSDOMWindowCustom.cpp:
  29862. (WebCore::JSDOMWindow::atob):
  29863. (WebCore::JSDOMWindow::btoa):
  29864. Moved conversion code to DOMWindow and invoke it. Argument
  29865. checking remains here.
  29866. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  29867. (WebCore::V8DOMWindow::atobCallback):
  29868. (WebCore::V8DOMWindow::btoaCallback):
  29869. Remove conversion code and call DOMWindow APIs. Although argument
  29870. checking remains here.
  29871. * page/DOMWindow.cpp:
  29872. (WebCore::hasMultibyteCharacters):
  29873. (WebCore::DOMWindow::btoa):
  29874. (WebCore::DOMWindow::atob):
  29875. * page/DOMWindow.h:
  29876. Moved Conversion code from JSDOMWindow, modifing to fit JSC independent.
  29877. 2010-03-06 Yuta Kitamura <yutak@chromium.org>
  29878. Reviewed by Eric Seidel.
  29879. Fix decoration position in search input field.
  29880. This patch fixes rendering of input field of "search" type, whose decoration
  29881. (loupe icon and close button) was wrongly positioned when the input field was
  29882. contained in a block with -webkit-transform property.
  29883. Chromium bug: http://crbug.com/20439
  29884. [Chromium] Decoration of "search" input field is wrongly rendered
  29885. https://bugs.webkit.org/show_bug.cgi?id=30245
  29886. No new tests, since this patch fixes an existing test
  29887. (fast/forms/search-transformed.html) in Chromium layout tests.
  29888. * rendering/RenderThemeChromiumSkia.cpp:
  29889. (WebCore::RenderThemeChromiumSkia::convertToPaintingRect): Added. This method
  29890. does almost the same thing as RenderThemeMac::convertToPaintingRect.
  29891. (WebCore::RenderThemeChromiumSkia::paintSearchFieldCancelButton): The position
  29892. of the icon should not depend on its absolute position.
  29893. (WebCore::RenderThemeChromiumSkia::paintSearchFieldResultsDecoration): Ditto.
  29894. (WebCore::RenderThemeChromiumSkia::paintSearchFieldResultsButton): Ditto.
  29895. * rendering/RenderThemeChromiumSkia.h: Added new method.
  29896. 2010-03-06 Ilya Tikhonovsky <loislo@chromium.org>
  29897. Reviewed by Pavel Feldman.
  29898. Web Inspector: in Timeline panel, click followed with mouse move resets popover.
  29899. https://bugs.webkit.org/show_bug.cgi?id=35827
  29900. * inspector/front-end/Popover.js:
  29901. (WebInspector.PopoverHelper.prototype._mouseDown):
  29902. (WebInspector.PopoverHelper.prototype._mouseMove):
  29903. (WebInspector.PopoverHelper.prototype._handleMouseAction):
  29904. 2010-03-05 Tony Chang <tony@chromium.org>
  29905. Reviewed by Eric Seidel.
  29906. https://bugs.webkit.org/show_bug.cgi?id=33247
  29907. Backwards cursor movement incorrect when previous block ends with <br>.
  29908. If the cursor is trying to move into a node that has a height of 0,
  29909. skip over it.
  29910. Test: editing/execCommand/move-selection-back-line.html
  29911. * editing/visible_units.cpp:
  29912. (WebCore::previousLinePosition):
  29913. 2010-03-05 Andrey Kosyakov <caseq@chromium.org>
  29914. Reviewed by Eric Seidel.
  29915. Enable resource loading callback while loading worker scripts
  29916. https://bugs.webkit.org/show_bug.cgi?id=35744
  29917. * workers/WorkerScriptLoader.cpp:
  29918. (WebCore::WorkerScriptLoader::loadSynchronously):
  29919. (WebCore::WorkerScriptLoader::loadAsynchronously):
  29920. 2010-03-05 Chris Fleizach <cfleizach@apple.com>
  29921. Reviewed by Eric Seidel.
  29922. WAI-ARIA live region doesn't appear when <div> only has a <div> child
  29923. https://bugs.webkit.org/show_bug.cgi?id=35751
  29924. Elements should not be ignored if they carry ARIA attributes in them.
  29925. Test: platform/mac/accessibility/div-containing-div-with-aria.html
  29926. * accessibility/AccessibilityObject.cpp:
  29927. (WebCore::AccessibilityObject::supportsARIAAttributes):
  29928. * accessibility/AccessibilityObject.h:
  29929. (WebCore::AccessibilityObject::supportsARIADropping):
  29930. (WebCore::AccessibilityObject::supportsARIADragging):
  29931. * accessibility/AccessibilityRenderObject.cpp:
  29932. (WebCore::AccessibilityRenderObject::supportsARIADropping):
  29933. (WebCore::AccessibilityRenderObject::supportsARIADragging):
  29934. (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
  29935. * accessibility/AccessibilityRenderObject.h:
  29936. 2010-03-05 Dmitry Titov <dimich@chromium.org>
  29937. Reviewed by Oliver Hunt.
  29938. Add a manual test for crash in DOMWindow::clearTimeout when DOMWindow is not connected to Frame
  29939. https://bugs.webkit.org/show_bug.cgi?id=32353
  29940. * manual-tests/clearTimeout-crash-bug29832.html: Added.
  29941. 2010-03-05 Dmitry Titov <dimich@chromium.org>
  29942. Reviewed by David Levin.
  29943. [v8] Remove wrong assert in GC callback
  29944. https://bugs.webkit.org/show_bug.cgi?id=35757
  29945. Test: fast/workers/wrapper-map-gc.html
  29946. * bindings/v8/DOMData.h:
  29947. (WebCore::DOMData::handleWeakObject): remove ASSERT(isMainThread()), move another assert up to verify we are on the right thread.
  29948. 2010-03-05 Alex Milowski <alex@milowski.com>
  29949. Reviewed by Kenneth Rohde Christiansen.
  29950. Added support for row layout with stretchy operators and
  29951. adjusted the over spacing for over and underover accordingly.
  29952. Tests: mathml/presentation/mo.xhtml
  29953. mathml/presentation/row.xhtml
  29954. * WebCore.xcodeproj/project.pbxproj:
  29955. * mathml/MathMLInlineContainerElement.cpp:
  29956. * mathml/MathMLTextElement.cpp:
  29957. * mathml/RenderMathMLMath.cpp: Added.
  29958. * mathml/RenderMathMLMath.h: Added.
  29959. * mathml/RenderMathMLOperator.cpp: Added.
  29960. * mathml/RenderMathMLOperator.h: Added.
  29961. * mathml/RenderMathMLRow.cpp: Added.
  29962. * mathml/RenderMathMLRow.h: Added.
  29963. * mathml/RenderMathMLUnderOver.cpp:
  29964. * mathml/mathtags.in:
  29965. 2010-03-05 Dean Jackson <dino@apple.com>
  29966. Reviewed by Simon Fraser.
  29967. https://bugs.webkit.org/show_bug.cgi?id=35772
  29968. Animation fill modes should be supported in the shorthand property
  29969. Add CSSPropertyWebkitAnimationFillMode to the list of properties
  29970. evaluated in the -webkit-animation shorthand.
  29971. Test: animations/animation-shorthand.html
  29972. * css/CSSParser.cpp:
  29973. (WebCore::CSSParser::parseAnimationShorthand):
  29974. 2010-03-05 Dean Jackson <dino@apple.com>
  29975. Reviewed by Simon Fraser
  29976. https://bugs.webkit.org/show_bug.cgi?id=35815
  29977. Animation Fill Modes fail on Windows
  29978. * css/CSSComputedStyleDeclaration.cpp:
  29979. * css/CSSStyleSelector.cpp:
  29980. * platform/graphics/mac/GraphicsLayerCA.mm:
  29981. - use new enum value
  29982. * platform/animation/Animation.h:
  29983. - change bitfield type
  29984. * rendering/style/RenderStyleConstants.h:
  29985. - add new enum for fill mode
  29986. 2010-03-05 Csaba Osztrogonác <ossy@webkit.org>
  29987. Unreviewed buildfix after r55593. (To fix Qt --minimal build.)
  29988. * bindings/js/JSDOMWindowCustom.cpp: Missing #if ENABLE(DATABASE) guard added.
  29989. 2010-03-05 Simon Fraser <simon.fraser@apple.com>
  29990. Reviewed by Darin Adler.
  29991. ASSERTION FAILED: rootLayer == m_clipRectsRoot at hulu.com
  29992. https://bugs.webkit.org/show_bug.cgi?id=34065
  29993. <rdar://problem/7573509>
  29994. Fix one instance of this assertion (not necessarily the one seen on hulu.com).
  29995. If the layer that clippingRoot() is being called on is itself compositing,
  29996. then it acts as the clipping root. Without this, calls to RenderLayer::childrenClipRect()
  29997. and RenderLayer::selfClipRect() via FrameView::windowClipRectForLayer(), for plug-ins,
  29998. caused the caching of an incorrect clip rects root.
  29999. Test: compositing/geometry/object-clip-rects-assertion.html
  30000. * rendering/RenderLayer.cpp:
  30001. (WebCore::RenderLayer::clippingRoot):
  30002. 2010-03-05 Simon Fraser <simon.fraser@apple.com>
  30003. Reviewed by Dan Bernstein.
  30004. Child clipping compositing layers don't show the blue debug color
  30005. https://bugs.webkit.org/show_bug.cgi?id=35807
  30006. Set a layer owner on the GraphicsLayers created for clipping children,
  30007. so that they can get to the debug settings that give them the blue color.
  30008. * rendering/RenderLayerBacking.cpp:
  30009. (WebCore::RenderLayerBacking::updateClippingLayers):
  30010. 2010-03-05 Simon Fraser <simon.fraser@apple.com>
  30011. Reviewed by Dan Bernstein.
  30012. MobileMe movie page is missing playback controls
  30013. https://bugs.webkit.org/show_bug.cgi?id=35805
  30014. <rdar://problem/7653169>
  30015. On pages with video or plug-ins, we run overlap tests to determine which layers
  30016. need to be composited. There was an ordering dependency bug in
  30017. RenderLayerCompositor::computeCompositingRequirements() that caused us to fail
  30018. to detect that a layer needed to be composited, resulting in page content
  30019. not being visible.
  30020. Specifically, layer->setHasCompositingDescendant() can change the answer
  30021. to needsToBeComposited(), when a layer has to clip compositing descendants.
  30022. So if we change setHasCompositingDescendant(), then we need to re-test
  30023. clipsCompositingDescendants() and add the layer to the overlap map if so.
  30024. Test: compositing/overflow/overflow-compositing-descendant.html
  30025. * rendering/RenderLayerCompositor.cpp:
  30026. (WebCore::RenderLayerCompositor::computeCompositingRequirements):
  30027. 2010-03-04 Dumitru Daniliuc <dumi@chromium.org>
  30028. Reviewed by Adam Barth.
  30029. Adding support for the optional creation callback that could be
  30030. passed to openDatabase().
  30031. Test: storage/open-database-creation-callback.html
  30032. https://bugs.webkit.org/show_bug.cgi?id=34726
  30033. * Android.jscbindings.mk
  30034. * Android.v8bindings.mk
  30035. * GNUmakefile.am:
  30036. * WebCore.gypi:
  30037. * WebCore.pro:
  30038. * WebCore.vcproj/WebCore.vcproj:
  30039. * WebCore.xcodeproj/project.pbxproj:
  30040. * bindings/js/JSDOMWindowCustom.cpp:
  30041. (WebCore::JSDOMWindow::openDatabase):
  30042. * bindings/js/JSDatabaseCallback.cpp: Added.
  30043. (WebCore::JSDatabaseCallback::JSDatabaseCallback):
  30044. (WebCore::JSDatabaseCallback::~JSDatabaseCallback):
  30045. (WebCore::JSDatabaseCallback::handleEvent):
  30046. * bindings/js/JSDatabaseCallback.h: Added.
  30047. (WebCore::JSDatabaseCallback::create):
  30048. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  30049. (WebCore::V8DOMWindow::openDatabaseCallback):
  30050. * bindings/v8/custom/V8DatabaseCallback.cpp: Added.
  30051. (WebCore::V8DatabaseCallback::V8DatabaseCallback):
  30052. (WebCore::V8DatabaseCallback::~V8DatabaseCallback):
  30053. (WebCore::V8DatabaseCallback::handleEvent):
  30054. * bindings/v8/custom/V8DatabaseCallback.h: Added.
  30055. (WebCore::V8DatabaseCallback::create):
  30056. * page/DOMWindow.cpp:
  30057. (WebCore::DOMWindow::openDatabase):
  30058. * page/DOMWindow.h:
  30059. * page/DOMWindow.idl:
  30060. * storage/Database.cpp:
  30061. (WebCore::DatabaseCreationCallbackTask::create):
  30062. (WebCore::DatabaseCreationCallbackTask::performTask):
  30063. (WebCore::DatabaseCreationCallbackTask::DatabaseCreationCallbackTask):
  30064. (WebCore::Database::openDatabase):
  30065. (WebCore::Database::Database):
  30066. (WebCore::Database::performOpenAndVerify):
  30067. (WebCore::Database::performCreationCallback):
  30068. * storage/Database.h:
  30069. (WebCore::Database::isNew):
  30070. * storage/DatabaseCallback.h: Added.
  30071. (WebCore::DatabaseCallback::~DatabaseCallback):
  30072. * workers/WorkerContext.cpp:
  30073. (WebCore::WorkerContext::openDatabase):
  30074. * workers/WorkerContext.h:
  30075. 2010-03-05 Chris Marrin <cmarrin@apple.com>
  30076. Reviewed by Simon Fraser.
  30077. Fixed infinite recursion of composited video on Windows
  30078. https://bugs.webkit.org/show_bug.cgi?id=35798
  30079. Due to a change in the way we get the platformLayer (WKCACFLayer)
  30080. for video, the mediaplayer was in an infinite loop with WKCACFLayer
  30081. bouncing notifySyncRequired calls back and forth. After discussion
  30082. we decided it would be better to avoid notifySyncRequired entirely,
  30083. which would walk up through WebCore calls and back down through
  30084. WebKit calls to tell the WKCACFLayerRenderer to kick off a render cycle.
  30085. I subclassed WKCACFLayer into a WKCACFRootLayer which has a pointer to
  30086. the WKCACFLayerRenderer. When something changes, we get the rootLayer()
  30087. by walking up the layers and make a virtual call which WKCACFRootLayer
  30088. implements to tell WKCACFLayerRenderer to render.
  30089. I also got rid of GraphicsLayer knowledge from WKCACFLayer. GraphicsLayerCACF
  30090. now makes a WebLayer subclass which implements the drawInContext()
  30091. virtual method.
  30092. I also had to add protection to the platformLayer() call in
  30093. MediaPlayerPrivateQuickTimeWin because it gets called earlier than before
  30094. when the layer is still null.
  30095. * platform/graphics/win/GraphicsLayerCACF.cpp:Implement WebLayer
  30096. (WebCore::WebLayer::create):
  30097. (WebCore::WebLayer::drawInContext):
  30098. (WebCore::WebLayer::WebLayer):
  30099. (WebCore::GraphicsLayerCACF::GraphicsLayerCACF):
  30100. (WebCore::GraphicsLayerCACF::setNeedsDisplayInRect):
  30101. (WebCore::GraphicsLayerCACF::updateLayerPreserves3D):
  30102. (WebCore::GraphicsLayerCACF::updateContentsImage):
  30103. * platform/graphics/win/GraphicsLayerCACF.h:
  30104. * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:Protect platformLayer from a null qtLayer
  30105. (WebCore::MediaPlayerPrivate::platformLayer):
  30106. * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:Got rid of no longer needed method
  30107. (WebCore::MediaPlayerPrivate::notifyAnimationStarted):
  30108. * platform/graphics/win/WKCACFLayer.cpp:Got rid of GraphicsLayer dependency. Made virtual.
  30109. (WebCore::displayCallback):
  30110. (WebCore::WKCACFLayer::create):
  30111. (WebCore::WKCACFLayer::WKCACFLayer):
  30112. (WebCore::WKCACFLayer::setNeedsCommit):
  30113. (WebCore::WKCACFLayer::setNeedsDisplay):
  30114. * platform/graphics/win/WKCACFLayer.h:
  30115. (WebCore::WKCACFLayer::setNeedsRender):
  30116. (WebCore::WKCACFLayer::drawInContext):
  30117. * platform/graphics/win/WKCACFLayerRenderer.cpp:Create WKCACFRootLayer which tells WKCACFLayerRenderer to render
  30118. (WebCore::WKCACFRootLayer::WKCACFRootLayer):
  30119. (WebCore::WKCACFRootLayer::create):
  30120. (WebCore::WKCACFRootLayer::setNeedsRender):
  30121. (WebCore::WKCACFRootLayer::setNeedsDisplay):
  30122. (WebCore::WKCACFLayerRenderer::rootLayer):
  30123. (WebCore::WKCACFLayerRenderer::setRootChildLayer):
  30124. (WebCore::WKCACFLayerRenderer::setNeedsDisplay):
  30125. (WebCore::WKCACFLayerRenderer::createRenderer):
  30126. * platform/graphics/win/WKCACFLayerRenderer.h:
  30127. 2010-03-05 Dimitri Glazkov <dglazkov@chromium.org>
  30128. Reviewed by David Levin.
  30129. [Chromium] Missing commas in WebCore.gypi file make building Geo unpossible.
  30130. https://bugs.webkit.org/show_bug.cgi?id=35797
  30131. No new tests, this is a latent compile break.
  30132. * WebCore.gypi:
  30133. 2010-03-04 Eric Carlson <eric.carlson@apple.com>
  30134. Reviewed by Adele Peterson.
  30135. <rdar://problem/7718442> Implement 'preload=none'
  30136. https://bugs.webkit.org/show_bug.cgi?id=35789
  30137. Don't load any media data when preload is 'none'.
  30138. Test: media/video-preload.html
  30139. * html/HTMLMediaElement.cpp:
  30140. (WebCore::HTMLMediaElement::loadResource): Don't call player's setPreload method
  30141. when autoplay is set.
  30142. * platform/graphics/MediaPlayer.cpp:
  30143. (WebCore::MediaPlayer::setPreload): Set m_preload so we have the correct value when
  30144. the media engine is created.
  30145. * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
  30146. * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
  30147. (WebCore::MediaPlayerPrivate::MediaPlayerPrivate): Initialize m_preload.
  30148. (WebCore::MediaPlayerPrivate::resumeLoad): New, kick off postponed a load.
  30149. (WebCore::MediaPlayerPrivate::load): Do nothing if preload is 'none'
  30150. (WebCore::MediaPlayerPrivate::loadInternal): New, complete loading.
  30151. (WebCore::MediaPlayerPrivate::prepareToPlay): New, resume a postponed load as someone
  30152. has called play().
  30153. (WebCore::MediaPlayerPrivate::setPreload): New, set m_preload.
  30154. 2010-03-04 Nate Chapin <japhet@chromium.org>
  30155. Reviewed by Dimitri Glazkov.
  30156. [V8] Give CodeGeneratorV8.pm a much-needed spring cleaning.
  30157. https://bugs.webkit.org/show_bug.cgi?id=35697
  30158. * bindings/scripts/CodeGeneratorV8.pm: Remove unused code, fix style issues, make less hard-coded.
  30159. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  30160. (WebCore::V8DOMWindow::addEventListenerCallback):
  30161. (WebCore::V8DOMWindow::removeEventListenerCallback):
  30162. 2010-03-05 Pavel Feldman <pfeldman@chromium.org>
  30163. Not reviewed. Roll back r55522 since it regreses performance
  30164. according to chromium's page cycler.
  30165. https://bugs.webkit.org/show_bug.cgi?id=35568
  30166. 2010-03-05 Dean Jackson <dino@apple.com>
  30167. Reviewed by Simon Fraser and Chris Marrin.
  30168. Bug 26869: Add fill modes for CSS Animations
  30169. https://bugs.webkit.org/show_bug.cgi?id=26869
  30170. Tests: animations/fill-mode-removed.html
  30171. animations/fill-mode-transform.html
  30172. animations/fill-mode.html
  30173. * css/CSSComputedStyleDeclaration.cpp:
  30174. * css/CSSParser.cpp:
  30175. * css/CSSParser.h:
  30176. * css/CSSPropertyNames.in:
  30177. * css/CSSStyleSelector.cpp:
  30178. * css/CSSStyleSelector.h:
  30179. * css/CSSValueKeywords.in:
  30180. - parse, assign and retrieve the value of the new
  30181. -webkit-animation-fill-mode property
  30182. * page/animation/AnimationBase.cpp:
  30183. * page/animation/AnimationBase.h:
  30184. - new state in animation engine for a finished animation
  30185. that is "filling" forwards in time. This allows the
  30186. engine to keep the animation around and not revert to the
  30187. old style.
  30188. - update the timer code to indicate it doesn't need to
  30189. keep animating if it is filling
  30190. - now that animations can extend beyond their elapsed time,
  30191. make sure progress works correctly with iteration counts
  30192. * page/animation/KeyframeAnimation.cpp:
  30193. (WebCore::KeyframeAnimation::animate):
  30194. - ensure correct style value is returned at the right
  30195. time by checking for fill mode
  30196. (WebCore::KeyframeAnimation::onAnimationEnd):
  30197. - continue to send the end event, but only remove the
  30198. animation if it isn't filling forwards
  30199. * platform/animation/Animation.cpp:
  30200. * platform/animation/Animation.h:
  30201. - new fill mode member property
  30202. * platform/animation/AnimationList.cpp:
  30203. - ensure the fill mode is propagated to a list of style valus
  30204. * platform/graphics/mac/GraphicsLayerCA.mm:
  30205. - make hardware layers use Core Animation's fill mode
  30206. 2010-03-05 Ilya Tikhonovsky <loislo@chromium.org>
  30207. Reviewed by Pavel Feldman.
  30208. Web Inspector: Do not show link helper in popovers and/or for external resources.
  30209. https://bugs.webkit.org/show_bug.cgi?id=35785
  30210. * English.lproj/localizedStrings.js:
  30211. * inspector/front-end/ResourcesPanel.js:
  30212. (WebInspector.ResourcesPanel.prototype.canShowSourceLine):
  30213. * inspector/front-end/ScriptsPanel.js:
  30214. (WebInspector.ScriptsPanel.prototype._scriptOrResourceForURLAndLine):
  30215. * inspector/front-end/TimelinePanel.js:
  30216. (WebInspector.TimelinePanel.prototype.hide):
  30217. * inspector/front-end/inspector.js:
  30218. (WebInspector.documentMouseOver):
  30219. (WebInspector.documentClick.followLink):
  30220. (WebInspector.documentClick):
  30221. (WebInspector.addMainEventListeners):
  30222. 2010-03-05 Fumitoshi Ukai <ukai@chromium.org>
  30223. Reviewed by Alexey Proskuryakov.
  30224. WebSocket onmessageerror event handler
  30225. https://bugs.webkit.org/show_bug.cgi?id=35570
  30226. Test: websocket/tests/error-detect.html
  30227. * websockets/WebSocket.cpp:
  30228. (WebCore::WebSocketChannel::didConnect): assert scriptExecutionContext.
  30229. (WebCore::WebSocketChannel::didReceiveMessage): assert scriptExecutionContext.
  30230. (WebCore::WebSocket::didReceiveMessageError):
  30231. (WebCore::WebSocket::didClose): assert scriptExecutionContext.
  30232. * websockets/WebSocket.h:
  30233. * websockets/WebSocket.idl: Add onerror event listener
  30234. * websockets/WebSocketChannel.cpp:
  30235. (WebCore::WebSocketChannel::didReceiveData): call didReceiveMessageError if unknown frame tye is detected, or frame length overflowed.
  30236. * websockets/WebSocketChannelClient.h:
  30237. (WebCore::WebSocketChannelClient::didReceiveMessageError):
  30238. 2010-03-04 Garret Kelly <gdk@chromium.org>
  30239. Reviewed by Darin Fisher.
  30240. Changing private members from PlatformTouchEvent and PlatformTouchPoint
  30241. to be protected, so that Chromium's PlatformTouchEventBuilder and
  30242. PlatformTouchPointBuilder can access them. Exercised by the
  30243. fast/events/touch tests.
  30244. https://bugs.webkit.org/show_bug.cgi?id=35760
  30245. * platform/PlatformTouchEvent.h:
  30246. (WebCore::PlatformTouchEvent::~PlatformTouchEvent):
  30247. * platform/PlatformTouchPoint.h:
  30248. (WebCore::PlatformTouchPoint::~PlatformTouchPoint):
  30249. 2010-03-04 Fumitoshi Ukai <ukai@chromium.org>
  30250. Reviewed by Alexey Proskuryakov.
  30251. WebSocket crash bug when reloading the page while the WebSocket is busy
  30252. https://bugs.webkit.org/show_bug.cgi?id=35732
  30253. * websockets/WebSocketChannel.cpp:
  30254. (WebCore::WebSocketChannel::disconnect): clear m_context from WebSocketChannel and WebSocketHandshake.
  30255. (WebCore::WebSocketChannel::didOpen): check m_context
  30256. (WebCore::WebSocketChannel::didClose): clear m_context
  30257. (WebCore::WebSocketChannel::didReceiveData): check m_context, and check m_client early before appending to buffer
  30258. * websockets/WebSocketHandshake.cpp:
  30259. (WebCore::WebSocketHandshake::clearScriptExecutionContext): Added.
  30260. * websockets/WebSocketHandshake.h:
  30261. 2010-03-04 MORITA Hajime <morrita@google.com>
  30262. Reviewed by Alexey Proskuryakov.
  30263. Refactoring: XMLHTTPRequest.open() should have all overloaded implementations
  30264. https://bugs.webkit.org/show_bug.cgi?id=35630
  30265. Test: http/tests/xmlhttprequest/open-async-overload.html
  30266. * bindings/js/JSXMLHttpRequestCustom.cpp:
  30267. (WebCore::JSXMLHttpRequest::open):
  30268. * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
  30269. (WebCore::V8XMLHttpRequest::openCallback):
  30270. * xml/XMLHttpRequest.cpp:
  30271. (WebCore::XMLHttpRequest::open):
  30272. * xml/XMLHttpRequest.h:
  30273. 2010-03-04 James Robinson <jamesr@google.com>
  30274. Reviewed by Eric Seidel.
  30275. Styles do not have to be synchronously rematched after every event dispatch
  30276. https://bugs.webkit.org/show_bug.cgi?id=32580
  30277. * bindings/js/JSEventListener.cpp:
  30278. (WebCore::JSEventListener::handleEvent):
  30279. * bindings/v8/V8AbstractEventListener.cpp:
  30280. (WebCore::V8AbstractEventListener::handleEvent):
  30281. 2010-03-04 Luiz Agostini <luiz.agostini@openbossa.org>
  30282. Reviewed by Kenneth Rohde Christiansen.
  30283. maemo spelled as mameo in WebCore.pro
  30284. https://bugs.webkit.org/show_bug.cgi?id=35765
  30285. Spelling corrected.
  30286. * WebCore.pro:
  30287. 2010-03-04 Tony Chang <tony@chromium.org>
  30288. Reviewed by Eric Seidel.
  30289. https://bugs.webkit.org/show_bug.cgi?id=18819
  30290. Pressing option+page{down,up} should move the cursor and scroll in
  30291. content editable areas. On other platforms, pressing page{down,up}
  30292. should move the cursor and scroll in content editable areas.
  30293. Test: editing/input/option-page-up-down.html
  30294. * editing/EditorCommand.cpp:
  30295. (WebCore::verticalScrollDistance):
  30296. 2010-03-03 Oliver Hunt <oliver@apple.com>
  30297. Reviewed by Gavin Barraclough.
  30298. Allow static property getters to interact with JSCs caching
  30299. https://bugs.webkit.org/show_bug.cgi?id=35716
  30300. Update the obviously safe getters to allow caching
  30301. Test: fast/js/pic/cached-named-property-getter.html
  30302. * bridge/runtime_array.cpp:
  30303. (JSC::RuntimeArray::getOwnPropertySlot):
  30304. * bridge/runtime_method.cpp:
  30305. (JSC::RuntimeMethod::getOwnPropertySlot):
  30306. 2010-03-04 Mark Rowe <mrowe@apple.com>
  30307. Reviewed by Sam Weinig.
  30308. <rdar://problem/7717249> DOMSVG.h includes a non-existent DOMSVGFEMorphologyElement.h
  30309. * WebCore.xcodeproj/project.pbxproj: Copy DOMSVGFEMorphologyElement.h and DOMSVGFEMorphologyElementInternal.h
  30310. in to the framework wrapper.
  30311. 2010-03-04 James Robinson <jamesr@chromium.org>
  30312. Reviewed by Dimitri Glazkov.
  30313. Handles setting HTMLSelectElement.length with mutation handlers present
  30314. https://bugs.webkit.org/show_bug.cgi?id=33983
  30315. When setting an HTMLSelectElement's length attribute, option elements have to be added or removed to the select
  30316. as appropriate. This is a little tricky with mutation events since they might add, remove, or reorder elements
  30317. while option elements are being added or deleted.
  30318. Tests: fast/forms/select-set-length-optgroup.html
  30319. fast/forms/select-set-length-with-mutation-remove.html
  30320. fast/forms/select-set-length-with-mutation-reorder.html
  30321. fast/forms/select-set-length-with-mutation-reparent.html
  30322. fast/forms/select-set-length-with-mutation.html
  30323. fast/forms/select-set-length.html
  30324. * html/HTMLSelectElement.cpp:
  30325. (WebCore::HTMLSelectElement::setLength):
  30326. 2010-03-04 Csaba Osztrogonác <ossy@webkit.org>
  30327. [Qt] Unreviewed buildfix after r55542 on Windows.
  30328. * WebCore.pro:
  30329. - plugins/win/PluginDatabaseWin.cpp removed.
  30330. - platform/win/WebCoreInstanceHandle.cpp added.
  30331. * platform/win/WebCoreInstanceHandle.cpp: Remove explicit qualification in namespace declaration to make gcc happy.
  30332. 2010-03-04 Nate Chapin <japhet@chromium.org>
  30333. Reviewed by Kenneth Rohde Christiansen.
  30334. Fix the case where we do a same document navigation, scroll,
  30335. then repeat the same document navigation. Currently, the second
  30336. navigation does nothing.
  30337. https://bugs.webkit.org/show_bug.cgi?id=35547
  30338. Test: fast/loader/repeat-same-document-navigation.html
  30339. * loader/FrameLoader.cpp:
  30340. (WebCore::FrameLoader::loadInSameDocument): Call scrollToFragment() whether or not the hash changed.
  30341. 2010-03-04 Simon Fraser <simon.fraser@apple.com>
  30342. Build fix.
  30343. const long long cMaxDistance = numeric_limits<long long>::max() created global
  30344. initializers at the call sites, so replace with an inline function.
  30345. * page/FocusController.cpp:
  30346. (WebCore::updateFocusCandidateIfCloser):
  30347. * page/SpatialNavigation.cpp:
  30348. (WebCore::distanceInDirection):
  30349. * page/SpatialNavigation.h:
  30350. (WebCore::maxDistance):
  30351. (WebCore::FocusCandidate::FocusCandidate):
  30352. 2010-03-04 Antonio Gomes <tonikitoo@webkit.org>
  30353. Unreviewed attempt to fix Windows build.
  30354. * page/SpatialNavigation.cpp:
  30355. (WebCore::spatialDistance):
  30356. 2010-03-04 Simon Fraser <simon.fraser@apple.com>
  30357. Build fix.
  30358. Delcare updateFocusCandidateIfCloser static to avoid warning.
  30359. * page/FocusController.cpp:
  30360. (WebCore::updateFocusCandidateIfCloser):
  30361. 2010-03-04 Darin Fisher <darin@chromium.org>
  30362. Reviewed by Dmitry Titov.
  30363. [chromium] make history.{push,replace}State enabled at runtime
  30364. https://bugs.webkit.org/show_bug.cgi?id=35753
  30365. * bindings/generic/RuntimeEnabledFeatures.cpp:
  30366. * bindings/generic/RuntimeEnabledFeatures.h:
  30367. (WebCore::RuntimeEnabledFeatures::setPushStateEnabled):
  30368. (WebCore::RuntimeEnabledFeatures::pushStateEnabled):
  30369. (WebCore::RuntimeEnabledFeatures::replaceStateEnabled):
  30370. * page/History.idl:
  30371. 2010-03-04 Antonio Gomes <tonikitoo@webkit.org>
  30372. Unreviewed attempt to (again) fix Mac build.
  30373. * page/SpatialNavigation.cpp:
  30374. (WebCore::spatialDistance):
  30375. 2010-03-04 Dan Bernstein <mitz@apple.com>
  30376. Based on a patch from Nick Jong.
  30377. Reviewed by Simon Fraser.
  30378. Improve selection in multi-column blocks when hitting points above or
  30379. below a column rect.
  30380. Test: fast/multicol/hit-test-above-or-below.html
  30381. * rendering/RenderBlock.cpp:
  30382. (WebCore::RenderBlock::adjustPointToColumnContents): If the point lies
  30383. within the horizontal range for a column, constrain it to the column (if
  30384. it is above) or the next column (if it is below).
  30385. 2010-03-04 Antonio Gomes <tonikitoo@webkit.org>
  30386. Reviewed by Simon Fraser.
  30387. Attempt to fix Mac build.
  30388. * page/SpatialNavigation.cpp:
  30389. 2010-03-04 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
  30390. Add SpatialNavigation header and cpp to Mac XCode project file.
  30391. Reviewed by Kenneth Christiansen.
  30392. * WebCore.xcodeproj/project.pbxproj:
  30393. 2010-03-02 Antonio Gomes <tonikitoo@webkit.org>
  30394. Reviewed by Simon Fraser, Eric Seidel and Darin Adler.
  30395. Patch by Antonio Gomes <tonikitoo@webkit.org>
  30396. Based on the initial work of Marco Barisione <marco.barisione@collabora.co.uk>
  30397. Extend keyboard navigation to allow directional navigation
  30398. https://bugs.webkit.org/show_bug.cgi?id=18662
  30399. This patch implements the core logic of the 'Spatial Navigation' feature [1].
  30400. It improves the accessibility support of WebCore by extending the basic keyboard
  30401. navigation currently available (based on Tab forward and backward) with the
  30402. addition of a two-dimensional directional navigation by using Left, Right, Up and
  30403. Down arrow keys to move to the "nearest" element in the corresponding direction.
  30404. Highlights:
  30405. * Feature is turned off by default in Settings. Port specific APIs need to be added
  30406. for toggling it on/off.
  30407. * Only elements viewed in the current viewport can have focus move to it. If the
  30408. "nearest" is not in viewport dimensions, then a scroll-in-direction action is
  30409. performed.
  30410. Known issues (to be covered in follow-up bugs):
  30411. * Add port specific hooks to each DRT to enable/disable Spatial Navigation.
  30412. * Support for spatial navigation through form elements (<input>, <select>, etc)
  30413. is be added.
  30414. * Make navigation keys customizable. It currently works with arrows keys only
  30415. (up, down, right and left).
  30416. * Make it support modifiers (Alt, Ctrl and Shift).
  30417. * Improve support on scrollable content.
  30418. [1] http://en.wikipedia.org/wiki/Spatial_navigation
  30419. * Android.mk:
  30420. * GNUmakefile.am:
  30421. * WebCore.gypi:
  30422. * WebCore.pro:
  30423. * WebCore.vcproj/WebCore.vcproj:
  30424. * page/EventHandler.cpp:
  30425. (WebCore::EventHandler::defaultKeyboardEventHandler):
  30426. (WebCore::EventHandler::focusDirectionForKey):
  30427. (WebCore::EventHandler::defaultArrowEventHandler):
  30428. * page/EventHandler.h:
  30429. * page/FocusController.cpp:
  30430. (WebCore::FocusController::advanceFocus):
  30431. (WebCore::FocusController::advanceFocusInDocumentOrder):
  30432. (WebCore::FocusController::advanceFocusDirectionally):
  30433. (WebCore::updateFocusCandidateIfCloser):
  30434. (WebCore::FocusController::findFocusableNodeInDirection):
  30435. (WebCore::FocusController::deepFindFocusableNodeInDirection):
  30436. * page/FocusController.h:
  30437. * page/FocusDirection.h:
  30438. (WebCore::):
  30439. * page/Settings.cpp:
  30440. (WebCore::Settings::Settings):
  30441. (WebCore::Settings::setSpatialNavigationEnabled):
  30442. * page/Settings.h:
  30443. (WebCore::Settings::isSpatialNavigationEnabled):
  30444. * page/SpatialNavigation.cpp: Added.
  30445. (WebCore::distanceInDirection):
  30446. (WebCore::renderRectRelativeToRootDocument):
  30447. (WebCore::alignmentForRects):
  30448. (WebCore::isHorizontalMove):
  30449. (WebCore::areRectsFullyAligned):
  30450. (WebCore::areRectsPartiallyAligned):
  30451. (WebCore::spatialDistance):
  30452. (WebCore::isRectInDirection):
  30453. (WebCore::hasOffscreenRect):
  30454. (WebCore::scrollInDirection):
  30455. (WebCore::isInRootDocument):
  30456. (WebCore::deflateIfOverlapped):
  30457. * page/SpatialNavigation.h: Added.
  30458. (WebCore::):
  30459. (WebCore::FocusCandidate::FocusCandidate):
  30460. 2010-03-04 Beth Dakin <bdakin@apple.com>
  30461. Reviewed by Anders Carlsson.
  30462. This fixes the layering violation I committed yesterday by moving
  30463. Page::instanceHandle into its own file just in the WebCore
  30464. namespace.
  30465. Added WebCoreInstanceHandle.h + .cpp and removed PageWin.cpp
  30466. * WebCore.vcproj/WebCore.vcproj:
  30467. * page/win/PageWin.cpp: Removed.
  30468. Remove all instance handle code from Page.
  30469. * page/Page.h:
  30470. New files.
  30471. * platform/win/WebCoreInstanceHandle.cpp: Added.
  30472. * platform/win/WebCoreInstanceHandle.h: Added.
  30473. (WebCore::setInstanceHandle):
  30474. (WebCore::instanceHandle):
  30475. Switch to WebCore::instanceHandle() instead of
  30476. Page::instanceHandle() and include the new header.
  30477. * platform/graphics/win/WKCACFLayerRenderer.cpp:
  30478. (WebCore::WKCACFLayerRenderer::acceleratedCompositingAvailable):
  30479. * platform/win/PasteboardWin.cpp:
  30480. (WebCore::Pasteboard::Pasteboard):
  30481. * platform/win/PopupMenuWin.cpp:
  30482. (WebCore::PopupMenu::show):
  30483. (WebCore::PopupMenu::registerClass):
  30484. * platform/win/SharedTimerWin.cpp:
  30485. (WebCore::initializeOffScreenTimerWindow):
  30486. * plugins/win/PluginViewWin.cpp:
  30487. (WebCore::registerPluginView):
  30488. (WebCore::PluginView::platformStart):
  30489. 2010-03-04 Antonio Gomes <tonikitoo@webkit.org>
  30490. Unreviewed build fix.
  30491. Patch by Antonio Gomes <tonikitoo@webkit.org>
  30492. 'glib_file_name' renamed to 'gligFileName'.
  30493. * platform/graphics/gtk/ImageGtk.cpp:
  30494. (WebCore::Image::loadPlatformResource):
  30495. 2010-03-04 Pavel Feldman <pfeldman@chromium.org>
  30496. Reviewed by Timothy Hatcher.
  30497. Web Inspector: Remove two last synchronous calls from front-end to InspectorBackend.
  30498. https://bugs.webkit.org/show_bug.cgi?id=35720
  30499. * inspector/InspectorBackend.cpp:
  30500. (WebCore::InspectorBackend::enableSearchingForNode):
  30501. (WebCore::InspectorBackend::disableSearchingForNode):
  30502. (WebCore::InspectorBackend::setPauseOnExceptionsState):
  30503. * inspector/InspectorBackend.h:
  30504. * inspector/InspectorBackend.idl:
  30505. * inspector/InspectorController.cpp:
  30506. (WebCore::InspectorController::setWindowVisible):
  30507. (WebCore::InspectorContorller::setSearchingForNode):
  30508. (WebCore::InspectorController::populateScriptObjects):
  30509. * inspector/InspectorController.h:
  30510. * inspector/InspectorFrontend.cpp:
  30511. (WebCore::InspectorFrontend::searchingForNodeWasEnabled):
  30512. (WebCore::InspectorFrontend::searchingForNodeWasDisabled):
  30513. (WebCore::InspectorFrontend::updatePauseOnExceptionsState):
  30514. * inspector/InspectorFrontend.h:
  30515. * inspector/front-end/ElementsPanel.js:
  30516. (WebInspector.ElementsPanel):
  30517. (WebInspector.ElementsPanel.prototype.get statusBarItems):
  30518. (WebInspector.ElementsPanel.prototype.hide):
  30519. (WebInspector.ElementsPanel.prototype.reset):
  30520. (WebInspector.ElementsPanel.prototype.searchingForNodeWasEnabled):
  30521. (WebInspector.ElementsPanel.prototype.searchingForNodeWasDisabled):
  30522. (WebInspector.ElementsPanel.prototype._nodeSearchButtonClicked):
  30523. * inspector/front-end/InspectorBackendStub.js:
  30524. (.WebInspector.InspectorBackendStub.prototype.enableSearchingForNode):
  30525. (.WebInspector.InspectorBackendStub.prototype.disableSearchingForNode):
  30526. (.WebInspector.InspectorBackendStub.prototype.setPauseOnExceptionsState):
  30527. * inspector/front-end/ScriptsPanel.js:
  30528. (WebInspector.ScriptsPanel):
  30529. (WebInspector.ScriptsPanel.prototype.get statusBarItems):
  30530. (WebInspector.ScriptsPanel.prototype.updatePauseOnExceptionsState):
  30531. (WebInspector.ScriptsPanel.prototype._updateDebuggerButtons):
  30532. (WebInspector.ScriptsPanel.prototype._togglePauseOnExceptions):
  30533. * inspector/front-end/inspector.js:
  30534. (WebInspector.searchingForNodeWasEnabled):
  30535. (WebInspector.searchingForNodeWasDisabled):
  30536. (WebInspector.updatePauseOnExceptionsState):
  30537. 2010-03-03 Pavel Feldman <pfeldman@chromium.org>
  30538. Reviewed by Timothy Hatcher.
  30539. Web Inspector: Clicking on an error should take me to the error
  30540. https://bugs.webkit.org/show_bug.cgi?id=34860
  30541. * inspector/front-end/ResourceView.js:
  30542. (WebInspector.ResourceView):
  30543. (WebInspector.ResourceView.prototype._selectTab):
  30544. (WebInspector.ResourceView.prototype.selectContentTab):
  30545. * inspector/front-end/ResourcesPanel.js:
  30546. (WebInspector.ResourcesPanel.prototype.showResource):
  30547. 2010-03-03 Pavel Feldman <pfeldman@chromium.org>
  30548. Reviewed by Timothy Hatcher.
  30549. Web Inspector: Remove sync access to resourceTrackingEnabled.
  30550. https://bugs.webkit.org/show_bug.cgi?id=35693
  30551. * inspector/InspectorBackend.cpp:
  30552. * inspector/InspectorBackend.h:
  30553. * inspector/InspectorBackend.idl:
  30554. * inspector/InspectorController.cpp:
  30555. (WebCore::InspectorController::populateScriptObjects):
  30556. * inspector/front-end/AuditsPanel.js:
  30557. (WebInspector.AuditsPanel.prototype._reloadResources):
  30558. (WebInspector.AuditsPanel.prototype.show):
  30559. * inspector/front-end/InspectorBackendStub.js:
  30560. (.WebInspector.InspectorBackendStub):
  30561. (.WebInspector.InspectorBackendStub.prototype.enableResourceTracking):
  30562. (.WebInspector.InspectorBackendStub.prototype.disableResourceTracking):
  30563. (.WebInspector.InspectorBackendStub.prototype.enableDebugger):
  30564. (.WebInspector.InspectorBackendStub.prototype.disableDebugger):
  30565. (.WebInspector.InspectorBackendStub.prototype.enableProfiler):
  30566. (.WebInspector.InspectorBackendStub.prototype.disableProfiler):
  30567. * inspector/front-end/ResourcesPanel.js:
  30568. (WebInspector.ResourcesPanel):
  30569. (WebInspector.ResourcesPanel.prototype.get resourceTrackingEnabled):
  30570. (WebInspector.ResourcesPanel.prototype.get visibleView):
  30571. (WebInspector.ResourcesPanel.prototype.resourceTrackingWasEnabled):
  30572. (WebInspector.ResourcesPanel.prototype.resourceTrackingWasDisabled):
  30573. (WebInspector.ResourcesPanel.prototype.reset):
  30574. (WebInspector.ResourcesPanel.prototype.showResource):
  30575. (WebInspector.ResourcesPanel.prototype._enableResourceTracking):
  30576. (WebInspector.ResourcesPanel.prototype._toggleResourceTracking):
  30577. 2010-03-04 Antoine Quint <ml@graougraou.com>
  30578. Reviewed by Darin Adler.
  30579. DOM insertion mutation events should dispatch after a node is attached to the render tree
  30580. https://bugs.webkit.org/show_bug.cgi?id=35590
  30581. Test: fast/events/domnodeinsertedintodocument-dispatched-post-rendering.html
  30582. Split off the internal-to-WebCore node insertion notification code from the DOM mutation
  30583. event dispatching, originally in dispatchChildInsertionEvents(), to a new static function
  30584. called notifyChildInserted(). This allows us to dispatch the mutation events at a later
  30585. time upon insertion of a child into to the tree, specifically _after_ attachment to the render
  30586. tree.
  30587. * dom/ContainerNode.cpp:
  30588. (WebCore::ContainerNode::insertBefore):
  30589. (WebCore::ContainerNode::replaceChild):
  30590. (WebCore::ContainerNode::appendChild):
  30591. (WebCore::notifyChildInserted):
  30592. (WebCore::dispatchChildInsertionEvents):
  30593. 2010-03-04 Fridrich Strba <fridrich.strba@bluewin.ch>
  30594. Reviewed by Holger Freyther.
  30595. Make paths relocatable on runtime on Windows
  30596. https://bugs.webkit.org/show_bug.cgi?id=32711
  30597. * platform/graphics/gtk/ImageGtk.cpp:
  30598. (get_webkit_datadir):
  30599. (WebCore::Image::loadPlatformResource):
  30600. 2010-03-04 Pavel Feldman <pfeldman@chromium.org>
  30601. Reviewed by Timothy Hatcher.
  30602. Web Inspector: Popup for Timeline panel will work in a tooltip mode
  30603. https://bugs.webkit.org/show_bug.cgi?id=35680
  30604. * inspector/front-end/Popover.js:
  30605. (WebInspector.Popover):
  30606. (WebInspector.Popover.prototype.show):
  30607. (WebInspector.Popover.prototype.hide):
  30608. (WebInspector.Popover.prototype._positionElement):
  30609. (WebInspector.PopoverHelper):
  30610. (WebInspector.PopoverHelper.prototype._mouseDown):
  30611. (WebInspector.PopoverHelper.prototype._mouseMove.doHide):
  30612. (WebInspector.PopoverHelper.prototype._mouseMove):
  30613. (WebInspector.PopoverHelper.prototype._resetHoverTimer):
  30614. (WebInspector.PopoverHelper.prototype.hidePopup):
  30615. (WebInspector.PopoverHelper.prototype._mouseHover):
  30616. (WebInspector.PopoverHelper.prototype._killHidePopupTimer):
  30617. * inspector/front-end/TimelineOverviewPane.js:
  30618. (WebInspector.TimelineOverviewPane.prototype.reset):
  30619. * inspector/front-end/TimelinePanel.js:
  30620. (WebInspector.TimelinePanel):
  30621. (WebInspector.TimelinePanel.prototype.get _recordStyles):
  30622. (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
  30623. (WebInspector.TimelinePanel.prototype._scheduleRefresh):
  30624. (WebInspector.TimelinePanel.prototype._refreshRecords):
  30625. (WebInspector.TimelinePanel.prototype._adjustScrollPosition):
  30626. (WebInspector.TimelinePanel.prototype._getPopoverAnchor):
  30627. (WebInspector.TimelinePanel.prototype._showPopover):
  30628. (WebInspector.TimelinePanel.prototype._closeRecordDetails):
  30629. (WebInspector.TimelineRecordListRow):
  30630. (WebInspector.TimelineRecordListRow.prototype.update):
  30631. (WebInspector.TimelineRecordGraphRow):
  30632. (WebInspector.TimelineRecordGraphRow.prototype._onClick):
  30633. (WebInspector.TimelinePanel.FormattedRecord):
  30634. (WebInspector.TimelinePanel.FormattedRecord.prototype._createCell):
  30635. (WebInspector.TimelinePanel.FormattedRecord.prototype._createRow):
  30636. (WebInspector.TimelinePanel.FormattedRecord.prototype._createLinkRow):
  30637. (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
  30638. (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
  30639. * inspector/front-end/inspector.css:
  30640. 2010-03-04 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  30641. Unreviewed build fix.
  30642. Build fix after r55464.
  30643. No new tests, no new functionality.
  30644. * inspector/InspectorController.cpp:
  30645. (WebCore::InspectorController::populateScriptObjects):
  30646. 2010-03-04 Leandro Pereira <leandro@profusion.mobi>
  30647. Reviewed by Kenneth Rohde Christiansen.
  30648. Add EFL port files to platform/graphics/efl.
  30649. http://webkit.org/b/35539
  30650. * platform/graphics/efl/FloatRectEfl.cpp: Added.
  30651. * platform/graphics/efl/FontEfl.cpp: Added.
  30652. * platform/graphics/efl/IconEfl.cpp: Added.
  30653. * platform/graphics/efl/ImageEfl.cpp: Added.
  30654. * platform/graphics/efl/IntPointEfl.cpp: Added.
  30655. * platform/graphics/efl/IntRectEfl.cpp: Added.
  30656. 2010-03-04 Leandro Pereira <leandro@profusion.mobi>
  30657. Reviewed by Kenneth Rohde Christiansen.
  30658. Add EFL port files to platform/text/efl.
  30659. http://webkit.org/b/35740
  30660. * platform/text/efl/TextBreakIteratorInternalICUEfl.cpp: Added.
  30661. 2010-03-04 Fridrich Strba <fridrich.strba@bluewin.ch>
  30662. Reviewed by Holger Freyther.
  30663. https://bugs.webkit.org/show_bug.cgi?id=35726
  30664. Remove orphaned #ifdef WTF_USE_GLIB_ICU_UNICODE_HYBRID
  30665. Removing orphaned #if USE.
  30666. * platform/ThreadGlobalData.h:
  30667. 2010-03-03 Jeremy Orlow <jorlow@chromium.org>
  30668. Reviewed by Darin Fisher.
  30669. Throttle sync requests sent to the LocalStorage background thread
  30670. https://bugs.webkit.org/show_bug.cgi?id=34943
  30671. Currently, once a second LocalStorage takes all keys/values which have
  30672. been changed and sends them to a background thread to sync. The problem
  30673. is that this background thread can get overwhelmed and stop being
  30674. responsive. This means that if any other page tries to start using
  30675. LocalStorage (and thus initiates the initial import) that'll block on
  30676. all the previous syncs completing.
  30677. To mitigate this, I'm adding code so that we never schedule another
  30678. sync task when another is still running. In order to keep the sync
  30679. tasks from growing exponentially when they do take longer than the
  30680. storage sync interval, I've also added a basic rate limiter. No effort
  30681. is made to ensure fairness/ordering of what gets synced nor is there
  30682. any way for this rate to be changed because most normal uses of
  30683. LocalStorage really shouldn't be hitting these types of limits anyway.
  30684. The only behavioral change that's observible in JavaScript is time based
  30685. and thus it's not practical to make new tests that aren't racy. The
  30686. existing layout tests cover LocalStorage pretty well, though.
  30687. * storage/StorageAreaSync.cpp:
  30688. (WebCore::StorageAreaSync::StorageAreaSync):
  30689. (WebCore::StorageAreaSync::scheduleFinalSync):
  30690. (WebCore::StorageAreaSync::syncTimerFired):
  30691. (WebCore::StorageAreaSync::performSync):
  30692. * storage/StorageAreaSync.h:
  30693. 2010-03-04 Andrey Kosyakov <caseq@chromium.org>
  30694. Reviewed by Pavel Feldman.
  30695. Added support for worker instrumentation in inspector
  30696. (display list of active workers, allow debugging of workers
  30697. by injecting fake JS implementation)
  30698. https://bugs.webkit.org/show_bug.cgi?id=35568
  30699. * English.lproj/localizedStrings.js:
  30700. * WebCore.gypi:
  30701. * WebCore.vcproj/WebCore.vcproj:
  30702. * bindings/js/JSInjectedScriptHostCustom.cpp:
  30703. (WebCore::InjectedScriptHost::createInjectedScript):
  30704. (WebCore::InjectedScriptHost::injectedScriptFor):
  30705. * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
  30706. (WebCore::InjectedScriptHost::createInjectedScript):
  30707. (WebCore::InjectedScriptHost::injectedScriptFor):
  30708. * dom/Document.cpp:
  30709. (WebCore::Document::inspectorController):
  30710. * dom/Document.h:
  30711. * dom/ScriptExecutionContext.h:
  30712. (WebCore::ScriptExecutionContext::inspectorController):
  30713. * inspector/InjectedScriptHost.cpp:
  30714. (WebCore::InjectedScriptHost::InjectedScriptHost):
  30715. (WebCore::InjectedScriptHost::injectScript):
  30716. (WebCore::InjectedScriptHost::nextWorkerId):
  30717. (WebCore::InjectedScriptHost::didCreateWorker):
  30718. (WebCore::InjectedScriptHost::willDestroyWorker):
  30719. * inspector/InjectedScriptHost.h:
  30720. * inspector/InjectedScriptHost.idl:
  30721. * inspector/InspectorController.cpp:
  30722. (WebCore::InspectorController::populateScriptObjects):
  30723. (WebCore::InspectorController::resetScriptObjects):
  30724. (WebCore::InspectorController::didCommitLoad):
  30725. (WebCore::InspectorController::didCreateWorker):
  30726. (WebCore::InspectorController::willDestroyWorker):
  30727. * inspector/InspectorController.h:
  30728. * inspector/InspectorFrontend.cpp:
  30729. (WebCore::InspectorFrontend::didCreateWorker):
  30730. (WebCore::InspectorFrontend::willDestroyWorker):
  30731. * inspector/InspectorFrontend.h:
  30732. * inspector/InspectorWorkerResource.h: Added.
  30733. (WebCore::InspectorWorkerResource::create):
  30734. (WebCore::InspectorWorkerResource::id):
  30735. (WebCore::InspectorWorkerResource::url):
  30736. (WebCore::InspectorWorkerResource::isSharedWorker):
  30737. (WebCore::InspectorWorkerResource::InspectorWorkerResource):
  30738. * inspector/front-end/Checkbox.js: Added.
  30739. (WebInspector.Checkbox.callbackWrapper):
  30740. (WebInspector.Checkbox):
  30741. (WebInspector.Checkbox.prototype.checked):
  30742. * inspector/front-end/InjectedFakeWorker.js:
  30743. (InjectedFakeWorker.FakeWorker):
  30744. (InjectedFakeWorker.FakeWorker.prototype.terminate):
  30745. (InjectedFakeWorker.FakeWorker.prototype._handleException):
  30746. (InjectedFakeWorker.FakeWorker.prototype._importScripts):
  30747. (InjectedFakeWorker.FakeWorker.prototype._loadScript):
  30748. (InjectedFakeWorker.FakeWorker.prototype._expandURLAndCheckOrigin):
  30749. * inspector/front-end/ScriptsPanel.js:
  30750. (WebInspector.ScriptsPanel):
  30751. (WebInspector.ScriptsPanel.prototype.debuggerWasEnabled):
  30752. (WebInspector.ScriptsPanel.prototype.debuggerWasDisabled):
  30753. (WebInspector.ScriptsPanel.prototype.reset):
  30754. * inspector/front-end/WebKit.qrc:
  30755. * inspector/front-end/WorkersSidebarPane.js: Added.
  30756. (WebInspector.WorkersSidebarPane):
  30757. (WebInspector.WorkersSidebarPane.prototype.addWorker):
  30758. (WebInspector.WorkersSidebarPane.prototype.removeWorker):
  30759. (WebInspector.WorkersSidebarPane.prototype.setInstrumentation):
  30760. (WebInspector.WorkersSidebarPane.prototype.reset):
  30761. (WebInspector.WorkersSidebarPane.prototype._onTriggerInstrument):
  30762. (WebInspector.Worker):
  30763. (WebInspector.didCreateWorker):
  30764. (WebInspector.willDestroyWorker):
  30765. * inspector/front-end/inspector.css:
  30766. * inspector/front-end/inspector.html:
  30767. * workers/AbstractWorker.cpp:
  30768. (WebCore::AbstractWorker::AbstractWorker):
  30769. (WebCore::AbstractWorker::~AbstractWorker):
  30770. (WebCore::AbstractWorker::onDestroyWorker):
  30771. (WebCore::AbstractWorker::contextDestroyed):
  30772. * workers/AbstractWorker.h:
  30773. (WebCore::AbstractWorker::id):
  30774. * workers/SharedWorker.cpp:
  30775. (WebCore::SharedWorker::SharedWorker):
  30776. * workers/Worker.cpp:
  30777. (WebCore::Worker::Worker):
  30778. 2010-03-04 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
  30779. Reviewed by Tor Arne Vestbø.
  30780. [Qt] Make the OUTPUT_DIR variable in qmake projects independent of build-webkit's logic.
  30781. This also allows shadow builds relying only on qmake to work properly.
  30782. * WebCore.pro:
  30783. 2010-03-02 Holger Hans Peter Freyther <zecke@selfish.org>
  30784. Reviewed by Simon Hausmann.
  30785. [Qt] Avoid calling QFont::detach too often from FontQt
  30786. https://bugs.webkit.org/show_bug.cgi?id=35569
  30787. The letter- and wordspacing is inside the WebCore::Font class,
  30788. our QFont is located in the WebCore::FontPlatformData. Everytime
  30789. we need to use a QFont inside WebCore::Font we are calling the
  30790. font method which gets the QFont from the WebCore::FontPlatformData
  30791. and is applying the letter- and wordspacing. Internally this
  30792. will attempt to detach the QFont...
  30793. Avoid calling setLetterSpacing and setWordSpacing on QFont if
  30794. the WebCore::Font has the default applied.
  30795. * platform/graphics/qt/FontQt.cpp:
  30796. (WebCore::Font::font):
  30797. 2010-03-04 Alexander Pavlov <apavlov@chromium.org>
  30798. Reviewed by Pavel Feldman.
  30799. Web Inspector: Nothing happens on navigation to resource via a link if resource tracking is disabled
  30800. https://bugs.webkit.org/show_bug.cgi?id=35574
  30801. * English.lproj/localizedStrings.js:
  30802. * inspector/front-end/ResourcesPanel.js:
  30803. (WebInspector.ResourcesPanel.prototype.canShowSourceLine):
  30804. (WebInspector.ResourcesPanel.prototype._toggleResourceTracking):
  30805. * inspector/front-end/inspector.js:
  30806. (WebInspector.documentMouseOver):
  30807. (WebInspector.documentMouseOut):
  30808. (WebInspector.hideBadLinkPopupIfNecessary):
  30809. (WebInspector.documentClick.followLink):
  30810. (WebInspector.documentClick):
  30811. (WebInspector.showBadLinkPopup.popupOverOut):
  30812. (WebInspector.showBadLinkPopup):
  30813. (WebInspector.addMainEventListeners):
  30814. 2010-03-04 Vangelis Kokkevis <vangelis@chromium.org>
  30815. Reviewed by Oliver Hunt.
  30816. getUniformLocation() now returns null if uniform requested
  30817. is not found.
  30818. https://bugs.webkit.org/show_bug.cgi?id=34669
  30819. Test:LayoutTests/fast/canvas/webgl/uniform-location.html
  30820. (added missing test)
  30821. * html/canvas/WebGLRenderingContext.cpp:
  30822. (WebCore::WebGLRenderingContext::getUniformLocation):
  30823. 2010-03-04 John Abd-El-Malek <jam@chromium.org>
  30824. Reviewed by Adam Barth.
  30825. Fix incorrect setup of DateExtension.
  30826. https://bugs.webkit.org/show_bug.cgi?id=35710
  30827. * bindings/v8/DateExtension.cpp:
  30828. (WebCore::DateExtension::setAllowSleep):
  30829. 2010-03-04 Oliver Hunt <oliver@apple.com>
  30830. Reviewed by Maciej Stachowiak.
  30831. https://bugs.webkit.org/show_bug.cgi?id=35603
  30832. SVG incorrectly allows nested <use> elements in a <use> shadow tree
  30833. Simplify the handling of invalid or missing use-targets by cloning them
  30834. to empty <g> elements rather than just allowing the <use> element to
  30835. be copied into the shadow tree, as this violates a number of assumptions
  30836. in the shadow tree handling code.
  30837. Tests: svg/custom/use-nested-disallowed-target.svg
  30838. svg/custom/use-nested-missing-target-added.svg
  30839. svg/custom/use-nested-missing-target-removed.svg
  30840. svg/custom/use-nested-missing-target.svg
  30841. svg/custom/use-nested-notarget.svg
  30842. * svg/SVGUseElement.cpp:
  30843. (WebCore::SVGUseElement::buildPendingResource):
  30844. (WebCore::SVGUseElement::buildShadowAndInstanceTree):
  30845. (WebCore::SVGUseElement::expandUseElementsInShadowTree):
  30846. 2010-03-04 Leandro Pereira <leandro@profusion.mobi>
  30847. Reviewed by Gustavo Noronha Silva.
  30848. Move Cairo-related font code from platform/graphics/gtk to
  30849. platform/graphics/cairo, so other ports may use them.
  30850. http://webkit.org/b/35539
  30851. * GNUmakefile.am:
  30852. * platform/graphics/cairo/FontCacheCairo.cpp: Copied from WebCore/platform/graphics/gtk/FontCacheGtk.cpp.
  30853. * platform/graphics/cairo/FontCustomPlatformData.cpp: Copied from WebCore/platform/graphics/gtk/FontCustomPlatformData.cpp.
  30854. * platform/graphics/cairo/FontCustomPlatformData.h: Copied from WebCore/platform/graphics/gtk/FontCustomPlatformData.h.
  30855. * platform/graphics/cairo/FontPlatformData.h: Copied from WebCore/platform/graphics/gtk/FontPlatformData.h.
  30856. * platform/graphics/cairo/FontPlatformDataCairo.cpp: Copied from WebCore/platform/graphics/gtk/FontPlatformDataGtk.cpp.
  30857. * platform/graphics/cairo/GlyphPageTreeNodeCairo.cpp: Copied from WebCore/platform/graphics/gtk/GlyphPageTreeNodeGtk.cpp.
  30858. * platform/graphics/cairo/SimpleFontDataCairo.cpp: Copied from WebCore/platform/graphics/gtk/SimpleFontDataGtk.cpp.
  30859. * platform/graphics/gtk/FontCacheGtk.cpp: Removed.
  30860. * platform/graphics/gtk/FontCustomPlatformData.cpp: Removed.
  30861. * platform/graphics/gtk/FontCustomPlatformData.h: Removed.
  30862. * platform/graphics/gtk/FontPlatformData.h: Removed.
  30863. * platform/graphics/gtk/FontPlatformDataGtk.cpp: Removed.
  30864. * platform/graphics/gtk/GlyphPageTreeNodeGtk.cpp: Removed.
  30865. * platform/graphics/gtk/SimpleFontDataGtk.cpp: Removed.
  30866. 2010-03-04 Evan Stade <estade@chromium.org>
  30867. Reviewed by David Levin.
  30868. https://bugs.webkit.org/show_bug.cgi?id=35261
  30869. [skia] crash when attempting to render certain SVGs
  30870. This fixes the crash, but the SVG still doesn't render properly.
  30871. Test: svg/custom/tiling-regular-hexagonal-crash.svg
  30872. * platform/graphics/skia/ImageSkia.cpp:
  30873. (WebCore::BitmapImageSingleFrameSkia::create): don't return 0 when
  30874. the copy fails; instead return a blank bitmap. The caller doesn't
  30875. check for 0 before dereferencing.
  30876. 2010-03-04 Tony Chang <tony@chromium.org>
  30877. Reviewed by Darin Fisher.
  30878. Initialize m_isMultipartPayload in other ResourceResponse ctor.
  30879. In r55451 (bug 35628) I added an extra bool, but only initialized
  30880. it in one constructor.
  30881. https://bugs.webkit.org/show_bug.cgi?id=35719
  30882. * platform/network/chromium/ResourceResponse.h:
  30883. (WebCore::ResourceResponse::ResourceResponse):
  30884. 2010-03-03 Yuta Kitamura <yutak@chromium.org>
  30885. Reviewed by Alexey Proskuryakov.
  30886. Add a new class that stores information about Web Socket handshake request.
  30887. Instances of this class contain the necessary information to send a Web Socket
  30888. handshake request. In the future, this class will provide request information
  30889. to the Web Inspector.
  30890. WebSocketHandshake needs to provide request information
  30891. https://bugs.webkit.org/show_bug.cgi?id=34784
  30892. No new tests, since the current tests will suffice (LayoutTests/websocket/*).
  30893. * GNUmakefile.am:
  30894. * WebCore.gypi:
  30895. * WebCore.pro:
  30896. * WebCore.vcproj/WebCore.vcproj:
  30897. * WebCore.xcodeproj/project.pbxproj:
  30898. * websockets/WebSocketChannel.cpp:
  30899. * websockets/WebSocketHandshake.cpp:
  30900. (WebCore::WebSocketHandshake::clientHandshakeMessage):
  30901. (WebCore::WebSocketHandshake::clientHandshakeRequest):
  30902. * websockets/WebSocketHandshake.h:
  30903. * websockets/WebSocketHandshakeRequest.cpp: Added.
  30904. (WebCore::WebSocketHandshakeRequest::WebSocketHandshakeRequest):
  30905. (WebCore::WebSocketHandshakeRequest::~WebSocketHandshakeRequest):
  30906. (WebCore::WebSocketHandshakeRequest::addExtraHeaderField):
  30907. (WebCore::WebSocketHandshakeRequest::headerFields):
  30908. (WebCore::WebSocketHandshakeRequest::host):
  30909. * websockets/WebSocketHandshakeRequest.h: Added.
  30910. 2010-03-03 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  30911. Reviewed by Kenneth Rohde Christiansen.
  30912. Build fix after r55452.
  30913. No new tests, this is a build fix.
  30914. * page/Settings.cpp:
  30915. (WebCore::Settings::setDatabasesEnabled):
  30916. 2010-03-03 Diego Gonzalez <diego.gonzalez@openbossa.org>
  30917. Reviewed by Kenneth Rohde Christiansen.
  30918. Make keyIdentifierForQtKeyCode return the unicode backspace value on Qt PlatformKeyboardEvent
  30919. LayoutTests:
  30920. fast/events/key-events-in-input-text.html
  30921. fast/events/special-key-events-in-input-text.html
  30922. [Qt] Return the unicode backspace value in keyIdentifierForQtKeyCode on Qt PlatformKeyboardEvent
  30923. https://bugs.webkit.org/show_bug.cgi?id=35694
  30924. * platform/qt/PlatformKeyboardEventQt.cpp:
  30925. (WebCore::keyIdentifierForQtKeyCode):
  30926. 2010-03-03 Chad Faragher <wyck@chromium.org>
  30927. Reviewed by Darin Adler.
  30928. Changed the double-click framework code to pass adjusted page
  30929. coordinates for zoomed pages. Added a new test to expose
  30930. mistreatment of mouse click coordinates during a double-click.
  30931. https://bugs.webkit.org/show_bug.cgi?id=35690
  30932. Test: fast/events/zoom-dblclick.html
  30933. * dom/Node.cpp:
  30934. (WebCore::Node::dispatchMouseEvent):
  30935. 2010-03-03 David Levin <levin@chromium.org>
  30936. No review, rolling out r55474.
  30937. The patch broke fast/frames/sandboxed-iframe-storage.html
  30938. Last one (I hope).
  30939. * WebCore.xcodeproj/project.pbxproj:
  30940. 2010-03-03 David Levin <levin@chromium.org>
  30941. No review, rolling out r55474.
  30942. The patch broke fast/frames/sandboxed-iframe-storage.html
  30943. Unfortunately, (the webkit-patch rollout and) I missed these in r55485.
  30944. * bindings/js/JSDatabaseCallback.cpp: Removed.
  30945. * bindings/js/JSDatabaseCallback.h: Removed.
  30946. * bindings/v8/custom/V8DatabaseCallback.cpp: Removed.
  30947. * bindings/v8/custom/V8DatabaseCallback.h: Removed.
  30948. * storage/DatabaseCallback.h: Removed.
  30949. 2010-03-02 Dumitru Daniliuc <dumi@chromium.org>
  30950. Reviewed by Dimitri Glazkov.
  30951. Fix a bug that could lead to a crash. Some parts of
  30952. SQLTransaction::checkAndHandleClosedDatabase() should only be run
  30953. when that method is invoked on the DB thread.
  30954. We cannot test this fix with a test, because the crash happens
  30955. only when all of the following conditions are met:
  30956. 1. A database is closing.
  30957. 2. A transaction on that database is in progress.
  30958. 3. The transaction is in a state where a statement/transaction
  30959. success/error callback needs to be invoked (so there's a task for
  30960. this transaction pending on the main thread).
  30961. 4. The DB thread finished processing all its tasks and called
  30962. SQLTransactionCoordinator::shutdown() before the main thread go to
  30963. that task.
  30964. The closest thing we have to a test is running
  30965. LayoutTests/storage/database-lock-after-reload.html 1000 times in
  30966. a row. Without the patch, the probability of a crash happening in
  30967. one of the runs is very high. With the patch, the test should
  30968. reliably run 1000 times in a row without a single crash.
  30969. https://bugs.webkit.org/show_bug.cgi?id=35624
  30970. * storage/SQLTransaction.cpp:
  30971. (WebCore::SQLTransaction::checkAndHandleClosedDatabase):
  30972. 2010-03-03 Darin Fisher <darin@chromium.org>
  30973. Reviewed by Mark Rowe.
  30974. Page should not care about Chromium plug-in implementation details
  30975. https://bugs.webkit.org/show_bug.cgi?id=35623
  30976. * WebCore.gypi: Compile PluginViewNone.cpp
  30977. * page/Page.cpp:
  30978. (WebCore::Page::privateBrowsingStateChanged): Remove conditional
  30979. compilation for PLATFORM(CHROMIUM).
  30980. 2010-03-03 David Levin <levin@chromium.org>
  30981. No review, rolling out r55474.
  30982. http://trac.webkit.org/changeset/55480
  30983. The patch broke fast/frames/sandboxed-iframe-storage.html
  30984. * Android.jscbindings.mk:
  30985. * Android.v8bindings.mk:
  30986. * GNUmakefile.am:
  30987. * WebCore.gypi:
  30988. * WebCore.pro:
  30989. * WebCore.vcproj/WebCore.vcproj:
  30990. * bindings/js/JSDOMWindowCustom.cpp:
  30991. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  30992. * dom/Document.cpp:
  30993. (WebCore::Document::postTask):
  30994. * page/DOMWindow.cpp:
  30995. (WebCore::DOMWindow::openDatabase):
  30996. * page/DOMWindow.h:
  30997. * page/DOMWindow.idl:
  30998. * storage/Database.cpp:
  30999. (WebCore::Database::openDatabase):
  31000. (WebCore::Database::Database):
  31001. (WebCore::Database::performOpenAndVerify):
  31002. * storage/Database.h:
  31003. * workers/WorkerContext.cpp:
  31004. (WebCore::WorkerContext::openDatabase):
  31005. * workers/WorkerContext.h:
  31006. 2010-03-03 David Levin <levin@chromium.org>
  31007. No review, rolling out r55480.
  31008. http://trac.webkit.org/changeset/55480
  31009. The patch broke fast/frames/sandboxed-iframe-storage.html
  31010. * storage/Database.cpp:
  31011. * storage/Database.h:
  31012. 2010-03-03 Mark Rowe <mrowe@apple.com>
  31013. Reviewed by Geoff Garen.
  31014. Add virtual memory tags for TCMalloc and WebCore's purgeable buffers.
  31015. * platform/mac/PurgeableBufferMac.cpp:
  31016. (WebCore::PurgeableBuffer::create): Use the VM tag.
  31017. 2010-03-03 Dumitru Daniliuc <dumi@chromium.org>
  31018. Reviewed by nobody, build fix.
  31019. Move #include "DatabaseCallback.h" from Database.h to
  31020. Database.cpp.
  31021. * storage/Database.cpp:
  31022. * storage/Database.h:
  31023. 2010-03-03 Darin Adler <darin@apple.com>
  31024. Fixed Mac build.
  31025. * WebCore.xcodeproj/project.pbxproj: Marked a couple of headers "private" so they can
  31026. be used in the WebKit project.
  31027. 2010-03-03 Alexey Proskuryakov <ap@apple.com>
  31028. Reviewed by Adele Peterson.
  31029. https://bugs.webkit.org/show_bug.cgi?id=35044
  31030. Crash in XML tokenizer reloading zoom-coords-viewattr-01-b.svg
  31031. I'm often getting a crash even when opening the test for the first time in Safari, but it
  31032. doesn't seem to crash in DumpRenderTree. Still, I can't think of a stronger way to test for
  31033. this condition, so no new regression test.
  31034. * dom/XMLTokenizer.cpp: (WebCore::XMLTokenizer::end): Be prepared that parsing remaining
  31035. input will pause parsing.
  31036. 2010-03-03 Dumitru Daniliuc <dumi@chromium.org>
  31037. Reviewed by Adam Barth.
  31038. Adding support for the optional creation callback that could be
  31039. passed to openDatabase().
  31040. Test: storage/open-database-creation-callback.html
  31041. https://bugs.webkit.org/show_bug.cgi?id=34726
  31042. * Android.jscbindings.mk
  31043. * Android.v8bindings.mk
  31044. * GNUmakefile.am:
  31045. * WebCore.gypi:
  31046. * WebCore.pro:
  31047. * WebCore.vcproj/WebCore.vcproj:
  31048. * WebCore.xcodeproj/project.pbxproj:
  31049. * bindings/js/JSDOMWindowCustom.cpp:
  31050. (WebCore::JSDOMWindow::openDatabase):
  31051. * bindings/js/JSDatabaseCallback.cpp: Added.
  31052. (WebCore::JSDatabaseCallback::JSDatabaseCallback):
  31053. (WebCore::JSDatabaseCallback::~JSDatabaseCallback):
  31054. (WebCore::JSDatabaseCallback::handleEvent):
  31055. * bindings/js/JSDatabaseCallback.h: Added.
  31056. (WebCore::JSDatabaseCallback::create):
  31057. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  31058. (WebCore::V8DOMWindow::openDatabaseCallback):
  31059. * bindings/v8/custom/V8DatabaseCallback.cpp: Added.
  31060. (WebCore::V8DatabaseCallback::V8DatabaseCallback):
  31061. (WebCore::V8DatabaseCallback::~V8DatabaseCallback):
  31062. (WebCore::V8DatabaseCallback::handleEvent):
  31063. * bindings/v8/custom/V8DatabaseCallback.h: Added.
  31064. (WebCore::V8DatabaseCallback::create):
  31065. * page/DOMWindow.cpp:
  31066. (WebCore::DOMWindow::openDatabase):
  31067. * page/DOMWindow.h:
  31068. * page/DOMWindow.idl:
  31069. * storage/Database.cpp:
  31070. (WebCore::DatabaseCreationCallbackTask::create):
  31071. (WebCore::DatabaseCreationCallbackTask::performTask):
  31072. (WebCore::DatabaseCreationCallbackTask::DatabaseCreationCallbackTask):
  31073. (WebCore::Database::openDatabase):
  31074. (WebCore::Database::Database):
  31075. (WebCore::Database::performOpenAndVerify):
  31076. (WebCore::Database::performCreationCallback):
  31077. * storage/Database.h:
  31078. (WebCore::Database::isNew):
  31079. * storage/DatabaseCallback.h: Added.
  31080. (WebCore::DatabaseCallback::~DatabaseCallback):
  31081. * workers/WorkerContext.cpp:
  31082. (WebCore::WorkerContext::openDatabase):
  31083. * workers/WorkerContext.h:
  31084. 2010-03-03 Alexander Pavlov <apavlov@chromium.org>
  31085. Reviewed by Pavel Feldman.
  31086. Web Inspector: resources panel only shows uncompressed resource size.
  31087. https://bugs.webkit.org/show_bug.cgi?id=35403
  31088. * English.lproj/localizedStrings.js:
  31089. * inspector/InspectorResource.cpp:
  31090. (WebCore::InspectorResource::updateScriptObject):
  31091. * inspector/front-end/AbstractTimelinePanel.js:
  31092. (WebInspector.AbstractTimelinePanel.prototype.refresh):
  31093. * inspector/front-end/AuditRules.js:
  31094. (WebInspector.AuditRules.GzipRule.prototype.doRun):
  31095. (WebInspector.AuditRules.GzipRule.prototype._shouldCompress):
  31096. * inspector/front-end/ImageView.js:
  31097. (WebInspector.ImageView):
  31098. * inspector/front-end/Resource.js:
  31099. (WebInspector.Resource.prototype.get resourceSize):
  31100. (WebInspector.Resource.prototype.set resourceSize):
  31101. (WebInspector.Resource.prototype.get transferSize):
  31102. (WebInspector.Resource.CompareBySize):
  31103. (WebInspector.Resource.CompareByTransferSize):
  31104. * inspector/front-end/ResourcesPanel.js:
  31105. (WebInspector.ResourcesPanel.prototype.populateSidebar):
  31106. (WebInspector.ResourceTimeCalculator.prototype.computeBarGraphLabels):
  31107. (WebInspector.ResourceTransferSizeCalculator.prototype.computeBarGraphLabels):
  31108. (WebInspector.ResourceTransferSizeCalculator.prototype.computeBarGraphPercentages):
  31109. (WebInspector.ResourceTransferSizeCalculator.prototype._value):
  31110. (WebInspector.ResourceTransferSizeCalculator.prototype._networkBytes):
  31111. (WebInspector.ResourceSidebarTreeElement.CompareByDescendingTransferSize):
  31112. (WebInspector.ResourceGraph.prototype.refreshLabelPositions):
  31113. (WebInspector.ResourceGraph.prototype.refresh):
  31114. * inspector/front-end/inspector.css:
  31115. * inspector/front-end/inspector.js:
  31116. (WebInspector.updateResource):
  31117. 2010-03-03 Dan Bernstein <mitz@apple.com>
  31118. Build fix.
  31119. * dom/ContainerNode.cpp:
  31120. (WebCore::ContainerNode::removeChildren):
  31121. 2010-03-03 Pavel Feldman <pfeldman@chromium.org>
  31122. Reviewed by Timothy Hatcher.
  31123. Web Inspector: Get rid of synchronous debuggerEnabled, profilerEnabled calls.
  31124. https://bugs.webkit.org/show_bug.cgi?id=32331
  31125. * inspector/InspectorBackend.cpp:
  31126. * inspector/InspectorBackend.h:
  31127. * inspector/InspectorBackend.idl:
  31128. * inspector/front-end/BreakpointsSidebarPane.js:
  31129. (WebInspector.BreakpointsSidebarPane.prototype.addBreakpoint):
  31130. (WebInspector.BreakpointsSidebarPane.prototype.removeBreakpoint):
  31131. (WebInspector.BreakpointsSidebarPane.prototype._breakpointEnableChanged):
  31132. * inspector/front-end/ProfilesPanel.js:
  31133. (WebInspector.ProfilesPanel):
  31134. (WebInspector.ProfilesPanel.prototype.profilerWasEnabled):
  31135. (WebInspector.ProfilesPanel.prototype.profilerWasDisabled):
  31136. (WebInspector.ProfilesPanel.prototype._updateInterface):
  31137. (WebInspector.ProfilesPanel.prototype._enableProfiling):
  31138. (WebInspector.ProfilesPanel.prototype._toggleProfiling):
  31139. * inspector/front-end/ScriptsPanel.js:
  31140. (WebInspector.ScriptsPanel):
  31141. (WebInspector.ScriptsPanel.prototype.debuggerWasEnabled):
  31142. (WebInspector.ScriptsPanel.prototype.debuggerWasDisabled):
  31143. (WebInspector.ScriptsPanel.prototype.reset):
  31144. (WebInspector.ScriptsPanel.prototype.canShowSourceLine):
  31145. (WebInspector.ScriptsPanel.prototype._updateDebuggerButtons):
  31146. (WebInspector.ScriptsPanel.prototype._enableDebugging):
  31147. (WebInspector.ScriptsPanel.prototype._toggleDebugging):
  31148. 2010-03-03 Eric Carlson <eric.carlson@apple.com>
  31149. Reviewed by Adele Peterson.
  31150. Replace 'autobuffer' attribute with 'preload' to align with spec revision 4811.
  31151. https://bugs.webkit.org/show_bug.cgi?id=35385
  31152. rdar://problem/7689602
  31153. Tests: media/audio-constructor-preload.html
  31154. media/video-dom-preload.html
  31155. * html/HTMLAttributeNames.in: Remove autobuffer, add preload
  31156. * html/HTMLAudioElement.cpp:
  31157. (WebCore::HTMLAudioElement::createForJSConstructor): set preload to 'auto' instead of
  31158. autobuffer to true.
  31159. * html/HTMLMediaElement.cpp:
  31160. (WebCore::HTMLMediaElement::HTMLMediaElement): Initialize m_preload.
  31161. (WebCore::HTMLMediaElement::parseMappedAttribute): Deal with 'preload' attribute.
  31162. (WebCore::HTMLMediaElement::loadResource): Call setPreload() on the newly created MediaPlayer,
  31163. before calling load() so it can pass the setting through to the media engine.
  31164. (WebCore::HTMLMediaElement::preload): New.
  31165. (WebCore::HTMLMediaElement::setPreload): Ditto
  31166. * html/HTMLMediaElement.h:
  31167. * html/HTMLMediaElement.idl:
  31168. * platform/graphics/MediaPlayer.cpp:
  31169. (WebCore::MediaPlayer::MediaPlayer): Initialize m_preload.
  31170. (WebCore::MediaPlayer::load): Pass m_preload to newly created media engine.
  31171. (WebCore::MediaPlayer::preload): New, return m_preload.
  31172. (WebCore::MediaPlayer::setPreload): New, set m_preload.
  31173. * platform/graphics/MediaPlayer.h:
  31174. (WebCore::MediaPlayer::):
  31175. * platform/graphics/MediaPlayerPrivate.h:
  31176. (WebCore::MediaPlayerPrivateInterface::setPreload):
  31177. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  31178. (WebCore::MediaPlayerPrivate::setPreload): Renamed from setAutoplay, fix logic for preload.
  31179. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
  31180. 2010-03-03 Dan Bernstein <mitz@apple.com>
  31181. Reviewed by Sam Weinig.
  31182. <rdar://problem/7682756> Assertion failure when replacing the contents of a <select>
  31183. Test: fast/dom/remove-children-notification-order.html
  31184. * dom/ContainerNode.cpp:
  31185. (WebCore::ContainerNode::removeChildren): Changed to call childrenChanged()
  31186. before calling removedFromDocument() on each removed child, which matches
  31187. the order removeChild() does things, and avoids the assertion. This required
  31188. temporarily storing the removed children in a vector.
  31189. Also added comments about other discrepancies between this function and
  31190. removeChild().
  31191. 2010-03-03 Adam Barth <abarth@webkit.org>
  31192. Reviewed by Darin Adler.
  31193. Document cookieURL and firstPartyForCookies
  31194. https://bugs.webkit.org/show_bug.cgi?id=35613
  31195. Some folks asked what the cookieURL and the firstPartyForCookies were
  31196. on IRC. This patch documents these properties in the code so folks
  31197. don't have to ask on IRC anymore.
  31198. * dom/Document.h:
  31199. 2010-03-03 Arno Renevier <arno@renevier.net>
  31200. Reviewed by Gustavo Noronha Silva.
  31201. [Gtk]: assertion triggered when geolocation getCurrentPosition without an option argument.
  31202. https://bugs.webkit.org/show_bug.cgi?id=35666
  31203. * platform/gtk/GeolocationServiceGtk.cpp:
  31204. (WebCore::GeolocationServiceGtk::startUpdating):
  31205. 2010-03-03 Fridrich Strba <fridrich.strba@bluewin.ch>
  31206. Reviewed by Xan Lopez.
  31207. Miscellaneous little fixes for the windows build of webkit-gtk
  31208. https://bugs.webkit.org/show_bug.cgi?id=35640
  31209. * GNUmakefile.am: dist two new files concerning mathml support.
  31210. 2010-03-03 Xan Lopez <xlopez@igalia.com>
  31211. Unreviewed distcheck fix.
  31212. Add new file to the build.
  31213. * GNUmakefile.am:
  31214. 2010-03-03 Antti Koivisto <koivisto@iki.fi>
  31215. Reviewed by Oliver Hunt.
  31216. Make IntPoint usable as a hash key
  31217. https://bugs.webkit.org/show_bug.cgi?id=35586
  31218. * WebCore.pro:
  31219. * WebCore.xcodeproj/project.pbxproj:
  31220. * platform/graphics/IntPointHash.h: Added.
  31221. (WTF::IntPointHash::hash):
  31222. (WTF::IntPointHash::equal):
  31223. (WTF::):
  31224. 2010-03-02 Eric Uhrhane <ericu@chromium.org>
  31225. Reviewed by David Levin.
  31226. Move database enable bit fully out of settings
  31227. This is stage one of a three-stage commit [webkit, then chromium, then
  31228. webkit again]. In this change I'm adding calls to
  31229. Database::setIsAvailable inside Settings::setDatabaseEnabled and
  31230. anywhere else that called it, and switching webkit fully over to using
  31231. that flag [added in a previous checkin]. Phase two will remove
  31232. Chromium's use of Settings for the Database, and phase three will remove
  31233. the Setting for the Database enable entirely, leaving only
  31234. Database::isAvailable/setIsAvailable.
  31235. No new tests; tested by existing storage tests.
  31236. https://bugs.webkit.org/show_bug.cgi?id=35310
  31237. * WebCore.base.exp: Export Database::setIsAvailable
  31238. * WebCore.xcodeproj/project.pbxproj: Export needed headers as Private
  31239. * page/DOMWindow.cpp: Read isAvailable, not Settings::isDatabaseEnabled
  31240. (WebCore::DOMWindow::openDatabase):
  31241. * page/Settings.cpp: Add a call to Database::setIsAvailable.
  31242. (WebCore::Settings::setDatabasesEnabled):
  31243. 2010-03-02 Tony Chang <tony@chromium.org>
  31244. Reviewed by Darin Fisher.
  31245. add a flag to WebURLResponse so we can identify multipart content
  31246. https://bugs.webkit.org/show_bug.cgi?id=35628
  31247. * platform/network/chromium/ResourceResponse.h:
  31248. (WebCore::ResourceResponse::ResourceResponse):
  31249. (WebCore::ResourceResponse::isMultipartPayload):
  31250. (WebCore::ResourceResponse::setIsMultipartPayload):
  31251. 2010-03-02 Tony Chang <tony@chromium.org>
  31252. Not reviewed, test fix.
  31253. Revert r55447 because the new layout test is crashing consistently
  31254. on Leopard Intel Debug (tests).
  31255. https://bugs.webkit.org/show_bug.cgi?id=35261
  31256. * platform/graphics/skia/ImageSkia.cpp:
  31257. (WebCore::BitmapImageSingleFrameSkia::create):
  31258. 2010-03-02 Adam Barth <abarth@webkit.org>
  31259. Reviewed by Darin Fisher.
  31260. Google Analytics triggers "blocked plugin" UI
  31261. https://bugs.webkit.org/show_bug.cgi?id=35565
  31262. Just like for running script, we need to distinguish between querying
  31263. whether plug-ins are enabled and actually blocking a page from
  31264. instantiating a plugin. We need to issue different callbacks to the
  31265. FrameLoaderClient so that the client can inform us that plug-ins are
  31266. disabled in some cases without showing the "plug-in blocked" UI.
  31267. * dom/DOMImplementation.cpp:
  31268. (WebCore::DOMImplementation::createDocument):
  31269. * loader/FrameLoader.cpp:
  31270. (WebCore::FrameLoader::requestObject):
  31271. (WebCore::FrameLoader::allowPlugins):
  31272. * loader/FrameLoader.h:
  31273. (WebCore::):
  31274. * loader/FrameLoaderClient.h:
  31275. (WebCore::FrameLoaderClient::didNotAllowPlugins):
  31276. * loader/MainResourceLoader.cpp:
  31277. (WebCore::MainResourceLoader::substituteMIMETypeFromPluginDatabase):
  31278. * loader/PluginDocument.cpp:
  31279. (WebCore::PluginTokenizer::writeRawData):
  31280. * page/Page.cpp:
  31281. (WebCore::Page::pluginData):
  31282. * plugins/MimeType.cpp:
  31283. (WebCore::MimeType::enabledPlugin):
  31284. 2010-03-02 Andreas Kling <andreas.kling@nokia.com>
  31285. Reviewed by Simon Hausmann.
  31286. [Qt] Support the HTTP OPTIONS verb (needed for preflight requests)
  31287. https://bugs.webkit.org/show_bug.cgi?id=34647
  31288. * platform/network/qt/QNetworkReplyHandler.cpp:
  31289. (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
  31290. (WebCore::QNetworkReplyHandler::start):
  31291. 2010-03-02 Evan Stade <estade@chromium.org>
  31292. Reviewed by David Levin.
  31293. https://bugs.webkit.org/show_bug.cgi?id=35261
  31294. [skia] crash when attempting to render certain SVGs
  31295. This fixes the crash, but the SVG still doesn't render properly.
  31296. Test: svg/custom/tiling-regular-hexagonal-crash.svg
  31297. * platform/graphics/skia/ImageSkia.cpp:
  31298. (WebCore::BitmapImageSingleFrameSkia::create): don't return 0 when
  31299. the copy fails; instead return a blank bitmap. The caller doesn't
  31300. check for 0 before dereferencing.
  31301. 2010-03-02 Arno Renevier <arno@renevier.net>
  31302. Reviewed by Gustavo Noronha Silva.
  31303. [Gtk] use geoclue providers with don't provide update
  31304. https://bugs.webkit.org/show_bug.cgi?id=35191
  31305. No new tests, behaviour depends on system.
  31306. * platform/gtk/GeolocationServiceGtk.cpp:
  31307. (WebCore::GeolocationServiceGtk::startUpdating):
  31308. 2010-03-02 John Abd-El-Malek <jam@chromium.org>
  31309. Reviewed by Darin Adler.
  31310. Remove unnecessary check.
  31311. https://bugs.webkit.org/show_bug.cgi?id=35513
  31312. * platform/ScrollView.cpp:
  31313. (WebCore::ScrollView::updateScrollbars):
  31314. 2010-03-02 Darin Fisher <darin@chromium.org>
  31315. Fix chromium build bustage.
  31316. * page/Page.cpp:
  31317. (WebCore::Page::privateBrowsingStateChanged): PluginView methods may
  31318. not be called in the Chromium port.
  31319. 2010-03-02 Beth Dakin <bdakin@apple.com>
  31320. Reviewed by Darin Adler and Adam Roben.
  31321. Fix for <rdar://problem/7485289> WebKit crashes on systems that
  31322. don't support CoreAnimation
  31323. WKCACFLayerRenderer::acceleratedCompositingAvailable() now creates
  31324. a dummy HWND so that it can step through the whole setHostWindow()
  31325. and createRenderer() process. createRenderer() also calls a new
  31326. function, hardwareCapabilitiesIndicateCoreAnimationSupport() which
  31327. can only be called once we have a d3dDevice.
  31328. setHostWindow() and createRenderer() now both return bools that
  31329. indicate whether or not they have succeeded.
  31330. * platform/graphics/win/WKCACFLayerRenderer.cpp:
  31331. (WebCore::hardwareCapabilitiesIndicateCoreAnimationSupport):
  31332. (WebCore::CoreAnimationTesterWindowWndProc):
  31333. (WebCore::WKCACFLayerRenderer::acceleratedCompositingAvailable):
  31334. (WebCore::WKCACFLayerRenderer::shared):
  31335. (WebCore::WKCACFLayerRenderer::createRenderer):
  31336. * platform/graphics/win/WKCACFLayerRenderer.h:
  31337. (WebCore::WKCACFLayerRenderer::setHostWindow):
  31338. 2010-03-02 Mark Rowe <mrowe@apple.com>
  31339. Rubber-stamped by Jon Honeycutt.
  31340. ScriptDebugServer shouldn't care that Mac does not use PluginView for plug-ins.
  31341. * bindings/js/ScriptDebugServer.cpp:
  31342. * plugins/PluginViewNone.cpp:
  31343. (WebCore::PluginView::setJavaScriptPaused): Add an empty implementation of setJavaScriptPaused.
  31344. 2010-03-02 Mark Rowe <mrowe@apple.com>
  31345. Rubber-stamped by Jon Honeycutt.
  31346. Clean up the build fix r55437 by adding an empty implementation of privateBrowsingStateChanged in PluginViewNone.cpp
  31347. * page/Page.cpp:
  31348. * plugins/PluginViewNone.cpp:
  31349. (WebCore::PluginView::privateBrowsingStateChanged):
  31350. 2010-03-02 Mark Rowe <mrowe@apple.com>
  31351. Fix the Mac build.
  31352. * page/Page.cpp:
  31353. (WebCore::Page::privateBrowsingStateChanged): Mac doesn't use WebCore's PluginView class
  31354. for plug-ins, so provide an empty implementation of privateBrowsingStateChanged for Mac.
  31355. 2010-03-02 Andy Estes <aestes@apple.com>
  31356. Reviewed by Maciej Stachowiak.
  31357. Add the capability to create and dispatch a WheelEvent in JavaScript.
  31358. Ensure the event's default handler is triggered in the same way as it is
  31359. during a PlatformWheelEvent.
  31360. https://bugs.webkit.org/show_bug.cgi?id=35566
  31361. Test: fast/events/wheelevent-in-scrolling-div.html
  31362. * dom/Node.cpp: Ensure that the default behavior (scrolling) occurs for
  31363. wheel events originating both from the platform and from
  31364. JavaScript/ObjC.
  31365. (WebCore::Node::dispatchWheelEvent): Instantiate new WheelEvent with
  31366. the graunularity of the PlatformWheelEvent.
  31367. (WebCore::Node::defaultEventHandler): Add support for mousewheel events.
  31368. * dom/WheelEvent.cpp: Add three new member variables: m_deltaX, m_deltaY
  31369. and m_granularity. m_deltaX and m_deltaY differ from m_wheelDeltaX and
  31370. m_wheelDeltaY, which are the number of wheel ticks multiplied by 120 for
  31371. IE compatibility.
  31372. (WebCore::WheelEvent::WheelEvent): Initialize new member variables.
  31373. (WebCore::WheelEvent::initWheelEvent): Same.
  31374. (WebCore::WheelEvent::initWebKitWheelEvent): Same.
  31375. * dom/WheelEvent.h: See WheelEvent.cpp.
  31376. (WebCore::WheelEvent::): Add Granularity enum (Pixel, Line, Page).
  31377. (WebCore::WheelEvent::create): Add new arguments.
  31378. (WebCore::WheelEvent::deltaX): Amount of scroll in x direction.
  31379. (WebCore::WheelEvent::deltaY): Amount of scroll in y direction.
  31380. (WebCore::WheelEvent::granularity): Units of deltaX and deltaY.
  31381. * dom/WheelEvent.idl: Add initWebKitWheelEvent() to JavaScript. This is
  31382. the same as the initWheelEvent ObjC method. As the DOM Level 3 Events
  31383. specification is still a working draft and subject to change, prefix
  31384. 'WebKit' to the method signature to indicate experimental support.
  31385. * page/EventHandler.cpp: Move the scroll handling from
  31386. handleWheelEvent() to defaultWheelEventHandler(), which is executed on
  31387. both PlatformWheelEvents and JavaScript WheelEvents.
  31388. (WebCore::scrollNode): Renamed from scrollAndAcceptEvent(). Remove
  31389. the PlatformWheelEvent from the argument list and instead return a
  31390. boolean indicating if the scroll event was accepted.
  31391. (WebCore::EventHandler::handleWheelEvent): Move scrolling code from here
  31392. (WebCore::EventHandler::defaultWheelEventHandler): ...to here.
  31393. * page/EventHandler.h: Add function signature.
  31394. 2010-03-02 Mark Rowe <mrowe@apple.com>
  31395. Reviewed by Darin Adler.
  31396. Bug 35576: WebKit should tell plug-in instances when private browsing state changes
  31397. <http://webkit.org/b/35576>
  31398. Notify plug-in instances when the private browsing state changes to match the behavior of the
  31399. Mac plug-in code.
  31400. * page/Page.cpp:
  31401. (WebCore::Page::privateBrowsingStateChanged): Walk the frame tree and notify each PluginView that
  31402. the private browsing state has changed.
  31403. * page/Page.h:
  31404. * page/Settings.cpp:
  31405. (WebCore::Settings::setPrivateBrowsingEnabled): Notify the page that the private browsing state
  31406. has changed.
  31407. * plugins/PluginView.cpp:
  31408. (WebCore::PluginView::privateBrowsingStateChanged): Notify the plug-in instance of the new private
  31409. browsing state.
  31410. * plugins/PluginView.h:
  31411. 2010-03-02 Mark Rowe <mrowe@apple.com>
  31412. Reviewed by Oliver Hunt.
  31413. Bug 30348: Implement private mode for plug-ins on Windows
  31414. <http://webkit.org/b/30348> / <rdar://problem/7562261>
  31415. Rework PluginView::getValue and PluginView::getValueStatic to remove the amount of code that
  31416. was duplicated across platforms. getValue and getValueStatic now call in to platform-specific
  31417. variants that indicate whether they handled the query. If the query is not handled by the
  31418. platform-specific variants then the cross-platform handler has a chance to handle it.
  31419. * plugins/PluginView.cpp:
  31420. (WebCore::PluginView::getValueStatic): Give the platform-specific variant a chance to handle the
  31421. variable lookup. If it does not handle it, return an error.
  31422. (WebCore::PluginView::getValue): Give the platform-specific variant and platform-specific static
  31423. variant a chance to handle the variable lookup. If they do not handle it, apply the cross-platform
  31424. handler. At the moment the cross-platform code handles NPNVWindowNPObject, NPNVPluginElementNPObject,
  31425. and NPNVprivateModeBool as they have an identical implementation across ports.
  31426. * plugins/PluginView.h:
  31427. * plugins/PluginViewNone.cpp:
  31428. (WebCore::PluginView::platformGetValue): PluginViewNone does not handle any lookups.
  31429. (WebCore::PluginView::platformGetValueStatic): Ditto.
  31430. * plugins/gtk/PluginViewGtk.cpp:
  31431. (WebCore::PluginView::platformGetValueStatic):
  31432. (WebCore::PluginView::platformGetValue):
  31433. platform-independent implementation.
  31434. * plugins/mac/PluginViewMac.cpp:
  31435. (WebCore::PluginView::platformGetValueStatic):
  31436. (WebCore::PluginView::platformGetValue):
  31437. * plugins/qt/PluginViewQt.cpp:
  31438. (WebCore::PluginView::platformGetValueStatic):
  31439. (WebCore::PluginView::platformGetValue): Fix a bug noticed while updating this code.
  31440. The Qt implementation of the handler for NPNVToolkit was relying on case fall-through
  31441. to have some values handled by the static handler. When NPNVprivateModeBool was added
  31442. it was placed before the default case, interferring with this fall-through. It now
  31443. explicitly indicates in this situation that it was not handled.
  31444. * plugins/symbian/PluginViewSymbian.cpp:
  31445. (WebCore::PluginView::platformGetValueStatic):
  31446. (WebCore::PluginView::platformGetValue):
  31447. * plugins/win/PluginViewWin.cpp:
  31448. (WebCore::PluginView::platformGetValueStatic):
  31449. (WebCore::PluginView::platformGetValue):
  31450. 2010-03-02 Anders Carlsson <andersca@apple.com>
  31451. Reviewed by Sam Weinig.
  31452. Make the default constructor available to all platforms.
  31453. * platform/PlatformKeyboardEvent.h:
  31454. (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
  31455. * platform/mac/KeyEventMac.mm:
  31456. 2010-03-02 Jeremy Orlow <jorlow@chromium.org>
  31457. Reviewed by David Levin.
  31458. Revert database thread changes that are no longer required
  31459. https://bugs.webkit.org/show_bug.cgi?id=35519
  31460. Jochen Eisinger created 55214 and 55247 to track which database
  31461. owns which thread. Dmitry suggested that this could also
  31462. be done via TLS, though. After exploring the options, Jochen
  31463. chose to go the TLS route, so these patches are no longer needed.
  31464. * storage/DatabaseThread.cpp:
  31465. (WebCore::DatabaseThread::DatabaseThread):
  31466. (WebCore::DatabaseThread::databaseThread):
  31467. * storage/DatabaseThread.h:
  31468. (WebCore::DatabaseThread::getThreadID):
  31469. 2010-03-02 Brady Eidson <beidson@apple.com>
  31470. Reviewed by Sam Weinig.
  31471. Followup for REGRESSION(r51097) - Unable to log in to statefarm.com
  31472. <rdar://problem/7672667> and https://bugs.webkit.org/show_bug.cgi?id=35556
  31473. * dom/ScriptElement.cpp:
  31474. (WebCore::ScriptElementData::shouldExecuteAsJavaScript): To more perfectly match Gecko's rule,
  31475. strip whitespace from the attribute values before comparing to window/onload/onload().
  31476. 2010-03-02 Chris Fleizach <cfleizach@apple.com>
  31477. Reviewed by Beth Dakin.
  31478. aria-label isn't respected on option elements
  31479. https://bugs.webkit.org/show_bug.cgi?id=35400
  31480. When aria-label is used on an <option> element, it can take three forms.
  31481. An option in a multi-select list, a popup button and the menu that is displayed
  31482. from the popup button. This patches the three requisite locations so that if
  31483. aria-label is used, the correct accessibility text is returned.
  31484. Test: platform/mac/accessibility/option-with-arialabel.html
  31485. * accessibility/AccessibilityListBoxOption.cpp:
  31486. (WebCore::AccessibilityListBoxOption::stringValue):
  31487. * accessibility/AccessibilityObject.cpp:
  31488. (WebCore::AccessibilityObject::getAttribute):
  31489. * accessibility/AccessibilityObject.h:
  31490. * accessibility/AccessibilityRenderObject.cpp:
  31491. (WebCore::AccessibilityRenderObject::getAttribute):
  31492. (WebCore::AccessibilityRenderObject::stringValue):
  31493. * platform/PopupMenuClient.h:
  31494. * platform/mac/PopupMenuMac.mm:
  31495. (WebCore::PopupMenu::populate):
  31496. * rendering/RenderMenuList.cpp:
  31497. (WebCore::RenderMenuList::itemAccessibilityText):
  31498. * rendering/RenderMenuList.h:
  31499. * rendering/RenderTextControlSingleLine.h:
  31500. (WebCore::RenderTextControlSingleLine::itemAccessibilityText):
  31501. 2010-03-02 Mads Ager <ager@chromium.org>
  31502. Reviewed by Adam Barth.
  31503. [V8] V8 should be notified of context disposals
  31504. https://bugs.webkit.org/show_bug.cgi?id=35526
  31505. Notify V8 of context disposals to allow it to clean up memory from those
  31506. contexts when idle. When disposing a context, start a timer that will
  31507. give V8 an idle notification after a while to force cleanup. Use a timer
  31508. to avoid performing an idle notification in the middle of navigation where
  31509. we know we are not idle.
  31510. * WebCore.gypi:
  31511. * bindings/v8/V8DOMWindowShell.cpp:
  31512. (WebCore::V8DOMWindowShell::disposeContextHandles):
  31513. * bindings/v8/V8GCForContextDispose.cpp: Added.
  31514. (WebCore::V8GCForContextDispose::V8GCForContextDispose):
  31515. (WebCore::V8GCForContextDispose::notifyContextDisposed):
  31516. (WebCore::V8GCForContextDispose::notifyIdleSooner):
  31517. (WebCore::V8GCForContextDispose::instance):
  31518. (WebCore::V8GCForContextDispose::pseudoIdleTimerFired):
  31519. * bindings/v8/V8GCForContextDispose.h: Added.
  31520. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  31521. (WebCore::WindowSetTimeoutImpl):
  31522. 2010-03-02 Pavel Feldman <pfeldman@chromium.org>
  31523. Not reviewed: adding missing image files to WebKit.qrc and gypi.
  31524. * WebCore.gypi:
  31525. * inspector/front-end/WebKit.qrc:
  31526. 2010-03-02 Kim Grönholm <kim.gronholm@nomovok.com>
  31527. Reviewed by Simon Hausmann.
  31528. [Qt] GraphicsLayer: Video element with 3d transform crashes when AC is enabled.
  31529. https://bugs.webkit.org/show_bug.cgi?id=35516
  31530. No new tests.
  31531. * platform/graphics/qt/GraphicsLayerQt.cpp:
  31532. (WebCore::GraphicsLayerQt::setContentsToMedia):
  31533. 2010-03-02 Fridrich Strba <fridrich.strba@bluewin.ch>
  31534. Reviewed by Xan Lopez.
  31535. Use unsigned instead of uint which does not exist on windows
  31536. https://bugs.webkit.org/show_bug.cgi?id=35546
  31537. * platform/graphics/gtk/ImageGtk.cpp:
  31538. (WebCore::getCairoSurfacePixel):
  31539. (WebCore::getGdkPixbufPixel):
  31540. 2010-03-02 Kenneth Russell <kbr@google.com>
  31541. Reviewed by Darin Fisher.
  31542. Add EnabledAtRuntime attribute to WebGLArray constructors
  31543. https://bugs.webkit.org/show_bug.cgi?id=35558
  31544. New functionality verified manually in Chromium; not possible to
  31545. write layout test. Ran WebGL tests in WebKit as well.
  31546. * bindings/generic/RuntimeEnabledFeatures.cpp:
  31547. * bindings/generic/RuntimeEnabledFeatures.h:
  31548. (WebCore::RuntimeEnabledFeatures::setWebGLEnabled):
  31549. (WebCore::RuntimeEnabledFeatures::webGLRenderingContextEnabled):
  31550. (WebCore::RuntimeEnabledFeatures::webGLArrayBufferEnabled):
  31551. (WebCore::RuntimeEnabledFeatures::webGLByteArrayEnabled):
  31552. (WebCore::RuntimeEnabledFeatures::webGLUnsignedByteArrayEnabled):
  31553. (WebCore::RuntimeEnabledFeatures::webGLShortArrayEnabled):
  31554. (WebCore::RuntimeEnabledFeatures::webGLUnsignedShortArrayEnabled):
  31555. (WebCore::RuntimeEnabledFeatures::webGLIntArrayEnabled):
  31556. (WebCore::RuntimeEnabledFeatures::webGLUnsignedIntArrayEnabled):
  31557. (WebCore::RuntimeEnabledFeatures::webGLFloatArrayEnabled):
  31558. * page/DOMWindow.idl:
  31559. 2010-03-02 Nate Chapin <japhet@chromium.org>
  31560. Reviewed by Dimitri Glazkov.
  31561. [V8] Fail gracefully if NPN_GetProperty tries to retrieve a property that doesn't exist.
  31562. https://bugs.webkit.org/show_bug.cgi?id=35588
  31563. Required for passing LayoutTests/plugins/netscape-plugin-property-access-exception.html on Chromium.
  31564. * bindings/v8/NPV8Object.cpp:
  31565. (_NPN_GetProperty): If the result is empty, don't try to convert it to an NPVariant and return false.
  31566. 2010-03-02 Jian Li <jianli@chromium.org>
  31567. Reviewed by Nate Chapin.
  31568. [V8] DOMCoreException should be visible as DOMException
  31569. https://bugs.webkit.org/show_bug.cgi?id=35552
  31570. Fix V8 code generator to use the correct visible name.
  31571. * bindings/scripts/CodeGeneratorV8.pm:
  31572. 2010-03-02 Brady Eidson <beidson@apple.com>
  31573. Reviewed by Sam Weinig.
  31574. REGRESSION(r51097) - Unable to log in to statefarm.com
  31575. <rdar://problem/7672667> and https://bugs.webkit.org/show_bug.cgi?id=35556
  31576. Test: fast/loader/for-window-event-onload-scripts.html
  31577. Match Gecko's rules for executing "for/event" scripts:
  31578. -If there's only a 'for' attribute, execute it.
  31579. -If there's only an 'event' attribute, execute it.
  31580. -If there's a 'for=window' and 'event=onload', execute it.
  31581. -If there's a 'for=window' and 'event=onload()', execute it.
  31582. -If there's any other combination of both 'for' and 'event', don't execute it.
  31583. * dom/ScriptElement.cpp:
  31584. (WebCore::ScriptElementData::shouldExecuteAsJavaScript):
  31585. * dom/ScriptElement.h:
  31586. * html/HTMLScriptElement.cpp:
  31587. (WebCore::HTMLScriptElement::eventAttributeValue):
  31588. * html/HTMLScriptElement.h:
  31589. * svg/SVGScriptElement.cpp:
  31590. (WebCore::SVGScriptElement::eventAttributeValue):
  31591. * svg/SVGScriptElement.h:
  31592. Add the event attribute name:
  31593. * html/HTMLAttributeNames.in:
  31594. 2010-03-02 Simon Fraser <simon.fraser@apple.com>
  31595. Reviewed by Dan Bernstein.
  31596. https://bugs.webkit.org/show_bug.cgi?id=35555
  31597. QuickTime plugin content can spill outside the <object> tag
  31598. Set -masksToBounds on the layer that is handed to us by plug-ins, to ensure that sublayers
  31599. of that layer don't spill outside the <object> contents rect.
  31600. Manual test because it relies on QuickTime, and pixel results depend on movie loading timing.
  31601. * manual-tests/plugins/object-clipping.html: Added.
  31602. * platform/graphics/mac/GraphicsLayerCA.mm:
  31603. (WebCore::GraphicsLayerCA::setupContentsLayer):
  31604. 2010-03-02 Adam Roben <aroben@apple.com>
  31605. Export SecurityOrigin::registerURLSchemeAsSecure
  31606. Fixes <http://webkit.org/b/35580> <rdar://problem/7706407> Expose
  31607. SecurityOrigin::registerURLSchemeAsSecure as WebKit SPI
  31608. Reviewed by Tim Hatcher.
  31609. * WebCore.base.exp: Added symbol, sorted file.
  31610. 2010-03-02 Pavel Feldman <pfeldman@chromium.org>
  31611. Reviewed by Timothy Hatcher.
  31612. Web Inspector: render breakpoints as border images instead of canvas.
  31613. https://bugs.webkit.org/show_bug.cgi?id=35535
  31614. * inspector/front-end/Images/breakpointBorder.png: Added.
  31615. * inspector/front-end/Images/breakpointConditionalBorder.png: Added.
  31616. * inspector/front-end/Images/breakpointConditionalCounterBorder.png: Added.
  31617. * inspector/front-end/Images/breakpointCounterBorder.png: Added.
  31618. * inspector/front-end/Images/programCounterBorder.png: Added.
  31619. * inspector/front-end/SourceFrame.js:
  31620. (WebInspector.SourceFrame.prototype._updateExecutionLine):
  31621. (WebInspector.SourceFrame.prototype._addBreakpointToSource):
  31622. (WebInspector.SourceFrame.prototype.resize):
  31623. * inspector/front-end/TextViewer.js:
  31624. (WebInspector.TextChunk):
  31625. * inspector/front-end/textViewer.css:
  31626. 2010-01-28 Holger Hans Peter Freyther <zecke@selfish.org>
  31627. Reviewed by Ariya Hidayat.
  31628. [Qt] Special case Font::floatWidthForComplexText for single space
  31629. https://bugs.webkit.org/show_bug.cgi?id=33876
  31630. For a single space we can go through the QFontMetric::width routine
  31631. instead of converting the WebCore::String to a QString and then
  31632. going through the QTextLine.
  31633. * platform/graphics/qt/FontQt.cpp:
  31634. (WebCore::Font::floatWidthForComplexText):
  31635. 2010-02-28 Holger Hans Peter Freyther <zecke@selfish.org>
  31636. Reviewed by Gustavo Noronha.
  31637. [Gtk] Support private browsing mode in plugins.
  31638. https://bugs.webkit.org/show_bug.cgi?id=35500
  31639. Integrate the PluginViewQt.cpp changes from r55358 into Gtk+.
  31640. * plugins/gtk/PluginViewGtk.cpp:
  31641. (WebCore::PluginView::getValue):
  31642. 2010-03-02 Oliver Hunt <oliver@apple.com>
  31643. Reviewed by NOBODY (Build fix).
  31644. Update Qt bridge to new named getter signature
  31645. * bridge/qt/qt_runtime.cpp:
  31646. (JSC::Bindings::QtRuntimeMetaMethod::lengthGetter):
  31647. (JSC::Bindings::QtRuntimeMetaMethod::connectGetter):
  31648. (JSC::Bindings::QtRuntimeMetaMethod::disconnectGetter):
  31649. (JSC::Bindings::QtRuntimeConnectionMethod::lengthGetter):
  31650. * bridge/qt/qt_runtime.h:
  31651. 2010-03-01 Philippe Normand <pnormand@igalia.com>
  31652. Reviewed by Gustavo Noronha.
  31653. [GTK] Move gstreamer-related source files to platform/graphics/gstreamer
  31654. https://bugs.webkit.org/show_bug.cgi?id=35518
  31655. Moved GStreamer-related files to platform/graphics/gstreamer so
  31656. other ports could benefit from this media player implementation.
  31657. * GNUmakefile.am:
  31658. * platform/graphics/gstreamer/DataSourceGStreamer.cpp: Renamed from WebCore/platform/graphics/gtk/DataSourceGStreamer.cpp.
  31659. (_do_init):
  31660. (webkit_data_src_base_init):
  31661. (webkit_data_src_class_init):
  31662. (webkit_data_src_reset):
  31663. (webkit_data_src_init):
  31664. (webkit_data_src_finalize):
  31665. (webkit_data_src_change_state):
  31666. (webkit_data_src_uri_get_type):
  31667. (webkit_data_src_uri_get_protocols):
  31668. (webkit_data_src_uri_get_uri):
  31669. (webkit_data_src_uri_set_uri):
  31670. (webkit_data_src_uri_handler_init):
  31671. * platform/graphics/gstreamer/DataSourceGStreamer.h: Renamed from WebCore/platform/graphics/gtk/DataSourceGStreamer.h.
  31672. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: Renamed from WebCore/platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp.
  31673. (WebCore::greatestCommonDivisor):
  31674. (WebCore::mediaPlayerPrivateMessageCallback):
  31675. (WebCore::mediaPlayerPrivateSourceChangedCallback):
  31676. (WebCore::mediaPlayerPrivateVolumeChangedCallback):
  31677. (WebCore::notifyVolumeIdleCallback):
  31678. (WebCore::mediaPlayerPrivateMuteChangedCallback):
  31679. (WebCore::notifyMuteIdleCallback):
  31680. (WebCore::bufferingTimeoutCallback):
  31681. (WebCore::playbackPosition):
  31682. (WebCore::mediaPlayerPrivateRepaintCallback):
  31683. (WebCore::MediaPlayerPrivate::create):
  31684. (WebCore::MediaPlayerPrivate::registerMediaEngine):
  31685. (WebCore::doGstInit):
  31686. (WebCore::MediaPlayerPrivate::isAvailable):
  31687. (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
  31688. (WebCore::MediaPlayerPrivate::~MediaPlayerPrivate):
  31689. (WebCore::MediaPlayerPrivate::load):
  31690. (WebCore::MediaPlayerPrivate::changePipelineState):
  31691. (WebCore::MediaPlayerPrivate::play):
  31692. (WebCore::MediaPlayerPrivate::pause):
  31693. (WebCore::MediaPlayerPrivate::duration):
  31694. (WebCore::MediaPlayerPrivate::currentTime):
  31695. (WebCore::MediaPlayerPrivate::seek):
  31696. (WebCore::MediaPlayerPrivate::startEndPointTimerIfNeeded):
  31697. (WebCore::MediaPlayerPrivate::cancelSeek):
  31698. (WebCore::MediaPlayerPrivate::endPointTimerFired):
  31699. (WebCore::MediaPlayerPrivate::paused):
  31700. (WebCore::MediaPlayerPrivate::seeking):
  31701. (WebCore::MediaPlayerPrivate::naturalSize):
  31702. (WebCore::MediaPlayerPrivate::hasVideo):
  31703. (WebCore::MediaPlayerPrivate::hasAudio):
  31704. (WebCore::MediaPlayerPrivate::setVolume):
  31705. (WebCore::MediaPlayerPrivate::volumeChangedCallback):
  31706. (WebCore::MediaPlayerPrivate::volumeChanged):
  31707. (WebCore::MediaPlayerPrivate::setRate):
  31708. (WebCore::MediaPlayerPrivate::networkState):
  31709. (WebCore::MediaPlayerPrivate::readyState):
  31710. (WebCore::MediaPlayerPrivate::buffered):
  31711. (WebCore::MediaPlayerPrivate::processBufferingStats):
  31712. (WebCore::MediaPlayerPrivate::queryBufferingStats):
  31713. (WebCore::MediaPlayerPrivate::maxTimeSeekable):
  31714. (WebCore::MediaPlayerPrivate::maxTimeLoaded):
  31715. (WebCore::MediaPlayerPrivate::bytesLoaded):
  31716. (WebCore::MediaPlayerPrivate::totalBytes):
  31717. (WebCore::MediaPlayerPrivate::cancelLoad):
  31718. (WebCore::MediaPlayerPrivate::updateStates):
  31719. (WebCore::MediaPlayerPrivate::mediaLocationChanged):
  31720. (WebCore::MediaPlayerPrivate::loadNextLocation):
  31721. (WebCore::MediaPlayerPrivate::loadStateChanged):
  31722. (WebCore::MediaPlayerPrivate::sizeChanged):
  31723. (WebCore::MediaPlayerPrivate::timeChanged):
  31724. (WebCore::MediaPlayerPrivate::didEnd):
  31725. (WebCore::MediaPlayerPrivate::durationChanged):
  31726. (WebCore::MediaPlayerPrivate::supportsMuting):
  31727. (WebCore::MediaPlayerPrivate::setMuted):
  31728. (WebCore::MediaPlayerPrivate::muteChangedCallback):
  31729. (WebCore::MediaPlayerPrivate::muteChanged):
  31730. (WebCore::MediaPlayerPrivate::loadingFailed):
  31731. (WebCore::MediaPlayerPrivate::setSize):
  31732. (WebCore::MediaPlayerPrivate::setVisible):
  31733. (WebCore::MediaPlayerPrivate::repaint):
  31734. (WebCore::MediaPlayerPrivate::paint):
  31735. (WebCore::mimeTypeCache):
  31736. (WebCore::MediaPlayerPrivate::getSupportedTypes):
  31737. (WebCore::MediaPlayerPrivate::supportsType):
  31738. (WebCore::MediaPlayerPrivate::hasSingleSecurityOrigin):
  31739. (WebCore::MediaPlayerPrivate::supportsFullscreen):
  31740. (WebCore::MediaPlayerPrivate::setAutobuffer):
  31741. (WebCore::MediaPlayerPrivate::createGSTPlayBin):
  31742. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h: Renamed from WebCore/platform/graphics/gtk/MediaPlayerPrivateGStreamer.h.
  31743. (WebCore::MediaPlayerPrivate::pipelineReset):
  31744. * platform/graphics/gstreamer/VideoSinkGStreamer.cpp: Renamed from WebCore/platform/graphics/gtk/VideoSinkGStreamer.cpp.
  31745. (webkit_video_sink_base_init):
  31746. (webkit_video_sink_init):
  31747. (webkit_video_sink_timeout_func):
  31748. (webkit_video_sink_render):
  31749. (webkit_video_sink_dispose):
  31750. (unlock_buffer_mutex):
  31751. (webkit_video_sink_unlock):
  31752. (webkit_video_sink_unlock_stop):
  31753. (webkit_video_sink_stop):
  31754. (webkit_video_sink_start):
  31755. (marshal_VOID__MINIOBJECT):
  31756. (webkit_video_sink_class_init):
  31757. (webkit_video_sink_new):
  31758. * platform/graphics/gstreamer/VideoSinkGStreamer.h: Renamed from WebCore/platform/graphics/gtk/VideoSinkGStreamer.h.
  31759. * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp: Renamed from WebCore/platform/graphics/gtk/WebKitWebSourceGStreamer.cpp.
  31760. (doInit):
  31761. (webkit_web_src_base_init):
  31762. (webkit_web_src_class_init):
  31763. (webkit_web_src_init):
  31764. (webKitWebSrcFinalize):
  31765. (webKitWebSrcSetProperty):
  31766. (webKitWebSrcGetProperty):
  31767. (webKitWebSrcStop):
  31768. (webKitWebSrcStart):
  31769. (webKitWebSrcChangeState):
  31770. (webKitWebSrcUriGetType):
  31771. (webKitWebSrcGetProtocols):
  31772. (webKitWebSrcGetUri):
  31773. (webKitWebSrcSetUri):
  31774. (webKitWebSrcUriHandlerInit):
  31775. (webKitWebSrcNeedDataMainCb):
  31776. (webKitWebSrcNeedDataCb):
  31777. (webKitWebSrcEnoughDataMainCb):
  31778. (webKitWebSrcEnoughDataCb):
  31779. (webKitWebSrcSeekMainCb):
  31780. (webKitWebSrcSeekDataCb):
  31781. (webKitWebSrcSetFrame):
  31782. (StreamingClient::StreamingClient):
  31783. (StreamingClient::~StreamingClient):
  31784. (StreamingClient::willSendRequest):
  31785. (StreamingClient::didReceiveResponse):
  31786. (StreamingClient::didReceiveData):
  31787. (StreamingClient::didFinishLoading):
  31788. (StreamingClient::didFail):
  31789. (StreamingClient::wasBlocked):
  31790. (StreamingClient::cannotShowURL):
  31791. * platform/graphics/gstreamer/WebKitWebSourceGStreamer.h: Renamed from WebCore/platform/graphics/gtk/WebKitWebSourceGStreamer.h.
  31792. 2010-03-01 Oliver Hunt <oliver@apple.com>
  31793. Reviewed by Maciej Stachowiak.
  31794. Refactor named getter function signature to be in line with indexing getter signature
  31795. https://bugs.webkit.org/show_bug.cgi?id=35563
  31796. Fix up WebCore to use the new named getter function signature, update the
  31797. codegenerator to the new calling convention, and fix the custom bindings.
  31798. * bindings/js/JSCSSStyleDeclarationCustom.cpp:
  31799. (WebCore::JSCSSStyleDeclaration::nameGetter):
  31800. * bindings/js/JSDOMBinding.cpp:
  31801. (WebCore::objectToStringFunctionGetter):
  31802. * bindings/js/JSDOMBinding.h:
  31803. * bindings/js/JSDOMWindowCustom.cpp:
  31804. (WebCore::nonCachingStaticFunctionGetter):
  31805. (WebCore::childFrameGetter):
  31806. (WebCore::namedItemGetter):
  31807. * bindings/js/JSDataGridColumnListCustom.cpp:
  31808. (WebCore::JSDataGridColumnList::nameGetter):
  31809. * bindings/js/JSHTMLAllCollectionCustom.cpp:
  31810. (WebCore::JSHTMLAllCollection::nameGetter):
  31811. * bindings/js/JSHTMLCollectionCustom.cpp:
  31812. (WebCore::JSHTMLCollection::nameGetter):
  31813. * bindings/js/JSHTMLDocumentCustom.cpp:
  31814. (WebCore::JSHTMLDocument::nameGetter):
  31815. * bindings/js/JSHTMLFormElementCustom.cpp:
  31816. (WebCore::JSHTMLFormElement::nameGetter):
  31817. * bindings/js/JSHTMLFrameSetElementCustom.cpp:
  31818. (WebCore::JSHTMLFrameSetElement::nameGetter):
  31819. * bindings/js/JSHistoryCustom.cpp:
  31820. (WebCore::nonCachingStaticBackFunctionGetter):
  31821. (WebCore::nonCachingStaticForwardFunctionGetter):
  31822. (WebCore::nonCachingStaticGoFunctionGetter):
  31823. * bindings/js/JSLocationCustom.cpp:
  31824. (WebCore::nonCachingStaticReplaceFunctionGetter):
  31825. (WebCore::nonCachingStaticReloadFunctionGetter):
  31826. (WebCore::nonCachingStaticAssignFunctionGetter):
  31827. * bindings/js/JSMimeTypeArrayCustom.cpp:
  31828. (WebCore::JSMimeTypeArray::nameGetter):
  31829. * bindings/js/JSNamedNodeMapCustom.cpp:
  31830. (WebCore::JSNamedNodeMap::nameGetter):
  31831. * bindings/js/JSNodeListCustom.cpp:
  31832. (WebCore::JSNodeList::nameGetter):
  31833. * bindings/js/JSPluginArrayCustom.cpp:
  31834. (WebCore::JSPluginArray::nameGetter):
  31835. * bindings/js/JSPluginCustom.cpp:
  31836. (WebCore::JSPlugin::nameGetter):
  31837. * bindings/js/JSPluginElementFunctions.cpp:
  31838. (WebCore::runtimeObjectPropertyGetter):
  31839. * bindings/js/JSPluginElementFunctions.h:
  31840. * bindings/js/JSStorageCustom.cpp:
  31841. (WebCore::JSStorage::nameGetter):
  31842. * bindings/js/JSStyleSheetListCustom.cpp:
  31843. (WebCore::JSStyleSheetList::nameGetter):
  31844. * bindings/scripts/CodeGeneratorJS.pm:
  31845. * bridge/runtime_array.cpp:
  31846. (JSC::RuntimeArray::lengthGetter):
  31847. * bridge/runtime_array.h:
  31848. * bridge/runtime_method.cpp:
  31849. (JSC::RuntimeMethod::lengthGetter):
  31850. * bridge/runtime_method.h:
  31851. * bridge/runtime_object.cpp:
  31852. (JSC::Bindings::RuntimeObject::fallbackObjectGetter):
  31853. (JSC::Bindings::RuntimeObject::fieldGetter):
  31854. (JSC::Bindings::RuntimeObject::methodGetter):
  31855. * bridge/runtime_object.h:
  31856. 2010-03-01 Oliver Hunt <oliver@apple.com>
  31857. Reviewed by Gavin Barraclough.
  31858. PropertySlot::getValue(ExecState, unsigned) unnecessarily converts index to an Identifier
  31859. https://bugs.webkit.org/show_bug.cgi?id=35561
  31860. Update bindings generation and the few manual indexing getters we have to use
  31861. the new PropertySlot API.
  31862. * bindings/js/JSDOMWindowCustom.cpp:
  31863. (WebCore::indexGetter):
  31864. * bindings/scripts/CodeGeneratorJS.pm:
  31865. * bridge/runtime_array.cpp:
  31866. (JSC::RuntimeArray::indexGetter):
  31867. * bridge/runtime_array.h:
  31868. 2010-03-01 Chris Fleizach <cfleizach@apple.com>
  31869. Reviewed by Darin Adler.
  31870. AX: changes to WAI-ARIA grid aren't perceived correctly by VoiceOver
  31871. https://bugs.webkit.org/show_bug.cgi?id=35514
  31872. When a table's DOM is changed and an AX Table is not asked first for its children,
  31873. it would return wrong information. A table needs to make sure children are up to date in
  31874. all methods that can be called from the outside.
  31875. Test: platform/mac/accessibility/stale-table-rows.html
  31876. * accessibility/AccessibilityARIAGrid.cpp:
  31877. (WebCore::AccessibilityARIAGrid::cellForColumnAndRow):
  31878. * accessibility/AccessibilityObject.cpp:
  31879. (WebCore::AccessibilityObject::clearChildren):
  31880. * accessibility/AccessibilityRenderObject.cpp:
  31881. (WebCore::AccessibilityRenderObject::clearChildren):
  31882. (WebCore::AccessibilityRenderObject::updateChildrenIfNecessary):
  31883. (WebCore::AccessibilityRenderObject::children):
  31884. * accessibility/AccessibilityRenderObject.h:
  31885. (WebCore::AccessibilityRenderObject::needsToUpdateChildren):
  31886. (WebCore::AccessibilityRenderObject::setNeedsToUpdateChildren):
  31887. * accessibility/AccessibilityTable.cpp:
  31888. (WebCore::AccessibilityTable::clearChildren):
  31889. (WebCore::AccessibilityTable::columns):
  31890. (WebCore::AccessibilityTable::rows):
  31891. (WebCore::AccessibilityTable::rowHeaders):
  31892. (WebCore::AccessibilityTable::columnHeaders):
  31893. (WebCore::AccessibilityTable::cells):
  31894. (WebCore::AccessibilityTable::columnCount):
  31895. (WebCore::AccessibilityTable::rowCount):
  31896. (WebCore::AccessibilityTable::cellForColumnAndRow):
  31897. 2010-03-01 Jakob Petsovits <jpetsovits@rim.com>
  31898. Reviewed by Adam Barth.
  31899. Convert the zoom mode (page vs. text-only) into a proper enum.
  31900. https://bugs.webkit.org/show_bug.cgi?id=35347
  31901. * GNUmakefile.am:
  31902. * WebCore.base.exp: Substituted symbols __ZN7WebCore5Frame13setZoomFactorEfNS_8ZoomModeE
  31903. and __ZN7WebCore8Settings11setZoomModeENS_8ZoomModeE for __ZN7WebCore5Frame13setZoomFactorEfb
  31904. and __ZN7WebCore8Settings16setZoomsTextOnlyEb, respectively.
  31905. * WebCore.gypi:
  31906. * WebCore.pro:
  31907. * WebCore.vcproj/WebCore.vcproj:
  31908. * WebCore.xcodeproj/project.pbxproj:
  31909. * page/Frame.cpp:
  31910. (WebCore::Frame::zoomMode):
  31911. (WebCore::Frame::shouldApplyTextZoom):
  31912. (WebCore::Frame::shouldApplyPageZoom):
  31913. (WebCore::Frame::setZoomFactor):
  31914. * page/Frame.h:
  31915. * page/Settings.cpp:
  31916. (WebCore::Settings::Settings):
  31917. (WebCore::Settings::setZoomMode):
  31918. * page/Settings.h:
  31919. (WebCore::Settings::zoomMode):
  31920. * page/ZoomMode.h: Added.
  31921. (WebCore::):
  31922. * svg/SVGSVGElement.cpp:
  31923. (WebCore::SVGSVGElement::setCurrentScale):
  31924. 2010-03-01 Alex Milowski <alex@milowski.com>
  31925. Reviewed by Kenneth Rohde Christiansen.
  31926. Added support for the msubsup element that also handles the msup and msub elements.
  31927. Test: mathml/presentation/subsup.xhtml
  31928. * WebCore.xcodeproj/project.pbxproj:
  31929. * mathml/MathMLInlineContainerElement.cpp:
  31930. (WebCore::MathMLInlineContainerElement::createRenderer):
  31931. * mathml/RenderMathMLSubSup.cpp: Added.
  31932. (WebCore::RenderMathMLSubSup::RenderMathMLSubSup):
  31933. (WebCore::RenderMathMLSubSup::addChild):
  31934. (WebCore::RenderMathMLSubSup::stretchToHeight):
  31935. (WebCore::RenderMathMLSubSup::nonOperatorHeight):
  31936. (WebCore::RenderMathMLSubSup::layout):
  31937. (WebCore::RenderMathMLSubSup::baselinePosition):
  31938. * mathml/RenderMathMLSubSup.h: Added.
  31939. (WebCore::RenderMathMLSubSup::hasBase):
  31940. (WebCore::RenderMathMLSubSup::):
  31941. 2010-03-01 Pavel Feldman <pfeldman@chromium.org>
  31942. Reviewed by Timothy Hatcher.
  31943. Web Inspector: use dejavu sans mono 11px on linux.
  31944. https://bugs.webkit.org/show_bug.cgi?id=35527
  31945. * inspector/front-end/inspector.css:
  31946. 2010-03-01 Thatcher Ulrich <tulrich@google.com>
  31947. Reviewed by Darin Fisher.
  31948. Fix chromium iframe shims. Add another test case to the
  31949. iframes-shims test. After r53637, the plugin widget doesn't get
  31950. moved every paint. This used to hide the bug that if an iframe
  31951. gets added, the plugin's cutout rectangles don't get updated until
  31952. a layout happens.
  31953. https://bugs.webkit.org/show_bug.cgi?id=35184
  31954. * platform/Widget.h:
  31955. (WebCore::Widget::widgetPositionsUpdated): new virtual method
  31956. widgetPositionsUpdated() to notify widgets when other widgets on
  31957. the page have been repositioned.
  31958. * rendering/RenderView.cpp:
  31959. (WebCore::RenderView::updateWidgetPositions): call widgetPositionsUpdated() on the widgets
  31960. * rendering/RenderWidget.cpp:
  31961. (WebCore::RenderWidget::widgetPositionsUpdated): call widgetPositionsUpdated() on the widget
  31962. * rendering/RenderWidget.h:
  31963. 2010-03-01 Fridrich Strba <fridrich.strba@bluewin.ch>
  31964. Reviewed by Holger Freyther.
  31965. Dist some mathml related files
  31966. * GNUmakefile.am:
  31967. 2010-03-01 Kenneth Russell <kbr@google.com>
  31968. Reviewed by Oliver Hunt.
  31969. Integer overflow in WebGL arrays
  31970. https://bugs.webkit.org/show_bug.cgi?id=35241
  31971. Test: fast/canvas/webgl/webgl-array-invalid-ranges.html
  31972. * bindings/js/JSWebGLArrayBufferConstructor.cpp:
  31973. (WebCore::constructCanvasArrayBuffer):
  31974. * bindings/js/JSWebGLArrayBufferConstructor.h:
  31975. (WebCore::construct):
  31976. * bindings/js/JSWebGLArrayHelper.h:
  31977. (WebCore::setWebGLArrayFromArray):
  31978. * bindings/js/JSWebGLByteArrayConstructor.cpp:
  31979. (WebCore::constructCanvasByteArray):
  31980. * bindings/js/JSWebGLFloatArrayConstructor.cpp:
  31981. (WebCore::constructCanvasFloatArray):
  31982. * bindings/js/JSWebGLIntArrayConstructor.cpp:
  31983. (WebCore::constructCanvasIntArray):
  31984. * bindings/js/JSWebGLShortArrayConstructor.cpp:
  31985. (WebCore::constructCanvasShortArray):
  31986. * bindings/js/JSWebGLUnsignedByteArrayConstructor.cpp:
  31987. (WebCore::constructCanvasUnsignedByteArray):
  31988. * bindings/js/JSWebGLUnsignedIntArrayConstructor.cpp:
  31989. (WebCore::constructCanvasUnsignedIntArray):
  31990. * bindings/js/JSWebGLUnsignedShortArrayConstructor.cpp:
  31991. (WebCore::constructCanvasUnsignedShortArray):
  31992. * bindings/v8/V8Binding.cpp:
  31993. (WebCore::toUInt32):
  31994. * bindings/v8/V8Binding.h:
  31995. (WebCore::toUInt32):
  31996. * bindings/v8/custom/V8WebGLArrayBufferCustom.cpp:
  31997. (WebCore::V8WebGLArrayBuffer::constructorCallback):
  31998. * bindings/v8/custom/V8WebGLArrayCustom.h:
  31999. (WebCore::constructWebGLArray):
  32000. (WebCore::getWebGLArrayElement):
  32001. (WebCore::setWebGLArrayFromArray):
  32002. (WebCore::setWebGLArray):
  32003. * bindings/v8/custom/V8WebGLByteArrayCustom.cpp:
  32004. (WebCore::V8WebGLByteArray::constructorCallback):
  32005. * bindings/v8/custom/V8WebGLFloatArrayCustom.cpp:
  32006. (WebCore::V8WebGLFloatArray::constructorCallback):
  32007. * bindings/v8/custom/V8WebGLIntArrayCustom.cpp:
  32008. (WebCore::V8WebGLIntArray::constructorCallback):
  32009. * bindings/v8/custom/V8WebGLShortArrayCustom.cpp:
  32010. (WebCore::V8WebGLShortArray::constructorCallback):
  32011. * bindings/v8/custom/V8WebGLUnsignedByteArrayCustom.cpp:
  32012. (WebCore::V8WebGLUnsignedByteArray::constructorCallback):
  32013. * bindings/v8/custom/V8WebGLUnsignedIntArrayCustom.cpp:
  32014. (WebCore::V8WebGLUnsignedIntArray::constructorCallback):
  32015. * bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp:
  32016. (WebCore::V8WebGLUnsignedShortArray::constructorCallback):
  32017. * html/canvas/WebGLArray.cpp:
  32018. (WebCore::WebGLArray::setImpl):
  32019. * html/canvas/WebGLArray.h:
  32020. (WebCore::WebGLArray::verifySubRange):
  32021. (WebCore::WebGLArray::clampOffsetAndNumElements):
  32022. * html/canvas/WebGLArrayBuffer.cpp:
  32023. (WebCore::WebGLArrayBuffer::create):
  32024. (WebCore::WebGLArrayBuffer::WebGLArrayBuffer):
  32025. (WebCore::WebGLArrayBuffer::tryAllocate):
  32026. * html/canvas/WebGLArrayBuffer.h:
  32027. * html/canvas/WebGLByteArray.cpp:
  32028. (WebCore::WebGLByteArray::create):
  32029. (WebCore::WebGLByteArray::WebGLByteArray):
  32030. (WebCore::WebGLByteArray::slice):
  32031. * html/canvas/WebGLByteArray.h:
  32032. * html/canvas/WebGLFloatArray.cpp:
  32033. (WebCore::WebGLFloatArray::create):
  32034. (WebCore::WebGLFloatArray::WebGLFloatArray):
  32035. (WebCore::WebGLFloatArray::slice):
  32036. * html/canvas/WebGLFloatArray.h:
  32037. * html/canvas/WebGLIntArray.cpp:
  32038. (WebCore::WebGLIntArray::create):
  32039. (WebCore::WebGLIntArray::WebGLIntArray):
  32040. (WebCore::WebGLIntArray::slice):
  32041. * html/canvas/WebGLIntArray.h:
  32042. * html/canvas/WebGLShortArray.cpp:
  32043. (WebCore::WebGLShortArray::create):
  32044. (WebCore::WebGLShortArray::WebGLShortArray):
  32045. (WebCore::WebGLShortArray::slice):
  32046. * html/canvas/WebGLShortArray.h:
  32047. * html/canvas/WebGLUnsignedByteArray.cpp:
  32048. (WebCore::WebGLUnsignedByteArray::create):
  32049. (WebCore::WebGLUnsignedByteArray::WebGLUnsignedByteArray):
  32050. (WebCore::WebGLUnsignedByteArray::slice):
  32051. * html/canvas/WebGLUnsignedByteArray.h:
  32052. * html/canvas/WebGLUnsignedIntArray.cpp:
  32053. (WebCore::WebGLUnsignedIntArray::create):
  32054. (WebCore::WebGLUnsignedIntArray::WebGLUnsignedIntArray):
  32055. (WebCore::WebGLUnsignedIntArray::slice):
  32056. * html/canvas/WebGLUnsignedIntArray.h:
  32057. * html/canvas/WebGLUnsignedShortArray.cpp:
  32058. (WebCore::WebGLUnsignedShortArray::create):
  32059. (WebCore::WebGLUnsignedShortArray::WebGLUnsignedShortArray):
  32060. (WebCore::WebGLUnsignedShortArray::slice):
  32061. * html/canvas/WebGLUnsignedShortArray.h:
  32062. 2010-03-01 Brady Eidson <beidson@apple.com>
  32063. Reviewed by Sam Weinig.
  32064. REGRESSION: Telling a WebView to go to its current WebHistoryItem is broken.
  32065. <rdar://problem/7699371> and https://bugs.webkit.org/show_bug.cgi?id=35532
  32066. Test: fast/loader/api-test-go-to-current-back-forward-item.html
  32067. * loader/FrameLoader.cpp:
  32068. (WebCore::FrameLoader::loadItem): If the current item is the same as the target item, don't
  32069. consider this to be a same document navigation.
  32070. * page/Page.cpp:
  32071. (WebCore::Page::goToItem): Hard code the "going to the same item as the current item" relationship
  32072. as a precondition for stopping all loaders, as that will be a new document load.
  32073. 2010-03-01 Robert Hogan <robert@webkit.org>
  32074. Reviewed by nobody, build fix.
  32075. Fix --minimal build. Add ENABLE(DATABASE) as compile time condition
  32076. for building file GeolocationPositionCache.cpp.
  32077. * page/GeolocationPositionCache.cpp:
  32078. 2010-03-01 Jakob Petsovits <jpetsovits@rim.com>
  32079. Reviewed by Dirk Schulze.
  32080. [OpenVG] Implement support for paths
  32081. https://bugs.webkit.org/show_bug.cgi?id=34366
  32082. Adds an implementation of the Path class -
  32083. *almost* complete, but not quite because OpenVG
  32084. does not provide access to the points in a VGPath
  32085. unless one keeps track of all the points by
  32086. themselves, which we decided not to do.
  32087. Also hooked up to PainterOpenVG and GraphicsContext.
  32088. Further introduced is SharedResourceOpenVG, which is
  32089. intended as base class for paths and other OpenVG
  32090. resources (images, fonts) that WebKit creates as
  32091. long-lived objects. We are at a slight disadvantage
  32092. here as WebKit doesn't have the concept of resources
  32093. belonging to a specific (hardware graphics) context,
  32094. which is the reason why EGLDisplayOpenVG had to
  32095. provide a current display singleton; this class is
  32096. what actually requires that functionality.
  32097. Path::addArcTo() uses code by Yong Li <yoli@rim.com>.
  32098. * platform/graphics/Path.cpp:
  32099. * platform/graphics/Path.h:
  32100. * platform/graphics/openvg/GraphicsContextOpenVG.cpp:
  32101. (WebCore::GraphicsContext::fillPath):
  32102. (WebCore::GraphicsContext::strokePath):
  32103. (WebCore::GraphicsContext::drawPath):
  32104. (WebCore::GraphicsContext::beginPath):
  32105. (WebCore::GraphicsContext::addPath):
  32106. * platform/graphics/openvg/PainterOpenVG.cpp:
  32107. (WebCore::PainterOpenVG::PainterOpenVG):
  32108. (WebCore::PainterOpenVG::~PainterOpenVG):
  32109. (WebCore::PainterOpenVG::transformPath):
  32110. (WebCore::PainterOpenVG::beginPath):
  32111. (WebCore::PainterOpenVG::addPath):
  32112. (WebCore::PainterOpenVG::currentPath):
  32113. (WebCore::PainterOpenVG::drawPath):
  32114. * platform/graphics/openvg/PainterOpenVG.h:
  32115. * platform/graphics/openvg/PathOpenVG.cpp: Added.
  32116. (WebCore::PlatformPathOpenVG::PlatformPathOpenVG):
  32117. (WebCore::PlatformPathOpenVG::operator=):
  32118. (WebCore::PlatformPathOpenVG::~PlatformPathOpenVG):
  32119. (WebCore::PlatformPathOpenVG::clear):
  32120. (WebCore::PlatformPathOpenVG::createPath):
  32121. (WebCore::Path::Path):
  32122. (WebCore::Path::~Path):
  32123. (WebCore::Path::operator=):
  32124. (WebCore::Path::contains):
  32125. (WebCore::Path::strokeContains):
  32126. (WebCore::Path::translate):
  32127. (WebCore::Path::boundingRect):
  32128. (WebCore::Path::strokeBoundingRect):
  32129. (WebCore::Path::moveTo):
  32130. (WebCore::Path::addLineTo):
  32131. (WebCore::Path::addQuadCurveTo):
  32132. (WebCore::Path::addBezierCurveTo):
  32133. (WebCore::Path::addArcTo):
  32134. (WebCore::Path::closeSubpath):
  32135. (WebCore::Path::addArc):
  32136. (WebCore::Path::addRect):
  32137. (WebCore::Path::addEllipse):
  32138. (WebCore::Path::clear):
  32139. (WebCore::Path::isEmpty):
  32140. (WebCore::Path::hasCurrentPoint):
  32141. (WebCore::Path::debugString):
  32142. (WebCore::Path::apply):
  32143. (WebCore::Path::transform):
  32144. (WebCore::Path::length):
  32145. (WebCore::Path::pointAtLength):
  32146. (WebCore::Path::normalAngleAtLength):
  32147. * platform/graphics/openvg/PlatformPathOpenVG.h: Added.
  32148. (WebCore::PlatformPathOpenVG::vgPath):
  32149. * platform/graphics/openvg/SharedResourceOpenVG.cpp: Added.
  32150. (WebCore::SharedResourceOpenVG::makeSharedContextCurrent):
  32151. (WebCore::SharedResourceOpenVG::makeCompatibleContextCurrent):
  32152. * platform/graphics/openvg/SharedResourceOpenVG.h: Added.
  32153. 2010-03-01 Pavel Feldman <pfeldman@chromium.org>
  32154. Not reviewed, bring English.lproj/locallizedStrings.js back to binary (UTF) mode.
  32155. * English.lproj/localizedStrings.js:
  32156. 2010-03-01 Jakob Petsovits <jpetsovits@rim.com>
  32157. Reviewed by Nikolas Zimmermann.
  32158. [OpenVG] Convert from TransformationMatrix to AffineTransform.
  32159. https://bugs.webkit.org/show_bug.cgi?id=35445
  32160. Dirk Schulze previously introduced AffineTransform as
  32161. replacement for most TransformationMatrix occurrences
  32162. in GraphicsContext & Co., but did not update the OpenVG
  32163. graphics backend as there's no publicly available way
  32164. to build it. This commit now takes care of that.
  32165. * platform/graphics/openvg/GraphicsContextOpenVG.cpp:
  32166. (WebCore::GraphicsContext::getCTM):
  32167. (WebCore::GraphicsContext::roundToDevicePixels):
  32168. (WebCore::GraphicsContext::origin):
  32169. (WebCore::GraphicsContext::concatCTM):
  32170. * platform/graphics/openvg/PainterOpenVG.cpp:
  32171. (WebCore::isNonRotatedAffineTransformation):
  32172. (WebCore::PlatformPainterState::PlatformPainterState):
  32173. (WebCore::PlatformPainterState::applyState):
  32174. (WebCore::PlatformPainterState::applyTransformation):
  32175. (WebCore::PainterOpenVG::transformation):
  32176. (WebCore::PainterOpenVG::concatTransformation):
  32177. (WebCore::PainterOpenVG::setTransformation):
  32178. (WebCore::PainterOpenVG::scale):
  32179. (WebCore::PainterOpenVG::rotate):
  32180. (WebCore::PainterOpenVG::translate):
  32181. (WebCore::PainterOpenVG::intersectClipRect):
  32182. * platform/graphics/openvg/PainterOpenVG.h:
  32183. * platform/graphics/openvg/VGUtils.cpp:
  32184. (WebCore::VGMatrix::VGMatrix):
  32185. (WebCore::VGMatrix::operator AffineTransform):
  32186. (WebCore::VGMatrix::operator TransformationMatrix):
  32187. (WebCore::AffineTransform::operator VGMatrix):
  32188. * platform/graphics/openvg/VGUtils.h:
  32189. * platform/graphics/transforms/AffineTransform.h:
  32190. 2010-03-01 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
  32191. Reviewed by Simon Hausmann.
  32192. [Qt] Fix segfault when drawing NPAPI plugins on Mac
  32193. Don't try to get a contexctRef for a null-pixmap. If the pixmap
  32194. size is 0,0 the private pixmap data has not yet been initialized.
  32195. * plugins/mac/PluginViewMac.cpp:
  32196. 2010-03-01 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
  32197. Reviewed by Simon Hausmann.
  32198. Fix the Qt build on Mac OS X/Cocoa 64-bit
  32199. Use the proper event/drawing-model guards instead of global 64-bit
  32200. guard for the NPAPI plugin implementation (view and package).
  32201. * plugins/mac/PluginPackageMac.cpp: Change guards and fix warning
  32202. * plugins/mac/PluginViewMac.cpp: Remove 64-bit guard
  32203. 2010-02-27 Pavel Feldman <pfeldman@chromium.org>
  32204. Reviewed by Timothy Hatcher.
  32205. Web Inspector: disable breakpoint upon Shift-click.
  32206. https://bugs.webkit.org/show_bug.cgi?id=35477
  32207. * inspector/front-end/ConsoleView.js:
  32208. (WebInspector.ConsoleView.prototype._format):
  32209. * inspector/front-end/SourceFrame.js:
  32210. (WebInspector.SourceFrame.prototype._mouseDown):
  32211. (WebInspector.SourceFrame.prototype._mouseMove):
  32212. * inspector/front-end/textViewer.css:
  32213. 2010-02-28 Alexey Proskuryakov <ap@apple.com>
  32214. Reviewed by Dan Bernstein.
  32215. https://bugs.webkit.org/show_bug.cgi?id=35496
  32216. <rdar://problem/7663444> Opening newsweek.com and youtube.com has become very slow in debug builds
  32217. * css/CSSStyleSelector.cpp:
  32218. (WebCore::CSSRuleSet::getIDRules):
  32219. (WebCore::CSSRuleSet::getClassRules):
  32220. (WebCore::CSSRuleSet::getTagRules):
  32221. Removed consistency checks, as they affect performance too much in this case.
  32222. 2010-02-28 Robert Hogan <robert@roberthogan.net>
  32223. Reviewed by Simon Hausmann.
  32224. [Qt] Support private browsing mode in plugins
  32225. Add support for NPNVprivateModeBool property in plugins.
  32226. See also: https://developer.mozilla.org/En/Supporting_private_browsing_in_plugins
  32227. The NPNVprivateModeBool property is supported as scriptable property privateBrowsingEnabled
  32228. in the test WebKit plugin. The Mac platform also supports a cachedPrivateBrowsingEnabled
  32229. property implemented in the test plugin. This allows the Layout test
  32230. plugins/private-browsing-mode.html to retrieve the previous value of NPNVprivateModeBool
  32231. in the test plugin. Due to the platform-specific overhead required to support this bespoke
  32232. property it is not implemented as part of this patch, instead a new test,
  32233. plugins/private-browsing-mode-2.html, is added to ensure that setting and resetting
  32234. privateBrowsingEnabled works as expected.
  32235. http://bugs.webkit.org/show_bug.cgi?id=33180
  32236. Test: plugins/private-browsing-mode-2.html
  32237. * plugins/qt/PluginViewQt.cpp:
  32238. (WebCore::PluginView::getValue):
  32239. 2010-02-27 Joseph Pecoraro <joepeck@webkit.org>
  32240. Reviewed by Timothy Hatcher.
  32241. Web Inspector shouldn't show a white color box for "-webkit-line-break: after-white-space"
  32242. https://bugs.webkit.org/show_bug.cgi?id=33478
  32243. * inspector/front-end/StylesSidebarPane.js:
  32244. 2010-02-27 Dan Bernstein <mitz@apple.com>
  32245. Reviewed by Maciej Stachowiak.
  32246. <rdar://problem/7696607> Links do not respect -webkit-user-drag: none
  32247. https://bugs.webkit.org/show_bug.cgi?id=35475
  32248. Test: fast/css/user-drag-none.html
  32249. * page/DragController.cpp:
  32250. (WebCore::DragController::mayStartDragAtEventLocation): Added a node
  32251. parameter. The image drag check is done against the node, rather than
  32252. than against the hit test result. This prevents a non-draggable image
  32253. with an auto-draggable ancestor from being dragged alone. The link drag
  32254. check now ignores links that are -webkit-user-drag: none.
  32255. * page/DragController.h:
  32256. * page/EventHandler.cpp:
  32257. (WebCore::EventHandler::shouldDragAutoNode): Pass the current node
  32258. to mayStartDragAtEventLocation().
  32259. 2010-02-27 Pavel Feldman <pfeldman@chromium.org>
  32260. Reviewed by Timothy Hatcher.
  32261. Web Inspector: REGRESSION: hangs when scrolling in Resource pane.
  32262. https://bugs.webkit.org/show_bug.cgi?id=35216
  32263. * inspector/front-end/TextEditorHighlighter.js:
  32264. (WebInspector.TextEditorHighlighter):
  32265. (WebInspector.TextEditorHighlighter.prototype.highlight):
  32266. (WebInspector.TextEditorHighlighter.prototype._highlightInChunks):
  32267. (WebInspector.TextEditorHighlighter.prototype._highlightLines):
  32268. 2010-02-27 Xan Lopez <xlopez@igalia.com>
  32269. Reviewed by Gustavo Noronha.
  32270. Abort XEmbed plugin initialization if our parent is not anchored
  32271. in a widget hierarchy. This can happen when the browser window is
  32272. destroyed while the plugin is being loaded, and will lead to a
  32273. crash.
  32274. * plugins/gtk/PluginViewGtk.cpp:
  32275. (WebCore::PluginView::platformStart):
  32276. 2010-02-26 Pavel Feldman <pfeldman@chromium.org>
  32277. Reviewed by Timothy Hatcher.
  32278. Web Inspector: reload inspected page on Cmd+R / Ctrl+R / F5 key event in inspector.
  32279. Drive-by fix for couple of minor front-end problems.
  32280. https://bugs.webkit.org/show_bug.cgi?id=35434
  32281. * inspector/InspectorBackend.cpp:
  32282. (WebCore::InspectorBackend::reloadPage):
  32283. * inspector/InspectorBackend.h:
  32284. * inspector/InspectorBackend.idl:
  32285. * inspector/InspectorController.cpp:
  32286. (WebCore::InspectorController::didFinishLoading):
  32287. (WebCore::InspectorController::didFailLoading):
  32288. * inspector/front-end/InspectorBackendStub.js:
  32289. (.WebInspector.InspectorBackendStub.prototype.reloadPage):
  32290. * inspector/front-end/InspectorFrontendHostStub.js:
  32291. (.WebInspector.InspectorFrontendHostStub.prototype.copyText):
  32292. (.WebInspector.InspectorFrontendHostStub.prototype.canAttachWindow):
  32293. * inspector/front-end/TextViewer.js:
  32294. (WebInspector.TextViewer.prototype._paintLine):
  32295. * inspector/front-end/inspector.js:
  32296. (WebInspector.documentKeyDown):
  32297. (WebInspector.toggleAttach):
  32298. 2010-02-26 Leandro Pereira <leandro@profusion.mobi>
  32299. Reviewed by Kenneth Rohde Christiansen.
  32300. Add EFL port files to platform/efl.
  32301. http://webkit.org/b/35087
  32302. * platform/efl/ScrollbarEfl.cpp: Added.
  32303. * platform/efl/EventLoopEfl.cpp: Added.
  32304. * platform/efl/PlatformKeyboardEventEfl.cpp: Added.
  32305. * platform/efl/DragImageEfl.cpp: Added.
  32306. * platform/efl/PlatformMouseEventEfl.cpp: Added.
  32307. 2010-02-26 Leandro Pereira <leandro@profusion.mobi>
  32308. Reviewed by Kenneth Rohde Christiansen.
  32309. Add EFL port files to platform/efl.
  32310. http://webkit.org/b/35087
  32311. * platform/efl/CursorEfl.cpp: Added.
  32312. * platform/efl/LocalizedStringsEfl.cpp: Added.
  32313. * platform/efl/SearchPopupMenuEfl.cpp: Added.
  32314. 2010-02-26 Leandro Pereira <leandro@profusion.mobi>
  32315. Reviewed by Kenneth Rohde Christiansen.
  32316. Add EFL port files to page/efl.
  32317. http://webkit.org/b/35087
  32318. * WebCore/page/efl/DragControllerEfl.cpp: Added.
  32319. * WebCore/page/efl/FrameEfl.cpp: Added.
  32320. * WebCore/page/efl/AccessibilityObjectEfl.cpp: Added.
  32321. * WebCore/page/efl/EventHandlerEfl.cpp: Added.
  32322. 2010-02-26 Leandro Pereira <leandro@profusion.mobi>
  32323. Reviewed by Kenneth Rohde Christiansen.
  32324. Add EFL port files to platform/efl.
  32325. http://webkit.org/b/35087
  32326. * WebCore/platform/efl/LoggingEfl.cpp: Added.
  32327. * WebCore/platform/efl/ScrollbarThemeEfl.cpp: Added.
  32328. * WebCore/platform/efl/TemporaryLinkStubs.cpp: Added.
  32329. * WebCore/platform/efl/ScrollViewEfl.cpp: Added.
  32330. * WebCore/platform/efl/SharedBufferEfl.cpp: Added.
  32331. * WebCore/platform/efl/DragDataEfl.cpp: Added.
  32332. 2010-02-26 Leandro Pereira <leandro@profusion.mobi>
  32333. Reviewed by Kenneth Rohde Christiansen.
  32334. Add EFL port files to platform/efl.
  32335. http://webkit.org/b/35087
  32336. * WebCore/platform/efl/RenderThemeEfl.cpp: Added.
  32337. 2010-02-26 Leandro Pereira <leandro@profusion.mobi>
  32338. Reviewed by Kenneth Rohde Christiansen.
  32339. Add EFL port files to platform/efl.
  32340. http://webkit.org/b/35087
  32341. * WebCore/platform/efl/PlatformWheelEventEfl.cpp: Added.
  32342. * WebCore/platform/efl/FileChooserEfl.cpp: Added.
  32343. * WebCore/platform/efl/ContextMenuEfl.cpp: Added.
  32344. * WebCore/platform/efl/PlatformScreenEfl.cpp: Added.
  32345. * WebCore/platform/efl/WidgetEfl.cpp: Added.
  32346. 2010-02-26 Adam Barth <abarth@webkit.org>
  32347. Reviewed by Darin Fisher.
  32348. Expose an API for ports to add schemes to the mixed content whitelist
  32349. https://bugs.webkit.org/show_bug.cgi?id=35438
  32350. Add a notion of a "secure" scheme that doesn't trigger mixed content
  32351. warnings. Let folks register new secure schemes in the same way they
  32352. can register "local" schemes.
  32353. * loader/FrameLoader.cpp:
  32354. (WebCore::FrameLoader::isMixedContent):
  32355. * page/SecurityOrigin.cpp:
  32356. (WebCore::secureSchemes):
  32357. (WebCore::SecurityOrigin::registerURLSchemeAsSecure):
  32358. (WebCore::SecurityOrigin::shouldTreatURLSchemeAsSecure):
  32359. * page/SecurityOrigin.h:
  32360. 2010-02-26 Noam Rosenthal <noam.rosenthal@nokia.com>
  32361. Reviewed by Kenneth Rohde Christiansen.
  32362. [Qt] GraphicsLayerQt: artifacts and wrong transformOrigin
  32363. This was due to wrong way of applying cache-mode and transformation
  32364. on a graphics-item with HTML. Cache-mode should be updated
  32365. when the content type updates, even if it was the same cache-mode
  32366. https://bugs.webkit.org/show_bug.cgi?id=35382
  32367. Test URL attached to the bug now works correctly.
  32368. * platform/graphics/qt/GraphicsLayerQt.cpp:
  32369. (WebCore::GraphicsLayerQtImpl::computeTransform):
  32370. (WebCore::GraphicsLayerQtImpl::flushChanges):
  32371. 2010-02-26 Luiz Agostini <luiz.agostini@openbossa.org>
  32372. Reviewed by Kenneth Rohde Christiansen.
  32373. Qt/Mac: Revert null timer removal (r51105)
  32374. https://bugs.webkit.org/show_bug.cgi?id=35396
  32375. r51105 removed the null timer event of the carbon event model. This however
  32376. breaks the flash of many sites.
  32377. Applying patch suggested by Girish Ramakrishnan in bug comment #1.
  32378. * plugins/PluginView.h:
  32379. * plugins/mac/PluginViewMac.cpp:
  32380. (WebCore::PluginView::platformStart):
  32381. (WebCore::PluginView::handleMouseEvent):
  32382. (WebCore::PluginView::nullEventTimerFired):
  32383. (WebCore::PluginView::mousePosForPlugin):
  32384. 2010-02-26 Noam Rosenthal <noam.rosenthal@nokia.com>
  32385. Reviewed by Kenneth Rohde Christiansen.
  32386. [Qt] Compile error with 3d-canvas
  32387. Replaced a direct gl call with a getProcAddress call
  32388. https://bugs.webkit.org/show_bug.cgi?id=35448
  32389. No new tests.
  32390. * platform/graphics/qt/GraphicsContext3DQt.cpp:
  32391. (WebCore::GraphicsContext3D::blendColor):
  32392. 2010-02-26 Kwang Yul Seo <skyul@company100.net>
  32393. Reviewed by Kenneth Rohde Christiansen.
  32394. [BREWMP] Port EventHandler
  32395. https://bugs.webkit.org/show_bug.cgi?id=34796
  32396. Add platform-specific code required to implement EventHandler.
  32397. * page/brew/EventHandlerBrew.cpp: Added.
  32398. (WebCore::EventHandler::tabsToAllControls):
  32399. (WebCore::EventHandler::focusDocumentView):
  32400. (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
  32401. (WebCore::EventHandler::passMouseDownEventToWidget):
  32402. (WebCore::EventHandler::eventActivatedView):
  32403. (WebCore::EventHandler::passSubframeEventToSubframe):
  32404. (WebCore::EventHandler::passWheelEventToWidget):
  32405. (WebCore::EventHandler::passMousePressEventToSubframe):
  32406. (WebCore::EventHandler::passMouseMoveEventToSubframe):
  32407. (WebCore::EventHandler::passMouseReleaseEventToSubframe):
  32408. (WebCore::EventHandler::accessKeyModifiers):
  32409. 2010-02-26 Leandro Pereira <leandro@profusion.mobi>
  32410. Reviewed by Kenneth Rohde Christiansen.
  32411. Add EFL port files to platform/efl.
  32412. http://webkit.org/b/35087
  32413. * WebCore/platform/efl/ClipboardEfl.cpp: Added.
  32414. * WebCore/platform/efl/PopupMenuEfl.cpp: Added.
  32415. * WebCore/platform/efl/SharedTimerEfl.cpp: Added.
  32416. * WebCore/platform/efl/RenderThemeEfl.h: Added.
  32417. * WebCore/platform/efl/Language.cpp: Added.
  32418. * WebCore/platform/efl/CookieJarEfl.cpp: Added.
  32419. * WebCore/platform/efl/MIMETypeRegistryEfl.cpp: Added.
  32420. 2010-02-26 Robert Kroeger <rjkroege@chromium.org>
  32421. Reviewed by Nate Chapin
  32422. To fire each event handler registered on an SVG node once per
  32423. event, Chromium needs an implementation of wasCreatedFromMarkup
  32424. added to V8LazyEventListener.h that matches the one in
  32425. WebKit/WebCore/bindings/js/JSLazyEventListener.h.
  32426. This patch adds such a matching implementation of wasCreatedFromMarkup
  32427. to V8LazyEventListener.h.
  32428. https://bugs.webkit.org/show_bug.cgi?id=35325
  32429. * bindings/v8/V8LazyEventListener.h:
  32430. (WebCore::V8LazyEventListener::wasCreatedFromMarkup):
  32431. 2010-02-26 Arno Renevier <arno@renevier.net>
  32432. Reviewed by Gustavo Noronha Silva.
  32433. [Gtk] use geoclue_position_get_position_async to get geolocation position.
  32434. https://bugs.webkit.org/show_bug.cgi?id=35355
  32435. No new tests, behaviour depends on system.
  32436. * platform/gtk/GeolocationServiceGtk.cpp:
  32437. (WebCore::GeolocationServiceGtk::startUpdating):
  32438. (WebCore::GeolocationServiceGtk::get_position):
  32439. * platform/gtk/GeolocationServiceGtk.h:
  32440. 2010-02-26 Yaar Schnitman <yaar@chromium.org>
  32441. Chromium Win build fix.
  32442. * WebCore.gyp/WebCore.gyp: Added missing file to action input.
  32443. 2010-02-12 Brett Wilson <brettw@chromium.org>
  32444. Reviewed by Adam Barth.
  32445. Update the Google-URL version of KURL and the V8 bindings to the new
  32446. behavior of KURL.IsStandard.
  32447. https://bugs.webkit.org/show_bug.cgi?id=34859
  32448. This is covered by fast/dom/Window/invalid-protocol.html
  32449. * bindings/v8/custom/V8LocationCustom.cpp:
  32450. (WebCore::V8Location::protocolAccessorSetter):
  32451. * platform/KURLGoogle.cpp:
  32452. (WebCore::KURL::setProtocol):
  32453. (WebCore::KURL::isHierarchical):
  32454. 2010-02-26 Gavin Barraclough <barraclough@apple.com>
  32455. Reviewed by NOBODY (Build fix following r55312).
  32456. * bridge/qt/qt_pixmapruntime.cpp:
  32457. (JSC::Bindings::QtPixmapInstance::invokeMethod):
  32458. 2010-02-26 Yaar Schnitman <yaar@chromium.org>
  32459. Reviewed by Dimitri Glazkov.
  32460. [V8] Auto-generate and split DerivedSourcesAllInOne.cpp
  32461. https://bugs.webkit.org/show_bug.cgi?id=33048
  32462. * WebCore.gyp/WebCore.gyp:
  32463. * WebCore.gyp/scripts/action_derivedsourcesallinone.py: Added.
  32464. * bindings/v8/DerivedSourcesAllInOne.cpp: Removed.
  32465. 2010-02-26 Gavin Barraclough <barraclough@apple.com>
  32466. Reviewed by NOBODY (Build fix following r55312).
  32467. * bridge/qt/qt_pixmapruntime.cpp:
  32468. (JSC::Bindings::QtPixmapInstance::invokeMethod):
  32469. 2010-02-26 Alexey Proskuryakov <ap@apple.com>
  32470. Reviewed by Anders Carlsson.
  32471. https://bugs.webkit.org/show_bug.cgi?id=35450
  32472. Crash when a Java array property accessor raises an exception
  32473. Test: java/inaccessible-class.html
  32474. * bridge/jni/jsc/JNIBridgeJSC.cpp: (JavaField::valueFromInstance): Check if the result
  32475. is null before interpreting it as an object or array.
  32476. 2010-02-26 Dirk Schulze <krit@webkit.org>
  32477. Reviewed by Nikolas Zimmermann.
  32478. Extend AffineTransform to mapQuad
  32479. https://bugs.webkit.org/show_bug.cgi?id=35444
  32480. This makes mapQuad available for AffineTransform. So that platforms
  32481. can make use of it after the switch from TransformationMatrix to
  32482. AffineTransform in GraphicsContext.
  32483. * platform/graphics/transforms/AffineTransform.cpp:
  32484. (WebCore::AffineTransform::mapRect): mapRect already did the calculation for mapQuad but gave back the
  32485. boundingBox of the resulting FloatQuad.
  32486. (WebCore::AffineTransform::mapQuad):
  32487. * platform/graphics/transforms/AffineTransform.h:
  32488. 2010-02-26 Brady Eidson <beidson@apple.com>
  32489. Reviewed by Pavel Feldman.
  32490. Arrow keys do not scroll source view in Resources pane or Scripts pane.
  32491. <rdar://problem/7594367> and https://bugs.webkit.org/show_bug.cgi?id=34356
  32492. Handle vertical scrolling in the Text Viewer:
  32493. * inspector/front-end/TextViewer.js:
  32494. (WebInspector.TextViewer): Listen for the keydown event.
  32495. (WebInspector.TextViewer.prototype._handleKeyDown): If the event has no modifiers and refers
  32496. to an arrow key, scroll. The horizontal values were ripped from the default "pixels per scroll line"
  32497. value in ScrollBar.h.
  32498. 2010-02-26 Gavin Barraclough <barraclough@apple.com>
  32499. Reviewed by Alexey Proskuryakov.
  32500. Bug 35401 - Fix handling of errors in handling calls over bridge,
  32501. where base object bridge-type does not match method bridge-type.
  32502. The code assumes users will only attempt to invoke a Java method
  32503. on a Java base object, etc.
  32504. Add language specific subclasses of RuntimeMethod, and pass the
  32505. RuntimeMethod into invokeMethod, so we can typecheck before
  32506. casting. Throw an exception on type mismatch.
  32507. * WebCore.base.exp:
  32508. * WebCore.xcodeproj/project.pbxproj:
  32509. * bridge/c/c_instance.cpp:
  32510. (JSC::Bindings::CRuntimeMethod::CRuntimeMethod):new class to distinguish this type of RuntimeMethod.
  32511. (JSC::Bindings::CInstance::getMethod): create an appropriate sublclass of RuntimeMethod.
  32512. (JSC::Bindings::CInstance::invokeMethod): dynamically check the type of the RuntimeMethod.
  32513. * bridge/c/c_instance.h:
  32514. * bridge/jni/jsc/JavaInstanceJSC.cpp:
  32515. (JavaRuntimeMethod::JavaRuntimeMethod): new class to distinguish this type of RuntimeMethod.
  32516. (JavaInstance::getMethod): create an appropriate sublclass of RuntimeMethod.
  32517. (JavaInstance::invokeMethod): dynamically check the type of the RuntimeMethod.
  32518. * bridge/jni/jsc/JavaInstanceJSC.h:
  32519. * bridge/jsc/BridgeJSC.h:
  32520. * bridge/objc/objc_instance.h:
  32521. * bridge/objc/objc_instance.mm:
  32522. (ObjcRuntimeMethod::ObjcRuntimeMethod): new class to distinguish this type of RuntimeMethod.
  32523. (ObjcInstance::getMethod): create an appropriate sublclass of RuntimeMethod.
  32524. (ObjcInstance::invokeMethod): dynamically check the type of the RuntimeMethod.
  32525. (ObjcInstance::invokeObjcMethod): new method, takes an ObjcMethod* as an argument so that we don't need to dynamically determine the type.
  32526. * bridge/objc/objc_runtime.mm:
  32527. (JSC::Bindings::callObjCFallbackObject): use new invokeObjcMethod method.
  32528. * bridge/runtime_method.cpp:
  32529. (JSC::callRuntimeMethod): pass RuntimeMethod as argument to invokeMethod, rather than its MethodList.
  32530. * bridge/runtime_object.cpp:
  32531. (JSC::RuntimeObject::methodGetter): use new getMethod method.
  32532. 2010-02-26 Oliver Hunt <oliver@apple.com>
  32533. Reviewed by Geoff Garen.
  32534. Make the lookup table generator include an explicit cast to expected
  32535. type of the function. We do this because otherwise the blind intptr_t
  32536. cast that is subsequently applied allows incorrectly typed functions
  32537. to be inserted into the table, where they will only fail at runtime.
  32538. This change makes such errors produce a compile time failure.
  32539. * WebCore.xcodeproj/project.pbxproj:
  32540. * bindings/scripts/CodeGeneratorJS.pm:
  32541. 2010-02-26 Alex Milowski <alex@milowski.com>
  32542. Reviewed by Kenneth Rohde Christiansen.
  32543. Added basic support for the munder, munderover, and mover elements.
  32544. Tests: mathml/presentation/over.xhtml
  32545. mathml/presentation/under.xhtml
  32546. mathml/presentation/underover.xhtml
  32547. * WebCore.xcodeproj/project.pbxproj:
  32548. * mathml/MathMLInlineContainerElement.cpp:
  32549. (WebCore::MathMLInlineContainerElement::createRenderer):
  32550. * mathml/RenderMathMLUnderOver.cpp: Added.
  32551. (WebCore::RenderMathMLUnderOver::RenderMathMLUnderOver):
  32552. (WebCore::RenderMathMLUnderOver::addChild):
  32553. (WebCore::getOffsetHeight):
  32554. (WebCore::RenderMathMLUnderOver::stretchToHeight):
  32555. (WebCore::RenderMathMLUnderOver::layout):
  32556. (WebCore::RenderMathMLUnderOver::baselinePosition):
  32557. (WebCore::RenderMathMLUnderOver::nonOperatorHeight):
  32558. * mathml/RenderMathMLUnderOver.h: Added.
  32559. (WebCore::RenderMathMLUnderOver::hasBase):
  32560. (WebCore::RenderMathMLUnderOver::):
  32561. 2010-02-24 Stephen White <senorblanco@chromium.org>
  32562. Reviewed by Darin Adler.
  32563. This CL implements a simple ad-hoc parser for CSS rgb() values.
  32564. If it fails, it returns false and the normal lex/yacc parser will
  32565. be invoked.
  32566. https://bugs.webkit.org/show_bug.cgi?id=35362
  32567. Covered by fast/canvas/canvas-bg.html, fast/canvas/canvas-bg-zoom.html,
  32568. and many more.
  32569. * css/CSSParser.cpp:
  32570. (WebCore::parseInt):
  32571. (WebCore::CSSParser::parseColor):
  32572. 2010-02-26 Jarkko Sakkinen <jarkko.sakkinen@tieto.com>
  32573. Reviewed by Kenneth Rohde Christiansen.
  32574. https://bugs.webkit.org/show_bug.cgi?id=35419
  32575. 3D canvas did not update when WTF_USE_ACCELERATED_COMPOSITING
  32576. was enabled but not from run-time settings. Added run-time
  32577. check that compositing is enabled.
  32578. * html/canvas/WebGLRenderingContext.cpp:
  32579. (WebCore::WebGLRenderingContext::markContextChanged):
  32580. 2010-02-26 Jarkko Sakkinen <jarkko.sakkinen@tieto.com>
  32581. Reviewed by Kenneth Rohde Christiansen.
  32582. Compilation failed because functions glSampleCoverage, glBlendEquation
  32583. and glActiveTexture were not available.
  32584. https://bugs.webkit.org/show_bug.cgi?id=35423
  32585. * platform/graphics/qt/GraphicsContext3DQt.cpp:
  32586. (WebCore::GraphicsContext3DInternal::GraphicsContext3DInternal):
  32587. (WebCore::GraphicsContext3D::activeTexture):
  32588. (WebCore::GraphicsContext3D::blendEquation):
  32589. (WebCore::GraphicsContext3D::sampleCoverage):
  32590. 2010-02-26 Jarkko Sakkinen <jarkko.sakkinen@tieto.com>
  32591. Reviewed by Kenneth Rohde Christiansen.
  32592. https://bugs.webkit.org/show_bug.cgi?id=35380
  32593. Fixed compilation error when WTF_USE_ACCELERATED_COMPOSITING=0
  32594. * css/MediaQueryEvaluator.cpp:
  32595. (WebCore::transform_3dMediaFeatureEval):
  32596. 2010-02-26 Nicholas Young <nicholas.young@nokia.com>
  32597. Reviewed by Tor Arne Vestbø.
  32598. [Qt] Incorrect painting after a size changed.
  32599. https://bugs.webkit.org/show_bug.cgi?id=35412
  32600. No new tests. Bug fix in backend.
  32601. * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
  32602. (WebCore::MediaPlayerPrivate::paint): Provide the source rectangle, rather than inferring it.
  32603. 2010-02-26 Nicholas Young <nicholas.young@nokia.com>
  32604. Reviewed by Tor Arne Vestbø.
  32605. [Qt] Incorrect handling of MIME types in Media Player
  32606. https://bugs.webkit.org/show_bug.cgi?id=35413
  32607. No new tests. Bug fix in backend.
  32608. * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
  32609. (WebCore::MediaPlayerPrivate::supportsType): Corrected logic.
  32610. 2010-02-26 Joanmarie Diggs <joanmarie.diggs@gmail.com>
  32611. Reviewed by Xan Lopez.
  32612. https://bugs.webkit.org/show_bug.cgi?id=35418
  32613. [Gtk] Every table, including layout tables, should be exposed as a table
  32614. This patch exposes layout tables as tables. (Addressing the problematic table
  32615. hierarchy remains to be done.)
  32616. * accessibility/gtk/AccessibilityObjectAtk.cpp:
  32617. (AccessibilityObject::accessibilityPlatformIncludesObject):
  32618. * accessibility/AccessibilityRenderObject.cpp:
  32619. (AccessibilityRenderObject::determineAccessibilityRole):
  32620. 2010-02-26 Adam Barth <abarth@webkit.org>
  32621. Reviewed by Darin Adler.
  32622. XSSAuditor is super super super slow
  32623. https://bugs.webkit.org/show_bug.cgi?id=35373
  32624. In this patch, we separate the decoding cache for the page's URL and
  32625. form data. Previously, we used the same cache for both, which caused
  32626. us miss the cache every time when the page had form data (because the
  32627. cache only stored one entry). When the form data is large, we were
  32628. wasting a lot of time canonicalizing.
  32629. * page/XSSAuditor.cpp:
  32630. (WebCore::XSSAuditor::findInRequest):
  32631. * page/XSSAuditor.h:
  32632. 2010-02-26 Dirk Schulze <krit@webkit.org>
  32633. Reviewed by Nikolas Zimmermann.
  32634. SVGResourceClipper needs to be moved to RenderSVGResourceClipper
  32635. https://bugs.webkit.org/show_bug.cgi?id=35421
  32636. Move SVGResourceClipper to RenderSVGResourceClipper. This follows the changes
  32637. of Masker and helps to clean up the SVG code. Code snippets from SVGClipPathElement
  32638. and SVGResourceClipper got combined in RenderSVGResourceClipper. DRT results are
  32639. more readable for clipPath's now. It's possible to see the unit type of clipper, as
  32640. well as it's childs instead of just one path.
  32641. * Android.mk:
  32642. * GNUmakefile.am:
  32643. * WebCore.vcproj/WebCore.vcproj:
  32644. * WebCore.xcodeproj/project.pbxproj:
  32645. * rendering/RenderSVGResource.h:
  32646. (WebCore::):
  32647. * rendering/RenderSVGResourceClipper.cpp: Added.
  32648. (WebCore::RenderSVGResourceClipper::RenderSVGResourceClipper):
  32649. (WebCore::RenderSVGResourceClipper::~RenderSVGResourceClipper):
  32650. (WebCore::RenderSVGResourceClipper::invalidateClients):
  32651. (WebCore::RenderSVGResourceClipper::invalidateClient):
  32652. (WebCore::RenderSVGResourceClipper::applyResource):
  32653. (WebCore::RenderSVGResourceClipper::resourceBoundingBox):
  32654. * rendering/RenderSVGResourceClipper.h: Added.
  32655. (WebCore::RenderSVGResourceClipper::renderName):
  32656. (WebCore::RenderSVGResourceClipper::resourceType):
  32657. (WebCore::RenderSVGResourceClipper::clipPathUnits):
  32658. * rendering/SVGRenderSupport.cpp:
  32659. (WebCore::SVGRenderBase::prepareToRenderSVGContent):
  32660. (WebCore::SVGRenderBase::clipperBoundingBoxForRenderer):
  32661. (WebCore::SVGRenderBase::deregisterFromResources):
  32662. * rendering/SVGRenderTreeAsText.cpp:
  32663. (WebCore::operator<<):
  32664. (WebCore::writeStyle):
  32665. (WebCore::writeSVGResource):
  32666. (WebCore::writeResources):
  32667. * svg/SVGClipPathElement.cpp:
  32668. (WebCore::SVGClipPathElement::svgAttributeChanged):
  32669. (WebCore::SVGClipPathElement::childrenChanged):
  32670. (WebCore::SVGClipPathElement::createRenderer):
  32671. * svg/SVGClipPathElement.h:
  32672. (WebCore::SVGClipPathElement::isValid):
  32673. * svg/SVGStyledElement.cpp:
  32674. (WebCore::SVGStyledElement::invalidateResources):
  32675. * svg/graphics/SVGResource.h:
  32676. (WebCore::):
  32677. (WebCore::SVGResource::isPaintServer):
  32678. (WebCore::SVGResource::isFilter):
  32679. (WebCore::SVGResource::isMarker):
  32680. * svg/graphics/SVGResourceClipper.cpp: Removed.
  32681. * svg/graphics/SVGResourceClipper.h: Removed.
  32682. 2010-02-26 Ben Murdoch <benm@google.com>
  32683. Reviewed by Kenneth Rohde Christiansen.
  32684. The element that a touchevent is dispatched to isn't always right
  32685. https://bugs.webkit.org/show_bug.cgi?id=35431
  32686. The element that touch events are dispatched on is not always the
  32687. correct one, as the cached m_touchEventTarget member is only updated
  32688. when the first element of the PlatformTouchEvent touch list is in the
  32689. TouchPressed state.
  32690. This patch changes this behavior to dispatch the event to the target
  32691. of the touch that caused the event to be generated and eliminates the
  32692. m_touchEventTarget in favour of using the touch target hashmap. It also
  32693. simplifies the way in which the touchTargets list is generated as we
  32694. no longer have m_touchEventTarget (which was used previously to build
  32695. the list). The new behavior matches the observed behavior of the
  32696. iPhone and Android.
  32697. * page/EventHandler.cpp:
  32698. (WebCore::assembleTargetTouches): Added. new function to build the
  32699. targetTouches list. Filters a list of touches (passed) about
  32700. another given touch.
  32701. (WebCore::EventHandler::handleTouchEvent): Remove the
  32702. m_touchEventTarget member, and simplify the generation of the
  32703. TouchLists that are bundled with the TouchEVent object. Dispatch
  32704. the event to the target of the touch that caused the event to be
  32705. fired.
  32706. * page/EventHandler.h: Remove m_touchEventTarget.
  32707. 2010-02-26 Dirk Pranke <dpranke@chromium.org>
  32708. Reviewed by Darin Fisher.
  32709. Fix the handling of updates to #hash fragments to check for differences
  32710. post-canonicalization rather than comparing pre- to post-. Chromium
  32711. had a bug where we would set the #hash on an about:blank URL and generate
  32712. an onload event because we thought the URL (not just the fragment) was
  32713. changing.
  32714. http://bugs.webkit.org/show_bug.cgi?id=35180
  32715. Test: fast/loader/about-blank-hash-change.html
  32716. * bindings/v8/custom/V8LocationCustom.cpp:
  32717. (WebCore::V8Location::hashAccessorSetter):
  32718. 2010-02-26 Zhenyao Mo <zmo@google.com>
  32719. Reviewed by David Levin.
  32720. texImage2D and texSubImage2D taking ImageData ignore flipY and premultiplyAlpha
  32721. https://bugs.webkit.org/show_bug.cgi?id=34459
  32722. Test: fast/canvas/webgl/tex-image-and-sub-image-2d-with-image-data.html
  32723. * html/canvas/WebGLRenderingContext.cpp:
  32724. (WebCore::WebGLRenderingContext::texImage2D): Apply flipY and premultiplyAlpha to the texture data.
  32725. (WebCore::WebGLRenderingContext::texSubImage2D): Ditto.
  32726. * platform/graphics/GraphicsContext3D.cpp:
  32727. (WebCore::GraphicsContext3D::extractImageData): Extract data from ImageData, applying flipY and premultiplyAlpha.
  32728. * platform/graphics/GraphicsContext3D.h: Add function extractImageData declaration.
  32729. 2010-02-26 Zhenyao Mo <zmo@google.com>
  32730. Reviewed by David Levin.
  32731. Set viewport to canvas size upon context creation
  32732. https://bugs.webkit.org/show_bug.cgi?id=35057
  32733. Covered by existing tests, in particular fast/canvas/webgl/gl-get-calls.html
  32734. * html/canvas/WebGLRenderingContext.cpp:
  32735. (WebCore::WebGLRenderingContext::WebGLRenderingContext): Set the viewport size to match the canvas size.
  32736. 2010-02-26 Pavel Feldman <pfeldman@chromium.org>
  32737. Not reviewed: touch InspectorController to force front-end deployment.
  32738. * inspector/InspectorController.cpp:
  32739. 2010-02-26 Ilya Tikhonovsky <loislo@chromium.org>
  32740. Reviewed by Pavel Feldman.
  32741. WebInspector: While the current timeline view in DevTools provides a great overview of
  32742. things happening, we should make it easier to locate the cause of an event,
  32743. e.g., link to JS where relevant.
  32744. Caller info support for all kind of Timeline events and new Function Call event will be added.
  32745. JSC can be patched the same way as it will be done for V8.
  32746. https://bugs.webkit.org/show_bug.cgi?id=33995
  32747. * bindings/js/ScriptCallStack.cpp:
  32748. (WebCore::ScriptCallStack::callLocation):
  32749. * bindings/js/ScriptCallStack.h:
  32750. * bindings/v8/ScriptCallStack.cpp:
  32751. (WebCore::ScriptCallStack::create):
  32752. (WebCore::ScriptCallStack::callLocation):
  32753. * bindings/v8/ScriptCallStack.h:
  32754. * bindings/v8/V8Proxy.cpp:
  32755. (WebCore::V8Proxy::callFunction):
  32756. * inspector/InspectorTimelineAgent.cpp:
  32757. (WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
  32758. (WebCore::InspectorTimelineAgent::~InspectorTimelineAgent):
  32759. (WebCore::InspectorTimelineAgent::willCallFunction):
  32760. (WebCore::InspectorTimelineAgent::didCallFunction):
  32761. (WebCore::InspectorTimelineAgent::pushCurrentRecord):
  32762. * inspector/InspectorTimelineAgent.h:
  32763. (WebCore::):
  32764. (WebCore::InspectorTimelineAgent::instanceCount):
  32765. * inspector/TimelineRecordFactory.cpp:
  32766. (WebCore::TimelineRecordFactory::createGenericRecord):
  32767. (WebCore::TimelineRecordFactory::createFunctionCallData):
  32768. * inspector/TimelineRecordFactory.h:
  32769. * inspector/front-end/Popover.js:
  32770. (WebInspector.Popover.prototype.hideWhenClicked):
  32771. (WebInspector.Popover.prototype._positionElement):
  32772. * inspector/front-end/TimelineAgent.js:
  32773. * inspector/front-end/TimelinePanel.js:
  32774. (WebInspector.TimelinePanel):
  32775. (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
  32776. (WebInspector.TimelinePanel.prototype._formatRecord):
  32777. (WebInspector.TimelinePanel.prototype._getRecordDetails):
  32778. (WebInspector.TimelinePanel.prototype.reset):
  32779. (WebInspector.TimelinePanel.prototype._closeRecordDetails):
  32780. (WebInspector.TimelinePanel.prototype._onScroll):
  32781. (WebInspector.TimelinePanel.prototype._refresh):
  32782. (WebInspector.TimelinePanel.prototype._refreshRecords):
  32783. (WebInspector.TimelineRecordListRow):
  32784. (WebInspector.TimelineRecordListRow.prototype.update):
  32785. (WebInspector.TimelineRecordListRow.prototype._createCell):
  32786. (WebInspector.TimelineRecordListRow.prototype._createRow):
  32787. (WebInspector.TimelineRecordListRow.prototype._createLinkRow):
  32788. (WebInspector.TimelineRecordListRow.prototype._generateBubbleContent):
  32789. (WebInspector.TimelineRecordListRow.prototype._onClick):
  32790. * inspector/front-end/WebKit.qrc:
  32791. * inspector/front-end/inspector.js:
  32792. (WebInspector.linkifyResourceAsNode):
  32793. 2010-02-26 Csaba Osztrogonác <ossy@webkit.org>
  32794. Unreviewed. Roll-out r55263 because it broke fast/forms/textarea-type-spaces-pretty-diff.html.
  32795. https://bugs.webkit.org/show_bug.cgi?id=30946
  32796. * editing/CompositeEditCommand.cpp:
  32797. (WebCore::isWhitespace):
  32798. (WebCore::CompositeEditCommand::rebalanceWhitespaceAt):
  32799. * editing/InsertTextCommand.cpp:
  32800. (WebCore::InsertTextCommand::input):
  32801. * editing/InsertTextCommand.h:
  32802. * editing/htmlediting.cpp:
  32803. * editing/htmlediting.h:
  32804. 2010-02-25 Mark Rowe <mrowe@apple.com>
  32805. Reviewed by Brady Eidson.
  32806. <rdar://problem/7688455> REGRESSION(r55205): Crash inside dispatchEventsOnWindowAndFocusedNode when clicking link from bookmarks view
  32807. Null-check the document's page to avoid dereferencing a null page.
  32808. No regression test is added as this appears to be dependent on an interaction with Safari's bookmarks view that is
  32809. not testable from within DumpRenderTree.
  32810. * page/FocusController.cpp:
  32811. (WebCore::dispatchEventsOnWindowAndFocusedNode):
  32812. 2010-02-25 Oliver Hunt <oliver@apple.com>
  32813. Reviewed by Simon Fraser.
  32814. Multiple repaints on apple.com
  32815. https://bugs.webkit.org/show_bug.cgi?id=35409
  32816. apple.com was triggering the fast scaling path for background images due to
  32817. repeated repaints as more content came in. This occured due to a two problems
  32818. in the logic to detect scaling. The first is that the main context is flipped
  32819. on mac so fails the identity or translation check. We work around this by adding
  32820. an function that allows the scaling for a flipped CTM. The other problem was that
  32821. we were looking at the destination rect size instead of the destination tile size
  32822. when deciding if the size we were drawn at would cause scaling.
  32823. * platform/graphics/transforms/AffineTransform.h:
  32824. (WebCore::AffineTransform::isIdentityOrTranslationOrFlipped):
  32825. * rendering/RenderBoxModelObject.cpp:
  32826. (WebCore::RenderBoxModelScaleObserver::shouldPaintBackgroundAtLowQuality):
  32827. (WebCore::RenderBoxModelObject::paintFillLayerExtended):
  32828. 2010-02-25 Enrica Casucci <enrica@apple.com>
  32829. Reviewed by Adele Peterson.
  32830. Extra layout on keypress after a space (problem with rebalanceWhitespaceAt in InsertTextCommand).
  32831. https://bugs.webkit.org/show_bug.cgi?id=30946
  32832. <rdar://problem/7639184>
  32833. Do text insertion and whitespace rebalancing around the insertion in one step so that there's only one layout.
  32834. This patch was originally made by Justin Garcia.
  32835. Test: editing/inserting/rebalance-whitespace-1.html
  32836. * editing/CompositeEditCommand.cpp:
  32837. (WebCore::CompositeEditCommand::rebalanceWhitespaceAt): No behavior changes here,
  32838. just pushed the code that determined the extent of whitespace surrounding a position
  32839. to its own helper function.
  32840. * editing/InsertTextCommand.cpp:
  32841. (WebCore::InsertTextCommand::insertTextIntoNodeAndRebalanceWhitespace): Added. Find
  32842. whitespace surrounding the insertion position, add the text to insert, rebalance that entire
  32843. string, then insert it into the document.
  32844. (WebCore::InsertTextCommand::input):
  32845. * editing/InsertTextCommand.h:
  32846. * editing/htmlediting.cpp:
  32847. (WebCore::isWhitespace): Moved from CompositeEditCommand.cpp.
  32848. (WebCore::extentOfWhitespaceForRebalancingAt): Moved code from rebalanceWhitespaceAt into this helper
  32849. function. Obtains the offset of the start and end of whitespace around a particular position.
  32850. * editing/htmlediting.h:
  32851. 2010-02-25 Alexey Proskuryakov <ap@apple.com>
  32852. Reviewed by Anders Carlsson.
  32853. https://bugs.webkit.org/show_bug.cgi?id=35406
  32854. <rdar://problem/6945502> Make generic array methods work with JavaArray
  32855. Test: java/array-sort.html
  32856. Made RuntimeArray inherit from JSArray, keeping the promise given in ClassInfo.
  32857. * bridge/runtime_array.cpp:
  32858. (JSC::RuntimeArray::RuntimeArray):
  32859. (JSC::RuntimeArray::~RuntimeArray):
  32860. * bridge/runtime_array.h:
  32861. (JSC::RuntimeArray::classInfo):
  32862. (JSC::RuntimeArray::getConcreteArray):
  32863. 2010-02-25 Dan Bernstein <mitz@apple.com>
  32864. Reviewed by Alexey Proskuryakov.
  32865. Fixed a regression introduced in r44243, which made the assertion in checkListItems()
  32866. ineffective.
  32867. * dom/SelectElement.cpp:
  32868. (WebCore::SelectElementData::checkListItems): Copy the items vector before recomputing it,
  32869. then assert that the newly-computed vector is equal to the copy.
  32870. 2010-02-25 Dirk Schulze <krit@webkit.org>
  32871. Reviewed by Nikolas Zimmermann.
  32872. SVG's tspan is no member of SVGRenderBase, this can cause crashes on filters
  32873. https://bugs.webkit.org/show_bug.cgi?id=35354
  32874. This makes the base class RenderSVGInline of RenderSVGTSpan and RenderSVGInlineText
  32875. dependent on SVGBaseRenderer.
  32876. The SVG spec want as to use the object bounding box of the text root as the bounding box
  32877. for text-childs. So we search for the text root and use it's bounding box, stroke rect and
  32878. repaint rect for further calculations.
  32879. Test: svg/filters/filter-on-tspan.svg
  32880. * rendering/RenderSVGInline.cpp:
  32881. (WebCore::RenderSVGInline::objectBoundingBox): Find the text root and give back it's bounding box.
  32882. (WebCore::RenderSVGInline::strokeBoundingBox): same for stroke rect
  32883. (WebCore::RenderSVGInline::repaintRectInLocalCoordinates): same for repaint rect
  32884. * rendering/RenderSVGInline.h:
  32885. (WebCore::RenderSVGInline::toSVGRenderBase): RenderSVGInline is part of SVGRenderBase now.
  32886. * rendering/RenderSVGTSpan.h:
  32887. (WebCore::RenderSVGTSpan::renderName): Removed bounding box code. Was just a hack for filters and maskers.
  32888. * rendering/SVGRenderSupport.cpp:
  32889. (WebCore::findTextRootObject): Search for the text root.
  32890. * rendering/SVGRenderSupport.h:
  32891. * svg/graphics/SVGPaintServerGradient.cpp: moved findTextRootObject to SVGRenderSupport
  32892. 2010-02-25 Dirk Schulze <krit@webkit.org>
  32893. Reviewed by Nikolas Zimmermann.
  32894. Use-element doesn't transform clipPath
  32895. https://bugs.webkit.org/show_bug.cgi?id=35375
  32896. If the use element is a child of clipPath, any settings on x, y or transform does not
  32897. transform the clipPath it references.
  32898. The use-element just misses this transformation in toClipPath.
  32899. Test: svg/custom/use-on-clip-path-with-transformation.svg
  32900. * platform/graphics/cairo/PathCairo.cpp: Gtk port translated the path to the wrong direction.
  32901. (WebCore::Path::translate):
  32902. * svg/SVGUseElement.cpp:
  32903. (WebCore::SVGUseElement::toClipPath):
  32904. 2010-02-25 Jian Li <jianli@chromium.org>
  32905. Reviewed by Dmitry Titov.
  32906. File.type support.
  32907. https://bugs.webkit.org/show_bug.cgi?id=35361
  32908. Test: LayoutTests/editing/pasteboard/file-input-files-access.html
  32909. * html/File.cpp:
  32910. (WebCore::File::File):
  32911. * html/File.h:
  32912. (WebCore::File::type):
  32913. * html/File.idl:
  32914. 2010-02-25 Alexander Pavlov <apavlov@chromium.org>
  32915. Reviewed by Pavel Feldman.
  32916. Javascript console should not attempt to scroll to end of console if console is not visible
  32917. https://bugs.webkit.org/show_bug.cgi?id=22992
  32918. * inspector/front-end/ConsoleView.js:
  32919. (WebInspector.ConsoleView.prototype._scheduleScrollIntoView.scrollIntoView):
  32920. (WebInspector.ConsoleView.prototype._scheduleScrollIntoView):
  32921. (WebInspector.ConsoleView.prototype.addMessage):
  32922. 2010-02-25 Alexey Proskuryakov <ap@apple.com>
  32923. Qt and Gtk build fixes.
  32924. * GNUmakefile.am:
  32925. * WebCore.pro:
  32926. Added CRuntimeObject.{c,cpp}.
  32927. 2010-02-25 Alexey Proskuryakov <ap@apple.com>
  32928. Windows build fix.
  32929. * WebCore.vcproj/WebCore.vcproj: Added CRuntimeObject.{c,cpp}.
  32930. 2010-02-25 Alexey Proskuryakov <ap@apple.com>
  32931. Reviewed by Geoffrey Garen.
  32932. https://bugs.webkit.org/show_bug.cgi?id=35394
  32933. <rdar://problem/7685262> Make passing objects between Java and plug-ins work
  32934. * WebCore.PluginHostProcess.exp: WebKit now subclasses RuntimeObject, so it needed more exports.
  32935. * bridge/runtime_object.cpp:
  32936. (JSC::Bindings::callRuntimeObject):
  32937. (JSC::Bindings::callRuntimeConstructor):
  32938. Assert that a runtime object is passed as function.
  32939. * bridge/runtime_object.h: Moved RuntimeObject into Bindings namespace, matching other
  32940. related classes.
  32941. * bridge/jni/jni_jsobject.mm:
  32942. (JavaJSObject::toString): Pass rootObject to convertValueToJValue(). It's not needed when
  32943. constructing a string, but this function now takes it for the sake of Object.
  32944. (JavaJSObject::convertValueToJObject): Check that object class is JavaRuntimeObject, not
  32945. just RuntimeObject.
  32946. * bridge/jni/jsc/JNIBridgeJSC.cpp:
  32947. (JavaField::setValueToInstance): Pass rootObject to convertValueToJValue().
  32948. (JavaArray::setValueAt): Ditto.
  32949. * bridge/jni/jsc/JNIUtilityPrivate.h: convertValueToJValue() now takes a RootObject argument,
  32950. because one is needed to gcProtect an object ghtat is wrapped into JSObject.
  32951. * bridge/jni/jsc/JNIUtilityPrivate.cpp: (JSC::Bindings::convertValueToJValue): Convert
  32952. JavaScript objects to Java JSObject ones. This was already happening in other code paths,
  32953. which we should change to use common code.
  32954. * bridge/jni/jsc/JavaInstanceJSC.cpp:
  32955. (JavaInstance::newRuntimeObject): Create an appropriate RuntimeObject subclass,
  32956. which is JavaRuntimeObject for Java.
  32957. (JavaInstance::invokeMethod): Unwrap returned JavaObjects that contain JS objects.
  32958. * WebCore.xcodeproj/project.pbxproj:
  32959. * bindings/objc/WebScriptObject.mm:
  32960. (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
  32961. * bridge/c/CRuntimeObject.cpp: Added.
  32962. (JSC::Bindings::CRuntimeObject::CRuntimeObject):
  32963. (JSC::Bindings::CRuntimeObject::~CRuntimeObject):
  32964. (JSC::Bindings::CRuntimeObject::getInternalCInstance):
  32965. * bridge/c/CRuntimeObject.h: Added.
  32966. (JSC::Bindings::CRuntimeObject::classInfo):
  32967. * bridge/c/c_instance.cpp:
  32968. (JSC::Bindings::CInstance::newRuntimeObject):
  32969. * bridge/c/c_instance.h:
  32970. * bridge/c/c_utility.cpp:
  32971. (JSC::Bindings::convertValueToNPVariant):
  32972. * bridge/jni/jsc/JavaInstanceJSC.h:
  32973. * bridge/jni/jsc/JavaRuntimeObject.cpp: Added.
  32974. (JSC::Bindings::):
  32975. (JSC::Bindings::JavaRuntimeObject::JavaRuntimeObject):
  32976. (JSC::Bindings::JavaRuntimeObject::~JavaRuntimeObject):
  32977. (JSC::Bindings::JavaRuntimeObject::getInternalJavaInstance):
  32978. * bridge/jni/jsc/JavaRuntimeObject.h: Added.
  32979. (JSC::Bindings::JavaRuntimeObject::classInfo):
  32980. * bridge/jsc/BridgeJSC.h:
  32981. * bridge/objc/ObjCRuntimeObject.h: Added.
  32982. (JSC::Bindings::ObjCRuntimeObject::classInfo):
  32983. * bridge/objc/ObjCRuntimeObject.mm: Added.
  32984. (JSC::Bindings::):
  32985. (JSC::Bindings::ObjCRuntimeObject::ObjCRuntimeObject):
  32986. (JSC::Bindings::ObjCRuntimeObject::~ObjCRuntimeObject):
  32987. (JSC::Bindings::ObjCRuntimeObject::getInternalObjCInstance):
  32988. * bridge/objc/objc_instance.h:
  32989. * bridge/objc/objc_instance.mm:
  32990. (ObjcInstance::newRuntimeObject):
  32991. * bridge/objc/objc_runtime.mm:
  32992. (JSC::Bindings::callObjCFallbackObject):
  32993. * bridge/runtime_root.h:
  32994. Added RuntimeObject subclasses for each instance type, and use them for type casting.
  32995. 2010-02-25 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  32996. Rubber-stamped by Xan Lopez.
  32997. Adopt the same string as the one that is expected by
  32998. fast/parser/fragment-parser.html for the description used by the
  32999. <isindex> element.
  33000. * platform/gtk/LocalizedStringsGtk.cpp:
  33001. (WebCore::searchableIndexIntroduction):
  33002. 2010-02-25 Pavel Feldman <pfeldman@chromium.org>
  33003. Reviewed by Timothy Hatcher.
  33004. Web Inspector: evaluate-on-hover does not work on HTML files.
  33005. https://bugs.webkit.org/show_bug.cgi?id=35378
  33006. * inspector/front-end/SourceCSSTokenizer.re2js:
  33007. * inspector/front-end/SourceHTMLTokenizer.js:
  33008. (WebInspector.SourceHTMLTokenizer):
  33009. (WebInspector.SourceHTMLTokenizer.prototype.set line):
  33010. (WebInspector.SourceHTMLTokenizer.prototype._isExpectingAttribute):
  33011. (WebInspector.SourceHTMLTokenizer.prototype._isExpectingAttributeValue):
  33012. (WebInspector.SourceHTMLTokenizer.prototype._setExpectingAttribute):
  33013. (WebInspector.SourceHTMLTokenizer.prototype._setExpectingAttributeValue):
  33014. (WebInspector.SourceHTMLTokenizer.prototype._attrValueTokenType):
  33015. (WebInspector.SourceHTMLTokenizer.prototype.nextToken):
  33016. * inspector/front-end/SourceHTMLTokenizer.re2js:
  33017. * inspector/front-end/SourceJavaScriptTokenizer.js:
  33018. (WebInspector.SourceJavaScriptTokenizer):
  33019. * inspector/front-end/SourceJavaScriptTokenizer.re2js:
  33020. * inspector/front-end/SourceTokenizer.js:
  33021. (WebInspector.SourceTokenizer.prototype.set condition):
  33022. (WebInspector.SourceTokenizer.prototype.get condition):
  33023. (WebInspector.SourceTokenizer.prototype.get subTokenizer):
  33024. (WebInspector.SourceTokenizer.prototype.getLexCondition):
  33025. (WebInspector.SourceTokenizer.prototype.setLexCondition):
  33026. * inspector/front-end/TextEditorHighlighter.js:
  33027. (WebInspector.TextEditorHighlighter):
  33028. (WebInspector.TextEditorHighlighter.prototype.set mimeType):
  33029. (WebInspector.TextEditorHighlighter.prototype.highlight):
  33030. (WebInspector.TextEditorHighlighter.prototype._highlightInChunks):
  33031. (WebInspector.TextEditorHighlighter.prototype._highlightLines):
  33032. (WebInspector.TextEditorHighlighter.prototype._highlightLine):
  33033. * inspector/front-end/TextViewer.js:
  33034. (WebInspector.TextViewer.prototype._paintLine):
  33035. 2010-02-25 Xan Lopez <xlopez@igalia.com>
  33036. Reviewed by Gustavo Noronha.
  33037. Simple style cleanups.
  33038. * plugins/gtk/PluginViewGtk.cpp:
  33039. (WebCore::plugRemovedCallback):
  33040. (WebCore::plugAddedCallback):
  33041. (WebCore::PluginView::platformStart):
  33042. 2010-02-25 Andreas Kling <andreas.kling@nokia.com>
  33043. Reviewed by Darin Adler.
  33044. Optimize decoding of Latin-1 text by exploiting the fact that most of it will
  33045. be ASCII-only data.
  33046. https://bugs.webkit.org/show_bug.cgi?id=35233
  33047. * platform/text/TextCodecLatin1.cpp:
  33048. (WebCore::TextCodecLatin1::decode):
  33049. 2010-02-25 Pavel Feldman <pfeldman@chromium.org>
  33050. Reviewed by Dimitri Glazkov.
  33051. Web Inspector: make script lines count calculation lazy.
  33052. https://bugs.webkit.org/show_bug.cgi?id=35392
  33053. * inspector/front-end/Script.js:
  33054. (WebInspector.Script):
  33055. (WebInspector.Script.prototype.get linesCount):
  33056. * inspector/front-end/ScriptsPanel.js:
  33057. * inspector/front-end/SourceView.js:
  33058. (WebInspector.SourceView.prototype._addBreakpoint):
  33059. 2010-02-25 James Choi <jchoi42@pha.jhu.edu>
  33060. Reviewed by David Levin.
  33061. Change hardcoded gcc paths to be Solaris friendly
  33062. https://bugs.webkit.org/show_bug.cgi?id=35213
  33063. * bindings/scripts/CodeGeneratorObjC.pm:
  33064. * bindings/scripts/IDLParser.pm:
  33065. * css/make-css-file-arrays.pl:
  33066. * dom/make_names.pl:
  33067. 2010-02-25 Xan Lopez <xlopez@igalia.com>
  33068. Reviewed by Gustavo Noronha.
  33069. Workaround Java plugins not drawing themselves properly on first
  33070. expose by doing a late size-allocate after 'plug-added' has been
  33071. emitted on the embedding GtkSocket. It's unclear to me if this is
  33072. a bug in our side or theirs, but this should be pretty safe and
  33073. fixes the annoyance while we investigate it further.
  33074. * plugins/gtk/PluginViewGtk.cpp:
  33075. (WebCore::plugAddedCallback):
  33076. (WebCore::PluginView::platformStart):
  33077. 2010-02-23 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
  33078. Reviewed by Tor Arne Vestbø.
  33079. Add missing include guards
  33080. * loader/CrossOriginPreflightResultCache.h:
  33081. * loader/MainResourceLoader.h:
  33082. 2010-02-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
  33083. Reviewed by Tor Arne Vestbø.
  33084. [Qt] Restrict the optimization flags for Symbian to release builds.
  33085. * WebCore.pro:
  33086. 2010-02-25 Jarkko Sakkinen <jarkko.sakkinen@tieto.com>
  33087. Reviewed by Kenneth Rohde Christiansen.
  33088. Qt WebGL support
  33089. Adds GraphicsContext3D QtWebKit implementation.
  33090. https://bugs.webkit.org/show_bug.cgi?id=35153
  33091. * WebCore.pri:
  33092. * WebCore.pro:
  33093. * platform/graphics/GraphicsContext3D.h:
  33094. * platform/graphics/qt/GraphicsContext3DQt.cpp: Added.
  33095. (WebCore::GraphicsContext3DInternal::isValid):
  33096. (WebCore::GraphicsContext3DInternal::GraphicsContext3DInternal):
  33097. (WebCore::GraphicsContext3DInternal::~GraphicsContext3DInternal):
  33098. (WebCore::GraphicsContext3DInternal::getProcAddress):
  33099. (WebCore::GraphicsContext3D::create):
  33100. (WebCore::GraphicsContext3D::GraphicsContext3D):
  33101. (WebCore::GraphicsContext3D::~GraphicsContext3D):
  33102. (WebCore::GraphicsContext3D::platformGraphicsContext3D):
  33103. (WebCore::GraphicsContext3D::platformTexture):
  33104. (WebCore::GraphicsContext3D::makeContextCurrent):
  33105. (WebCore::GraphicsContext3D::beginPaint):
  33106. (WebCore::GraphicsContext3D::endPaint):
  33107. (WebCore::GraphicsContext3D::reshape):
  33108. (WebCore::GraphicsContext3D::activeTexture):
  33109. (WebCore::GraphicsContext3D::attachShader):
  33110. (WebCore::GraphicsContext3D::bindAttribLocation):
  33111. (WebCore::GraphicsContext3D::bindBuffer):
  33112. (WebCore::GraphicsContext3D::bindFramebuffer):
  33113. (WebCore::GraphicsContext3D::bindRenderbuffer):
  33114. (WebCore::GraphicsContext3D::bindTexture):
  33115. (WebCore::GraphicsContext3D::blendColor):
  33116. (WebCore::GraphicsContext3D::blendEquation):
  33117. (WebCore::GraphicsContext3D::blendEquationSeparate):
  33118. (WebCore::GraphicsContext3D::blendFunc):
  33119. (WebCore::GraphicsContext3D::blendFuncSeparate):
  33120. (WebCore::GraphicsContext3D::bufferData):
  33121. (WebCore::GraphicsContext3D::bufferSubData):
  33122. (WebCore::GraphicsContext3D::checkFramebufferStatus):
  33123. (WebCore::GraphicsContext3D::clearColor):
  33124. (WebCore::GraphicsContext3D::clear):
  33125. (WebCore::GraphicsContext3D::clearDepth):
  33126. (WebCore::GraphicsContext3D::clearStencil):
  33127. (WebCore::GraphicsContext3D::colorMask):
  33128. (WebCore::GraphicsContext3D::compileShader):
  33129. (WebCore::GraphicsContext3D::copyTexImage2D):
  33130. (WebCore::GraphicsContext3D::copyTexSubImage2D):
  33131. (WebCore::GraphicsContext3D::cullFace):
  33132. (WebCore::GraphicsContext3D::depthFunc):
  33133. (WebCore::GraphicsContext3D::depthMask):
  33134. (WebCore::GraphicsContext3D::depthRange):
  33135. (WebCore::GraphicsContext3D::detachShader):
  33136. (WebCore::GraphicsContext3D::disable):
  33137. (WebCore::GraphicsContext3D::disableVertexAttribArray):
  33138. (WebCore::GraphicsContext3D::drawArrays):
  33139. (WebCore::GraphicsContext3D::drawElements):
  33140. (WebCore::GraphicsContext3D::enable):
  33141. (WebCore::GraphicsContext3D::enableVertexAttribArray):
  33142. (WebCore::GraphicsContext3D::finish):
  33143. (WebCore::GraphicsContext3D::flush):
  33144. (WebCore::GraphicsContext3D::framebufferRenderbuffer):
  33145. (WebCore::GraphicsContext3D::framebufferTexture2D):
  33146. (WebCore::GraphicsContext3D::frontFace):
  33147. (WebCore::GraphicsContext3D::generateMipmap):
  33148. (WebCore::GraphicsContext3D::getActiveAttrib):
  33149. (WebCore::GraphicsContext3D::getActiveUniform):
  33150. (WebCore::GraphicsContext3D::getAttribLocation):
  33151. (WebCore::GraphicsContext3D::getContextAttributes):
  33152. (WebCore::GraphicsContext3D::getError):
  33153. (WebCore::GraphicsContext3D::getString):
  33154. (WebCore::GraphicsContext3D::hint):
  33155. (WebCore::GraphicsContext3D::isBuffer):
  33156. (WebCore::GraphicsContext3D::isEnabled):
  33157. (WebCore::GraphicsContext3D::isFramebuffer):
  33158. (WebCore::GraphicsContext3D::isProgram):
  33159. (WebCore::GraphicsContext3D::isRenderbuffer):
  33160. (WebCore::GraphicsContext3D::isShader):
  33161. (WebCore::GraphicsContext3D::isTexture):
  33162. (WebCore::GraphicsContext3D::lineWidth):
  33163. (WebCore::GraphicsContext3D::linkProgram):
  33164. (WebCore::GraphicsContext3D::pixelStorei):
  33165. (WebCore::GraphicsContext3D::polygonOffset):
  33166. (WebCore::GraphicsContext3D::readPixels):
  33167. (WebCore::GraphicsContext3D::releaseShaderCompiler):
  33168. (WebCore::GraphicsContext3D::renderbufferStorage):
  33169. (WebCore::GraphicsContext3D::sampleCoverage):
  33170. (WebCore::GraphicsContext3D::scissor):
  33171. (WebCore::GraphicsContext3D::shaderSource):
  33172. (WebCore::GraphicsContext3D::stencilFunc):
  33173. (WebCore::GraphicsContext3D::stencilFuncSeparate):
  33174. (WebCore::GraphicsContext3D::stencilMask):
  33175. (WebCore::GraphicsContext3D::stencilMaskSeparate):
  33176. (WebCore::GraphicsContext3D::stencilOp):
  33177. (WebCore::GraphicsContext3D::stencilOpSeparate):
  33178. (WebCore::GraphicsContext3D::texParameterf):
  33179. (WebCore::GraphicsContext3D::texParameteri):
  33180. (WebCore::GraphicsContext3D::uniform1f):
  33181. (WebCore::GraphicsContext3D::uniform1fv):
  33182. (WebCore::GraphicsContext3D::uniform2f):
  33183. (WebCore::GraphicsContext3D::uniform2fv):
  33184. (WebCore::GraphicsContext3D::uniform3f):
  33185. (WebCore::GraphicsContext3D::uniform3fv):
  33186. (WebCore::GraphicsContext3D::uniform4f):
  33187. (WebCore::GraphicsContext3D::uniform4fv):
  33188. (WebCore::GraphicsContext3D::uniform1i):
  33189. (WebCore::GraphicsContext3D::uniform1iv):
  33190. (WebCore::GraphicsContext3D::uniform2i):
  33191. (WebCore::GraphicsContext3D::uniform2iv):
  33192. (WebCore::GraphicsContext3D::uniform3i):
  33193. (WebCore::GraphicsContext3D::uniform3iv):
  33194. (WebCore::GraphicsContext3D::uniform4i):
  33195. (WebCore::GraphicsContext3D::uniform4iv):
  33196. (WebCore::GraphicsContext3D::uniformMatrix2fv):
  33197. (WebCore::GraphicsContext3D::uniformMatrix3fv):
  33198. (WebCore::GraphicsContext3D::uniformMatrix4fv):
  33199. (WebCore::GraphicsContext3D::useProgram):
  33200. (WebCore::GraphicsContext3D::validateProgram):
  33201. (WebCore::GraphicsContext3D::vertexAttrib1f):
  33202. (WebCore::GraphicsContext3D::vertexAttrib1fv):
  33203. (WebCore::GraphicsContext3D::vertexAttrib2f):
  33204. (WebCore::GraphicsContext3D::vertexAttrib2fv):
  33205. (WebCore::GraphicsContext3D::vertexAttrib3f):
  33206. (WebCore::GraphicsContext3D::vertexAttrib3fv):
  33207. (WebCore::GraphicsContext3D::vertexAttrib4f):
  33208. (WebCore::GraphicsContext3D::vertexAttrib4fv):
  33209. (WebCore::GraphicsContext3D::vertexAttribPointer):
  33210. (WebCore::GraphicsContext3D::viewport):
  33211. (WebCore::GraphicsContext3D::getBooleanv):
  33212. (WebCore::GraphicsContext3D::getBufferParameteriv):
  33213. (WebCore::GraphicsContext3D::getFloatv):
  33214. (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
  33215. (WebCore::GraphicsContext3D::getIntegerv):
  33216. (WebCore::GraphicsContext3D::getProgramiv):
  33217. (WebCore::GraphicsContext3D::getProgramInfoLog):
  33218. (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
  33219. (WebCore::GraphicsContext3D::getShaderiv):
  33220. (WebCore::GraphicsContext3D::getShaderInfoLog):
  33221. (WebCore::GraphicsContext3D::getShaderSource):
  33222. (WebCore::GraphicsContext3D::getTexParameterfv):
  33223. (WebCore::GraphicsContext3D::getTexParameteriv):
  33224. (WebCore::GraphicsContext3D::getUniformfv):
  33225. (WebCore::GraphicsContext3D::getUniformiv):
  33226. (WebCore::GraphicsContext3D::getUniformLocation):
  33227. (WebCore::GraphicsContext3D::getVertexAttribfv):
  33228. (WebCore::GraphicsContext3D::getVertexAttribiv):
  33229. (WebCore::GraphicsContext3D::getVertexAttribOffset):
  33230. (WebCore::GraphicsContext3D::texImage2D):
  33231. (WebCore::GraphicsContext3D::texSubImage2D):
  33232. (WebCore::GraphicsContext3D::createBuffer):
  33233. (WebCore::GraphicsContext3D::createFramebuffer):
  33234. (WebCore::GraphicsContext3D::createProgram):
  33235. (WebCore::GraphicsContext3D::createRenderbuffer):
  33236. (WebCore::GraphicsContext3D::createShader):
  33237. (WebCore::GraphicsContext3D::createTexture):
  33238. (WebCore::GraphicsContext3D::deleteBuffer):
  33239. (WebCore::GraphicsContext3D::deleteFramebuffer):
  33240. (WebCore::GraphicsContext3D::deleteProgram):
  33241. (WebCore::GraphicsContext3D::deleteRenderbuffer):
  33242. (WebCore::GraphicsContext3D::deleteShader):
  33243. (WebCore::GraphicsContext3D::deleteTexture):
  33244. (WebCore::GraphicsContext3D::sizeInBytes):
  33245. (WebCore::GraphicsContext3D::synthesizeGLError):
  33246. (WebCore::GraphicsContext3D::getImageData):
  33247. 2010-02-25 Pavel Feldman <pfeldman@chromium.org>
  33248. Reviewed by Timothy Hatcher.
  33249. Web Inspector: Swap images for activate and deactivate breakpoints.
  33250. https://bugs.webkit.org/show_bug.cgi?id=35383
  33251. * WebCore.gypi:
  33252. * inspector/front-end/Images/breakpointsActivateButtonGlyph.png: Renamed from WebCore/inspector/front-end/Images/deactivateBreakpointsButtonGlyph.png.
  33253. * inspector/front-end/Images/breakpointsDeactivateButtonGlyph.png: Renamed from WebCore/inspector/front-end/Images/deactivateBreakpointsDisabledButtonGlyph.png.
  33254. * inspector/front-end/WebKit.qrc:
  33255. * inspector/front-end/inspector.css:
  33256. 2010-02-25 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  33257. Reviewed by Xan Lopez.
  33258. Go back on symlink resolution if we are loading the flash plugin,
  33259. and the path contains /netscape/, following what Chromium does.
  33260. Thanks to Evan Martin for the help on this!
  33261. * plugins/gtk/PluginPackageGtk.cpp:
  33262. (WebCore::PluginPackage::load):
  33263. 2010-02-25 Pavel Feldman <pfeldman@chromium.org>
  33264. Reviewed by Timothy Hatcher.
  33265. Web Inspector: Scripts panel shows blank source when stopping on a breakpoint on refresh.
  33266. https://bugs.webkit.org/show_bug.cgi?id=35232
  33267. * inspector/front-end/Panel.js:
  33268. (WebInspector.Panel.prototype.canShowSourceLine):
  33269. (WebInspector.Panel.prototype.showSourceLine):
  33270. * inspector/front-end/ResourcesPanel.js:
  33271. (WebInspector.ResourcesPanel.prototype.canShowSourceLine):
  33272. (WebInspector.ResourcesPanel.prototype.showSourceLine):
  33273. * inspector/front-end/Script.js:
  33274. (WebInspector.Script):
  33275. * inspector/front-end/ScriptView.js:
  33276. (WebInspector.ScriptView.prototype.setupSourceFrameIfNeeded):
  33277. * inspector/front-end/ScriptsPanel.js:
  33278. (WebInspector.ScriptsPanel.prototype.show):
  33279. (WebInspector.ScriptsPanel.prototype.get searchableViews):
  33280. (WebInspector.ScriptsPanel.prototype.addScript):
  33281. (WebInspector.ScriptsPanel.prototype._resourceLoadingFinished):
  33282. (WebInspector.ScriptsPanel.prototype.addBreakpoint):
  33283. (WebInspector.ScriptsPanel.prototype.removeBreakpoint):
  33284. (WebInspector.ScriptsPanel.prototype.reset):
  33285. (WebInspector.ScriptsPanel.prototype.canShowSourceLine):
  33286. (WebInspector.ScriptsPanel.prototype.showSourceLine):
  33287. (WebInspector.ScriptsPanel.prototype._scriptOrResourceForURLAndLine):
  33288. (WebInspector.ScriptsPanel.prototype.showView):
  33289. (WebInspector.ScriptsPanel.prototype._sourceFrameForScriptOrResource):
  33290. (WebInspector.ScriptsPanel.prototype._showScriptOrResource):
  33291. (WebInspector.ScriptsPanel.prototype._addScriptToFilesMenu.optionCompare):
  33292. (WebInspector.ScriptsPanel.prototype._addScriptToFilesMenu):
  33293. * inspector/front-end/SourceView.js:
  33294. (WebInspector.SourceView.prototype._addBreakpoint):
  33295. * inspector/front-end/inspector.js:
  33296. (WebInspector.documentClick.followLink):
  33297. (WebInspector.documentClick):
  33298. (WebInspector._choosePanelToShowSourceLine):
  33299. (WebInspector.canShowSourceLine):
  33300. (WebInspector.showSourceLine):
  33301. 2010-02-25 Ben Murdoch <benm@google.com>
  33302. Reviewed by Kenneth Rohde Christiansen.
  33303. The target element of a Touch should be the target where that touch originated, not where it is now.
  33304. https://bugs.webkit.org/show_bug.cgi?id=34585
  33305. Currently the target of a touch is set to the resulting node of the hit test where the touch currently
  33306. is. This does not match the behavior of iPhone or Android. This patch uses a hashmap on the EventHandler
  33307. to keep track of the target element when a touch is first started. This target is then used as the target
  33308. for subsequent touches with the same id. This matches observed behavior on iPhone and Android.
  33309. Tests:
  33310. fast/events/touch/touch-target.html: Added.
  33311. fast/events/touch/basic-single-touch-events.html: Updated.
  33312. * page/EventHandler.cpp:
  33313. (WebCore::EventHandler::handleTouchEvent): Store the originating target element of a touch in a hashmap
  33314. so that we can reuse that target for future events caused by that touch. This matches observed behavior
  33315. on iPhone and Android.
  33316. * page/EventHandler.h: Add hashmap as a member.
  33317. * platform/PlatformTouchPoint.h:
  33318. (WebCore::PlatformTouchPoint::id): Store the touch point id as unsigned.
  33319. * platform/qt/PlatformTouchPointQt.cpp:
  33320. (WebCore::PlatformTouchPoint::PlatformTouchPoint): Cast platform touch id from signed to unsigned. Qt API
  33321. docs state that it will always be >= 0.
  33322. 2010-02-24 Antonio Gomes <tonikitoo@webkit.org>
  33323. Reviewed by Simon Fraser.
  33324. Patch by Antonio Gomes <tonikitoo@webkit.org>
  33325. Add a convenient center() method to IntRect
  33326. https://bugs.webkit.org/show_bug.cgi?id=35346
  33327. As it is a convenience method, and implemention is
  33328. based on FloatRect's one, patch does not provide a
  33329. layout test.
  33330. * platform/graphics/IntRect.h:
  33331. (WebCore::IntRect::center):
  33332. 2010-02-25 Andrey Kosyakov <caseq@chromium.org>
  33333. Reviewed by Pavel Feldman.
  33334. Fake workers implementation that simulates workers using iframe and timer,
  33335. needed to support workers debugging. Also, a facility to inject scripts into
  33336. inspected page upon load.
  33337. https://bugs.webkit.org/show_bug.cgi?id=35148
  33338. * WebCore.gypi:
  33339. * WebCore.vcproj/WebCore.vcproj:
  33340. * inspector/InspectorBackend.cpp:
  33341. (WebCore::InspectorBackend::addScriptToEvaluateOnLoad):
  33342. (WebCore::InspectorBackend::removeAllScriptsToEvaluateOnLoad):
  33343. * inspector/InspectorBackend.h:
  33344. * inspector/InspectorBackend.idl:
  33345. * inspector/InspectorController.cpp:
  33346. (WebCore::InspectorController::didCommitLoad):
  33347. (WebCore::InspectorController::addScriptToEvaluateOnLoad):
  33348. (WebCore::InspectorController::removeAllScriptsToEvaluateOnLoad):
  33349. * inspector/InspectorController.h:
  33350. * inspector/front-end/InjectedFakeWorker.js: Added.
  33351. (InjectedFakeWorker.Worker):
  33352. (InjectedFakeWorker.FakeWorker):
  33353. (InjectedFakeWorker.FakeWorker.prototype.postMessage):
  33354. (InjectedFakeWorker.FakeWorker.prototype.terminate):
  33355. (InjectedFakeWorker.FakeWorker.prototype._onmessageWrapper):
  33356. (InjectedFakeWorker.FakeWorker.prototype._dispatchMessage):
  33357. (InjectedFakeWorker.FakeWorker.prototype._handleException):
  33358. (InjectedFakeWorker.FakeWorker.prototype._buildWorker):
  33359. (InjectedFakeWorker.FakeWorker.prototype._setupWorkerContext.handler):
  33360. (InjectedFakeWorker.FakeWorker.prototype._setupWorkerContext):
  33361. (InjectedFakeWorker.FakeWorker.prototype._importScripts):
  33362. (InjectedFakeWorker.FakeWorker.prototype._loadScript):
  33363. (InjectedFakeWorker.URL):
  33364. (InjectedFakeWorker.URL.prototype.urlRegEx.split):
  33365. (InjectedFakeWorker.URL.prototype.mockLocation):
  33366. (InjectedFakeWorker.URL.prototype.completeWith):
  33367. (InjectedFakeWorker.URL.prototype.sameOrigin):
  33368. (InjectedFakeWorker.DOMCoreException.formatError):
  33369. (InjectedFakeWorker.DOMCoreException):
  33370. (InjectedFakeWorker.noop):
  33371. * inspector/front-end/InspectorBackendStub.js:
  33372. (.WebInspector.InspectorBackendStub.prototype.setInjectedScriptSource):
  33373. (.WebInspector.InspectorBackendStub.prototype.addScriptToEvaluateOnLoad):
  33374. (.WebInspector.InspectorBackendStub.prototype.removeAllScriptsToEvaluateOnLoad):
  33375. * inspector/front-end/WebKit.qrc:
  33376. * inspector/front-end/inspector.html:
  33377. 2010-02-24 Nicholas Young <nicholas.young@nokia.com>
  33378. Reviewed by Eric Carlson.
  33379. Add mediaPlayerOwningDocument() to MediaPlayerClient.
  33380. https://bugs.webkit.org/show_bug.cgi?id=35374
  33381. No new tests. These are interface changes only.
  33382. * html/HTMLMediaElement.cpp:
  33383. (WebCore::HTMLMediaElement::mediaPlayerOwningDocument): Implementation for media element.
  33384. * html/HTMLMediaElement.h:
  33385. * platform/graphics/MediaPlayer.h:
  33386. (WebCore::MediaPlayerClient::mediaPlayerOwningDocument): New virtual method.
  33387. 2010-02-24 Andreas Kling <andreas.kling@nokia.com>
  33388. Reviewed by Kenneth Rohde Christiansen.
  33389. Optimized Font::normalizeSpaces() by caching the String::characters()
  33390. instead of repeatedly calling operator[]
  33391. https://bugs.webkit.org/show_bug.cgi?id=35336
  33392. * platform/graphics/Font.cpp:
  33393. (WebCore::Font::normalizeSpaces):
  33394. 2010-02-24 Jungshik Shin <jshin@chromium.org>
  33395. Reviewed by David Levin.
  33396. [Chromium] Traditional Chinese Chrome on Windows should use PMingLiu instead of Simsun for Han characters
  33397. https://bugs.webkit.org/show_bug.cgi?id=35319
  33398. No visible change in the layout test.
  33399. * platform/graphics/chromium/FontUtilsChromiumWin.cpp:
  33400. (WebCore::):
  33401. 2010-02-24 Anthony Ricaud <rik@webkit.org>
  33402. Reviewed by Pavel Feldman.
  33403. Web Inspector: Reduce the timer to show the eval popover
  33404. https://bugs.webkit.org/show_bug.cgi?id=35344
  33405. * inspector/front-end/SourceFrame.js:
  33406. (WebInspector.SourceFrame.prototype._mouseMove):
  33407. 2010-02-24 Jay Campan <jcampan@google.com>
  33408. Reviewed by David Levin.
  33409. Don't show the autofill popup when the input text is disabled or read only.
  33410. Test: manual-tests/chromium/no-autofill-on-readonly.html
  33411. https://bugs.webkit.org/show_bug.cgi?id=35129
  33412. * src/EditorClientImpl.cpp:
  33413. (WebKit::EditorClientImpl::autofill):
  33414. * manual-tests/chromium/no-autofill-on-readonly.html: Added.
  33415. 2010-02-24 Dominic Mazzoni <dmazzoni@chromium.org>
  33416. Reviewed by Jeremy Orlow.
  33417. Wraps includes of SVG headers so that it's possible to
  33418. compile the V8 bindings with SVG disabled, e.g. 'enable_svg=0'.
  33419. https://bugs.webkit.org/show_bug.cgi?id=35345
  33420. No new tests.
  33421. * bindings/v8/V8DOMWrapper.cpp:
  33422. * bindings/v8/V8Proxy.cpp:
  33423. * bindings/v8/custom/V8CSSValueCustom.cpp:
  33424. * bindings/v8/custom/V8DocumentCustom.cpp:
  33425. * bindings/v8/custom/V8ElementCustom.cpp:
  33426. * bindings/v8/custom/V8EventCustom.cpp:
  33427. * bindings/v8/custom/V8SVGElementCustom.cpp:
  33428. 2010-02-24 Maciej Stachowiak <mjs@apple.com>
  33429. Unreviewed build fix.
  33430. Fix gtk build.
  33431. Include JSC headers as runtime/ instead of JavaScriptCore/
  33432. * bindings/js/JSDOMWrapper.h:
  33433. * bindings/js/ScriptWrappable.h:
  33434. 2010-02-24 Maciej Stachowiak <mjs@apple.com>
  33435. Reviewed by Oliver Hunt.
  33436. Cache JavaScript wrappers inline in DOM nodes
  33437. https://bugs.webkit.org/show_bug.cgi?id=35226
  33438. <rdar://problem/7664202>
  33439. 7.4% speedup on Dromaeo DOM Core tests.
  33440. 2.3% speedup on Hixie DOM Core tests.
  33441. This fixes the following things from the last attempt:
  33442. - Now builds in both debug and release and passes all tests
  33443. - Properly use a WeakGCPtr, not just a raw pointer, in ScriptWrappable
  33444. - Properly look in the appropriate per-document or per-world map
  33445. - Added an assert that would have caught any of the problems I found
  33446. - Handle clearing the inline cache properly in all cases
  33447. * bindings/js/JSDOMBinding.cpp:
  33448. (WebCore::cacheDOMObjectWrapper): Adjust for name changes.
  33449. (WebCore::forgetDOMNode): Clear wrapper pointer.
  33450. (WebCore::cacheDOMNodeWrapper): Cache inline too if caching for normal world.
  33451. * bindings/js/JSDOMBinding.h:
  33452. (WebCore::Document::getWrapperCache): Inlined.
  33453. (WebCore::domObjectWrapperMapFor): Renamed to start with lowercase. Moved to header to inline.
  33454. * bindings/js/JSDOMWrapper.h: Added.
  33455. (WebCore::DOMObject::DOMObject): Factored this out of JSDOMBinding.h to avoid include
  33456. cycle. I think the class should be renamed, I picked a forward-looking header name because
  33457. we already have a DOMObject.h
  33458. * bindings/js/JSNodeCustom.cpp:
  33459. (WebCore::createWrapperInline): Renamed version of original createWrapper.
  33460. (WebCore::createWrapper): Call createWrapperInline. Out-of-line version.
  33461. (WebCore::toJSNewlyCreated): Call createWrapperInline instead of createWrapper.
  33462. * bindings/js/JSNodeCustom.h: Added.
  33463. (WebCore::getCachedDOMNodeWrapper): Moved from JSDOMBinding.cpp and moved here,
  33464. so it could inline everywhere without creating an include cycle. Consider inline
  33465. cache.
  33466. (WebCore::toJS): Moved to header to inline.
  33467. * bindings/js/ScriptWrappable.h:
  33468. (WebCore::ScriptWrappable::ScriptWrappable): Implement this in the obvious
  33469. way for JavaScriptCore. (Using a WeakGCPtr).
  33470. (WebCore::ScriptWrappable::wrapper):
  33471. (WebCore::ScriptWrappable::setWrapper):
  33472. (WebCore::ScriptWrappable::clearWrapper):
  33473. * bindings/scripts/CodeGeneratorJS.pm: Include CustomHeader heaaders
  33474. in the header, not just the impl file, so they can add inlining.
  33475. * dom/Node.idl: Add CustomHeader directive.
  33476. Add new files to build.
  33477. * GNUmakefile.am:
  33478. * WebCore.gypi:
  33479. * WebCore.pro:
  33480. * WebCore.vcproj/WebCore.vcproj:
  33481. * WebCore.xcodeproj/project.pbxproj:
  33482. 2010-02-24 Jochen Eisinger <jochen@chromium.org>
  33483. Reviewed by Jeremy Orlow.
  33484. Expose Database object of currently active task on the database thread
  33485. https://bugs.webkit.org/show_bug.cgi?id=35341
  33486. * storage/DatabaseThread.cpp:
  33487. (WebCore::DatabaseThread::DatabaseThread):
  33488. (WebCore::DatabaseThread::databaseThread):
  33489. * storage/DatabaseThread.h:
  33490. (WebCore::DatabaseThread::getDatabaseOfCurrentTask):
  33491. 2010-02-24 Nicholas Young <nicholas.young@nokia.com>
  33492. Reviewed by Eric Carlson.
  33493. supportsMuting() should be an internal interface between MediaPlayer and MediaPlayerPrivate.
  33494. https://bugs.webkit.org/show_bug.cgi?id=35327
  33495. No new tests. Refactoring Only.
  33496. * html/HTMLMediaElement.cpp:
  33497. (WebCore::HTMLMediaElement::setMuted): Do not check supportsMuting()
  33498. (WebCore::HTMLMediaElement::updateVolume): Set volume and muted
  33499. * platform/graphics/MediaPlayer.cpp:
  33500. (WebCore::MediaPlayer::setVolume): Check supportsMuting()
  33501. (WebCore::MediaPlayer::setMuted): Check supportsMuting()
  33502. * platform/graphics/MediaPlayer.h: Remove supportsMuting()
  33503. 2010-02-24 Adam Barth <abarth@webkit.org>
  33504. Reviewed by Darin Fisher.
  33505. [Chromium API] Disambiguate allowJavaScript from didNotAllowScript
  33506. https://bugs.webkit.org/show_bug.cgi?id=35205
  33507. For clients that want to show a user interface element when JavaScript
  33508. was blocked on a page, we need to disambiguate between querying the
  33509. client for whether JavaScript is enabled from actually failing to
  33510. execute some script.
  33511. This patch adds a new FrameLoaderClient callback for when WebCore would
  33512. like to execute JavaScript but fails to because JavaScript is disabled.
  33513. This patch also touches every client of canExecuteScripts so they can
  33514. indicate whether we should make this callback. I was hoping there was
  33515. a better choke point, but my first two attempts were wrong in subtle
  33516. ways. pkasting points out that this will be easy to screw up in the
  33517. future, so it's better to make all the clients be explicit.
  33518. * WebCore.PluginHostProcess.exp:
  33519. * bindings/ScriptControllerBase.cpp:
  33520. (WebCore::ScriptController::canExecuteScripts):
  33521. (WebCore::ScriptController::executeScript):
  33522. * bindings/js/JSEventListener.cpp:
  33523. (WebCore::JSEventListener::handleEvent):
  33524. * bindings/js/JSLazyEventListener.cpp:
  33525. (WebCore::JSLazyEventListener::initializeJSFunction):
  33526. * bindings/js/ScheduledAction.cpp:
  33527. (WebCore::ScheduledAction::execute):
  33528. * bindings/js/ScriptController.cpp:
  33529. (WebCore::ScriptController::bindingRootObject):
  33530. (WebCore::ScriptController::windowScriptNPObject):
  33531. (WebCore::ScriptController::jsObjectForPluginElement):
  33532. (WebCore::ScriptController::executeScriptInWorld):
  33533. * bindings/js/ScriptController.h:
  33534. (WebCore::):
  33535. * bindings/js/ScriptControllerMac.mm:
  33536. (WebCore::ScriptController::windowScriptObject):
  33537. * bindings/js/ScriptDebugServer.cpp:
  33538. (WebCore::ScriptDebugServer::setJavaScriptPaused):
  33539. * bindings/js/ScriptEventListener.cpp:
  33540. (WebCore::createAttributeEventListener):
  33541. * bindings/js/ScriptState.cpp:
  33542. (WebCore::scriptStateFromNode):
  33543. * bindings/v8/ScriptController.cpp:
  33544. (WebCore::ScriptController::windowScriptNPObject):
  33545. (WebCore::ScriptController::createScriptObjectForPluginElement):
  33546. * bindings/v8/ScriptController.h:
  33547. (WebCore::):
  33548. * bindings/v8/ScriptEventListener.cpp:
  33549. (WebCore::createAttributeEventListener):
  33550. * bindings/v8/V8Proxy.cpp:
  33551. (WebCore::V8Proxy::retrieve):
  33552. * dom/ScriptElement.cpp:
  33553. (WebCore::ScriptElementData::evaluateScript):
  33554. * dom/XMLTokenizerLibxml2.cpp:
  33555. (WebCore::XMLTokenizer::startElementNs):
  33556. * html/HTMLMediaElement.cpp:
  33557. (WebCore::HTMLMediaElement::controls):
  33558. * html/HTMLTokenizer.cpp:
  33559. (WebCore::HTMLTokenizer::parseTag):
  33560. (WebCore::HTMLTokenizer::processToken):
  33561. * inspector/InspectorController.cpp:
  33562. (WebCore::canPassNodeToJavaScript):
  33563. * loader/FrameLoader.cpp:
  33564. (WebCore::FrameLoader::isProcessingUserGesture):
  33565. (WebCore::FrameLoader::open):
  33566. (WebCore::FrameLoader::dispatchDidClearWindowObjectsInAllWorlds):
  33567. (WebCore::FrameLoader::dispatchDidClearWindowObjectInWorld):
  33568. * loader/FrameLoaderClient.h:
  33569. (WebCore::FrameLoaderClient::didNotAllowScript):
  33570. 2010-02-24 Adam Barth <abarth@webkit.org>
  33571. Reviewed by Darin Fisher.
  33572. Add call to FrameLoaderClient::allowPlugins everywhere arePluginsEnabled is called
  33573. https://bugs.webkit.org/show_bug.cgi?id=34997
  33574. If we want to let the FrameLoaderClient override arePluginsEnabled,
  33575. then we need to call out to the FrameLoaderClient every time we read
  33576. the setting.
  33577. We don't have testing infrustructure for these changes, which is lame.
  33578. I'm supposed to fix that in Bug 33991.
  33579. * dom/DOMImplementation.cpp:
  33580. (WebCore::DOMImplementation::createDocument):
  33581. * loader/MainResourceLoader.cpp:
  33582. (WebCore::MainResourceLoader::substituteMIMETypeFromPluginDatabase):
  33583. * loader/PluginDocument.cpp:
  33584. (WebCore::PluginTokenizer::writeRawData):
  33585. * page/Page.cpp:
  33586. (WebCore::Page::pluginData):
  33587. * plugins/MimeType.cpp:
  33588. (WebCore::MimeType::enabledPlugin):
  33589. 2010-02-24 James Robinson <jamesr@chromium.org>
  33590. Reviewed by Dmitry Titov.
  33591. Do not fire focus events while a modal dialog is up.
  33592. https://bugs.webkit.org/show_bug.cgi?id=33962
  33593. Modifies the FocusController to check the frame's page's defersLoading() flag before firing blur/focus events.
  33594. This flag is set while a modal dialog (like a window.alert or window.confirm) is up. Firing the events causes
  33595. assertion failures, since when the dialog is dismissed the PageGroupLoadDeferrer assumes that no script has run.
  33596. Manual tests only as DumpRenderTree does not support modal dialogs
  33597. * manual-tests/modal-dialog-blur-selfclose.html: Added.
  33598. * manual-tests/modal-dialog-blur.html: Added.
  33599. * page/FocusController.cpp:
  33600. (WebCore::dispatchEventsOnWindowAndFocusedNode):
  33601. 2010-02-24 Dan Bernstein <mitz@apple.com>
  33602. Reviewed by Anders Carlsson.
  33603. <rdar://problem/7018611> innerHTML applies meta/link/title tags from a detached html element
  33604. Test: fast/parser/fragment-parser.html
  33605. Ensure that fragment parsing has no side effects on the fragment’s owner
  33606. document.
  33607. * html/HTMLParser.cpp:
  33608. (WebCore::HTMLParser::insertNode): Don’t call
  33609. dispatchDocumentElementAvailable() for fragments.
  33610. (WebCore::HTMLParser::handleError): Don’t copy attributes to the owner
  33611. document’s <html> and <body> elements when a redundant <html> or <body>
  33612. is encountered while parsing a fragment.
  33613. (WebCore::HTMLParser::framesetCreateErrorCheck): Don’t change the owner
  33614. document’s <body> element’s style when parsing a fragment.
  33615. (WebCore::HTMLParser::createHead): Don’t attach the new <head> to the
  33616. ownder document of a fragment.
  33617. 2010-02-24 David Levin <levin@chromium.org>
  33618. Reviewed by Darin Adler.
  33619. Need to create a CanvasSurface base class for HTMLCanvasElement.
  33620. https://bugs.webkit.org/show_bug.cgi?id=35322
  33621. This is an initial step in making the OffscreenCanvas object.
  33622. No new functionality so no new tests.
  33623. * GNUmakefile.am: Added CanvasSurface to the build.
  33624. * WebCore.gypi: ditto
  33625. * WebCore.pro: ditto
  33626. * WebCore.vcproj/WebCore.vcproj: ditto
  33627. * WebCore.xcodeproj/project.pbxproj: ditto
  33628. * dom/CanvasSurface.cpp: Added.
  33629. * dom/CanvasSurface.h: Added.
  33630. * html/HTMLCanvasElement.h: Made HTMLCanvasElement inherit from CanvasSurface.
  33631. 2010-02-24 Peter Kasting <pkasting@google.com>
  33632. Reviewed by Adam Barth.
  33633. Fix regression in calculating an animated image's start time.
  33634. https://bugs.webkit.org/show_bug.cgi?id=35115
  33635. * platform/graphics/BitmapImage.cpp:
  33636. (WebCore::BitmapImage::startAnimation):
  33637. 2010-02-24 Dan Bernstein <mitz@apple.com>
  33638. Reviewed by Simon Fraser.
  33639. <rdar://problem/7682827> Text with :first-letter lingers after being removed
  33640. Test: fast/css/first-letter-set-text.html
  33641. * rendering/RenderTextFragment.cpp:
  33642. (WebCore::RenderTextFragment::setTextInternal): Set this back as the
  33643. text node’s renderer, as removing the first letter has resets the node’s
  33644. renderer.
  33645. 2010-02-24 Ariya Hidayat <ariya.hidayat@gmail.com>
  33646. Reviewed by Kenneth Rohde Christiansen.
  33647. [Qt] Faster cut-off for rectangle fill without shadow.
  33648. https://bugs.webkit.org/show_bug.cgi?id=35337
  33649. * platform/graphics/qt/GraphicsContextQt.cpp:
  33650. 2010-02-24 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
  33651. Reviewed by nobody, build fix.
  33652. [Qt] Corrects build break of QtLauncher on Windows.
  33653. The VERSION variable was not set anymore while building in trunk.
  33654. * WebCore.pro:
  33655. 2010-02-24 Alexander Pavlov <apavlov@chromium.org>
  33656. Reviewed by Pavel Feldman.
  33657. Web Inspector: Activate/Deactivate breaks does not look consistent with rest of the toolbar.
  33658. Fix style and add the new images to the related file sets.
  33659. https://bugs.webkit.org/show_bug.cgi?id=35307
  33660. * WebCore.gypi:
  33661. * inspector/front-end/Images/deactivateBreakpointsButtonGlyph.png:
  33662. * inspector/front-end/Images/deactivateBreakpointsDisabledButtonGlyph.png:
  33663. * inspector/front-end/WebKit.qrc:
  33664. * inspector/front-end/inspector.css:
  33665. 2010-02-24 Xan Lopez <xlopez@igalia.com>
  33666. Reviewed by Gustavo Noronha.
  33667. Get rid of an extra call to
  33668. setNPWindowIfNeeded. updatePluginWidget already calls this for us
  33669. if needed.
  33670. * plugins/gtk/PluginViewGtk.cpp:
  33671. (WebCore::PluginView::platformStart):
  33672. 2010-02-24 Xan Lopez <xlopez@igalia.com>
  33673. Reviewed by Gustavo Noronha.
  33674. Try to sanitize a bit the geometry management of plugins.
  33675. Stop doing contradictory things in updatePluginWidget (we were at
  33676. the same time pretending the geometry setting was delayed until
  33677. ::paint and setting the geometry not once but twice) and just set
  33678. it any time the windowRect or clipRect for the plugin has changed.
  33679. This is closer to what the Mac port does, and fixes instances of
  33680. the plugins not being drawn until the window is resized or
  33681. scrolled. Other than that all manual and layout tests seems to
  33682. still work.
  33683. * plugins/gtk/PluginViewGtk.cpp:
  33684. (WebCore::PluginView::updatePluginWidget):
  33685. (WebCore::PluginView::setNPWindowIfNeeded):
  33686. 2010-02-23 Geoff Garen <ggaren@apple.com>
  33687. Reviewed by Oliver Hunt.
  33688. Simplify animation lifetime handling. Previously we manually
  33689. determined whether our base element was safe when we unregistered
  33690. our listener, now we simply ensure that the base element itself
  33691. registers and unregisters the animation listener.
  33692. * svg/animation/SVGSMILElement.cpp:
  33693. (WebCore::ConditionEventListener::create):
  33694. (WebCore::ConditionEventListener::disconnectAnimation):
  33695. (WebCore::ConditionEventListener::ConditionEventListener):
  33696. (WebCore::ConditionEventListener::operator==):
  33697. (WebCore::ConditionEventListener::handleEvent):
  33698. (WebCore::SVGSMILElement::eventBaseFor):
  33699. (WebCore::SVGSMILElement::connectConditions):
  33700. (WebCore::SVGSMILElement::disconnectConditions):
  33701. * svg/animation/SVGSMILElement.h:
  33702. 2010-02-23 Dmitry Titov <dimich@chromium.org>
  33703. Reviewed by David Levin.
  33704. Chromium: Use V8::TerminateExecution to actually terminate workers.
  33705. https://bugs.webkit.org/show_bug.cgi?id=35137
  33706. Test: existing fast/workers/stress-js-execution.html which is currently failing
  33707. on Mac and Linux bots for Chromium.
  33708. * bindings/v8/WorkerContextExecutionProxy.cpp:
  33709. (WebCore::WorkerContextExecutionProxy::evaluate):
  33710. * bindings/v8/WorkerScriptController.cpp:
  33711. (WebCore::WorkerScriptController::forbidExecution):
  33712. 2010-02-23 Enrica Casucci <enrica@apple.com>
  33713. Reviewed by Simon Fraser.
  33714. REGRESSION: WebKit crashes when deleting images on blogger.com (34957)
  33715. <rdar://problem/7651935>
  33716. https://bugs.webkit.org/show_bug.cgi?id=34957
  33717. Fixing a regression introduced with revision 53085. Anchor elements should not be considered
  33718. in editable content when calculating the position in the parent before the node.
  33719. Test: editing/execCommand/delete-image-in-anchor.html
  33720. * dom/Position.cpp:
  33721. (WebCore::Position::getInlineBoxAndOffset):
  33722. 2010-02-23 Tony Chang <tony@chromium.org>
  33723. Reviewed by Eric Seidel.
  33724. https://bugs.webkit.org/show_bug.cgi?id=34634
  33725. Pasting a list into the middle of another list item should split the target
  33726. list item into two separate list items. This matches the behavior in other
  33727. browsers.
  33728. Test: editing/pasteboard/paste-list-004.html
  33729. * editing/ReplaceSelectionCommand.cpp:
  33730. (WebCore::ReplaceSelectionCommand::insertAsListItems):
  33731. 2010-02-23 Brady Eidson <beidson@apple.com>
  33732. Reviewed by Tim Hatcher and Pavel Feldman.
  33733. Regression (r55107) - WebInspector docking is busted.
  33734. https://bugs.webkit.org/show_bug.cgi?id=35274
  33735. * inspector/InspectorController.cpp:
  33736. (WebCore::InspectorController::canAttachWindow): Use the minimum height for this calculation,
  33737. not the preferred height.
  33738. (WebCore::InspectorController::attachWindow): attachWindow() shouldn't decide the policy, as it is
  33739. often called partway through the show or dock procedure after some of the initial conditions have
  33740. changed. Let the front-end itself and the InspectorClient's make the policy decision at the start
  33741. of the show/dock operation.
  33742. * inspector/InspectorFrontendHost.cpp:
  33743. (WebCore::InspectorFrontendHost::canAttachWindow):
  33744. * inspector/InspectorFrontendHost.h:
  33745. * inspector/InspectorFrontendHost.idl:
  33746. * inspector/front-end/inspector.js:
  33747. (WebInspector.toggleAttach): Before attaching, ask the front-end-host if attaching is allowed.
  33748. 2010-02-23 Mark Rowe <mrowe@apple.com>
  33749. Reviewed by Geoff Garen.
  33750. <http://webkit.org/b/35287> ImageSourceCG::frameIsCompleteAtIndex returns false for all frames until image has completed loading
  33751. CGImageSourceGetStatusAtIndex claims that all frames of a multi-frame image are incomplete when we've not yet received the
  33752. complete data for an image that is using an incremental data source (<rdar://problem/7679174>). We work around this by
  33753. special-casing all frames except the last in an image and treating them as complete if they are present and reported as
  33754. being incomplete. We do this on the assumption that loading new data can only modify the existing last frame or append new
  33755. frames. The last frame is only treated as being complete if the image source reports it as such. This ensures that it is
  33756. truly the last frame of the image rather than just the last that we currently have data for.
  33757. * platform/graphics/cg/ImageSourceCG.cpp:
  33758. (WebCore::ImageSource::frameIsCompleteAtIndex):
  33759. 2010-02-23 Enrica Casucci <enrica@apple.com>
  33760. Reviewed by Darin Adler.
  33761. Crash in createContextualFragment when inserting a list in a non HTML document.
  33762. <rdar://problem/7666670>
  33763. https://bugs.webkit.org/show_bug.cgi?id=35305
  33764. createFragmentFromMarkup did not handle correctly the case where documentElement is
  33765. not an HTMLElement. The static cast to HTMLElement was causing createContextualFragment to
  33766. crash.
  33767. Test: editing/execCommand/insert-list-xml.xhtml
  33768. * dom/Element.cpp:
  33769. (WebCore::Element::createContextualFragment): Added.
  33770. * dom/Element.h: Added createContextualFragment virtual function.
  33771. * editing/markup.cpp:
  33772. (WebCore::createFragmentFromMarkup): Removed static cast to HTMLElement.
  33773. * html/HTMLElement.cpp:
  33774. (WebCore::HTMLElement::createContextualFragment): Modified to perform only checks
  33775. that are specific for an HTMLElement object. The rest of the logic has been moved to the
  33776. corresponding method in the Element class.
  33777. 2010-02-23 Steve Falkenburg <sfalken@apple.com>
  33778. Reviewed by Adam Roben.
  33779. WebCore should stop throwing away the CGImageSourceRef on Windows to improve GIF performance
  33780. https://bugs.webkit.org/show_bug.cgi?id=35309
  33781. * platform/graphics/cg/ImageSourceCG.cpp:
  33782. (WebCore::ImageSource::clear):
  33783. 2010-02-23 Leandro Pereira <leandro@profusion.mobi>
  33784. Reviewed by Gustavo Noronha Silva.
  33785. Changes references of GOwnPtr to reflect their new place.
  33786. http://webkit.org/b/35084
  33787. * WebCore/platform/KURL.cpp
  33788. * WebCore/platform/TextEncoding.cpp:
  33789. * WebCore/platform/text/gtk/TextBreakIteratorGtk.cpp:
  33790. * WebCore/platform/text/gtk/TextCodecGtk.cpp:
  33791. 2010-02-23 Brady Eidson <beidson@apple.com>
  33792. Reviewed by Alexey Proskuryakov.
  33793. HTTP 307 after a 303 after a POST re-sends POST data from the original request.
  33794. <rdar://problem/7390251> and https://bugs.webkit.org/show_bug.cgi?id=31410
  33795. Test: http/tests/loading/307-after-303-after-post.html
  33796. Remember the last HTTP method send out during a redirect chain for a resource handle:
  33797. * platform/network/ResourceHandle.cpp:
  33798. (WebCore::ResourceHandle::lastHTTPMethod):
  33799. * platform/network/ResourceHandle.h:
  33800. * platform/network/ResourceHandleInternal.h:
  33801. (WebCore::ResourceHandleInternal::ResourceHandleInternal):
  33802. Refer to the last HTTP method used instead of the original method:
  33803. * platform/network/cf/ResourceHandleCFNet.cpp:
  33804. (WebCore::willSendRequest):
  33805. (WebCore::ResourceHandle::willSendRequest):
  33806. * platform/network/mac/ResourceHandleMac.mm:
  33807. (WebCore::ResourceHandle::willSendRequest):
  33808. (-[WebCoreResourceHandleAsDelegate connection:willSendRequest:redirectResponse:]):
  33809. 2010-02-23 Crystal Zhang <haizhang@rim.com>
  33810. Unreviewed build fix.
  33811. Fix build error when enable plugin proxy: 'toRenderEmbeddedObject' identifier not found.
  33812. As RenderEmbeddedObject inherits RenderPartObject and 'toRenderEmbeddedObject' belongs
  33813. to former one.
  33814. * html/HTMLMediaElement.cpp:
  33815. 2010-02-23 Evan Martin <evan@chromium.org>
  33816. Reviewed by Jeremy Orlow.
  33817. [chromium] fix previous SVG-disabling patch
  33818. https://bugs.webkit.org/show_bug.cgi?id=35298
  33819. * WebCore.gypi: rename variable
  33820. * WebCore.gyp/WebCore.gyp: actually use the variable
  33821. 2010-02-23 Michael Lotz <mmlr@mlotz.ch>
  33822. Reviewed by David Levin.
  33823. [Haiku] Fix conversion from BString to String
  33824. https://bugs.webkit.org/show_bug.cgi?id=35082
  33825. The previous patch to this file was broken (sorry). First of all,
  33826. the conversion from UTF8 was accidentally removed. Second, for
  33827. empty strings, we need to point the implementation at StringImpl::empty().
  33828. Covered by existing tests.
  33829. * platform/text/haiku/StringHaiku.cpp:
  33830. (WebCore::String::String):
  33831. 2010-02-23 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
  33832. Reviewed by Eric Carlson.
  33833. [Qt] Prevent the media backend from handling non-audio or -video mime types
  33834. * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
  33835. 2010-02-23 Evan Martin <evan@chromium.org>
  33836. Reviewed by Jeremy Orlow.
  33837. [chromium] Allow building without SVG
  33838. https://bugs.webkit.org/show_bug.cgi?id=31522
  33839. * WebCore.gyp/WebCore.gyp, WebCore.gypi: test enable_svg flag.
  33840. * bindings/v8/custom/V8SVGDocumentCustom.cpp,
  33841. bindings/v8/custom/V8SVGPathSegCustom.cpp: test ENABLE(SVG).
  33842. 2010-02-23 Leandro Pereira <leandro@profusion.mobi>
  33843. Reviewed by Gustavo Noronha Silva.
  33844. Fixes references to GOwnPtr and GRefPtr so the GTK+ port builds
  33845. again.
  33846. http://webkit.org/b/35084
  33847. * WebCore/platform/gtk/DataObjectGtk.h:
  33848. * WebCore/platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
  33849. 2010-02-23 Ariya Hidayat <ariya.hidayat@gmail.com>
  33850. Reviewed by Kenneth Rohde Christiansen.
  33851. [Qt] Faster cut-off for rectangle drawing without shadow.
  33852. https://bugs.webkit.org/show_bug.cgi?id=35267
  33853. * platform/graphics/qt/GraphicsContextQt.cpp:
  33854. (WebCore::GraphicsContext::drawRect):
  33855. 2010-02-23 Steve Block <steveblock@google.com>
  33856. Reviewed by Jeremy Orlow.
  33857. Removes redundant Settings::setGeolocationEnabled and Settings::geolocationEnabled
  33858. https://bugs.webkit.org/show_bug.cgi?id=35242
  33859. No new tests, removing dead code only.
  33860. * page/Settings.cpp:
  33861. * page/Settings.h:
  33862. 2010-02-23 Ben Murdoch <benm@google.com>
  33863. Reviewed by Eric Seidel.
  33864. pageX/Y co-ordinates of TouchEvent should be 0,0
  33865. https://bugs.webkit.org/show_bug.cgi?id=35239
  33866. The co-ordinates attached to a touch event are not used for tracking touch motion, rather the co-ordinates attached to Touches within the touch event should be used. Set the co-ordinates on the event itself to 0 to avoid confusion and match observed iPhone behavior.
  33867. * page/EventHandler.cpp:
  33868. (WebCore::EventHandler::handleTouchEvent): Set the pageX/Y and screenX/Y co-ordinates attached to the touch event to 0,0 to match observed behavior on the iPhone.
  33869. * page/EventHandler.h: Remove now unused members m_firstTouchScreenPos and m_firstTouchPagePos.
  33870. 2010-02-23 Stephan Aßmus <superstippi@gmx.de>
  33871. Reviewed by Eric Seidel.
  33872. [Haiku] Various improvements to EventHandlerHaiku.
  33873. https://bugs.webkit.org/show_bug.cgi?id=34685
  33874. Covered by existing tests.
  33875. Fix the build by not including PlatformScrollBar.h.
  33876. * page/haiku/EventHandlerHaiku.cpp:
  33877. (WebCore::isKeyboardOptionTab):
  33878. Use the correct keycode for tab keys.
  33879. (WebCore::EventHandler::focusDocumentView):
  33880. Use proper locking. In any case, Haiku doesn't append platform
  33881. widgets to WebCore widgets. But if it did, this implementation
  33882. would be correct.
  33883. (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
  33884. Implemented.
  33885. (WebCore::EventHandler::eventActivatedView):
  33886. Removed notImplemented() and added note.
  33887. (WebCore::EventHandler::passMousePressEventToSubframe):
  33888. Implemented.
  33889. (WebCore::EventHandler::passMouseMoveEventToSubframe):
  33890. Implemented.
  33891. (WebCore::EventHandler::passMouseReleaseEventToSubframe):
  33892. Implemented.
  33893. (WebCore::EventHandler::accessKeyModifiers):
  33894. Added note.
  33895. 2010-02-23 Tony Chang <tony@chromium.org>
  33896. Not reviewed.
  33897. Revert r55135 because the layout test is failing on all the bots.
  33898. https://bugs.webkit.org/show_bug.cgi?id=34634
  33899. * editing/ReplaceSelectionCommand.cpp:
  33900. (WebCore::ReplaceSelectionCommand::insertAsListItems):
  33901. 2010-02-17 Steve Block <steveblock@google.com>
  33902. Reviewed by Ariya Hidayat.
  33903. Adds cache to store Geolocation positions between browser sessions.
  33904. https://bugs.webkit.org/show_bug.cgi?id=34084
  33905. This is required to fully implement the Geolocation maximumAge property.
  33906. See Bug 30676.
  33907. No new tests, will add tests for maximumAge once complete.
  33908. * Android.mk: Modified. Added GeolocationPositionCache.cpp
  33909. * GNUmakefile.am: Modified. Added GeolocationPositionCache.[cpp|h]
  33910. * WebCore.gypi: Modified. Added GeolocationPositionCache.[cpp|h]
  33911. * WebCore.pro: Modified. Added GeolocationPositionCache.[cpp|h]
  33912. * WebCore.vcproj/WebCore.vcproj: Modified. Added GeolocationPositionCache.[cpp|h]
  33913. * WebCore.xcodeproj/project.pbxproj: Modified. Added GeolocationPositionCache.[cpp|h]
  33914. * page/GeolocationPositionCache.cpp: Added.
  33915. (WebCore::GeolocationPositionCache::GeolocationPositionCache):
  33916. (WebCore::GeolocationPositionCache::~GeolocationPositionCache):
  33917. (WebCore::GeolocationPositionCache::setCachedPosition):
  33918. (WebCore::GeolocationPositionCache::cachedPosition):
  33919. (WebCore::GeolocationPositionCache::setDatabasePath):
  33920. (WebCore::GeolocationPositionCache::readFromDB):
  33921. (WebCore::GeolocationPositionCache::writeToDB):
  33922. * page/GeolocationPositionCache.h: Added.
  33923. 2010-02-23 Yuta Kitamura <yutak@chromium.org>
  33924. Reviewed by Dan Bernstein.
  33925. Fix alignment of vertical-align: text-bottom inside an inline-block.
  33926. This patch is based on a fix provided by Takahito Hirano.
  33927. display: inline-block + vertical-align: text-bottom causes misalignment.
  33928. https://bugs.webkit.org/show_bug.cgi?id=30846
  33929. Test: fast/inline-block/inline-block-vertical-align-2.html
  33930. * rendering/RenderBoxModelObject.cpp:
  33931. (WebCore::RenderBoxModelObject::verticalPosition): Fixed vpos calculation.
  33932. We cannot cut corners for inline blocks, since they may have their own
  33933. text metrics.
  33934. 2010-02-23 Steve Block <steveblock@google.com>
  33935. Reviewed by David Levin.
  33936. Sets default values of V8 runtime enabler flags to match behavior with JSC
  33937. https://bugs.webkit.org/show_bug.cgi?id=35095
  33938. No new tests, modifies a Chromium feature only.
  33939. * bindings/generic/RuntimeEnabledFeatures.cpp: Modified. Sets appcache and geolocation flag defaults to 'on'
  33940. * storage/Database.cpp: Modified. Sets database flag default to 'on'.
  33941. 2010-02-23 Stephan Aßmus <superstippi@gmx.de>
  33942. Reviewed by Eric Seidel.
  33943. [Haiku] Fix various issues in keyboard event generation.
  33944. https://bugs.webkit.org/show_bug.cgi?id=34685
  33945. Covered by existing tests.
  33946. Fixed backspace keycode.
  33947. Fixed using the appropriate fields from the Haiku event for mapping
  33948. to the VK_* codes and added mapping a great deal more codes.
  33949. Added extraction of modifier key flags.
  33950. Completed implementation of disambiguateKeyDownEvent()
  33951. Implemented currentCapsLockState().
  33952. * platform/haiku/PlatformKeyboardEventHaiku.cpp:
  33953. (WebCore::keyIdentifierForHaikuKeyCode):
  33954. (WebCore::windowsKeyCodeForKeyEvent):
  33955. (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
  33956. (WebCore::PlatformKeyboardEvent::disambiguateKeyDownEvent):
  33957. (WebCore::PlatformKeyboardEvent::currentCapsLockState):
  33958. 2010-02-23 Steve Block <steveblock@google.com>
  33959. Reviewed by Darin Adler.
  33960. Adds Client::cancelGeolocationPermissionRequestForFrame and ChromeClient::cancelGeolocationPermissionRequestForFrame
  33961. https://bugs.webkit.org/show_bug.cgi?id=34962
  33962. These methods are required so that a Geolocation object can cancel an
  33963. asynchronous permission request. This allows the chrome client to cancel
  33964. any UI it is showing for the permission request.
  33965. No new tests, as this is for the purposes of browser UI only.
  33966. * loader/EmptyClients.h: Modified
  33967. (WebCore::EmptyChromeClient::cancelGeolocationPermissionRequestForFrame): Added
  33968. * page/Chrome.cpp: Modified.
  33969. (WebCore::Chrome::cancelGeolocationPermissionRequestForFrame): Added
  33970. * page/Chrome.h: Modified.
  33971. * page/ChromeClient.h: Modified.
  33972. (WebCore::ChromeClient::cancelGeolocationPermissionRequestForFrame): Added
  33973. * page/Geolocation.cpp: Modified.
  33974. (WebCore::Geolocation::disconnectFrame): Modified. Call cancelGeolocationPermissionRequestForFrame
  33975. 2010-02-23 Tony Chang <tony@chromium.org>
  33976. Reviewed by Eric Seidel.
  33977. https://bugs.webkit.org/show_bug.cgi?id=34634
  33978. Pasting a list into the middle of another list item should split the target
  33979. list item into two separate list items. This matches the behavior in other
  33980. browsers.
  33981. Test: editing/pasteboard/paste-list-004.html
  33982. * editing/ReplaceSelectionCommand.cpp:
  33983. (WebCore::ReplaceSelectionCommand::insertAsListItems):
  33984. 2010-02-23 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
  33985. Reviewed by Laszlo Gombos.
  33986. [Qt] Correct build problems while building QtWebKit inside Qt.
  33987. https://bugs.webkit.org/show_bug.cgi?id=34975
  33988. * WebCore.pro: Change the condition !standalone_package to !QTDIR_build
  33989. 2010-02-23 Noam Rosenthal <noam.rosenthal@nokia.com>
  33990. Reviewed by Ariya Hidayat.
  33991. [Qt] Connect video with accelerated compositing
  33992. https://bugs.webkit.org/show_bug.cgi?id=35276
  33993. MediaControlPrivate and GraphicsLayer are patched together via
  33994. a shared PlatformLayer (QGraphicsItem). This patch makes sure that the
  33995. QGraphicsVideoItem from MediaControl becomes part of the scene
  33996. associsated with GraphicsLayer
  33997. Test: http://double.co.nz/video_test/test1.html with AC turned on
  33998. * platform/graphics/qt/GraphicsLayerQt.cpp:
  33999. (WebCore::GraphicsLayerQtImpl::): mediaLayer member
  34000. (WebCore::GraphicsLayerQtImpl::opaqueArea): video is opaque
  34001. (WebCore::GraphicsLayerQtImpl::paint): don't paint video
  34002. (WebCore::GraphicsLayerQtImpl::flushChanges): flush mediaLayer
  34003. (WebCore::GraphicsLayerQt::setContentsToMedia): notify
  34004. * platform/graphics/qt/GraphicsLayerQt.h: reimp setContentsToMedia
  34005. * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
  34006. (WebCore::MediaPlayerPrivate::MediaPlayerPrivate): m_compositing
  34007. (WebCore::MediaPlayerPrivate::paint): don't paint if compositing
  34008. (WebCore::MediaPlayerPrivate::acceleratedRenderingStateChanged):
  34009. reimp from MediaPlayerPrivateInterface to support AC
  34010. (WebCore::MediaPlayerPrivate::platformLayer): ditto
  34011. * platform/graphics/qt/MediaPlayerPrivateQt.h:
  34012. (WebCore::MediaPlayerPrivate::supportsAcceleratedRendering): ditto
  34013. 2010-02-23 Stephan Aßmus <superstippi@gmx.de>
  34014. Reviewed by Eric Seidel.
  34015. Fix various issues in PlatformWheelEventHaiku.
  34016. https://bugs.webkit.org/show_bug.cgi?id=34685
  34017. Covered by existing tests.
  34018. Fixed coding style violations.
  34019. Synced extracting the correct coordinates with Haiku WebKit implementation.
  34020. Added extracting modifier key flags.
  34021. * platform/haiku/PlatformWheelEventHaiku.cpp:
  34022. (WebCore::PlatformWheelEvent::PlatformWheelEvent):
  34023. 2010-02-23 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  34024. Reviewed by Eric Seidel.
  34025. Build fix for PluginView
  34026. https://bugs.webkit.org/show_bug.cgi?id=35230
  34027. No new tests, build fix only.
  34028. * plugins/PluginView.cpp:
  34029. * plugins/PluginView.h:
  34030. * plugins/PluginViewNone.cpp:
  34031. 2010-02-23 Kwang Yul Seo <skyul@company100.net>
  34032. Reviewed by Eric Seidel.
  34033. [BREWMP] Port ScriptController::createScriptInstanceForWidget
  34034. https://bugs.webkit.org/show_bug.cgi?id=34413
  34035. * bindings/js/ScriptControllerBrew.cpp: Added.
  34036. (WebCore::ScriptController::createScriptInstanceForWidget):
  34037. 2010-02-23 José Millán Soto <jmillan@igalia.com>
  34038. Reviewed by Eric Seidel.
  34039. [Gtk] Webkit crashes when using orca
  34040. https://bugs.webkit.org/show_bug.cgi?id=35169
  34041. Made webkit_accessible_text_get_caret_offset check if end selection
  34042. node is null.
  34043. * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
  34044. (webkit_accessible_text_get_caret_offset):
  34045. 2010-02-22 Stephan Aßmus <superstippi@gmx.de>
  34046. Reviewed by Eric Seidel.
  34047. [Haiku] Implemented PopupMenu support.
  34048. https://bugs.webkit.org/show_bug.cgi?id=35078
  34049. Covered by existing tests.
  34050. The implementation is currently very simple: Added a PopupMenuHaiku
  34051. class that derives from a native BPopUpMenu. It attaches a BHandler
  34052. derivative to the BApplication (WebCore main thread) which receives
  34053. the item invokation and menu hidden events and informs the PopupMenuClient
  34054. accordingly.
  34055. * platform/PopupMenu.h:
  34056. Changed type of m_menu for Haiku.
  34057. * platform/haiku/PopupMenuHaiku.cpp:
  34058. (WebCore::PopupMenuHandler::PopupMenuHandler):
  34059. (WebCore::PopupMenuHandler::MessageReceived):
  34060. (WebCore::PopupMenuHaiku::PopupMenuHaiku):
  34061. (WebCore::PopupMenuHaiku::~PopupMenuHaiku):
  34062. (WebCore::PopupMenuHaiku::show):
  34063. (WebCore::PopupMenuHaiku::hide):
  34064. (WebCore::PopupMenuHaiku::Hide):
  34065. (WebCore::PopupMenu::PopupMenu):
  34066. (WebCore::PopupMenu::~PopupMenu):
  34067. Removed bogus code.
  34068. (WebCore::PopupMenu::show):
  34069. Implemented using new PopupMenuHaiku class.
  34070. (WebCore::PopupMenu::hide):
  34071. Implemented using new PopupMenuHaiku class.
  34072. (WebCore::PopupMenu::updateFromElement):
  34073. Implemented.
  34074. (WebCore::PopupMenu::itemWritingDirectionIsNatural):
  34075. Implemented according to Gtk port.
  34076. 2010-02-22 Stephan Aßmus <superstippi@gmx.de>
  34077. Reviewed by Eric Seidel.
  34078. Fix various issues in PlatformMouseEventHaiku.
  34079. https://bugs.webkit.org/show_bug.cgi?id=34685
  34080. Covered by existing tests.
  34081. Mapping Haiku button constants (bit field) to WebCore buttons was broken.
  34082. Extracting event time was broken (supposed to be in seconds).
  34083. Wrong coordinate was being extracted, needs to be content local.
  34084. Added extracting modifier key flags.
  34085. * platform/haiku/PlatformMouseEventHaiku.cpp:
  34086. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  34087. 2010-02-22 Stephan Aßmus <superstippi@gmx.de>
  34088. Reviewed by Eric Seidel.
  34089. [Haiku] Implement creating and filling platform gradients.
  34090. https://bugs.webkit.org/show_bug.cgi?id=34683
  34091. Covered by existing tests.
  34092. * platform/graphics/Gradient.h:
  34093. Typedef PlatformGradient to BGradient
  34094. * platform/graphics/haiku/GradientHaiku.cpp:
  34095. (WebCore::Gradient::platformDestroy):
  34096. Delete the cached BGradient object.
  34097. (WebCore::Gradient::platformGradient):
  34098. Create a BGradient object according to the type of Gradient.
  34099. Return the cached object.
  34100. (WebCore::Gradient::fill):
  34101. use BView API to fill with the platform gradient.
  34102. 2010-02-22 Stephan Aßmus <superstippi@gmx.de>
  34103. Reviewed by Eric Seidel.
  34104. Build fix for debug builds of GlyphPageTreeNode.cpp
  34105. https://bugs.webkit.org/show_bug.cgi?id=34528
  34106. Covered by existing tests.
  34107. * platform/graphics/GlyphPageTreeNode.cpp:
  34108. include <stdio.h> since printf() is used if NDEBUG is not defined.
  34109. 2010-02-22 Nate Chapin <japhet@chromium.org>
  34110. Unreviewed, Chromium build fix.
  34111. Add special case in CodeGeneratorV8.pm for named getters for html plugin-related elements.
  34112. CodeGeneratorV8.pm was relying on HasOverridingNameGetter to hint
  34113. that a custom named getter was needed. That hint was removed in
  34114. http://trac.webkit.org/changeset/55104.
  34115. * bindings/scripts/CodeGeneratorV8.pm:
  34116. 2010-02-22 Alexey Proskuryakov <ap@apple.com>
  34117. Rubber-stamped by Geoff Garen.
  34118. Rename RuntimeObjectImp to RuntimeObject.
  34119. * WebCore.PluginHostProcess.exp:
  34120. * bindings/js/JSPluginElementFunctions.cpp:
  34121. (WebCore::getRuntimeObject):
  34122. (WebCore::runtimeObjectPropertyGetter):
  34123. (WebCore::runtimeObjectCustomGetOwnPropertySlot):
  34124. (WebCore::runtimeObjectCustomGetOwnPropertyDescriptor):
  34125. (WebCore::runtimeObjectCustomPut):
  34126. * bindings/objc/WebScriptObject.mm:
  34127. (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
  34128. * bridge/c/c_utility.cpp:
  34129. (JSC::Bindings::convertValueToNPVariant):
  34130. * bridge/jni/jni_jsobject.mm:
  34131. (JavaJSObject::convertValueToJObject):
  34132. * bridge/jni/jsc/JNIUtilityPrivate.cpp:
  34133. (JSC::Bindings::convertValueToJValue):
  34134. * bridge/jsc/BridgeJSC.cpp:
  34135. (JSC::Bindings::Instance::createRuntimeObject):
  34136. (JSC::Bindings::Instance::newRuntimeObject):
  34137. * bridge/jsc/BridgeJSC.h:
  34138. * bridge/objc/objc_runtime.mm:
  34139. (JSC::Bindings::callObjCFallbackObject):
  34140. * bridge/qt/qt_instance.cpp:
  34141. (JSC::Bindings::QtRuntimeObject::markChildren):
  34142. (JSC::Bindings::):
  34143. (JSC::Bindings::QtRuntimeObject::QtRuntimeObject):
  34144. (JSC::Bindings::QtInstance::getInstance):
  34145. (JSC::Bindings::QtInstance::newRuntimeObject):
  34146. * bridge/qt/qt_instance.h:
  34147. * bridge/qt/qt_pixmapruntime.cpp:
  34148. (JSC::Bindings::QtPixmapRuntimeObject::QtPixmapRuntimeObject):
  34149. (JSC::Bindings::):
  34150. (JSC::Bindings::QtPixmapInstance::variantFromObject):
  34151. (JSC::Bindings::QtPixmapInstance::createRuntimeObject):
  34152. * bridge/qt/qt_runtime.cpp:
  34153. (JSC::Bindings::valueRealType):
  34154. * bridge/runtime_method.cpp:
  34155. (JSC::callRuntimeMethod):
  34156. * bridge/runtime_object.cpp:
  34157. (JSC::RuntimeObject::RuntimeObject):
  34158. (JSC::RuntimeObject::~RuntimeObject):
  34159. (JSC::RuntimeObject::invalidate):
  34160. (JSC::RuntimeObject::fallbackObjectGetter):
  34161. (JSC::RuntimeObject::fieldGetter):
  34162. (JSC::RuntimeObject::methodGetter):
  34163. (JSC::RuntimeObject::getOwnPropertySlot):
  34164. (JSC::RuntimeObject::getOwnPropertyDescriptor):
  34165. (JSC::RuntimeObject::put):
  34166. (JSC::RuntimeObject::deleteProperty):
  34167. (JSC::RuntimeObject::defaultValue):
  34168. (JSC::callRuntimeObject):
  34169. (JSC::RuntimeObject::getCallData):
  34170. (JSC::callRuntimeConstructor):
  34171. (JSC::RuntimeObject::getConstructData):
  34172. (JSC::RuntimeObject::getOwnPropertyNames):
  34173. (JSC::RuntimeObject::throwInvalidAccessError):
  34174. * bridge/runtime_object.h:
  34175. * bridge/runtime_root.cpp:
  34176. (JSC::Bindings::RootObject::invalidate):
  34177. (JSC::Bindings::RootObject::addRuntimeObject):
  34178. (JSC::Bindings::RootObject::removeRuntimeObject):
  34179. * bridge/runtime_root.h:
  34180. 2010-02-19 Peter Kasting <pkasting@google.com>
  34181. Reviewed by Eric Seidel.
  34182. Avoid recursion when trying to get the size of a PNG; it's unnecessary
  34183. and in the worst case can lead to heap corruption.
  34184. https://bugs.webkit.org/show_bug.cgi?id=35167
  34185. Test: fast/images/bad-png.html
  34186. * platform/image-decoders/png/PNGImageDecoder.cpp:
  34187. (WebCore::PNGImageReader::decode):
  34188. 2010-02-22 Brady Eidson <beidson@apple.com>
  34189. Reviewed by Tim Hatcher.
  34190. Disable WebView docking to views that are too small.
  34191. <rdar://problem/7248409> and https://bugs.webkit.org/show_bug.cgi?id=35254
  34192. * WebCore.base.exp:
  34193. * inspector/InspectorController.cpp:
  34194. (WebCore::InspectorController::canAttachWindow): Provide a utility for WebKits to make a showWindow()
  34195. decision based on if attachment would be allowed or not.
  34196. (WebCore::InspectorController::attachWindow): Don't attach if the view is too small to attach to.
  34197. * inspector/InspectorController.h:
  34198. 2010-02-22 Alexey Proskuryakov <ap@apple.com>
  34199. Build fix.
  34200. * WebCore.base.exp: Export Instance::newRuntimeObject, it's virtual!
  34201. 2010-02-22 Alexey Proskuryakov <ap@apple.com>
  34202. Undo a small part of the previous commit.
  34203. * bridge/runtime_method.cpp: (JSC::callRuntimeMethod): Let's keep the instance local
  34204. variable as RefPtr for safety.
  34205. 2010-02-22 Alexey Proskuryakov <ap@apple.com>
  34206. Reviewed by Darin Adler.
  34207. https://bugs.webkit.org/show_bug.cgi?id=35260
  34208. Eliminate __apple_runtime_object
  34209. No change in functionality, so no tests.
  34210. * WebCore.base.exp: Don't export Instance::newRuntimeObject, WebKit doesn't need it.
  34211. * bindings/js/JSHTMLAppletElementCustom.cpp:
  34212. * bindings/js/JSHTMLEmbedElementCustom.cpp:
  34213. * bindings/js/JSHTMLObjectElementCustom.cpp:
  34214. * html/HTMLAppletElement.idl:
  34215. * html/HTMLEmbedElement.idl:
  34216. * html/HTMLObjectElement.idl:
  34217. These objects no longer need overriding name getters, as they no longer intercept the
  34218. __apple_runtime_object property.
  34219. * bindings/js/JSPluginElementFunctions.cpp:
  34220. (WebCore::pluginInstance): This is no longer static. It was used for callPlugin() in
  34221. this file, and now it's also used elsewhere when calling plug-in methods.
  34222. (WebCore::runtimeObjectGetter): Removed. This function was only used by the intercepting
  34223. name getters.
  34224. * bindings/js/JSPluginElementFunctions.h: Export pluginInstance().
  34225. * bindings/objc/WebScriptObject.mm:
  34226. (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
  34227. * bridge/runtime_method.cpp:
  34228. (JSC::callRuntimeMethod):
  34229. Take plug-in element's instance directly, without relying on fake attribute lookup.
  34230. One change resulting from this is that RuntimeObjectImp may not be created in some cases -
  34231. this code only needs an instance, but the old code had to pass the instance wrapped into
  34232. RuntimeObjectImp.
  34233. 2010-02-22 John Sullivan <sullivan@apple.com>
  34234. Reviewed by Tim Hatcher.
  34235. https://bugs.webkit.org/show_bug.cgi?id=35256
  34236. HTMLSelectElement::setSelectedIndexByUser() can trigger unnecessary JS when there is no change to the selected index
  34237. No new tests because this code path is not used for JS-initiated changes.
  34238. * html/HTMLSelectElement.cpp:
  34239. (WebCore::HTMLSelectElement::setSelectedIndexByUser):
  34240. Bail out if the to-be-selected index matches the already-selected index.
  34241. 2010-02-22 Enrica Casucci <enrica@apple.com>
  34242. Reviewed by Dan Bernstein.
  34243. Reproducible crash in WebCore::nextLinePosition on Tweeteorites.com
  34244. <rdar://problem/7615758>
  34245. https://bugs.webkit.org/show_bug.cgi?id=35060
  34246. Test: editing/selection/extend-byline-withfloat.html
  34247. * editing/visible_units.cpp:
  34248. (WebCore::previousLinePosition): Skip elements with zero height.
  34249. (WebCore::nextLinePosition): Skip elements with zero height.
  34250. 2010-02-22 Nate Chapin <japhet@chromium.org>
  34251. Unreviewed, Chromium build fix.
  34252. * bindings/scripts/CodeGeneratorV8.pm: Compile break due to bad patch merge.
  34253. 2010-02-22 Nate Chapin <japhet@chromium.org>
  34254. Reviewed by Dimitri Glazkov.
  34255. [V8] Streamline V8 event listener code. Merge all the variants of
  34256. V8DOMWrapper::getEventListner() into a single version and generate
  34257. addEventListener() and removeEventListener() bindings for all objects
  34258. except DOMWindow.
  34259. https://bugs.webkit.org/show_bug.cgi?id=35245
  34260. * Android.v8bindings.mk:
  34261. * WebCore.gypi:
  34262. * bindings/scripts/CodeGeneratorV8.pm:
  34263. * bindings/v8/V8DOMWrapper.cpp:
  34264. (WebCore::V8DOMWrapper::getEventListener):
  34265. * bindings/v8/V8DOMWrapper.h:
  34266. * bindings/v8/WorkerContextExecutionProxy.cpp:
  34267. * bindings/v8/WorkerContextExecutionProxy.h:
  34268. * bindings/v8/custom/V8AbstractWorkerCustom.cpp: Removed.
  34269. * bindings/v8/custom/V8DOMApplicationCacheCustom.cpp: Removed.
  34270. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  34271. (WebCore::V8DOMWindow::addEventListenerCallback):
  34272. (WebCore::V8DOMWindow::removeEventListenerCallback):
  34273. * bindings/v8/custom/V8EventSourceCustom.cpp: Removed.
  34274. * bindings/v8/custom/V8MessagePortCustom.cpp:
  34275. * bindings/v8/custom/V8NodeCustom.cpp:
  34276. * bindings/v8/custom/V8NotificationCenterCustom.cpp:
  34277. * bindings/v8/custom/V8SVGElementInstanceCustom.cpp: Removed.
  34278. * bindings/v8/custom/V8WebSocketCustom.cpp:
  34279. * bindings/v8/custom/V8WorkerContextCustom.cpp:
  34280. * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
  34281. * bindings/v8/custom/V8XMLHttpRequestUploadCustom.cpp:
  34282. * dom/MessagePort.idl:
  34283. * dom/Node.idl:
  34284. * loader/appcache/DOMApplicationCache.idl:
  34285. * notifications/Notification.idl:
  34286. * page/EventSource.idl:
  34287. * svg/SVGElementInstance.idl:
  34288. * websockets/WebSocket.idl:
  34289. * workers/AbstractWorker.idl:
  34290. * workers/WorkerContext.idl:
  34291. * xml/XMLHttpRequest.idl:
  34292. * xml/XMLHttpRequestUpload.idl:
  34293. 2010-02-22 Chris Fleizach <cfleizach@apple.com>
  34294. Reviewed by Beth Dakin.
  34295. AX: AXFocused is not writable like it should be on nodes
  34296. https://bugs.webkit.org/show_bug.cgi?id=35186
  34297. Test: platform/mac/accessibility/element-focus.html
  34298. * accessibility/AccessibilityRenderObject.cpp:
  34299. (WebCore::AccessibilityRenderObject::canSetFocusAttribute):
  34300. 2010-02-22 Simon Fraser <simon.fraser@apple.com>
  34301. Reviewed by Dan Bernstein, Darin Adler.
  34302. Remove addScrolledContentOffset/subtractScrolledContentOffset
  34303. https://bugs.webkit.org/show_bug.cgi?id=35225
  34304. Remove RenderLayer's addScrolledContentOffset() and subtractScrolledContentOffset()
  34305. methods, and instead use the existing scrolledContentOffset(), and use
  34306. IntSize and IntPoint instead of lots of x, y variables.
  34307. Added new IntPoint toPoint(const IntSize&) method as a convenience to convert a size to a point,
  34308. which is needed in a few places.
  34309. * page/EventHandler.cpp:
  34310. (WebCore::EventHandler::handleDrag): Use the new toPoint() convenience.
  34311. * platform/graphics/IntPoint.h:
  34312. (WebCore::toPoint): New convenience method to convert an IntSize to an IntPoint.
  34313. * rendering/LayoutState.cpp:
  34314. (WebCore::LayoutState::LayoutState):
  34315. * rendering/RenderBlock.cpp:
  34316. (WebCore::RenderBlock::layoutBlock):
  34317. (WebCore::RenderBlock::paintObject):
  34318. (WebCore::RenderBlock::selectionGapRectsForRepaint):
  34319. (WebCore::RenderBlock::nodeAtPoint):
  34320. (WebCore::RenderBlock::offsetForContents):
  34321. * rendering/RenderBoxModelObject.cpp:
  34322. (WebCore::RenderBoxModelObject::paintFillLayerExtended):
  34323. * rendering/RenderInline.cpp:
  34324. (WebCore::RenderInline::clippedOverflowRectForRepaint):
  34325. * rendering/RenderLayer.cpp:
  34326. (WebCore::RenderLayer::updateLayerPosition):
  34327. * rendering/RenderLayer.h:
  34328. (WebCore::RenderLayer::size):
  34329. * rendering/RenderObject.cpp:
  34330. (WebCore::RenderObject::computeRectForRepaint):
  34331. * rendering/TextControlInnerElements.cpp:
  34332. (WebCore::RenderTextControlInnerBlock::positionForPoint):
  34333. 2009-02-22 Adam Langley <agl@google.com>
  34334. Reviewed by Darin Fisher.
  34335. fontconfig on Linux can change the render preferences on a per strike
  34336. basis (a strike a combination of face and size). Because of this, we
  34337. need to query fontconfig each time a new FontPlatformData is created
  34338. for a new size.
  34339. This patch adds support for querying this via ChromiumBridge.
  34340. https://bugs.webkit.org/show_bug.cgi?id=33065
  34341. * platform/chromium/ChromiumBridge.h: add getRenderStyleForStrike
  34342. * platform/graphics/chromium/FontCacheLinux.cpp:
  34343. (WebCore::FontCache::createFontPlatformData):
  34344. * platform/graphics/chromium/FontCustomPlatformData.cpp:
  34345. (WebCore::FontCustomPlatformData::fontPlatformData):
  34346. * platform/graphics/chromium/FontPlatformDataLinux.cpp:
  34347. (WebCore::FontPlatformData::FontPlatformData):
  34348. (WebCore::FontPlatformData::operator=):
  34349. (WebCore::FontPlatformData::setupPaint):
  34350. (WebCore::FontPlatformData::queryStyle):
  34351. add code to query fontconfig via ChromiumBridge
  34352. * platform/graphics/chromium/FontPlatformDataLinux.h:
  34353. 2010-02-22 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  34354. Build fix for make distcheck.
  34355. * GNUmakefile.am:
  34356. 2010-02-22 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  34357. Reviewed by Kenneth Rohde Christiansen.
  34358. Fix compiler warning "suggest parentheses around"
  34359. https://bugs.webkit.org/show_bug.cgi?id=35197
  34360. No new tests as there is no new functionality.
  34361. * wml/WMLVariables.cpp:
  34362. (WebCore::substituteVariableReferences):
  34363. 2010-02-22 Gustavo Noronha Silva <gns@gnome.org>
  34364. Reviewed by Xan Lopez.
  34365. [Soup] loses information related to message flags when converting from/to Resource{Request,Response}
  34366. https://bugs.webkit.org/show_bug.cgi?id=35093
  34367. Store message flags in WebCore objects, and set them on the
  34368. SoupMessage, when creating one from them.
  34369. No behaviour change.
  34370. * platform/network/soup/ResourceHandleSoup.cpp:
  34371. (WebCore::fillResponseFromMessage):
  34372. * platform/network/soup/ResourceRequest.h:
  34373. (WebCore::ResourceRequest::soupMessageFlags):
  34374. (WebCore::ResourceRequest::setSoupMessageFlags):
  34375. * platform/network/soup/ResourceRequestSoup.cpp:
  34376. (WebCore::ResourceRequest::toSoupMessage):
  34377. (WebCore::ResourceRequest::updateFromSoupMessage):
  34378. * platform/network/soup/ResourceResponse.h:
  34379. (WebCore::ResourceResponse::soupMessageFlags):
  34380. (WebCore::ResourceResponse::setSoupMessageFlags):
  34381. * platform/network/soup/ResourceResponseSoup.cpp:
  34382. (WebCore::ResourceResponse::toSoupMessage):
  34383. (WebCore::ResourceResponse::updateFromSoupMessage):
  34384. 2010-02-22 Steve Block <steveblock@google.com>
  34385. Reviewed by Nate Chapin.
  34386. Shared worker types used in globalObjectPrototypeIsDOMWindow are not properly guarded
  34387. https://bugs.webkit.org/show_bug.cgi?id=35238
  34388. No new tests, build fix only.
  34389. * bindings/v8/V8DOMWrapper.cpp:
  34390. (WebCore::globalObjectPrototypeIsDOMWindow):
  34391. 2010-02-22 Steve Block <steveblock@google.com>
  34392. Reviewed by Simon Fraser.
  34393. Simplifies calculation of the transform in RenderLayer::paintLayer
  34394. https://bugs.webkit.org/show_bug.cgi?id=35101
  34395. No new tests, optimization only.
  34396. * rendering/RenderLayer.cpp:
  34397. (WebCore::RenderLayer::paintLayer):
  34398. 2010-02-22 Nicholas Young <nicholas.young@nokia.com>
  34399. Reviewed by Tor Arne Vestbø.
  34400. [Qt] Switching from Phonon to QtMultimedia Backend for Qt 4.7
  34401. https://bugs.webkit.org/show_bug.cgi?id=34631
  34402. No new tests. This patch only affects multimedia backend.
  34403. * WebCore.pro: Build depends on Qt version.
  34404. * css/mediaControlsQt.css: Updated media controls.
  34405. * platform/graphics/MediaPlayer.cpp: Different backend included depending on Qt version.
  34406. * platform/graphics/qt/MediaPlayerPrivateQt.cpp: Added new QtMultimedia Backend.
  34407. (WebCore::MediaPlayerPrivate::create):
  34408. (WebCore::MediaPlayerPrivate::registerMediaEngine):
  34409. (WebCore::MediaPlayerPrivate::getSupportedTypes):
  34410. (WebCore::MediaPlayerPrivate::supportsType):
  34411. (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
  34412. (WebCore::MediaPlayerPrivate::~MediaPlayerPrivate):
  34413. (WebCore::MediaPlayerPrivate::hasVideo):
  34414. (WebCore::MediaPlayerPrivate::hasAudio):
  34415. (WebCore::MediaPlayerPrivate::load):
  34416. (WebCore::MediaPlayerPrivate::cancelLoad):
  34417. (WebCore::MediaPlayerPrivate::play):
  34418. (WebCore::MediaPlayerPrivate::pause):
  34419. (WebCore::MediaPlayerPrivate::paused):
  34420. (WebCore::MediaPlayerPrivate::seek):
  34421. (WebCore::MediaPlayerPrivate::seeking):
  34422. (WebCore::MediaPlayerPrivate::duration):
  34423. (WebCore::MediaPlayerPrivate::currentTime):
  34424. (WebCore::MediaPlayerPrivate::buffered):
  34425. (WebCore::MediaPlayerPrivate::maxTimeSeekable):
  34426. (WebCore::MediaPlayerPrivate::bytesLoaded):
  34427. (WebCore::MediaPlayerPrivate::totalBytes):
  34428. (WebCore::MediaPlayerPrivate::setRate):
  34429. (WebCore::MediaPlayerPrivate::setVolume):
  34430. (WebCore::MediaPlayerPrivate::supportsMuting):
  34431. (WebCore::MediaPlayerPrivate::setMuted):
  34432. (WebCore::MediaPlayerPrivate::networkState):
  34433. (WebCore::MediaPlayerPrivate::readyState):
  34434. (WebCore::MediaPlayerPrivate::setVisible):
  34435. (WebCore::MediaPlayerPrivate::mediaStatusChanged):
  34436. (WebCore::MediaPlayerPrivate::handleError):
  34437. (WebCore::MediaPlayerPrivate::stateChanged):
  34438. (WebCore::MediaPlayerPrivate::nativeSizeChanged):
  34439. (WebCore::MediaPlayerPrivate::queuedSeekTimeout):
  34440. (WebCore::MediaPlayerPrivate::seekTimeout):
  34441. (WebCore::MediaPlayerPrivate::positionChanged):
  34442. (WebCore::MediaPlayerPrivate::durationChanged):
  34443. (WebCore::MediaPlayerPrivate::volumeChanged):
  34444. (WebCore::MediaPlayerPrivate::mutedChanged):
  34445. (WebCore::MediaPlayerPrivate::updateStates):
  34446. (WebCore::MediaPlayerPrivate::setSize):
  34447. (WebCore::MediaPlayerPrivate::naturalSize):
  34448. (WebCore::MediaPlayerPrivate::paint):
  34449. (WebCore::MediaPlayerPrivate::repaint):
  34450. * platform/graphics/qt/MediaPlayerPrivateQt.h: Added new QtMultimedia Backend.
  34451. (WebCore::MediaPlayerPrivate::isAvailable):
  34452. (WebCore::MediaPlayerPrivate::supportsFullscreen):
  34453. * platform/qt/RenderThemeQt.cpp:
  34454. (WebCore::RenderThemeQt::mediaControlsBaselineOpacity): New method.
  34455. (WebCore::RenderThemeQt::paintMediaBackground): Background depends on baseline opacity.
  34456. (WebCore::RenderThemeQt::paintMediaMuteButton): Changed styling.
  34457. (WebCore::RenderThemeQt::paintMediaCurrentTime): Added current time display.
  34458. (WebCore::RenderThemeQt::formatMediaControlsCurrentTime): Added time formatting.
  34459. (WebCore::RenderThemeQt::formatMediaControlsRemainingTime): Added time formatting.
  34460. (WebCore::RenderThemeQt::paintMediaVolumeSliderTrack): Volume slider added.
  34461. (WebCore::RenderThemeQt::paintMediaVolumeSliderThumb): Volume slider added.
  34462. (WebCore::RenderThemeQt::paintMediaSliderTrack): Updated for QtMultimedia.
  34463. (WebCore::RenderThemeQt::paintMediaSliderThumb): Dropped an unnecessary check.
  34464. (WebCore::RenderThemeQt::adjustSliderThumbSize): Handle a missing case.
  34465. * platform/qt/RenderThemeQt.h: Reimplemented a few more methods.
  34466. 2010-02-22 Alexander Pavlov <apavlov@chromium.org>
  34467. Not reviewed: mac build fix
  34468. * bindings/js/ScriptDebugServer.cpp:
  34469. (WebCore::ScriptDebugServer::ScriptDebugServer):
  34470. 2010-02-22 Alexander Pavlov <apavlov@chromium.org>
  34471. Reviewed by Pavel Feldman.
  34472. Web Inspector: there should be a way to "deactivate" or "skip" all breakpoints while debugging.
  34473. https://bugs.webkit.org/show_bug.cgi?id=33217
  34474. * English.lproj/localizedStrings.js:
  34475. * bindings/js/ScriptDebugServer.cpp:
  34476. (WebCore::ScriptDebugServer::ScriptDebugServer):
  34477. (WebCore::ScriptDebugServer::hasBreakpoint):
  34478. (WebCore::ScriptDebugServer::setBreakpointsActivated):
  34479. * bindings/js/ScriptDebugServer.h:
  34480. * bindings/v8/ScriptDebugServer.h:
  34481. (WebCore::ScriptDebugServer::setBreakpointsActivated):
  34482. * inspector/InspectorBackend.cpp:
  34483. (WebCore::InspectorBackend::activateBreakpoints):
  34484. (WebCore::InspectorBackend::deactivateBreakpoints):
  34485. * inspector/InspectorBackend.h:
  34486. * inspector/InspectorBackend.idl:
  34487. * inspector/front-end/Images/deactivateBreakpointsButtonGlyph.png: Added.
  34488. * inspector/front-end/Images/deactivateBreakpointsDisabledButtonGlyph.png: Added.
  34489. * inspector/front-end/InspectorBackendStub.js:
  34490. (.WebInspector.InspectorBackendStub.prototype.activateBreakpoints):
  34491. (.WebInspector.InspectorBackendStub.prototype.deactivateBreakpoints):
  34492. * inspector/front-end/ScriptsPanel.js:
  34493. (WebInspector.ScriptsPanel):
  34494. (WebInspector.ScriptsPanel.prototype.get breakpointsActivated):
  34495. (WebInspector.ScriptsPanel.prototype.addBreakpoint):
  34496. (WebInspector.ScriptsPanel.prototype._stepOutClicked):
  34497. (WebInspector.ScriptsPanel.prototype._toggleBreakpointsClicked):
  34498. * inspector/front-end/inspector.css:
  34499. * inspector/front-end/textViewer.css:
  34500. 2010-02-22 Mark Rowe <mrowe@apple.com>
  34501. Rubber-stamped by Sam Weinig and Maciej Stachowiak.
  34502. REGRESSION (r55039): Animation starts from near end when loaded over slow network
  34503. <http://webkit.org/b/35222> / <rdar://problem/7673523>
  34504. Roll out r55039 (related to <http://webkit.org/b/35115>) as it causes animated GIFs
  34505. to skip intermediate frames when loading over a slower network.
  34506. * platform/graphics/BitmapImage.cpp:
  34507. (WebCore::BitmapImage::startAnimation):
  34508. 2010-02-22 Maciej Stachowiak <mjs@apple.com>
  34509. Not reviewed, build fix.
  34510. Revert the previous change.
  34511. 2010-02-21 Maciej Stachowiak <mjs@apple.com>
  34512. Reviewed by Darin Adler.
  34513. Cache JavaScript wrappers inline in DOM nodes
  34514. https://bugs.webkit.org/show_bug.cgi?id=35226
  34515. <rdar://problem/7664202>
  34516. 8.8% speedup on Dromaeo DOM Core tests.
  34517. 3.3% speedup on Hixie DOM Core tests.
  34518. * bindings/js/JSDOMBinding.cpp:
  34519. (WebCore::forgetDOMNode): Clear wrapper pointer.
  34520. (WebCore::cacheDOMNodeWrapper): Cache inline too if caching for normal world.
  34521. * bindings/js/JSDOMBinding.h:
  34522. (WebCore::DOMObjectWrapperMapFor):
  34523. * bindings/js/JSDocumentCustom.cpp:
  34524. (WebCore::toJS): Remove unneeded argument from getCachedDOMNodeWrapper.
  34525. * bindings/js/JSNodeCustom.cpp:
  34526. (WebCore::createWrapperInline): Renamed version of original createWrapper.
  34527. (WebCore::createWrapper): Call createWrapperInline. Out-of-line version.
  34528. (WebCore::toJSNewlyCreated): Call createWrapperInline instead of createWrapper.
  34529. * bindings/js/JSNodeCustom.h: Added.
  34530. (WebCore::getCachedDOMNodeWrapper): Moved here so it can be inlined.
  34531. (WebCore::toJS): Moved here so it can be inlined.
  34532. * bindings/js/ScriptWrappable.h:
  34533. (WebCore::ScriptWrappable::ScriptWrappable): Implement this in the obvious
  34534. way for JavaScriptCore.
  34535. (WebCore::ScriptWrappable::wrapper):
  34536. (WebCore::ScriptWrappable::setWrapper):
  34537. (WebCore::ScriptWrappable::clearWrapper):
  34538. * bindings/scripts/CodeGeneratorJS.pm: Include CustomHeader heaaders
  34539. in the header, not just the impl file, so they can add inlining.
  34540. * dom/Node.idl: Add CustomHeader directive.
  34541. Add new files to build.
  34542. * GNUmakefile.am:
  34543. * WebCore.gypi:
  34544. * WebCore.pro:
  34545. * WebCore.vcproj/WebCore.vcproj:
  34546. 2010-02-22 Pavel Feldman <pfeldman@chromium.org>
  34547. Not reviewed: windows build fix.
  34548. 2010-02-21 Pavel Feldman <pfeldman@chromium.org>
  34549. Reviewed by Timothy Hatcher.
  34550. Web Inspector: stop on inline breakpoints on reload.
  34551. - ScriptBreakpoint struct has been introduced and reused in InspectorController
  34552. and debug server.
  34553. - JavaScriptDebugServer was moved to bindings/js and renamed to ScriptDebugServer
  34554. There were no changes to semantics, only some mechanical changes:
  34555. - addBreakpoint and updateBreakpoint were merged into setBreakpoint
  34556. - ScriptDebugServer now operates ScriptBreakpoint instances instead of
  34557. BreakpointInfo.
  34558. - It no longer allocates maps and breakpoint info in heap - all done on stack.
  34559. - JavaScriptDebugListener is now ScriptDebugServer::Listener
  34560. - Listener methods no longer have ExecState (was unused).
  34561. - addListener/removeListener pair wuth no page argument removed (was unused).
  34562. - InspectorController now binds sourceID to url and maintains a map of 'sticky'
  34563. breakpoints. Whenever script is loaded and there is a sticky breakpoint url matching,
  34564. breakpoint is being 'restored' synchronously in debug server and pushed to frontend.
  34565. Front-end no longer stores map of sticky breakpoints.
  34566. - setBreakpoint/removeBreakpoint/didParseSource trio handle this logic.
  34567. - A bunch of if(USE_JSC/V8/other) forks removed.
  34568. - InspectorFrontend now operates primitive types only, got rid of USE_JSC as well.
  34569. https://bugs.webkit.org/show_bug.cgi?id=28799
  34570. * GNUmakefile.am:
  34571. * WebCore.base.exp:
  34572. * WebCore.gypi:
  34573. * WebCore.order:
  34574. * WebCore.pro:
  34575. * WebCore.vcproj/WebCore.vcproj:
  34576. * WebCore.xcodeproj/project.pbxproj:
  34577. * bindings/js/JSInjectedScriptHostCustom.cpp:
  34578. (WebCore::JSInjectedScriptHost::currentCallFrame):
  34579. (WebCore::JSInjectedScriptHost::isActivation):
  34580. * bindings/js/ScriptDebugServer.cpp:
  34581. (WebCore::ScriptDebugServer::shared):
  34582. (WebCore::ScriptDebugServer::ScriptDebugServer):
  34583. (WebCore::ScriptDebugServer::~ScriptDebugServer):
  34584. (WebCore::ScriptDebugServer::addListener):
  34585. (WebCore::ScriptDebugServer::removeListener):
  34586. (WebCore::ScriptDebugServer::pageCreated):
  34587. (WebCore::ScriptDebugServer::hasListenersInterestedInPage):
  34588. (WebCore::ScriptDebugServer::setBreakpoint):
  34589. (WebCore::ScriptDebugServer::removeBreakpoint):
  34590. (WebCore::ScriptDebugServer::hasBreakpoint):
  34591. (WebCore::ScriptDebugServer::clearBreakpoints):
  34592. (WebCore::ScriptDebugServer::setPauseOnExceptionsState):
  34593. (WebCore::ScriptDebugServer::pauseProgram):
  34594. (WebCore::ScriptDebugServer::continueProgram):
  34595. (WebCore::ScriptDebugServer::stepIntoStatement):
  34596. (WebCore::ScriptDebugServer::stepOverStatement):
  34597. (WebCore::ScriptDebugServer::stepOutOfFunction):
  34598. (WebCore::ScriptDebugServer::currentCallFrame):
  34599. (WebCore::ScriptDebugServer::currentCallFrameState):
  34600. (WebCore::ScriptDebugServer::dispatchDidParseSource):
  34601. (WebCore::ScriptDebugServer::dispatchFailedToParseSource):
  34602. (WebCore::toPage):
  34603. (WebCore::ScriptDebugServer::detach):
  34604. (WebCore::ScriptDebugServer::sourceParsed):
  34605. (WebCore::ScriptDebugServer::dispatchFunctionToListeners):
  34606. (WebCore::ScriptDebugServer::setJavaScriptPaused):
  34607. (WebCore::ScriptDebugServer::pauseIfNeeded):
  34608. (WebCore::ScriptDebugServer::callEvent):
  34609. (WebCore::ScriptDebugServer::atStatement):
  34610. (WebCore::ScriptDebugServer::returnEvent):
  34611. (WebCore::ScriptDebugServer::exception):
  34612. (WebCore::ScriptDebugServer::willExecuteProgram):
  34613. (WebCore::ScriptDebugServer::didExecuteProgram):
  34614. (WebCore::ScriptDebugServer::didReachBreakpoint):
  34615. (WebCore::ScriptDebugServer::recompileAllJSFunctionsSoon):
  34616. (WebCore::ScriptDebugServer::recompileAllJSFunctions):
  34617. (WebCore::ScriptDebugServer::didAddListener):
  34618. (WebCore::ScriptDebugServer::didRemoveListener):
  34619. (WebCore::ScriptDebugServer::didRemoveLastListener):
  34620. * bindings/js/ScriptDebugServer.h:
  34621. (WebCore::ScriptDebugServer::Listener::~Listener):
  34622. (WebCore::ScriptDebugServer::):
  34623. (WebCore::ScriptDebugServer::pauseOnExceptionsState):
  34624. (WebCore::ScriptDebugServer::hasListeners):
  34625. (WebCore::ScriptDebugServer::hasGlobalListeners):
  34626. * bindings/v8/ScriptDebugServer.cpp:
  34627. (WebCore::ScriptDebugServer::shared):
  34628. * bindings/v8/ScriptDebugServer.h:
  34629. (WebCore::ScriptDebugServer::Listener::~Listener):
  34630. (WebCore::ScriptDebugServer::addListener):
  34631. (WebCore::ScriptDebugServer::removeListener):
  34632. (WebCore::ScriptDebugServer::setBreakpoint):
  34633. (WebCore::ScriptDebugServer::removeBreakpoint):
  34634. (WebCore::ScriptDebugServer::clearBreakpoints):
  34635. (WebCore::ScriptDebugServer::):
  34636. (WebCore::ScriptDebugServer::pauseOnExceptionsState):
  34637. (WebCore::ScriptDebugServer::setPauseOnExceptionsState):
  34638. (WebCore::ScriptDebugServer::pauseProgram):
  34639. (WebCore::ScriptDebugServer::continueProgram):
  34640. (WebCore::ScriptDebugServer::stepIntoStatement):
  34641. (WebCore::ScriptDebugServer::stepOverStatement):
  34642. (WebCore::ScriptDebugServer::stepOutOfFunction):
  34643. (WebCore::ScriptDebugServer::recompileAllJSFunctionsSoon):
  34644. (WebCore::ScriptDebugServer::recompileAllJSFunctions):
  34645. (WebCore::ScriptDebugServer::currentCallFrameState):
  34646. (WebCore::ScriptDebugServer::pageCreated):
  34647. (WebCore::ScriptDebugServer::ScriptDebugServer):
  34648. (WebCore::ScriptDebugServer::~ScriptDebugServer):
  34649. * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
  34650. (WebCore::V8InjectedScriptHost::currentCallFrameCallback):
  34651. (WebCore::V8InjectedScriptHost::isActivationCallback):
  34652. * inspector/InjectedScriptHost.cpp:
  34653. * inspector/InjectedScriptHost.h:
  34654. * inspector/InjectedScriptHost.idl:
  34655. * inspector/InspectorBackend.cpp:
  34656. (WebCore::InspectorBackend::setBreakpoint):
  34657. (WebCore::InspectorBackend::removeBreakpoint):
  34658. (WebCore::InspectorBackend::pauseInDebugger):
  34659. (WebCore::InspectorBackend::stepOverStatementInDebugger):
  34660. (WebCore::InspectorBackend::stepIntoStatementInDebugger):
  34661. (WebCore::InspectorBackend::stepOutOfFunctionInDebugger):
  34662. (WebCore::InspectorBackend::pauseOnExceptionsState):
  34663. (WebCore::InspectorBackend::setPauseOnExceptionsState):
  34664. * inspector/InspectorBackend.h:
  34665. * inspector/InspectorBackend.idl:
  34666. * inspector/ScriptBreakpoint.h: Added.
  34667. (WebCore::InspectorBreakpoint::InspectorBreakpoint):
  34668. * inspector/InspectorController.cpp:
  34669. (WebCore::InspectorController::InspectorController):
  34670. (WebCore::InspectorController::setWindowVisible):
  34671. (WebCore::InspectorController::scriptObjectReady):
  34672. (WebCore::InspectorController::close):
  34673. (WebCore::InspectorController::didCommitLoad):
  34674. (WebCore::InspectorController::addProfile):
  34675. (WebCore::InspectorController::startUserInitiatedProfiling):
  34676. (WebCore::InspectorController::stopUserInitiatedProfiling):
  34677. (WebCore::InspectorController::enableProfiler):
  34678. (WebCore::InspectorController::disableProfiler):
  34679. (WebCore::InspectorController::enableDebuggerFromFrontend):
  34680. (WebCore::InspectorController::disableDebugger):
  34681. (WebCore::InspectorController::resumeDebugger):
  34682. (WebCore::InspectorController::setBreakpoint):
  34683. (WebCore::InspectorController::removeBreakpoint):
  34684. (WebCore::InspectorController::didParseSource):
  34685. (WebCore::InspectorController::failedToParseSource):
  34686. (WebCore::InspectorController::didPause):
  34687. * inspector/InspectorController.h:
  34688. * inspector/InspectorFrontend.cpp:
  34689. (WebCore::InspectorFrontend::parsedScriptSource):
  34690. (WebCore::InspectorFrontend::restoredBreakpoint):
  34691. (WebCore::InspectorFrontend::failedToParseScriptSource):
  34692. (WebCore::InspectorFrontend::resumedScript):
  34693. * inspector/InspectorFrontend.h:
  34694. * inspector/JavaScriptDebugListener.h: Removed.
  34695. * inspector/JavaScriptDebugServer.cpp: Removed.
  34696. * inspector/JavaScriptDebugServer.h: Removed.
  34697. * inspector/front-end/Breakpoint.js:
  34698. (WebInspector.Breakpoint.prototype.set condition):
  34699. * inspector/front-end/BreakpointsSidebarPane.js:
  34700. (WebInspector.BreakpointsSidebarPane.prototype.addBreakpoint):
  34701. (WebInspector.BreakpointsSidebarPane.prototype._breakpointEnableChanged):
  34702. * inspector/front-end/InspectorBackendStub.js:
  34703. (.WebInspector.InspectorBackendStub.prototype.addBreakpoint):
  34704. * inspector/front-end/ResourcesPanel.js:
  34705. (WebInspector.ResourcesPanel.prototype.sourceFrameForResource):
  34706. * inspector/front-end/ScriptsPanel.js:
  34707. (WebInspector.ScriptsPanel):
  34708. (WebInspector.ScriptsPanel.prototype.addScript):
  34709. (WebInspector.ScriptsPanel.prototype.addBreakpoint):
  34710. (WebInspector.ScriptsPanel.prototype.removeBreakpoint):
  34711. (WebInspector.ScriptsPanel.prototype._showScriptOrResource):
  34712. * inspector/front-end/inspector.js:
  34713. (WebInspector.restoredBreakpoint):
  34714. * page/Page.cpp:
  34715. (WebCore::Page::Page):
  34716. * platform/android/TemporaryLinkStubs.cpp:
  34717. 2010-02-21 Gavin Barraclough <barraclough@apple.com>
  34718. Reviewed by Oliver Hunt.
  34719. Make the UChar owned/ref-counted by StringImpl::CrossThreadRefCounted be const.
  34720. * platform/text/StringImpl.cpp:
  34721. (WebCore::StringImpl::sharedBuffer):
  34722. * platform/text/StringImpl.h:
  34723. 2010-02-07 Yuzo Fujishima <yuzo@google.com>
  34724. Reviewed by Eric Seidel.
  34725. When page-break-{after,before} is set to always, force page breaks even for overflow-specified elements.
  34726. RenderBlock::inRootBlockContext() was introduced by Changeset 5611. Although it is a reasonable criteria for choosing an optional page break location, it is not for a mandatory page break as specified by http://dev.w3.org/csswg/css3-page/#forced-pg-brk. The method is removed because it is not used anywhere else.
  34727. Note: this patch makes page break work for overflow-specified elements. For tables and floated elements, more work is needed.
  34728. https://bugs.webkit.org/show_bug.cgi?id=9526
  34729. Test: printing/page-break-always-for-overflow.html
  34730. * rendering/RenderBlock.cpp:
  34731. (WebCore::RenderBlock::paintChildren):
  34732. * rendering/RenderBlock.h:
  34733. 2010-02-21 Julien Chaffraix <jchaffraix@webkit.org>
  34734. Reviewed by Eric Seidel.
  34735. Remove auto_ptr usage in WebCore.
  34736. https://bugs.webkit.org/show_bug.cgi?id=35157
  34737. The changes consists of:
  34738. - Changing auto_ptr arguments or return types to PassOwnPtr.
  34739. - Replacing local auto_ptr by OwnPtr.
  34740. - Removing now unneeded <memory> inclusion.
  34741. * css/CSSParser.cpp:
  34742. (WebCore::CSSParser::addProperty):
  34743. * loader/WorkerThreadableLoader.cpp:
  34744. (WebCore::WorkerThreadableLoader::MainThreadBridge::mainThreadCreateLoader):
  34745. (WebCore::workerContextDidReceiveResponse):
  34746. (WebCore::workerContextDidReceiveData):
  34747. (WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveData):
  34748. (WebCore::workerContextDidReceiveAuthenticationCancellation):
  34749. * loader/WorkerThreadableLoader.h:
  34750. * loader/icon/IconLoader.cpp:
  34751. (WebCore::IconLoader::create):
  34752. * loader/icon/IconLoader.h:
  34753. * platform/ContextMenu.cpp:
  34754. (WebCore::separatorItem):
  34755. * platform/CrossThreadCopier.h:
  34756. (WebCore::):
  34757. * platform/network/HTTPHeaderMap.cpp:
  34758. (WebCore::HTTPHeaderMap::copyData):
  34759. (WebCore::HTTPHeaderMap::adopt):
  34760. * platform/network/HTTPHeaderMap.h:
  34761. * platform/network/ResourceRequestBase.cpp:
  34762. (WebCore::ResourceRequestBase::adopt):
  34763. (WebCore::ResourceRequestBase::copyData):
  34764. * platform/network/ResourceRequestBase.h:
  34765. * platform/network/ResourceResponseBase.cpp:
  34766. (WebCore::ResourceResponseBase::adopt):
  34767. (WebCore::ResourceResponseBase::copyData):
  34768. * platform/network/ResourceResponseBase.h:
  34769. * svg/SVGDocumentExtensions.cpp:
  34770. (WebCore::SVGDocumentExtensions::removePendingResource):
  34771. * svg/SVGDocumentExtensions.h:
  34772. * svg/SVGElement.cpp:
  34773. (WebCore::SVGElement::insertedIntoDocument):
  34774. * workers/GenericWorkerTask.h:
  34775. * workers/WorkerThread.cpp:
  34776. (WebCore::WorkerThreadStartupData::create):
  34777. 2010-02-21 Simon Fraser <simon.fraser@apple.com>
  34778. Reviewed by Dan Bernstein.
  34779. https://bugs.webkit.org/show_bug.cgi?id=22215
  34780. Avoid calling absoluteClippedOverflowRect() so many times
  34781. RenderLayer::updateLayerPositions() computes the clipped overflow rect
  34782. and the outline bounds for repaint, and then calls repaintAfterLayoutIfNeeded()
  34783. which can compute the same rects all over again. Avoid this by passing
  34784. these two rects into repaintAfterLayoutIfNeeded() if known. This measurably
  34785. reduces the time spent in updateLayerPositions() for some content.
  34786. * rendering/RenderLayer.cpp:
  34787. (WebCore::RenderLayer::updateLayerPositions):
  34788. * rendering/RenderObject.cpp:
  34789. (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
  34790. * rendering/RenderObject.h:
  34791. 2010-02-20 Alexey Proskuryakov <ap@apple.com>
  34792. Reviewed by Maciej Stachowiak.
  34793. https://bugs.webkit.org/show_bug.cgi?id=35202
  34794. <rdar://problem/4856597> Calling Java method which accepts Object always passes a null argument
  34795. * bridge/jni/jsc/JNIUtilityPrivate.cpp: (JSC::Bindings::convertValueToJValue): Add cases for
  34796. other JS types.
  34797. 2010-02-20 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  34798. Reviewed by Darin Adler.
  34799. Fix compiler warning "suggest parentheses around"
  34800. https://bugs.webkit.org/show_bug.cgi?id=35197
  34801. No new tests as there is no new functionality.
  34802. * html/DateComponents.cpp:
  34803. (WebCore::beforeGregorianStartDate):
  34804. * plugins/PluginDatabase.cpp:
  34805. (WebCore::PluginDatabase::findPlugin):
  34806. 2010-02-20 Noam Rosenthal <noam.rosenthal@nokia.com>
  34807. Reviewed by Laszlo Gombos.
  34808. [Qt] ENABLE_3D_RENDERING should be optional
  34809. https://bugs.webkit.org/show_bug.cgi?id=35100
  34810. No new tests: this is a build fix.
  34811. * WebCore.pri: ENABLE_3D_RENDERING is now a proper feature test
  34812. 2010-02-20 Alexey Proskuryakov <ap@apple.com>
  34813. Reviewed by Maciej Stachowiak.
  34814. https://bugs.webkit.org/show_bug.cgi?id=23742
  34815. Applet methods can not return arrays to JS
  34816. * bridge/jni/jsc/JNIBridgeJSC.cpp: (JavaArray::JavaArray): Don't accidentally zero out
  34817. m_rootObject (that's how PassRefPtr works). Without m_rootObject, we crash quickly.
  34818. * bridge/jni/jsc/JavaInstanceJSC.cpp: (JavaInstance::invokeMethod): Do handle returned arrays.
  34819. Also, added an ifdef around code that's only needed on Tiger, and removed a comment saying
  34820. it can be removed when "new" plugin ships. I doubt that anyone can remember what "new"
  34821. could refer to back then.
  34822. 2010-02-20 Pavel Feldman <pfeldman@chromium.org>
  34823. Reviewed by Timothy Hatcher.
  34824. Web Inspector: re-creating view in ResourcesPanel confuses ScriptsPanel's visibleView logic.
  34825. https://bugs.webkit.org/show_bug.cgi?id=35192
  34826. * inspector/front-end/ResourcesPanel.js:
  34827. (WebInspector.ResourcesPanel.prototype.recreateViewForResourceIfNeeded):
  34828. * inspector/front-end/ScriptsPanel.js:
  34829. (WebInspector.ScriptsPanel.prototype.show):
  34830. (WebInspector.ScriptsPanel.prototype.viewRecreated):
  34831. 2010-02-20 Pavel Feldman <pfeldman@chromium.org>
  34832. Reviewed by Timothy Hatcher.
  34833. Web Inspector: need to highlight the evaluated expression used for popovers.
  34834. https://bugs.webkit.org/show_bug.cgi?id=35126
  34835. * inspector/front-end/SourceFrame.js:
  34836. (WebInspector.SourceFrame.prototype._mouseMove):
  34837. (WebInspector.SourceFrame.prototype._hidePopup):
  34838. (WebInspector.SourceFrame.prototype._mouseHover):
  34839. (WebInspector.SourceFrame.prototype._showPopup.showObjectPopup):
  34840. (WebInspector.SourceFrame.prototype._showPopup):
  34841. * inspector/front-end/inspector.css:
  34842. 2010-02-20 Gustavo Noronha Silva <gns@gnome.org>
  34843. Roll out 55047 because it causes layout, and API tests to fail
  34844. 2010-02-19 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  34845. Reviewed by Xan Lopez.
  34846. [Soup] loses information related to message flags when converting from/to Resource{Request,Response}
  34847. https://bugs.webkit.org/show_bug.cgi?id=35093
  34848. Refactor updating of ResourceResponse objects from soup message
  34849. objects, to avoid code duplication.
  34850. No behaviour change.
  34851. * platform/network/soup/ResourceHandleSoup.cpp:
  34852. (WebCore::fillResponseFromMessage):
  34853. * platform/network/soup/ResourceResponseSoup.cpp:
  34854. (WebCore::ResourceResponse::updateFromSoupMessage):
  34855. 2010-02-20 Alexey Proskuryakov <ap@apple.com>
  34856. Reviewed by Maciej Stachowiak.
  34857. https://bugs.webkit.org/show_bug.cgi?id=35190
  34858. Don't use system malloc in Java bindings
  34859. * bridge/jni/jsc/JavaInstanceJSC.cpp: (JavaInstance::invokeMethod): Switched to WTF::Vector.
  34860. 2010-02-20 Alexey Proskuryakov <ap@apple.com>
  34861. Reviewed by Maciej Stachowiak.
  34862. https://bugs.webkit.org/show_bug.cgi?id=9761
  34863. LiveConnect string conversion fails for java.lang.Object
  34864. Can't test Java in DRT (I wonder why).
  34865. * bridge/jni/jsc/JNIUtilityPrivate.cpp: (JSC::Bindings::convertValueToJValue):
  34866. Added the necessary conversion. Also, removed CONVERT_NULL_TO_EMPTY_STRING dead code.
  34867. 2010-02-19 Maciej Stachowiak <mjs@apple.com>
  34868. Reviewed by David Levin.
  34869. Add an ENABLE flag for sandboxed iframes to make it possible to disable it in releases
  34870. https://bugs.webkit.org/show_bug.cgi?id=35147
  34871. I made ENABLE(SANDBOX) only control the sandbox attribute itself;
  34872. I did not ifdef the infrastructure to make sandboxing
  34873. switchable. This is because the likely concerns about sandboxing
  34874. are not stability of the infrastructure code, but rather the fact
  34875. that the security model exposed to authors is still evolving.
  34876. * Configurations/FeatureDefines.xcconfig:
  34877. * GNUmakefile.am:
  34878. * WebCore.pri:
  34879. * html/HTMLIFrameElement.cpp:
  34880. (WebCore::HTMLIFrameElement::parseMappedAttribute):
  34881. 2010-02-19 Alexey Proskuryakov <ap@apple.com>
  34882. Reviewed by Maciej Stachowiak.
  34883. https://bugs.webkit.org/show_bug.cgi?id=35132
  34884. <rdar://problem/7664353> Mouse cursor sometimes flickers over Flash content (35132)
  34885. * page/EventHandler.cpp: (WebCore::EventHandler::handleMouseMoveEvent): Don't set mouse
  34886. pointer when above a plug-in or applet to prevent flicker.
  34887. 2010-02-18 Peter Kasting <pkasting@google.com>
  34888. Reviewed by Adam Barth.
  34889. Fix regression in calculating an animated image's start time.
  34890. https://bugs.webkit.org/show_bug.cgi?id=35115
  34891. * platform/graphics/BitmapImage.cpp:
  34892. (WebCore::BitmapImage::startAnimation):
  34893. 2010-02-19 Alexey Proskuryakov <ap@apple.com>
  34894. Reviewed by Geoffrey Garen.
  34895. https://bugs.webkit.org/show_bug.cgi?id=35178
  34896. LiveConnect code uses hand-rolled fprintf logging
  34897. Changed to use LOG, LOG_ERROR and ASSERT.
  34898. * platform/Logging.cpp:
  34899. (WebCore::getChannelFromName):
  34900. * platform/Logging.h:
  34901. * platform/mac/LoggingMac.mm:
  34902. (WebCore::InitializeLoggingChannelsIfNecessary):
  34903. * platform/win/LoggingWin.cpp:
  34904. (WebCore::InitializeLoggingChannelsIfNecessary):
  34905. TextConversion channel was (almost) unused, renamed to LiveConnect.
  34906. * platform/text/gtk/TextCodecGtk.cpp: (WebCore::TextCodecGtk::registerEncodingNames):
  34907. The only use of this channel was in platform specific code, commandeered it for cross-platform
  34908. needs.
  34909. * bridge/jni/JNIBridge.cpp:
  34910. * bridge/jni/JNIUtility.cpp:
  34911. (JSC::Bindings::getJavaVM):
  34912. (JSC::Bindings::getJNIEnv):
  34913. (JSC::Bindings::getJNIField):
  34914. * bridge/jni/JNIUtility.h:
  34915. (JSC::Bindings::callJNIMethodV):
  34916. (JSC::Bindings::callJNIStaticMethod):
  34917. * bridge/jni/jni_jsobject.mm:
  34918. (completedJavaScriptAccess):
  34919. (dispatchToJavaScriptThread):
  34920. (performJavaScriptAccess):
  34921. (JavaJSObject::invoke):
  34922. (JavaJSObject::call):
  34923. (JavaJSObject::eval):
  34924. (JavaJSObject::getMember):
  34925. (JavaJSObject::setMember):
  34926. (JavaJSObject::removeMember):
  34927. (JavaJSObject::getSlot):
  34928. (JavaJSObject::setSlot):
  34929. (JavaJSObject::toString):
  34930. (JavaJSObject::createNative):
  34931. * bridge/jni/jsc/JNIBridgeJSC.cpp:
  34932. (JavaField::valueFromInstance):
  34933. (JavaField::setValueToInstance):
  34934. * bridge/jni/jsc/JavaClassJSC.cpp:
  34935. (JavaClass::JavaClass):
  34936. * bridge/jni/jsc/JavaInstanceJSC.cpp:
  34937. (JavaInstance::invokeMethod):
  34938. (JObjectWrapper::JObjectWrapper):
  34939. (JObjectWrapper::~JObjectWrapper):
  34940. 2010-02-19 Dirk Schulze <krit@webkit.org>
  34941. Reviewed by Nikolas Zimmermann.
  34942. RenderSVGResourceMasker causes an Assert on Wind builds during DRT
  34943. https://bugs.webkit.org/show_bug.cgi?id=35182
  34944. We remove the Assert for now and return earlier, if the HashMap of the Masker
  34945. does not contain the RenderObject. The RenderObject is an identifiert to get
  34946. a already calculated mask.
  34947. A race condition during parsing can cause the invalidation call, before the mask
  34948. got calculated (only during DRT on Win build bots).
  34949. The real bug will be fixed with: https://bugs.webkit.org/show_bug.cgi?id=35181
  34950. * rendering/RenderSVGResourceMasker.cpp:
  34951. (WebCore::RenderSVGResourceMasker::invalidateClient):
  34952. 2010-02-18 Peter Kasting <pkasting@google.com>
  34953. Reviewed by Darin Fisher.
  34954. Make Pasteboard::writeImage() safe against NULL cachedImages, and clean
  34955. up some code.
  34956. https://bugs.webkit.org/show_bug.cgi?id=35136
  34957. * loader/ImageLoader.cpp:
  34958. (WebCore::ImageLoader::updateRenderer): Shorten some code.
  34959. * page/DragController.cpp:
  34960. (WebCore::getImage): Shorten some code.
  34961. * platform/chromium/PasteboardChromium.cpp:
  34962. (WebCore::Pasteboard::writeImage): NULL-check cachedImage().
  34963. * platform/gtk/PasteboardGtk.cpp:
  34964. (WebCore::Pasteboard::writeImage): NULL-check cachedImage().
  34965. * platform/mac/PasteboardMac.mm:
  34966. (WebCore::Pasteboard::writeImage): NULL-check cachedImage().
  34967. * platform/qt/PasteboardQt.cpp:
  34968. (WebCore::Pasteboard::writeImage): NULL-check cachedImage().
  34969. * platform/win/PasteboardWin.cpp:
  34970. (WebCore::Pasteboard::writeImage): NULL-check cachedImage().
  34971. 2010-02-19 Kenneth Rohde Christiansen <kenneth@webkit.org>
  34972. Rubberstamped by Noam Rosenthal, who wrote the original code.
  34973. Make mouse wheel scrolling work when using the GraphicsLayer.
  34974. * platform/graphics/qt/GraphicsLayerQt.cpp:
  34975. (WebCore::GraphicsLayerQtImpl::GraphicsLayerQtImpl):
  34976. 2010-02-19 Nate Chapin <japhet@chromium.org>
  34977. Reviewed by Dimitri Glazkov.
  34978. [V8] Fix Worker crash regression in r54972
  34979. https://bugs.webkit.org/show_bug.cgi?id=35166
  34980. * bindings/v8/V8DOMWrapper.cpp:
  34981. (WebCore::V8DOMWrapper::instantiateV8Object): Properly unwrap global objects when inside a WorkerContext.
  34982. 2010-02-19 Steve Block <steveblock@google.com>
  34983. Not reviewed. Reverts r55020 which causes crashes in Chromium LayoutTests
  34984. * bindings/generic/RuntimeEnabledFeatures.cpp:
  34985. * storage/Database.cpp:
  34986. 2010-02-19 Steve Block <steveblock@google.com>
  34987. Reviewed by David Levin.
  34988. Sets default values of V8 runtime enabler flags to match behavior with JSC
  34989. https://bugs.webkit.org/show_bug.cgi?id=35095
  34990. No new tests, modifies a Chromium feature only.
  34991. * bindings/generic/RuntimeEnabledFeatures.cpp: Modified. Sets appcache and geolocation flag defaults to 'on'
  34992. * storage/Database.cpp: Modified. Sets database flag default to 'on'.
  34993. 2010-02-19 Alexander Pavlov <apavlov@chromium.org>
  34994. Reviewed by Pavel Feldman.
  34995. WebInspector: Elements panel: Correctly show empty elements' ending tags
  34996. for XML and HTML documents.
  34997. https://bugs.webkit.org/show_bug.cgi?id=26315
  34998. Test: inspector/elements-panel-xhtml-structure.xhtml
  34999. * inspector/InspectorController.cpp:
  35000. (WebCore::InspectorController::populateScriptObjects):
  35001. * inspector/front-end/ElementsTreeOutline.js:
  35002. (WebInspector.ElementsTreeOutline.prototype.set rootDOMNode):
  35003. (WebInspector.ElementsTreeOutline.prototype.get isXMLMimeType):
  35004. (WebInspector.ElementsTreeOutline.prototype._contextMenuEventFired):
  35005. (WebInspector.ElementsTreeElement.prototype.onexpand):
  35006. (WebInspector.ElementsTreeElement.prototype.oncollapse):
  35007. (WebInspector.ElementsTreeElement.prototype.updateTitle.callback):
  35008. (WebInspector.ElementsTreeElement.prototype.updateTitle):
  35009. (WebInspector.ElementsTreeElement.prototype._nodeTitleInfo):
  35010. 2010-02-19 Pavel Feldman <pfeldman@chromium.org>
  35011. Not reviewed. Chromium build fix: reverting r54997 and r54998.
  35012. * bindings/v8/custom/V8LocationCustom.cpp:
  35013. (WebCore::V8Location::protocolAccessorSetter):
  35014. * platform/KURLGoogle.cpp:
  35015. (WebCore::KURL::setProtocol):
  35016. (WebCore::KURL::isHierarchical):
  35017. 2010-02-17 Philippe Normand <pnormand@igalia.com>
  35018. Reviewed by Eric Seidel.
  35019. [GTK] RTP/RTSP streams playback support
  35020. https://bugs.webkit.org/show_bug.cgi?id=33662
  35021. Added live pipelines support in updateStates().
  35022. * manual-tests/video-rtsp.html: Added.
  35023. * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
  35024. (WebCore::MediaPlayerPrivate::seek):
  35025. (WebCore::MediaPlayerPrivate::updateStates):
  35026. 2010-02-18 Yaar Schnitman <yaar@chromium.org>
  35027. Reviewed by Darin Adler.
  35028. Normalize custom ctors for Image, Option, Audio
  35029. https://bugs.webkit.org/show_bug.cgi?id=34782
  35030. Test: fast/js/custom-constructors.html
  35031. * bindings/js/JSAudioConstructor.cpp:
  35032. (WebCore::JSAudioConstructor::JSAudioConstructor):
  35033. (WebCore::constructAudio):
  35034. * bindings/js/JSImageConstructor.cpp:
  35035. (WebCore::constructImage):
  35036. * bindings/js/JSOptionConstructor.cpp:
  35037. (WebCore::constructHTMLOptionElement):
  35038. * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
  35039. (WebCore::v8HTMLAudioElementConstructorCallback):
  35040. * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
  35041. (WebCore::v8HTMLImageElementConstructorCallback):
  35042. * bindings/v8/custom/V8HTMLOptionElementConstructor.cpp:
  35043. (WebCore::v8HTMLOptionElementConstructorCallback):
  35044. * html/HTMLAudioElement.cpp:
  35045. (WebCore::HTMLAudioElement::HTMLAudioElement):
  35046. (WebCore::HTMLAudioElement::createForJSConstructor):
  35047. * html/HTMLAudioElement.h:
  35048. * html/HTMLImageElement.cpp:
  35049. (WebCore::HTMLImageElement::createForJSConstructor):
  35050. (WebCore::HTMLImageElement::mapToEntry):
  35051. (WebCore::HTMLImageElement::createRenderer):
  35052. (WebCore::HTMLImageElement::attach):
  35053. (WebCore::HTMLImageElement::width):
  35054. (WebCore::HTMLImageElement::height):
  35055. (WebCore::HTMLImageElement::naturalHeight):
  35056. * html/HTMLImageElement.h:
  35057. * html/HTMLOptionElement.cpp:
  35058. (WebCore::HTMLOptionElement::HTMLOptionElement):
  35059. (WebCore::HTMLOptionElement::createForJSConstructor):
  35060. (WebCore::HTMLOptionElement::ownerSelectElement):
  35061. (WebCore::HTMLOptionElement::nonRendererRenderStyle):
  35062. (WebCore::HTMLOptionElement::disabled):
  35063. (WebCore::HTMLOptionElement::insertedIntoTree):
  35064. * html/HTMLOptionElement.h:
  35065. 2010-02-18 Simon Fraser <simon.fraser@apple.com>
  35066. No Review.
  35067. Remove a couple of extraneous spaces that got added to the project file
  35068. by hand-ending.
  35069. * WebCore.xcodeproj/project.pbxproj:
  35070. 2010-02-18 Simon Fraser <simon.fraser@apple.com>
  35071. Reviewed by Dan Bernstein.
  35072. <rdar://problem/7535894> Page contents missing from snapshot on Newsweek.com article
  35073. Add logic to determine when painting via the software rendering path will give an equivalent
  35074. result to the accelerated compositing presentation. This tests for the presence of 3D transforms
  35075. via the existing RenderLayerCompositor::has3DContent() method.
  35076. * WebCore.base.exp: Export FrameView's isSoftwareRenderable(), paintBehavior() and setPaintBehavior().
  35077. * page/FrameView.h:
  35078. * page/FrameView.cpp:
  35079. (WebCore::FrameView::isSoftwareRenderable): New method.
  35080. (WebCore::FrameView::paintBehavior): Make this non-inline so that we can reliably export it.
  35081. 2010-02-18 Dan Bernstein <mitz@apple.com>
  35082. Reviewed by John Sullivan.
  35083. <rdar://problem/7658811> Multiple style recalcs due to getComputedStyle() on “display: none;” element
  35084. when there are pending style sheets
  35085. Test: fast/css/getComputedStyle/pending-stylesheet.html
  35086. When querying a property of a computed style declaration for a non-rendered element,
  35087. CSSStyleSelector::styleForElement() was called, and if there were pending style sheet, it
  35088. would behave as if the lack of renderer is due to FOUC suppression, and set a flag on
  35089. the document causing it to recalculate style. On the next computed style property access,
  35090. style would be recalculated for the document, but then the flag would get set again if the
  35091. element did not have a renderer.
  35092. * dom/Document.cpp:
  35093. (WebCore::Document::styleForElementIgnoringPendingStylesheets): Added. Temporarily sets
  35094. m_ignorePendingStylesheets around the call to CSSStyleSelector::styleForElement().
  35095. * dom/Document.h:
  35096. * dom/Element.cpp:
  35097. (WebCore::Element::computedStyle): Use Document::styleForElementIgnoringPendingStylesheets().
  35098. 2010-02-18 Dirk Schulze <krit@webkit.org>
  35099. Reviewed by Nikolas Zimmermann.
  35100. Move SVGResources to Renderers, starting with Masker
  35101. https://bugs.webkit.org/show_bug.cgi?id=35020
  35102. We have rendering specific code in WebCore/svg/graphics. The goal is to move
  35103. this code into suitable Renderers. This helps us to clean up the code and makes
  35104. maintenance easier. It also makes it possible to remove rendering specific code
  35105. from SVG*Elements into this renderers. So the Renderer contains everything that
  35106. is needed to use the resource.
  35107. RenderSVGResource will be the base class for all new resource render classes like
  35108. RenderSVGResourceMasker, RenderSVGResourceClipper and the other resources.
  35109. This patch starts moving SVGResourceMasker to RenderSVGResourceMasker.
  35110. Another benefit is the much more useful result in DRT on using masker.
  35111. * Android.mk:
  35112. * GNUmakefile.am:
  35113. * WebCore.gypi:
  35114. * WebCore.pro:
  35115. * WebCore.vcproj/WebCore.vcproj:
  35116. * WebCore.xcodeproj/project.pbxproj:
  35117. * rendering/RenderObject.cpp:
  35118. (WebCore::RenderObject::toRenderSVGResource): Conversion to RenderSVGResource base class.
  35119. * rendering/RenderObject.h:
  35120. (WebCore::RenderObject::isSVGResource): Check if renderer is a resource.
  35121. * rendering/RenderPath.cpp:
  35122. * rendering/RenderSVGImage.cpp:
  35123. (WebCore::RenderSVGImage::destroy): Renderer gets destroyed, unregister it from it's resources.
  35124. * rendering/RenderSVGImage.h: Some code clean up according to the webkit style.
  35125. (WebCore::RenderSVGImage::toSVGRenderBase):
  35126. (WebCore::RenderSVGImage::renderName):
  35127. (WebCore::RenderSVGImage::isSVGImage):
  35128. (WebCore::RenderSVGImage::localToParentTransform):
  35129. (WebCore::RenderSVGImage::strokeBoundingBox):
  35130. (WebCore::RenderSVGImage::requiresLayer):
  35131. (WebCore::RenderSVGImage::localTransform):
  35132. * rendering/RenderSVGInlineText.h:
  35133. (WebCore::RenderSVGInlineText::objectBoundingBox): Needed for SVGRenderTreeAsText
  35134. * rendering/RenderSVGModelObject.cpp:
  35135. (WebCore::RenderSVGModelObject::destroy): Renderer gets destroyed, unregister it from it's resources.
  35136. * rendering/RenderSVGModelObject.h:
  35137. * rendering/RenderSVGResource.h: Added.
  35138. (WebCore::): Base class for all Resource renderers like masker, clipper and others.
  35139. (WebCore::RenderSVGResource::RenderSVGResource):
  35140. (WebCore::RenderSVGResource::cast):
  35141. (WebCore::RenderSVGResource::toRenderSVGResource):
  35142. (WebCore::RenderSVGResource::isSVGResource):
  35143. (WebCore::RenderSVGResource::drawsContents):
  35144. (WebCore::getRenderSVGResourceById):
  35145. * rendering/RenderSVGResourceMasker.cpp: Added.
  35146. (WebCore::RenderSVGResourceMasker::RenderSVGResourceMasker):
  35147. (WebCore::RenderSVGResourceMasker::~RenderSVGResourceMasker):
  35148. (WebCore::RenderSVGResourceMasker::invalidateClients): Status of masker changed, remove all clients.
  35149. (WebCore::RenderSVGResourceMasker::invalidateClient): Status of an object changed, remove pending client.
  35150. (WebCore::RenderSVGResourceMasker::applyResource): Apply masker to object.
  35151. (WebCore::RenderSVGResourceMasker::resourceBoundingBox): boundingBox of the resource, depending on the object.
  35152. (WebCore::RenderSVGResourceMasker::createMaskImage): Creates the mask image, the context gets clipped with.
  35153. * rendering/RenderSVGResourceMasker.h: Added.
  35154. (WebCore::MaskerData::MaskerData):
  35155. (WebCore::RenderSVGResourceMasker::renderName):
  35156. (WebCore::RenderSVGResourceMasker::maskUnits): Unit of mask for DRT.
  35157. (WebCore::RenderSVGResourceMasker::maskContentUnits): Unit of childs from mask for DRT.
  35158. (WebCore::RenderSVGResourceMasker::resourceType):
  35159. * rendering/RenderSVGRoot.cpp:
  35160. (WebCore::RenderSVGRoot::destroy): Renderer gets destroyed, unregister it from it's resources.
  35161. * rendering/RenderSVGRoot.h:
  35162. * rendering/RenderSVGText.cpp:
  35163. (WebCore::RenderSVGText::destroy): dito.
  35164. * rendering/RenderSVGText.h:
  35165. * rendering/RenderTreeAsText.cpp:
  35166. (WebCore::write):
  35167. * rendering/SVGRenderSupport.cpp:
  35168. (WebCore::SVGRenderBase::prepareToRenderSVGContent):
  35169. (WebCore::SVGRenderBase::maskerBoundingBoxForRenderer):
  35170. (WebCore::SVGRenderBase::deregisterFromResources): Unregister object from all it's resources after status changed.
  35171. * rendering/SVGRenderSupport.h:
  35172. (WebCore::SVGRenderBase::toSVGRenderBase):
  35173. (WebCore::SVGRenderBase::strokeBoundingBox):
  35174. (WebCore::SVGRenderBase::markerBoundingBox):
  35175. * rendering/SVGRenderTreeAsText.cpp: Update TreeAsText to dump maskers correctly.
  35176. (WebCore::operator<<):
  35177. (WebCore::writeSVGResource):
  35178. (WebCore::writeSVGContainer):
  35179. (WebCore::writeSVGText):
  35180. (WebCore::writeSVGInlineText):
  35181. (WebCore::writeSVGImage):
  35182. (WebCore::write):
  35183. (WebCore::writeResourcesToObject):
  35184. * rendering/SVGRenderTreeAsText.h:
  35185. * svg/SVGMaskElement.cpp: Update Masker to use the new renderer.
  35186. (WebCore::SVGMaskElement::svgAttributeChanged):
  35187. (WebCore::SVGMaskElement::childrenChanged):
  35188. (WebCore::SVGMaskElement::maskBoundingBox):
  35189. (WebCore::SVGMaskElement::createRenderer):
  35190. * svg/SVGMaskElement.h:
  35191. * svg/SVGStyledElement.cpp: We need to tell the renderer to unregister object, after the status changed.
  35192. (WebCore::SVGStyledElement::invalidateResources):
  35193. (WebCore::SVGStyledElement::invalidateResourcesInAncestorChain):
  35194. * svg/SVGUnitTypes.h: Conversion of integer to SVGUnitType.
  35195. (WebCore::toUnitType):
  35196. * svg/graphics/SVGResource.h:
  35197. (WebCore::):
  35198. (WebCore::SVGResource::isMarker):
  35199. * svg/graphics/SVGResourceMasker.cpp: Removed.
  35200. * svg/graphics/SVGResourceMasker.h: Removed.
  35201. 2010-02-18 Dumitru Daniliuc <dumi@chromium.org>
  35202. Reviewed by Dimitri Glazkov.
  35203. Allow creating/dropping virtual tables when the module is FTS2.
  35204. https://bugs.webkit.org/show_bug.cgi?id=34867
  35205. * storage/DatabaseAuthorizer.cpp:
  35206. (WebCore::DatabaseAuthorizer::createVTable):
  35207. (WebCore::DatabaseAuthorizer::dropVTable):
  35208. 2010-02-18 Peter Kasting <pkasting@google.com>
  35209. Not reviewed, Chromium build fix.
  35210. r54963 had a typo in the WebCore.gypi change.
  35211. https://bugs.webkit.org/show_bug.cgi?id=35003
  35212. * WebCore.gypi:
  35213. 2010-02-18 Vangelis Kokkevis <vangelis@chromium.org>
  35214. Reviewed by Simon Fraser.
  35215. Changing forward declaration of TimingFunction in GraphicsLayer.h from
  35216. class to struct to match its actual definition in TimingFunction.h
  35217. https://bugs.webkit.org/show_bug.cgi?id=35069
  35218. * platform/graphics/GraphicsLayer.h:
  35219. Change forward declaration from: class TimingFunction to:
  35220. struct TimingFunction
  35221. 2010-02-18 Noam Rosenthal <noam.rosenthal@nokia.com>
  35222. Reviewed by Kenneth Rohde Christiansen.
  35223. [Qt] Minor improvement to hybrid QPixmap
  35224. https://bugs.webkit.org/show_bug.cgi?id=34507
  35225. Instead of having toHTMLImageElement which creates a new element,
  35226. assignToHTMLImageElement would set an existing HTML <img/> element to
  35227. contain the native QPixmap/QImge.
  35228. Also made some style fixes.
  35229. Additions to existing tests: see WebKit/qt/tests
  35230. * bridge/qt/qt_pixmapruntime.cpp:
  35231. (JSC::Bindings::QtPixmapWidthField::valueFromInstance): style
  35232. (JSC::Bindings::QtPixmapHeightField::valueFromInstance): style
  35233. (JSC::Bindings::QtPixmapAssignToElementMethod::name): assignTo
  35234. (JSC::Bindings::QtPixmapAssignToElementMethod::invoke): new function
  35235. (JSC::Bindings::QtPixmapAssignToElementMethod::numParameters): 1
  35236. (JSC::Bindings::QtPixmapToDataUrlMethod::invoke): style
  35237. (JSC::Bindings::QtPixmapToStringMethod::invoke): style
  35238. (JSC::Bindings::QtPixmapInstance::invokeMethod): style
  35239. (JSC::Bindings::QtPixmapClass::methodsNamed): new func, removed old
  35240. (JSC::Bindings::QtPixmapInstance::getPropertyNames): ditto
  35241. (JSC::Bindings::QtPixmapInstance::defaultValue): style
  35242. (JSC::Bindings::QtPixmapInstance::valueOf): style
  35243. (JSC::Bindings::QtPixmapInstance::toPixmap): style
  35244. (JSC::Bindings::QtPixmapInstance::variantFromObject): style
  35245. 2010-02-18 Peter Kasting <pkasting@google.com>
  35246. Not reviewed, bustage fix.
  35247. An extraneous line in r54839 broke GIF animation.
  35248. * platform/image-decoders/gif/GIFImageReader.cpp:
  35249. (GIFImageReader::read):
  35250. 2010-02-18 Dan Bernstein <mitz@apple.com>
  35251. Reviewed by Simon Fraser.
  35252. <rdar://problem/7650652> REGRESSION: Selection painting issue in bug review textbox
  35253. https://bugs.webkit.org/show_bug.cgi?id=34946
  35254. Test: fast/repaint/selection-gap-overflow-scroll-2.html
  35255. * rendering/RenderBlock.cpp:
  35256. (WebCore::RenderBlock::paintSelection): localToContainerQuad() adjusts for
  35257. overflow scroll, but RenderLayer::addBlockSelectionGapsBounds() takes
  35258. non-scrolled coordinates, so account for that.
  35259. 2010-02-17 Dumitru Daniliuc <dumi@chromium.org>
  35260. Reviewed by Darin Adler.
  35261. Change the V8 and JSC SQLStatementErrorCallback to interpret
  35262. 'undefined' return values as 'true', as required by the spec.
  35263. https://bugs.webkit.org/show_bug.cgi?id=35048
  35264. * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
  35265. (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
  35266. * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp:
  35267. (WebCore::V8CustomSQLStatementErrorCallback::handleEvent):
  35268. * bindings/v8/custom/V8CustomVoidCallback.cpp:
  35269. (WebCore::invokeCallbackHelper):
  35270. (WebCore::invokeCallback):
  35271. (WebCore::invokeCallbackTreatUndefinedAsTrue):
  35272. * bindings/v8/custom/V8CustomVoidCallback.h:
  35273. 2010-02-17 Ojan Vafai <ojan@chromium.org>
  35274. Reviewed by Adam Barth.
  35275. keyboard selection sometimes moves the wrong end of the selection for Win/Linux
  35276. https://bugs.webkit.org/show_bug.cgi?id=35066
  35277. On Windows/Linux keyboard based selections should always move the same
  35278. end of the seleciton. On Mac, lineboundary and documentboundary changes
  35279. move different ends of the selection depending on which direction your
  35280. extending.
  35281. Test: editing/selection/extend-after-mouse-selection.html
  35282. * editing/SelectionController.cpp:
  35283. (WebCore::SelectionController::positionForPlatform):
  35284. (WebCore::SelectionController::startForPlatform):
  35285. (WebCore::SelectionController::endForPlatform):
  35286. (WebCore::SelectionController::modifyExtendingRight):
  35287. (WebCore::SelectionController::modifyExtendingForward):
  35288. (WebCore::SelectionController::modifyMovingForward):
  35289. (WebCore::SelectionController::modifyExtendingBackward):
  35290. (WebCore::SelectionController::modifyMovingBackward):
  35291. * editing/SelectionController.h:
  35292. 2010-02-18 Timothy Hatcher <timothy@apple.com>
  35293. Add "with" to the list of keywords to syntax highlight.
  35294. http://webkit.org/b/35123
  35295. Reviewed by Pavel Feldman.
  35296. * inspector/front-end/SourceJavaScriptTokenizer.js:
  35297. (WebInspector.SourceJavaScriptTokenizer): Add "width" to _keywords.
  35298. * inspector/front-end/SourceJavaScriptTokenizer.re2js:
  35299. (WebInspector.SourceJavaScriptTokenizer): Ditto.
  35300. 2010-02-17 Peter Kasting <pkasting@google.com>
  35301. Reviewed by Adam Barth.
  35302. Rework PNG-in-ICO decoding to copy the decoded framebuffer into the ICO
  35303. decoder, making the logic less crazy and more like the other decoders.
  35304. https://bugs.webkit.org/show_bug.cgi?id=28751
  35305. * platform/image-decoders/ImageDecoder.cpp:
  35306. (WebCore::RGBA32Buffer::operator=):
  35307. * platform/image-decoders/ImageDecoder.h:
  35308. (WebCore::RGBA32Buffer::RGBA32Buffer):
  35309. * platform/image-decoders/ico/ICOImageDecoder.cpp:
  35310. (WebCore::ICOImageDecoder::frameBufferAtIndex):
  35311. (WebCore::ICOImageDecoder::decodeAtIndex):
  35312. * platform/image-decoders/ico/ICOImageDecoder.h:
  35313. * platform/image-decoders/qt/RGBA32BufferQt.cpp:
  35314. (WebCore::RGBA32Buffer::operator=):
  35315. * platform/image-decoders/skia/ImageDecoderSkia.cpp:
  35316. (WebCore::RGBA32Buffer::operator=):
  35317. 2010-02-18 Pavel Feldman <pfeldman@chromium.org>
  35318. Reviewed by Timothy Hatcher.
  35319. Web Inspector: multiple popovers on screen at the same time.
  35320. https://bugs.webkit.org/show_bug.cgi?id=35105
  35321. * inspector/front-end/Popover.js:
  35322. (WebInspector.Popover.prototype.show):
  35323. (WebInspector.Popover.prototype.hide):
  35324. * inspector/front-end/SourceFrame.js:
  35325. (WebInspector.SourceFrame.prototype._showPopup):
  35326. 2010-02-18 Pavel Feldman <pfeldman@chromium.org>
  35327. Reviewed by Timothy Hatcher.
  35328. Web Inspector: Expand Object.__proto__ properly.
  35329. https://bugs.webkit.org/show_bug.cgi?id=35113
  35330. * inspector/front-end/EventListenersSidebarPane.js:
  35331. * inspector/front-end/InjectedScript.js:
  35332. (injectedScriptConstructor):
  35333. * inspector/front-end/ObjectProxy.js:
  35334. (WebInspector.ObjectProxy):
  35335. * inspector/front-end/PropertiesSidebarPane.js:
  35336. (WebInspector.PropertiesSidebarPane.prototype.update.callback):
  35337. * inspector/front-end/inspector.js:
  35338. (WebInspector.log.logMessage):
  35339. (WebInspector.log):
  35340. 2010-02-18 Nate Chapin <japhet@chromium.org>
  35341. Reviewed by Adam Barth.
  35342. [V8] Merge the DOMWindow and WorkerContext object wrapping code paths,
  35343. and use a faster method of disambiguating between the types of contexts.
  35344. https://bugs.webkit.org/show_bug.cgi?id=35009
  35345. * bindings/scripts/CodeGeneratorV8.pm: Remove logic determining whether we need to
  35346. handle the WorkerContext case.
  35347. * bindings/v8/V8DOMWrapper.cpp:
  35348. (WebCore::globalObjectPrototypeIsDOMWindow):
  35349. (WebCore::V8DOMWrapper::instantiateV8Object): Merge instantiateV8Object paths.
  35350. * bindings/v8/V8DOMWrapper.h:
  35351. 2010-02-12 Brett Wilson <brettw@chromium.org>
  35352. Reviewed by Adam Barth.
  35353. Update the Google-URL version of KURL and the V8 bindings to the new
  35354. behavior of KURL.IsStandard.
  35355. https://bugs.webkit.org/show_bug.cgi?id=34859
  35356. This is covered by fast/dom/Window/invalid-protocol.html
  35357. * bindings/v8/custom/V8LocationCustom.cpp:
  35358. (WebCore::V8Location::protocolAccessorSetter):
  35359. * platform/KURLGoogle.cpp:
  35360. (WebCore::KURL::setProtocol):
  35361. (WebCore::KURL::isHierarchical):
  35362. 2010-02-18 Xan Lopez <xlopez@igalia.com>
  35363. Reviewed by Gustavo Noronha.
  35364. Remove some duplication between PluginView and Widget methods, and
  35365. move the setSelfVisible calls to the parent class.
  35366. * platform/gtk/WidgetGtk.cpp:
  35367. (WebCore::Widget::show):
  35368. (WebCore::Widget::hide):
  35369. * plugins/gtk/PluginViewGtk.cpp:
  35370. (WebCore::PluginView::setFocus):
  35371. (WebCore::PluginView::show):
  35372. (WebCore::PluginView::hide):
  35373. 2010-02-18 Simon Fraser <simon.fraser@apple.com>
  35374. Reviewed by Darin Adler.
  35375. <rdar://problem/7655195> Switch Leopard back to using CGShading to avoid CGGradient leaks
  35376. Define USE_CG_SHADING on for Tiger and Leopard, and use it to toggle the methods
  35377. used for Core Graphics gradient drawing.
  35378. * platform/graphics/Gradient.h:
  35379. * platform/graphics/cg/GradientCG.cpp:
  35380. (WebCore::Gradient::platformDestroy):
  35381. (WebCore::Gradient::paint):
  35382. 2010-02-18 Pavel Feldman <pfeldman@chromium.org>
  35383. Reviewed by Timothy Hatcher.
  35384. Web Inspector: on-hover evaluation renders nodes and arrays as strings.
  35385. https://bugs.webkit.org/show_bug.cgi?id=35103
  35386. * inspector/front-end/SourceFrame.js:
  35387. (WebInspector.SourceFrame.prototype._showPopup.showObjectPopup):
  35388. 2010-02-18 Brady Eidson <beidson@apple.com>
  35389. Reviewed by Sam Weinig.
  35390. Particularly constructed WebFrames can try to access a null HistoryItem
  35391. <rdar://problem/7638892> and https://bugs.webkit.org/show_bug.cgi?id=35063
  35392. Test: fast/loader/api-test-new-window-data-load-base-url.html
  35393. * loader/HistoryController.cpp:
  35394. (WebCore::HistoryController::updateBackForwardListForFragmentScroll): We have a known case where a fragment scroll
  35395. might take place with a null m_currentItem. updateBackForwardListClippedAtTarget() will either move m_currentItem
  35396. to m_previousItem then create a new m_currentItem... or it will do nothing. So we either have both an m_currentItem
  35397. and m_previousItem, or we have neither. In the case where we have no m_previousItem, return early.
  35398. 2010-02-18 Nate Chapin <japhet@chromium.org>
  35399. Reviewed by Eric Seidel.
  35400. [V8] Correctly handle the case where the event field on the
  35401. global object is a v8::Object, but not a DOM wrapper.
  35402. https://bugs.webkit.org/show_bug.cgi?id=34899
  35403. Test: fast/dom/Window/window-event-override-no-crash.html
  35404. * bindings/v8/ScriptController.cpp:
  35405. (WebCore::ScriptController::processingUserGesture):
  35406. * bindings/v8/V8DOMWrapper.cpp:
  35407. (WebCore::V8DOMWrapper::isValidDOMObject):
  35408. (WebCore::V8DOMWrapper::isWrapperOfType):
  35409. * bindings/v8/V8DOMWrapper.h:
  35410. 2010-02-18 Pavel Feldman <pfeldman@chromium.org>
  35411. Not reviewed, Qt build fix.
  35412. * inspector/front-end/WebKit.qrc:
  35413. 2010-02-18 Pavel Feldman <pfeldman@chromium.org>
  35414. Reviewed by Timothy Hatcher.
  35415. Web Inspector: Implement evaluate-on-hover for scripts panel.
  35416. https://bugs.webkit.org/show_bug.cgi?id=35003
  35417. * WebCore.gypi:
  35418. * WebCore.vcproj/WebCore.vcproj:
  35419. * inspector/front-end/Images/gearButtonGlyph.png: Added.
  35420. * inspector/front-end/Images/popoverArrows.png: Added.
  35421. * inspector/front-end/Images/popoverBackground.png: Added.
  35422. * inspector/front-end/Images/thumbActiveHoriz.png: Added.
  35423. * inspector/front-end/Images/thumbActiveVert.png: Added.
  35424. * inspector/front-end/Images/thumbHoriz.png: Added.
  35425. * inspector/front-end/Images/thumbHoverHoriz.png: Added.
  35426. * inspector/front-end/Images/thumbHoverVert.png: Added.
  35427. * inspector/front-end/Images/thumbVert.png: Added.
  35428. * inspector/front-end/Images/trackHoriz.png: Added.
  35429. * inspector/front-end/Images/trackVert.png: Added.
  35430. * inspector/front-end/Popup.js:
  35431. (WebInspector.Popup):
  35432. (WebInspector.Popup.prototype.show):
  35433. (WebInspector.Popup.prototype.hide):
  35434. (WebInspector.Popup.prototype._positionElement):
  35435. * inspector/front-end/SourceFrame.js:
  35436. (WebInspector.SourceFrame.prototype._createViewerIfNeeded):
  35437. (WebInspector.SourceFrame.prototype._scroll):
  35438. (WebInspector.SourceFrame.prototype._mouseDown):
  35439. (WebInspector.SourceFrame.prototype._mouseUp):
  35440. (WebInspector.SourceFrame.prototype._mouseMove):
  35441. (WebInspector.SourceFrame.prototype._mouseOut):
  35442. (WebInspector.SourceFrame.prototype._resetHoverTimer):
  35443. (WebInspector.SourceFrame.prototype._hidePopup):
  35444. (WebInspector.SourceFrame.prototype._mouseHover):
  35445. (WebInspector.SourceFrame.prototype._showPopup.showTextPopup):
  35446. (WebInspector.SourceFrame.prototype._showPopup.showObjectPopup):
  35447. (WebInspector.SourceFrame.prototype._showPopup.evaluateCallback):
  35448. (WebInspector.SourceFrame.prototype._showPopup):
  35449. (WebInspector.HoverPropertiesSection):
  35450. (WebInspector.HoverPropertiesSection.prototype.update):
  35451. * inspector/front-end/TextEditorHighlighter.js:
  35452. (WebInspector.TextEditorHighlighter):
  35453. (WebInspector.TextEditorHighlighter.prototype._lex):
  35454. * inspector/front-end/TextViewer.js:
  35455. (WebInspector.TextViewer.prototype._paintLine):
  35456. * inspector/front-end/WebKit.qrc:
  35457. * inspector/front-end/inspector.css:
  35458. * inspector/front-end/inspector.html:
  35459. * inspector/front-end/inspectorSyntaxHighlight.css:
  35460. * inspector/front-end/popover.css: Added.
  35461. 2010-02-18 Ben Murdoch <benm@google.com>
  35462. Reviewed by Jeremy Orlow.
  35463. [v8] Complete upstreaming of V8 Touch Event bindings
  35464. https://bugs.webkit.org/show_bug.cgi?id=35094
  35465. No new tests required.
  35466. * bindings/v8/V8Index.cpp: Add generated touch event headers.
  35467. 2010-02-18 Steve Block <steveblock@google.com>
  35468. Reviewed by Jeremy Orlow.
  35469. Updates Android V8 build to use DerivedSourcesAllInOne.cpp
  35470. https://bugs.webkit.org/show_bug.cgi?id=35083
  35471. No new tests, build fix only.
  35472. * Android.derived.v8bindings.mk:
  35473. * Android.v8bindings.mk:
  35474. 2010-02-18 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  35475. Reviewed by Xan Lopez.
  35476. fast/frames/iframe-reparenting.html crashing on GTK Debug bots
  35477. https://bugs.webkit.org/show_bug.cgi?id=35081
  35478. Check that the client is alive after every call to it, since any
  35479. of them could cause the load to be cancelled, and the client to go
  35480. away.
  35481. This is much better than protecting a specific subclass of
  35482. ResourceHandleClient (ResourceLoader), which makes us fail when
  35483. any other client is used.
  35484. Test: fast/frames/iframe-reparenting.html
  35485. * platform/network/soup/ResourceHandleSoup.cpp:
  35486. (WebCore::parseDataUrl):
  35487. 2010-02-18 Ben Murdoch <benm@google.com>
  35488. Reviewed by Nate Chapin.
  35489. [v8] [Android] V8 bindings for touch events are missing.
  35490. https://bugs.webkit.org/show_bug.cgi?id=33795
  35491. No new tests as this just enables touch events in V8. Existing touch tests suffice.
  35492. * WebCore.gypi: Add Touch idl files.
  35493. * bindings/scripts/CodeGeneratorV8.pm: Add TouchList to typeCanFailConversion map.
  35494. * bindings/v8/DOMObjectsInclude.h: Add touch headers.
  35495. * bindings/v8/DerivedSourcesAllInOne.cpp: Add touch generated bindings.
  35496. * bindings/v8/V8Index.h: Add touch DOM object types.
  35497. * bindings/v8/custom/V8EventCustom.cpp: Add conversion of event to touch event.
  35498. * Android.derived.jscbindings.mk: Add the touch derived sources to the makefile.
  35499. * Android.derived.v8bindings.mk: Add the touch derived sources to the makefile.
  35500. 2010-02-18 William Chan <willchan@chromium.org>
  35501. Reviewed by Adam Barth.
  35502. https://bugs.webkit.org/show_bug.cgi?id=35071
  35503. Disable loader limiting of requests per host for the chromium port.
  35504. No tests because we're only changing a constant.
  35505. * platform/network/chromium/ResourceRequest.cpp:
  35506. (WebCore::initializeMaximumHTTPConnectionCountPerHost):
  35507. 2010-02-18 Xan Lopez <xlopez@igalia.com>
  35508. Reviewed by Eric Seidel.
  35509. [Linux] Webkit incompatible with Java plugins
  35510. https://bugs.webkit.org/show_bug.cgi?id=24912
  35511. The NP Version supported by WebKit is at the moment hardcoded in
  35512. PluginPackage.cpp (to 24), but not all backends actually implement
  35513. the methods needed to claim this. Introduce a new method to be
  35514. implemented by each backend where the maximum supported version
  35515. can be specified, and set the GTK+ port NPVersion to 19. This
  35516. fixes an instantaneous crasher in the Sun Java NPAPI plugin.
  35517. * plugins/PluginPackage.cpp:
  35518. (WebCore::PluginPackage::initializeBrowserFuncs):
  35519. * plugins/PluginPackage.h:
  35520. * plugins/gtk/PluginPackageGtk.cpp:
  35521. (WebCore::PluginPackage::NPVersion):
  35522. * plugins/mac/PluginPackageMac.cpp:
  35523. (WebCore::PluginPackage::NPVersion):
  35524. * plugins/qt/PluginPackageQt.cpp:
  35525. (WebCore::PluginPackage::NPVersion):
  35526. * plugins/symbian/PluginPackageSymbian.cpp:
  35527. (WebCore::PluginPackage::NPVersion):
  35528. * plugins/win/PluginPackageWin.cpp:
  35529. (WebCore::PluginPackage::NPVersion):
  35530. 2010-02-17 Dmitry Titov <dimich@chromium.org>
  35531. Reviewed by David Levin, Darin Fisher, Simon Hausmann.
  35532. When a live iframe element is moved between pages, it still depends on the old page.
  35533. https://bugs.webkit.org/show_bug.cgi?id=34382
  35534. Test: fast/frames/iframe-reparenting-new-page.html
  35535. * html/HTMLFrameElementBase.cpp:
  35536. (WebCore::HTMLFrameElementBase::setName):
  35537. Move the code setting the frame name into a separate function.
  35538. (WebCore::HTMLFrameElementBase::setNameAndOpenURL):
  35539. (WebCore::HTMLFrameElementBase::updateOnReparenting):
  35540. Called on the frame that was just re-parented and inserted into another Document.
  35541. Simply invoke Frame::transferChildFrameToNewDocument(...);
  35542. (WebCore::HTMLFrameElementBase::insertedIntoDocument):
  35543. * html/HTMLFrameElementBase.h:
  35544. * html/HTMLFrameOwnerElement.h:
  35545. (WebCore::HTMLFrameOwnerElement::setName):
  35546. Make this a virtual function, to be able to reach it via Frame::m_ownerElement.
  35547. * loader/EmptyClients.h:
  35548. (WebCore::EmptyFrameLoaderClient::adoptFrame):
  35549. * loader/FrameLoaderClient.h:
  35550. Add a new method, didTransferChildFrameToNewDocument().
  35551. It compliments createFrame() in that a frame which was re-parented
  35552. in DOM and potentially changes Page, should notify the WebKit
  35553. implementation about potential ownership change.
  35554. Many embedders assume that Page owns all the Frames, or at least
  35555. all Frames are destroyed before 'their' Page is destroyed. Obviously, if Frame
  35556. can be transferred to another Page, the embedders should be notified.
  35557. * page/Frame.cpp:
  35558. (WebCore::Frame::transferChildFrameToNewDocument):
  35559. Added, makes actual adjustments for Frame - resets the Page,
  35560. updates the frame tree and frame name, calls to FrameLoaderClient
  35561. to update external objects and recurses into children.
  35562. Can only be used on child frames.
  35563. * page/Frame.h:
  35564. 2010-02-17 Tony Chang <tony@chromium.org>
  35565. Reviewed by Eric Seidel.
  35566. Copying and pasting into a contenteditable area can create <div>s surrounded by <span>s
  35567. https://bugs.webkit.org/show_bug.cgi?id=26937
  35568. This happens because of a span added when we copy that is used to
  35569. preserve styles. To avoid this, when we paste, make sure to apply
  35570. the styles to the span's children and then remove the style span.
  35571. This change is covered by existing layout tests.
  35572. * editing/ReplaceSelectionCommand.cpp:
  35573. (WebCore::ReplaceSelectionCommand::handleStyleSpans):
  35574. (WebCore::ReplaceSelectionCommand::copyStyleToChildren):
  35575. * editing/ReplaceSelectionCommand.h:
  35576. 2010-02-17 Tony Chang <tony@chromium.org>
  35577. Reviewed by Eric Seidel.
  35578. https://bugs.webkit.org/show_bug.cgi?id=34914
  35579. When pasting absolute font sizes into a content editable area with
  35580. page zoom, adjust the font sizes to be the same after page zoom is
  35581. applied.
  35582. Test: editing/pasteboard/page-zoom.html
  35583. * editing/ReplaceSelectionCommand.cpp:
  35584. (WebCore::ReplaceSelectionCommand::negateStyleRulesThatAffectAppearance):
  35585. 2010-02-17 Tony Chang <tony@chromium.org>
  35586. Reviewed by Eric Seidel.
  35587. https://bugs.webkit.org/show_bug.cgi?id=34737
  35588. Copying styled list items then pasting into a list
  35589. should work the same as copying unstyle list items:
  35590. it shouldn't indent an extra level, but styles should
  35591. be copied.
  35592. Small cleanups to insertAsListItems to make variable names
  35593. more descriptive.
  35594. Test: editing/pasteboard/paste-list-003.html
  35595. * editing/ReplaceSelectionCommand.cpp:
  35596. (WebCore::ReplaceSelectionCommand::doApply):
  35597. (WebCore::ReplaceSelectionCommand::insertAsListItems):
  35598. 2010-02-17 Kwang Yul Seo <skyul@company100.net>
  35599. Reviewed by Eric Seidel.
  35600. [BREWMP] Port PlatformKeyboardEvent
  35601. https://bugs.webkit.org/show_bug.cgi?id=34794
  35602. Retrieve the type, key code, text and modifiers from BREW's keyboard event.
  35603. * platform/PlatformKeyboardEvent.h:
  35604. * platform/brew/PlatformKeyboardEventBrew.cpp: Added.
  35605. (WebCore::keyIdentifierForBrewKeyCode):
  35606. (WebCore::windowsKeyCodeForKeyEvent):
  35607. (WebCore::singleCharacterString):
  35608. (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
  35609. (WebCore::PlatformKeyboardEvent::disambiguateKeyDownEvent):
  35610. (WebCore::PlatformKeyboardEvent::currentCapsLockState):
  35611. 2010-02-17 Hayato Ito <hayato@chromium.org>
  35612. Reviewed by Eric Seidel.
  35613. Support CSS page-break-inside with a value of 'avoid'.
  35614. https://bugs.webkit.org/show_bug.cgi?id=34080
  35615. Test: printing/page-break-inside.html
  35616. * rendering/RenderBlock.cpp:
  35617. (WebCore::RenderBlock::paintChildren):
  35618. 2010-02-17 Fumitoshi Ukai <ukai@chromium.org>
  35619. Reviewed by Alexey Proskuryakov.
  35620. WebSocket bufferedAmount should not be 0 when send after close.
  35621. https://bugs.webkit.org/show_bug.cgi?id=34633
  35622. Fixed bug in webkit r54694. check m_client after it calls user
  35623. callback, because user callback may call close(), which would
  35624. call onclose event handler.
  35625. Test: websocket/tests/bufferedAmount-after-close.html
  35626. * websockets/ThreadableWebSocketChannelClientWrapper.h:
  35627. (WebCore::ThreadableWebSocketChannelClientWrapper::didClose):
  35628. * websockets/WebSocket.cpp:
  35629. (WebCore::WebSocket::WebSocket):
  35630. (WebCore::WebSocket::send):
  35631. (WebCore::WebSocket::close):
  35632. (WebCore::WebSocket::bufferedAmount):
  35633. (WebCore::WebSocket::didConnect):
  35634. (WebCore::WebSocket::didClose):
  35635. * websockets/WebSocket.h:
  35636. * websockets/WebSocketChannel.cpp:
  35637. (WebCore::WebSocketChannel::WebSocketChannel):
  35638. (WebCore::WebSocketChannel::send):
  35639. (WebCore::WebSocketChannel::bufferedAmount):
  35640. (WebCore::WebSocketChannel::didClose):
  35641. (WebCore::WebSocketChannel::didReceiveData):
  35642. * websockets/WebSocketChannel.h:
  35643. * websockets/WebSocketChannelClient.h:
  35644. (WebCore::WebSocketChannelClient::didClose):
  35645. * websockets/WorkerThreadableWebSocketChannel.cpp:
  35646. (WebCore::workerContextDidClose):
  35647. (WebCore::WorkerThreadableWebSocketChannel::Peer::didClose):
  35648. * websockets/WorkerThreadableWebSocketChannel.h:
  35649. 2010-02-17 Yuzo Fujishima <yuzo@google.com>
  35650. Reviewed by Eric Seidel.
  35651. In diffing render styles, consider all pseudo style changes.
  35652. Without this patch, only :before and :after are considered. This is the cause of the following bug.
  35653. https://bugs.webkit.org/show_bug.cgi?id=32187
  35654. Test: fast/css/first-letter-first-line-hover.html
  35655. * dom/Node.cpp:
  35656. (WebCore::Node::diff):
  35657. * rendering/style/RenderStyle.cpp:
  35658. (WebCore::RenderStyle::hasAnyPublicPseudoStyles):
  35659. * rendering/style/RenderStyle.h:
  35660. * rendering/style/RenderStyleConstants.h:
  35661. (WebCore::):
  35662. 2010-02-17 Kwang Yul Seo <skyul@company100.net>
  35663. Reviewed by Eric Seidel.
  35664. [BREWMP] Add WebCore::prefetchDNS
  35665. https://bugs.webkit.org/show_bug.cgi?id=34873
  35666. DNS prefetching is not implemented because the maximum number
  35667. of UDP sockets is quite small in most BREW devices.
  35668. * platform/network/brew/DNSBrew.cpp: Added.
  35669. (WebCore::prefetchDNS):
  35670. 2010-02-17 Kent Tamura <tkent@chromium.org>
  35671. Reviewed by Eric Seidel.
  35672. Introduces new Icon loading interface in order to support
  35673. asynchronous loading.
  35674. https://bugs.webkit.org/show_bug.cgi?id=32054
  35675. It's hard for Chromium port to load an icon inside
  35676. Icon::createIconForFiles() because of sanbox and multi-process
  35677. architecture. So this change adds a method to request an icon to
  35678. Chrome class, and makes FileChooser receives an Icon instance
  35679. asynchronously. Synchronous loading also works with the new interface.
  35680. Because all ports don't have implementations of Chrome::iconForFiles()
  35681. yet, FileChooser tries to load an Icon synchronously with
  35682. Icon::createIconForFiles(), then tries to load an Icon asynchronously
  35683. with Chrome::iconForFiles() if Icon::createIconForFiles() returns 0.
  35684. The existing Icon::createIconForFiles() implementations should be
  35685. moved to Chrome::iconForFiles(). We're going to remove
  35686. Icon::createIconForFiles().
  35687. * loader/EmptyClients.h:
  35688. (WebCore::EmptyChromeClient::iconForFiles): Add an empty implementation.
  35689. * page/Chrome.cpp:
  35690. (WebCore::Chrome::iconForFiles): Delegate to ChromeClient::iconForFiles().
  35691. * page/Chrome.h:
  35692. * page/ChromeClient.h:
  35693. (WebCore::ChromeClient::iconForFiles): Add a declaration as a pure virtual method.
  35694. * platform/FileChooser.cpp:
  35695. (WebCore::FileChooser::FileChooser): Use loadIcon().
  35696. (WebCore::FileChooser::chooseFiles): ditto.
  35697. (WebCore::FileChooser::loadIcon): Added.
  35698. (WebCore::FileChooser::iconLoaded): Added.
  35699. * platform/FileChooser.h: Add two methods to FileChooserClient; repaint() and iconForFiles().
  35700. * platform/graphics/Icon.h: Add a FIXME comment.
  35701. * platform/graphics/gtk/IconGtk.cpp: ditto.
  35702. * platform/graphics/mac/IconMac.mm: ditto.
  35703. * platform/graphics/qt/IconQt.cpp: ditto.
  35704. * platform/graphics/win/IconWin.cpp: ditto.
  35705. * rendering/RenderFileUploadControl.cpp:
  35706. (WebCore::RenderFileUploadControl::iconForFiles): Delegate to Chrome::iconForFiles().
  35707. (WebCore::RenderFileUploadControl::click): Use chrome().
  35708. (WebCore::RenderFileUploadControl::chrome):
  35709. * rendering/RenderFileUploadControl.h:
  35710. (WebCore::RenderFileUploadControl::repaint):
  35711. 2010-02-17 Mark Rowe <mrowe@apple.com>
  35712. Reviewed by Darin Adler.
  35713. Bug 35065: Delay between page loading and animated GIF playing
  35714. <http://webkit.org/b/35065> / <rdar://problem/7109548>
  35715. BitmapImage::startAnimation was adding the current frame duration to the desired start time
  35716. of the frame for every time it was called. If the function then bailed out due to not having
  35717. sufficient data to render the frame, this would lead to the desired start time of the frame
  35718. being pushed out multiple times. On an animated GIF that took mulitple seconds to load this
  35719. could happen many times for a single frame, resulting in the start time of the second frame
  35720. of the animation being pushed out by as much as five seconds.
  35721. * platform/graphics/BitmapImage.cpp:
  35722. (WebCore::BitmapImage::startAnimation): Change the order of the code slightly so that the
  35723. desired start time is only updated after determining that we have sufficient data to handle
  35724. the next frame.
  35725. 2010-02-17 Stephan Aßmus <superstippi@gmx.de>
  35726. Reviewed by Eric Seidel.
  35727. Implemented homeDirectoryPath() and listDirectory() on the Haiku platform.
  35728. https://bugs.webkit.org/show_bug.cgi?id=34687
  35729. Covered by existing tests.
  35730. * platform/haiku/FileSystemHaiku.cpp:
  35731. (WebCore::homeDirectoryPath): Implemented
  35732. (WebCore::listDirectory): Implemented
  35733. 2010-02-17 Kwang Yul Seo <skyul@company100.net>
  35734. Reviewed by Eric Seidel.
  35735. [BREWMP] Port userIdleTime
  35736. https://bugs.webkit.org/show_bug.cgi?id=34259
  35737. Return an arbitrarily high userIdleTime so that releasing pages from the page
  35738. cache isn't postponed.
  35739. * platform/brew/SystemTimeBrew.cpp: Added.
  35740. (WebCore::userIdleTime):
  35741. 2010-02-17 Dirk Schulze <krit@webkit.org>
  35742. Rolling out r54909. Breaks SL and Win.
  35743. 2010-02-17 Dumitru Daniliuc <dumi@chromium.org>
  35744. Reviewed by Dimitri Glazkov.
  35745. Fix Chromium's bindings for Database.transaction(): a 'null'
  35746. callback should be treated as no callback.
  35747. Test: storage/null-callbacks.html
  35748. https://bugs.webkit.org/show_bug.cgi?id=35047
  35749. * bindings/v8/custom/V8DatabaseCustom.cpp:
  35750. (WebCore::createTransaction):
  35751. 2010-02-17 Dirk Schulze <krit@webkit.org>
  35752. Reviewed by Nikolas Zimmermann.
  35753. Move SVGResources to Renderers, starting with Masker
  35754. https://bugs.webkit.org/show_bug.cgi?id=35020
  35755. We have rendering specific code in WebCore/svg/graphics. The goal is to move
  35756. this code into suitable Renderers. This helps us to clean up the code and makes
  35757. maintenance easier. It also makes it possible to remove rendering specific code
  35758. from SVG*Elements into this renderers. So the Renderer contains everything that
  35759. is needed to use the resource.
  35760. RenderSVGResource will be the base class for all new resource render classes like
  35761. RenderSVGResourceMasker, RenderSVGResourceClipper and the other resources.
  35762. This patch starts moving SVGResourceMasker to RenderSVGResourceMasker.
  35763. Another benefit is the much more useful result in DRT on using masker.
  35764. * Android.mk:
  35765. * GNUmakefile.am:
  35766. * WebCore.gypi:
  35767. * WebCore.pro:
  35768. * WebCore.vcproj/WebCore.vcproj:
  35769. * WebCore.xcodeproj/project.pbxproj:
  35770. * rendering/RenderObject.cpp:
  35771. (WebCore::RenderObject::toRenderSVGResource): Conversion to RenderSVGResource base class.
  35772. * rendering/RenderObject.h:
  35773. (WebCore::RenderObject::isSVGResource): Check if renderer is a resource.
  35774. * rendering/RenderPath.cpp:
  35775. * rendering/RenderSVGImage.cpp:
  35776. (WebCore::RenderSVGImage::destroy): Renderer gets destroyed, unregister it from it's resources.
  35777. * rendering/RenderSVGImage.h: Some code clean up according to the webkit style.
  35778. (WebCore::RenderSVGImage::toSVGRenderBase):
  35779. (WebCore::RenderSVGImage::renderName):
  35780. (WebCore::RenderSVGImage::isSVGImage):
  35781. (WebCore::RenderSVGImage::localToParentTransform):
  35782. (WebCore::RenderSVGImage::strokeBoundingBox):
  35783. (WebCore::RenderSVGImage::requiresLayer):
  35784. (WebCore::RenderSVGImage::localTransform):
  35785. * rendering/RenderSVGInlineText.h:
  35786. (WebCore::RenderSVGInlineText::objectBoundingBox): Needed for SVGRenderTreeAsText
  35787. * rendering/RenderSVGModelObject.cpp:
  35788. (WebCore::RenderSVGModelObject::destroy): Renderer gets destroyed, unregister it from it's resources.
  35789. * rendering/RenderSVGModelObject.h:
  35790. * rendering/RenderSVGResource.h: Added.
  35791. (WebCore::): Base class for all Resource renderers like masker, clipper and others.
  35792. (WebCore::RenderSVGResource::RenderSVGResource):
  35793. (WebCore::RenderSVGResource::cast):
  35794. (WebCore::RenderSVGResource::toRenderSVGResource):
  35795. (WebCore::RenderSVGResource::isSVGResource):
  35796. (WebCore::RenderSVGResource::drawsContents):
  35797. (WebCore::getRenderSVGResourceById):
  35798. * rendering/RenderSVGResourceMasker.cpp: Added.
  35799. (WebCore::RenderSVGResourceMasker::RenderSVGResourceMasker):
  35800. (WebCore::RenderSVGResourceMasker::~RenderSVGResourceMasker):
  35801. (WebCore::RenderSVGResourceMasker::invalidateClients): Status of masker changed, remove all clients.
  35802. (WebCore::RenderSVGResourceMasker::invalidateClient): Status of an object changed, remove pending client.
  35803. (WebCore::RenderSVGResourceMasker::applyResource): Apply masker to object.
  35804. (WebCore::RenderSVGResourceMasker::resourceBoundingBox): boundingBox of the resource, depending on the object.
  35805. (WebCore::RenderSVGResourceMasker::createMaskImage): Creates the mask image, the context gets clipped with.
  35806. * rendering/RenderSVGResourceMasker.h: Added.
  35807. (WebCore::MaskerData::MaskerData):
  35808. (WebCore::RenderSVGResourceMasker::renderName):
  35809. (WebCore::RenderSVGResourceMasker::maskUnits): Unit of mask for DRT.
  35810. (WebCore::RenderSVGResourceMasker::maskContentUnits): Unit of childs from mask for DRT.
  35811. (WebCore::RenderSVGResourceMasker::resourceType):
  35812. * rendering/RenderSVGRoot.cpp:
  35813. (WebCore::RenderSVGRoot::destroy): Renderer gets destroyed, unregister it from it's resources.
  35814. * rendering/RenderSVGRoot.h:
  35815. * rendering/RenderSVGText.cpp:
  35816. (WebCore::RenderSVGText::destroy): dito.
  35817. * rendering/RenderSVGText.h:
  35818. * rendering/RenderTreeAsText.cpp:
  35819. (WebCore::write):
  35820. * rendering/SVGRenderSupport.cpp:
  35821. (WebCore::SVGRenderBase::prepareToRenderSVGContent):
  35822. (WebCore::SVGRenderBase::maskerBoundingBoxForRenderer):
  35823. (WebCore::SVGRenderBase::deregisterFromResources): Unregister object from all it's resources after status changed.
  35824. * rendering/SVGRenderSupport.h:
  35825. (WebCore::SVGRenderBase::toSVGRenderBase):
  35826. (WebCore::SVGRenderBase::strokeBoundingBox):
  35827. (WebCore::SVGRenderBase::markerBoundingBox):
  35828. * rendering/SVGRenderTreeAsText.cpp: Update TreeAsText to dump maskers correctly.
  35829. (WebCore::operator<<):
  35830. (WebCore::writeSVGResource):
  35831. (WebCore::writeSVGContainer):
  35832. (WebCore::writeSVGText):
  35833. (WebCore::writeSVGInlineText):
  35834. (WebCore::writeSVGImage):
  35835. (WebCore::write):
  35836. (WebCore::writeResourcesToObject):
  35837. * rendering/SVGRenderTreeAsText.h:
  35838. * svg/SVGMaskElement.cpp: Update Masker to use the new renderer.
  35839. (WebCore::SVGMaskElement::svgAttributeChanged):
  35840. (WebCore::SVGMaskElement::childrenChanged):
  35841. (WebCore::SVGMaskElement::maskBoundingBox):
  35842. (WebCore::SVGMaskElement::createRenderer):
  35843. * svg/SVGMaskElement.h:
  35844. * svg/SVGStyledElement.cpp: We need to tell the renderer to unregister object, after the status changed.
  35845. (WebCore::SVGStyledElement::invalidateResources):
  35846. (WebCore::SVGStyledElement::invalidateResourcesInAncestorChain):
  35847. * svg/SVGUnitTypes.h: Conversion of integer to SVGUnitType.
  35848. (WebCore::toUnitType):
  35849. * svg/graphics/SVGResource.h:
  35850. (WebCore::):
  35851. (WebCore::SVGResource::isMarker):
  35852. * svg/graphics/SVGResourceMasker.cpp: Removed.
  35853. * svg/graphics/SVGResourceMasker.h: Removed.
  35854. 2010-02-17 Kenneth Russell <kbr@google.com>
  35855. Reviewed by Oliver Hunt.
  35856. Refactor texImage2D and texSubImage2D taking Image to use common code
  35857. https://bugs.webkit.org/show_bug.cgi?id=34458
  35858. Merged the Safari and Chromium code which extracts the data from
  35859. Image objects into common entry points on GraphicsContext3D. This
  35860. immediately fixes the following three problems:
  35861. - Chromium not implementing texSubImage2D taking Image.
  35862. - Safari not obeying the flipY parameter to texImage2D or
  35863. texSubImage2D taking Image.
  35864. - Safari not obeying the premultipyAlpha parameter to texImage2D
  35865. or texSubImage2D taking Image.
  35866. Added new test verifying the behavior of texImage2D and
  35867. texSubImage2D and the flipY parameter. The premultiplyAlpha
  35868. parameter can not be tested yet as the implementation is not yet
  35869. spec compliant. This will be fixed in a follow-on bug.
  35870. Ran all WebGL demos in demo repository on Safari and Chromium;
  35871. textures are now the right way up in both browsers, and
  35872. transparent textures in Particles demo now look correct in Safari.
  35873. Test: fast/canvas/webgl/tex-image-and-sub-image-2d-with-image.html
  35874. * WebCore.gyp/WebCore.gyp:
  35875. * WebCore.gypi:
  35876. * WebCore.xcodeproj/project.pbxproj:
  35877. * platform/graphics/GraphicsContext3D.cpp: Added.
  35878. (WebCore::GraphicsContext3D::extractImageData):
  35879. (WebCore::GraphicsContext3D::processImageData):
  35880. (WebCore::GraphicsContext3D::premultiplyAlpha):
  35881. (WebCore::GraphicsContext3D::unmultiplyAlpha):
  35882. * platform/graphics/GraphicsContext3D.h:
  35883. (WebCore::GraphicsContext3D::):
  35884. * platform/graphics/cg/GraphicsContext3DCG.cpp: Added.
  35885. (WebCore::GraphicsContext3D::getImageData):
  35886. * platform/graphics/mac/GraphicsContext3DMac.cpp:
  35887. (WebCore::GraphicsContext3D::texImage2D):
  35888. (WebCore::GraphicsContext3D::texSubImage2D):
  35889. * platform/graphics/skia/GraphicsContext3DSkia.cpp: Added.
  35890. (WebCore::GraphicsContext3D::getImageData):
  35891. 2010-02-17 Noam Rosenthal <noam.rosenthal@nokia.com>
  35892. Reviewed by Ariya Hidayat.
  35893. [Qt] GraphicsLayer: support perspective and 3D transforms
  35894. https://bugs.webkit.org/show_bug.cgi?id=34960
  35895. New tests: http://webkit.org/blog-files/3d-transforms/perspective-by-example.html
  35896. * platform/graphics/qt/GraphicsLayerQt.cpp:
  35897. (WebCore::GraphicsLayerQtImpl::updateTransform):
  35898. (WebCore::GraphicsLayerQtImpl::setBaseTransform):
  35899. (WebCore::GraphicsLayerQtImpl::computeTransform):
  35900. (WebCore::GraphicsLayerQtImpl::flushChanges):
  35901. (WebCore::TransformAnimationQt::~TransformAnimationQt):
  35902. 2010-02-17 Peter Kasting <pkasting@google.com>
  35903. Unreviewed, build fix.
  35904. Fix crashes due to an omitted line in r54839.
  35905. * platform/image-decoders/png/PNGImageDecoder.cpp:
  35906. (WebCore::decodingFailed):
  35907. 2010-02-17 Alok Priyadarshi <alokp@chromium.org>
  35908. Reviewed by Ariya Hidayat.
  35909. Bug 34900: Implement accelerated compositing for chromium.
  35910. https://bugs.webkit.org/show_bug.cgi?id=34900
  35911. Do not exclude files needed for accelerated compositing. In fact there is no need to exclude these files.
  35912. These files are already guarded with WTF_USE_ACCELERATED_COMPOSITING flag.
  35913. * WebCore.gyp/WebCore.gyp: Removed GraphicsLayer.cpp, RenderLayerBacking.cpp,
  35914. and RenderLayerCompositor.cpp from excluded list.
  35915. 2010-02-17 Jian Li <jianli@chromium.org>
  35916. Reviewed by Darin Fisher.
  35917. [chromium] Remove the obsolete chromium interface for handling DownloadURL.
  35918. https://bugs.webkit.org/show_bug.cgi?id=34982
  35919. * platform/chromium/ChromiumDataObject.cpp:
  35920. (WebCore::ChromiumDataObject::clear):
  35921. (WebCore::ChromiumDataObject::hasData):
  35922. (WebCore::ChromiumDataObject::ChromiumDataObject):
  35923. * platform/chromium/ChromiumDataObject.h:
  35924. * platform/chromium/ClipboardChromium.cpp:
  35925. (WebCore::ClipboardChromium::setData):
  35926. 2010-02-17 Dan Bernstein <mitz@apple.com>
  35927. Reviewed by Darin Adler.
  35928. <rdar://problem/7645569> REGRESSION (r51324): Incorrect marker rects for blocks that span multiple columns
  35929. * manual-tests/match-marker-rects.html: Added.
  35930. * rendering/InlineTextBox.cpp:
  35931. (WebCore::InlineTextBox::paintTextMatchMarker): Use the text renderer rather
  35932. than its ancestor block for the local-to-absolute transformation.
  35933. (WebCore::InlineTextBox::computeRectForReplacementMarker): Ditto.
  35934. 2010-02-17 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  35935. Reviewed by Xan Lopez.
  35936. Does not send an Accept header for subresources, causing some sites to break
  35937. https://bugs.webkit.org/show_bug.cgi?id=33242
  35938. Set */* as the Accept header when downloading resources
  35939. that did not set an Accept header. This behaviour is similar to
  35940. the one adopted by Chromium.
  35941. Test: http/tests/misc/image-checks-for-accept.html
  35942. * platform/network/soup/ResourceHandleSoup.cpp:
  35943. (WebCore::startHttp):
  35944. 2010-02-17 Marcus Bulach <bulach@chromium.org>
  35945. Reviewed by Jeremy Orlow.
  35946. Fixes initialization order of members for GeolocationServiceChromium.
  35947. https://bugs.webkit.org/show_bug.cgi?id=35034
  35948. * platform/chromium/GeolocationServiceChromium.cpp:
  35949. 2010-02-17 Xan Lopez <xlopez@igalia.com>
  35950. Reviewed by Gustavo Noronha.
  35951. [Linux] Webkit incompatible with Java plugins
  35952. https://bugs.webkit.org/show_bug.cgi?id=24912
  35953. Resolve symlinks before trying to load plugins as modules, since
  35954. GModule won't do it.
  35955. Based on original work by Gustavo Noronha.
  35956. * plugins/gtk/PluginPackageGtk.cpp:
  35957. (WebCore::PluginPackage::load):
  35958. 2010-02-17 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  35959. Reviewed by Xan Lopez.
  35960. Protect the resource loader object from disappearing during
  35961. parseDataUrl.
  35962. Tested by testdownload API test.
  35963. * platform/network/soup/ResourceHandleSoup.cpp:
  35964. (WebCore::parseDataUrl):
  35965. 2010-02-17 Marcus Bulach <bulach@chromium.org>
  35966. Reviewed by Jeremy Orlow.
  35967. Implements GeolocationServices for Chromium.
  35968. https://bugs.webkit.org/show_bug.cgi?id=32068
  35969. This is part of implementing Geolocation framework for Chromium. Existing layout tests should pass.
  35970. * WebCore.gypi:
  35971. * page/Geolocation.h:
  35972. * platform/GeolocationService.h:
  35973. 2010-02-17 Steve Block <steveblock@google.com>
  35974. Reviewed by Ariya Hidayat.
  35975. Adds missing platform and feature guards to V8 bindings
  35976. https://bugs.webkit.org/show_bug.cgi?id=34987
  35977. No new tests, build fix only.
  35978. * bindings/v8/V8Proxy.cpp: Modified. Adds CHROMIUM guards and uses PlatformBridge in place of ChromiumBridge
  35979. * bindings/v8/V8Proxy.h: Modified. Adds CHROMIUM guards and uses PlatformBridge in place of ChromiumBridge
  35980. * bindings/v8/custom/V8DocumentCustom.cpp: Modified. Adds XPATH guards
  35981. 2010-02-17 Steve Block <steveblock@google.com>
  35982. Reviewed by Ariya Hidayat.
  35983. Include WebCore's npruntime.h for Android in V8 bindings
  35984. https://bugs.webkit.org/show_bug.cgi?id=35002
  35985. Currently, the V8 bindings include bindings/npruntime.h, which is a
  35986. Chromium-specific file outside of the WebKit tree.
  35987. No new tests, build fix only.
  35988. * bindings/v8/NPV8Object.cpp:
  35989. * bindings/v8/NPV8Object.h:
  35990. * bindings/v8/V8NPObject.h:
  35991. * bindings/v8/V8NPUtils.h:
  35992. * bindings/v8/npruntime_impl.h:
  35993. * bindings/v8/npruntime_priv.h:
  35994. 2010-01-07 Philippe Normand <pnormand@igalia.com>
  35995. Reviewed by Gustavo Noronha Silva.
  35996. [GStreamer] Should handle BUFFERING messages
  35997. https://bugs.webkit.org/show_bug.cgi?id=30004
  35998. Initial support for on-disk buffering of videos. This works only
  35999. for Quicktime and flv though.
  36000. * css/mediaControlsGtk.css:
  36001. * platform/gtk/RenderThemeGtk.cpp:
  36002. (WebCore::RenderThemeGtk::paintMediaSliderTrack): Draw the
  36003. buffering status in the media controls.
  36004. * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
  36005. (WebCore::mediaPlayerPrivateMessageCallback): Defer buffering
  36006. messages handling to processBufferingStats().
  36007. (WebCore::bufferingTimeoutCallback): Closure called periodically
  36008. during the on-disk buffering process.
  36009. (WebCore::MediaPlayerPrivate::MediaPlayerPrivate): New instance
  36010. variables and create playbin2 here instead of doing it in load().
  36011. (WebCore::MediaPlayerPrivate::~MediaPlayerPrivate): New instance
  36012. variables.
  36013. (WebCore::MediaPlayerPrivate::load): Simply set uri on playbin2
  36014. instead of creating the pipeline and setting uri all together.
  36015. (WebCore::MediaPlayerPrivate::processBufferingStats): Start a new
  36016. timeout source if the player is starting on-disk buffering.
  36017. (WebCore::MediaPlayerPrivate::queryBufferingStats): Method called
  36018. 200ms during on-disk buffering to update the maxTimeLoaded and few
  36019. other private variables.
  36020. (WebCore::MediaPlayerPrivate::maxTimeSeekable):
  36021. (WebCore::MediaPlayerPrivate::maxTimeLoaded):
  36022. (WebCore::MediaPlayerPrivate::bytesLoaded): Fixed implementations
  36023. regarding buffering.
  36024. (WebCore::MediaPlayerPrivate::totalBytes): Improved logging.
  36025. (WebCore::MediaPlayerPrivate::updateStates): Start playback if it
  36026. was internally paused at beginning of on-disk buffering and set
  36027. ready/network states depending on the state of the on-disk
  36028. buffering process.
  36029. (WebCore::MediaPlayerPrivate::didEnd): Emit durationChanged.
  36030. (WebCore::MediaPlayerPrivate::setAutobuffer): Edit playbin2 flags
  36031. property depending on autoBuffer value.
  36032. (WebCore::MediaPlayerPrivate::createGSTPlayBin): Don't set uri
  36033. there, it is now done in load().
  36034. * platform/graphics/gtk/MediaPlayerPrivateGStreamer.h: New methods
  36035. and instance variables.
  36036. 2010-02-16 Chris Evans <cevans@chromium.org>
  36037. Reviewed by Adam Barth.
  36038. Add a new setting which gives the option of assigning every file:///
  36039. to its own unique domain.
  36040. https://bugs.webkit.org/show_bug.cgi?id=34778
  36041. Test: Pending in forthcoming separate change due to non-trivial
  36042. dependencies.
  36043. * dom/Document.cpp:
  36044. (WebCore::Document::initSecurityContext): Place file:/// URI documents
  36045. into their own unique domains if the new setting requires it.
  36046. * page/Settings.h:
  36047. * page/Settings.cpp:
  36048. (WebCore::Settings::setAllowFileAccessFromFileURLs): Simple setter.
  36049. * page/SecurityOrigin.h:
  36050. * page/SecurityOrigin.cpp:
  36051. (WebCore::SecurityOrigin::makeUnique): Add simple ability to force an
  36052. origin to be considered unique.
  36053. 2010-02-16 Pavel Feldman <pfeldman@chromium.org>
  36054. Reviewed by Timothy Hatcher.
  36055. Web Inspector: drosera/demo.js not syntax highlighted correctly.
  36056. https://bugs.webkit.org/show_bug.cgi?id=35008
  36057. * inspector/front-end/SourceTokenizer.js:
  36058. (WebInspector.SourceTokenizer.Registry):
  36059. (WebInspector.SourceTokenizer.Registry.prototype.getTokenizer):
  36060. 2010-02-16 Pavel Feldman <pfeldman@chromium.org>
  36061. Reviewed by Timothy Hatcher.
  36062. Web Inspector: prefer smooth scrolling to instant highlight.
  36063. https://bugs.webkit.org/show_bug.cgi?id=34978
  36064. * inspector/front-end/TextViewer.js:
  36065. (WebInspector.TextViewer):
  36066. (WebInspector.TextViewer.prototype._scroll):
  36067. (WebInspector.TextChunk):
  36068. (WebInspector.TextChunk.prototype._createRow):
  36069. * inspector/front-end/textViewer.css:
  36070. 2010-02-16 Yael Aharon <yael.aharon@nokia.com>
  36071. Reviewed by Nikolas Zimmermann.
  36072. SVG not rendered as background-image from data URI
  36073. https://bugs.webkit.org/show_bug.cgi?id=33630
  36074. When the background image is an SVG image, and it is smaller than the area
  36075. it is supposed to fill, we were using renderSubTreeToImage to draw it.
  36076. That call was not going through all the drawing phases, and so the SVG itself
  36077. would not be drawn.
  36078. Test: svg/css/background-image-svg.html
  36079. * svg/graphics/SVGImage.cpp:
  36080. (WebCore::SVGImage::nativeImageForCurrentFrame):
  36081. 2010-02-16 Bryan Yeung <bryeung@chromium.org>
  36082. Reviewed by Nikolas Zimmermann.
  36083. Remove the bounds on stroke width and miter for the skia platform.
  36084. https://bugs.webkit.org/show_bug.cgi?id=34954
  36085. Test: svg/custom/stroke-width-large.svg
  36086. * platform/graphics/skia/PlatformContextSkia.cpp:
  36087. (PlatformContextSkia::setupPaintForStroking):
  36088. 2010-02-16 MORITA Hajime <morrita@gmail.com>
  36089. Reviewed by Nikolas Zimmermann.
  36090. REGRESSION: SVG text disappaears after double click
  36091. https://bugs.webkit.org/show_bug.cgi?id=34880
  36092. Tests: svg/text/selection-doubleclick.svg
  36093. svg/text/selection-tripleclick.svg
  36094. * rendering/SVGRootInlineBox.cpp:
  36095. (WebCore::SVGRootInlineBoxPaintWalker::mayHaveSelection):
  36096. Use InlineTextBox::selectionStartEnd() instead of
  36097. RenderObject::selectionStartEnd() because latter may span multiple
  36098. comparing startPos and endPos is irrelevant in some cases.
  36099. former selectionStartEnd() is for single line and comparing
  36100. startPos and endPos will make sense.
  36101. 2010-02-16 Jessie Berlin <jberlin@webkit.org>
  36102. Reviewed by Timothy Hatcher.
  36103. Inspector should display Array lengths in the property lists.
  36104. https://bugs.webkit.org/show_bug.cgi?id=20695
  36105. * inspector/front-end/InjectedScript.js:
  36106. (injectedScriptConstructor):
  36107. For objects of type 'array' (which includes Arrays, NodeLists, and HTMLCollections), make the length of the object available via propertyLength on the proxy object.
  36108. * inspector/front-end/ObjectPropertiesSection.js:
  36109. (WebInspector.ObjectPropertyTreeElement.prototype.update):
  36110. For properties that have propertyLength defined, append it to the displayed description.
  36111. 2010-02-16 Yusuke Sato <yusukes@chromium.org>
  36112. Reviewed by Dimitri Glazkov.
  36113. [Chromium] OpenType font with CFF glyphs is not handled correctly on Windows XP
  36114. https://bugs.webkit.org/show_bug.cgi?id=34735
  36115. Use 0xFFFF as invalidGlyph when fontData is a OpenType font with CFF glyphs.
  36116. Test: fast/css/font-face-opentype.html
  36117. * platform/graphics/chromium/GlyphPageTreeNodeChromiumWin.cpp:
  36118. (WebCore::fillBMPGlyphs):
  36119. 2010-02-16 Darin Adler <darin@apple.com>
  36120. * page/MediaCanStartListener.h: Fixed license.
  36121. 2010-02-16 Darin Adler <darin@apple.com>
  36122. Reviewed by Sam Weinig.
  36123. Generalize delayed plug-in start for background tabs for use for other media
  36124. https://bugs.webkit.org/show_bug.cgi?id=34981
  36125. Also did some simple cleanup of HTMLMediaElement to get ready to make it
  36126. a client of the same mechanism.
  36127. * WebCore.base.exp: Added Page::setCanStartMedia and resorted.
  36128. * WebCore.xcodeproj/project.pbxproj: Added MediaCanStartListener.h.
  36129. * html/HTMLAudioElement.h: Added an implementation of isVideo since that
  36130. is now a pure virtual function in HTMLMediaElement. Also made tagPriority
  36131. private.
  36132. * html/HTMLMediaElement.h: Made it clearer that HTMLMediaElement is an
  36133. abstract base class by making its constructor protected and making the
  36134. isVideo function a pure virtual function.
  36135. * page/Page.cpp:
  36136. (WebCore::Page::Page): Updated for name change from m_canStartPlugins
  36137. to m_canStartMedia.
  36138. (WebCore::Page::addMediaCanStartListener): Renamed and added an assertion.
  36139. (WebCore::Page::removeUnstartedMedia): Ditto.
  36140. (WebCore::Page::setCanStartMedia): Renamed plugin to media and moved
  36141. the code here from PageWin.cpp. The main change from the one in PageWin.cpp
  36142. is that this function calls mediaCanStart rather than explicitly calling a
  36143. combination of start and dispatchDidFailToStartPlugin on a PluginView.
  36144. * page/Page.h: Re-sorted forward class declarations. Renamed the plugin
  36145. starting functions to media starting names and changed types from
  36146. PluginView to MediaCanStartListener.
  36147. * page/MediaCanStartListener.h: Added.
  36148. * page/win/PageWin.cpp: Moved setCanStartPlugins to the platform-independent
  36149. Page.cpp file so it can be used for more than just Windows plug-ins.
  36150. * plugins/PluginView.cpp: Sorted includes.
  36151. (WebCore::PluginView::startOrAddToUnstartedList): Use addMediaCanStartListener.
  36152. (WebCore::PluginView::mediaCanStart): Added. Called when the page decides that
  36153. media can start. Contains the code that used to be in Page::setCanStartPlugins.
  36154. (WebCore::PluginView::removeFromUnstartedListIfNecessary): Use
  36155. removeMediaCanStartListener.
  36156. * plugins/PluginView.h: Adopted MediaCanStartListener.
  36157. 2010-02-16 Simon Fraser <simon.fraser@apple.com>
  36158. Reviewed by Dan Bernstein.
  36159. https://bugs.webkit.org/show_bug.cgi?id=34999
  36160. Compositing layers inside overflow:scroll divs are not always updated on scrolling
  36161. When RenderLayer::scrollToOffset() updates compositing layer positions, it needs
  36162. to start updating at its stacking context rather than just its compositing ancestor.
  36163. The stacking context is guaranteed to contain all descendants of the overflow
  36164. layer, including those that are not direct descendants of the overflow layer in stacking
  36165. (and therefore compositing) order.
  36166. Test: compositing/overflow/scroll-ancestor-update.html
  36167. * rendering/RenderLayer.cpp:
  36168. (WebCore::RenderLayer::scrollToOffset):
  36169. 2010-02-16 Dan Bernstein <mitz@apple.com>
  36170. Reviewed by Simon Fraser.
  36171. Allow FloatRect::center() to return fractional coordinates. It was
  36172. mistakenly converting to integers.
  36173. * platform/graphics/FloatRect.h:
  36174. (WebCore::FloatRect::center):
  36175. 2010-02-16 Gavin Barraclough <barraclough@apple.com>
  36176. Reviewed by Oliver Hunt.
  36177. https://bugs.webkit.org/show_bug.cgi?id=34964
  36178. Leaks tool reports false memory leaks due to Rope implementation.
  36179. Renamed cUStringImpl::size() to UStringImpl::size()UStringImpl::length()
  36180. (matches WebCore::StringImpl).
  36181. * bridge/jni/jsc/JavaStringJSC.h:
  36182. (JSC::Bindings::JavaStringImpl::length):
  36183. * platform/text/AtomicString.cpp:
  36184. (WebCore::AtomicString::add):
  36185. (WebCore::AtomicString::find):
  36186. 2010-02-15 Jon Honeycutt <jhoneycutt@apple.com>
  36187. <rdar://problem/7288853> Message about missing plugin does not specify
  36188. the type or download link for download
  36189. Reviewed by Mark Rowe.
  36190. * plugins/PluginDatabase.cpp:
  36191. (WebCore::PluginDatabase::findPlugin):
  36192. Only update the mimeType out param if we find a plug-in for the file
  36193. extension.
  36194. 2010-02-16 Simon Fraser <simon.fraser@apple.com>
  36195. Build fix for Tiger.
  36196. Add #if USE(ACCELERATED_COMPOSITING) around the call to mediaPlayerRenderingModeChanged().
  36197. * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
  36198. (WebCore::MediaPlayerPrivate::setUpVideoRendering):
  36199. 2010-02-16 Csaba Osztrogonác <ossy@webkit.org>
  36200. Reviewed by Eric Carlson.
  36201. Buildfix for r54826.
  36202. HTMLMediaElement class defined by HTMLMediaElement.h in #if ENABLE(VIDEO) block,
  36203. it should be in #if ENABLE(VIDEO) block in rendering/RenderLayerBacking.cpp too.
  36204. * rendering/RenderLayerBacking.cpp: Missing #if ENABLE(VIDEO) guard added.
  36205. (WebCore::RenderLayerBacking::updateGraphicsLayerConfiguration):
  36206. 2010-02-16 Julie Parent <jparent@chromium.org>
  36207. Unreviewed: Chromium build fix.
  36208. http://trac.webkit.org/changeset/54823 introduced an unused variable. Remove it.
  36209. * platform/image-decoders/ImageDecoder.cpp:
  36210. (WebCore::ImageDecoder::create):
  36211. 2010-02-16 Mark Rowe <mrowe@apple.com>
  36212. Reviewed by Alexey Proskuryakov.
  36213. Bug 34974: Leak of ScheduledAction during layout tests
  36214. <https://bugs.webkit.org/show_bug.cgi?id=34974>
  36215. ScheduledAction::create was returning a raw pointer which was threaded down through to an OwnPtr in DOMTimer.
  36216. If any of the code paths in between hit an error case and returned early the raw pointer would be leaked. We
  36217. can avoid this by passing it as a PassOwnPtr. This will ensure that the ScheduledAction is cleaned up should
  36218. an error case be hit.
  36219. * bindings/js/JSDOMWindowCustom.cpp:
  36220. (WebCore::JSDOMWindow::setTimeout): Store the newly-created ScheduledAction in an OwnPtr and then hand it off
  36221. as the function argument.
  36222. (WebCore::JSDOMWindow::setInterval): Ditto.
  36223. * bindings/js/JSWorkerContextCustom.cpp:
  36224. (WebCore::JSWorkerContext::setTimeout): Ditto.
  36225. (WebCore::JSWorkerContext::setInterval): Ditto.
  36226. * bindings/js/ScheduledAction.cpp:
  36227. (WebCore::ScheduledAction::create): Return a PassOwnPtr.
  36228. * bindings/js/ScheduledAction.h:
  36229. * page/DOMTimer.cpp:
  36230. (WebCore::DOMTimer::DOMTimer): Update argument type.
  36231. (WebCore::DOMTimer::install): Ditto.
  36232. * page/DOMTimer.h:
  36233. * page/DOMWindow.cpp:
  36234. (WebCore::DOMWindow::setTimeout): Ditto.
  36235. (WebCore::DOMWindow::setInterval): Ditto.
  36236. * page/DOMWindow.h:
  36237. 2010-02-16 Nikolas Zimmermann <nzimmermann@rim.com>
  36238. Reviewed by David Hyatt.
  36239. SVG units don't stay consistently sized on zoom
  36240. https://bugs.webkit.org/show_bug.cgi?id=14004
  36241. Large step towards making WebKit an usable SVG viewer.
  36242. Make zooming into SVG documents work as expected, in both standalone and XHTML/SVG compound documents.
  36243. SVG applies a global scale to the document, whereas CSS zooms all individual length units (on full-page-zoom).
  36244. Scaling has to be avoided for all SVG specific CSS properties (already works) and for some selected CSS
  36245. properties shared between CSS & SVG that explicitely need a different treatment in the context of SVG.
  36246. To name a few: font-size, letter-spacing, etc. should stay invariant under zoom in SVG document fragments.
  36247. Some new rules regarding zooming:
  36248. - "Zoom text only" should never affect SVG documents, neither text nor content should zoom.
  36249. This option doesn't make much sense for SVG, so it's wise to avoid side-effects and disable it.
  36250. In compound documents the SVG would stay as-is and only text of surrounding XHTML content would zoom.
  36251. - "Full page zoom" is the only zoom mode affecting SVG. (Panning only works in standalone documents.)
  36252. Cover all mentioned cases above by a new set of layout tests.
  36253. Tests: svg/zoom/page/absolute-sized-document-no-scrollbars.svg
  36254. svg/zoom/page/absolute-sized-document-scrollbars.svg
  36255. svg/zoom/page/relative-sized-document-scrollbars.svg
  36256. svg/zoom/page/zoom-coords-viewattr-01-b.svg
  36257. svg/zoom/page/zoom-foreignObject.svg
  36258. svg/zoom/page/zoom-hixie-mixed-008.xml
  36259. svg/zoom/page/zoom-hixie-mixed-009.xml
  36260. svg/zoom/page/zoom-hixie-rendering-model-004.xhtml
  36261. svg/zoom/page/zoom-svg-float-border-padding.xml
  36262. svg/zoom/text/absolute-sized-document-no-scrollbars.svg
  36263. svg/zoom/text/absolute-sized-document-scrollbars.svg
  36264. svg/zoom/text/relative-sized-document-scrollbars.svg
  36265. svg/zoom/text/zoom-coords-viewattr-01-b.svg
  36266. svg/zoom/text/zoom-foreignObject.svg
  36267. svg/zoom/text/zoom-hixie-mixed-008.xml
  36268. svg/zoom/text/zoom-hixie-mixed-009.xml
  36269. svg/zoom/text/zoom-hixie-rendering-model-004.xhtml
  36270. svg/zoom/text/zoom-svg-float-border-padding.xml
  36271. * css/CSSStyleSelector.cpp: Blacklist certain properties not to be zoomed for SVG elements.
  36272. (WebCore::CSSStyleSelector::styleForDocument): Don't zoom font-sizes.
  36273. (WebCore::CSSStyleSelector::applyProperty): Ditto (+ letter/word-spacing).
  36274. (WebCore::CSSStyleSelector::setFontSize): Ditto.
  36275. (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize): Never apply text zoom to SVG.
  36276. * css/CSSStyleSelector.h:
  36277. * css/SVGCSSStyleSelector.cpp: -webkit-shadow + SVG was incorrectly respecting zoom factor.
  36278. (WebCore::CSSStyleSelector::applySVGProperty):
  36279. * page/Frame.cpp:
  36280. (WebCore::Frame::shouldApplyTextZoom): Remove SVG special cases.
  36281. (WebCore::Frame::shouldApplyPageZoom): Ditto.
  36282. (WebCore::Frame::setZoomFactor): Don't force setZoomsTextOnly() - SVG now uses FPZ as well.
  36283. * rendering/RenderSVGRoot.cpp:
  36284. (WebCore::RenderSVGRoot::calcReplacedWidth): CSSPropertyWidth is explicitely not scaled by CSSStyleSelector, fix that for outermost <svg> elements.
  36285. (WebCore::RenderSVGRoot::calcReplacedHeight): Ditto for CSSPropertyHeight.
  36286. (WebCore::RenderSVGRoot::layout): Simplify & cleanup code, take advantage of new calcWidth/Height functionality, no need to scale anything here.
  36287. (WebCore::RenderSVGRoot::paint): Use parentOriginToBorderBox() instead of duplicating code.
  36288. (WebCore::RenderSVGRoot::calcViewport): Simplify code.
  36289. (WebCore::RenderSVGRoot::localToBorderBoxTransform): Calculate viewBoxToViewTransformation() against unscaled width()/height() values.
  36290. * rendering/RenderSVGRoot.h:
  36291. * svg/SVGLength.cpp:
  36292. (WebCore::SVGLength::PercentageOfViewport): Cleanup & document function.
  36293. * svg/SVGSVGElement.cpp:
  36294. (WebCore::SVGSVGElement::currentScale): Return pageZoomFactor(), not just the zoomFactor() - as we want to ignore text-only zoom.
  36295. (WebCore::SVGSVGElement::setCurrentScale): Pass isTextOnly=false to setZoomFactor().
  36296. 2010-02-16 Julie Parent <jparent@chromium.org>
  36297. Unreviewed: Chromium build fix.
  36298. https://bugs.webkit.org/show_bug.cgi?id=34998
  36299. Move include of JavaScriptProfile.h behind if (USE_JSC).
  36300. * inspector/InspectorController.cpp:
  36301. 2010-02-16 Alexey Proskuryakov <ap@apple.com>
  36302. Reviewed by Geoffrey Garen and Kevin Decker.
  36303. https://bugs.webkit.org/show_bug.cgi?id=34989
  36304. <rdar://problem/7417965> Cursor disappears on scroll bars that are over plugin content
  36305. * html/HTMLPlugInElement.cpp: (WebCore::HTMLPlugInElement::defaultEventHandler): Added some
  36306. comments about the way we pass events down to plug-ins.
  36307. 2010-02-16 Simon Fraser <simon.fraser@apple.com>
  36308. Reviewed by Eric Carlson.
  36309. With hardware acceleration turned off, video frames never display if poster
  36310. image is specified
  36311. https://bugs.webkit.org/show_bug.cgi?id=34965
  36312. HTMLVideoElement's m_shouldDisplayPosterImage was never updated after
  36313. the movie supplied its first video frame, so the poster would continue to show.
  36314. Fixed by calling updatePosterImage() from mediaPlayerRepaint(), which is called
  36315. each time a new frame is available. updatePosterImage() is cheap.
  36316. Also made updatePosterImage() virtual on HTMLMediaElement to avoid a number of
  36317. ugly casts.
  36318. Test: manual-tests/media-elements/video-replaces-poster.html
  36319. * html/HTMLMediaElement.cpp:
  36320. (WebCore::HTMLMediaElement::noneSupported): Call updatePosterImage() without video check.
  36321. (WebCore::HTMLMediaElement::setNetworkState): Ditto.
  36322. (WebCore::HTMLMediaElement::setReadyState): Ditto.
  36323. (WebCore::HTMLMediaElement::mediaPlayerRepaint): Call udpatePosterImage().
  36324. * html/HTMLMediaElement.h:
  36325. (WebCore::HTMLMediaElement::updatePosterImage): Make this an empty virtual
  36326. method on the base class.
  36327. * html/HTMLVideoElement.h: Override updatePosterImage().
  36328. 2010-02-16 Simon Fraser <simon.fraser@apple.com>
  36329. Build fix for platforms without ACCELERATED_COMPOSITING defined.
  36330. mediaPlayerRenderingModeChanged() is only available when ACCELERATED_COMPOSITING is defined.
  36331. * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
  36332. (WebCore::MediaPlayerPrivate::setUpVideoRendering):
  36333. 2010-02-16 Simon Fraser <simon.fraser@apple.com>
  36334. Reviewed by Eric Carlson.
  36335. Autoplaying video with poster doesn't reliably show up
  36336. https://bugs.webkit.org/show_bug.cgi?id=34966
  36337. A timing issue with compositing updates when replacing the poster image
  36338. with the video could cause the video to not display.
  36339. Fix by making video layer hook up more similar to WebGL etc, by having the
  36340. video kick off a recalcStyle() via a SyntheticStyleChange. This requires
  36341. vending a PlaformLayer* from the media player, up through the element.
  36342. Test: media/video-replaces-poster.html
  36343. * html/HTMLMediaElement.cpp:
  36344. (WebCore::HTMLMediaElement::mediaPlayerRenderingModeChanged): Use setNeedsStyleRecalc()
  36345. to kick off a compositing update.
  36346. * html/HTMLMediaElement.h:
  36347. (WebCore::HTMLMediaElement::platformLayer): Export the media engine's layer.
  36348. * platform/graphics/MediaPlayer.cpp:
  36349. (WebCore::NullMediaPlayerPrivate::platformLayer): Method to vend the media layer.
  36350. (WebCore::MediaPlayer::platformLayer):
  36351. * platform/graphics/MediaPlayer.h:
  36352. (WebCore::MediaPlayerClient::mediaPlayerRenderingModeChanged): New client callback
  36353. to indicate that the rendering mode changed. The element uses this to kick off a
  36354. recalcStyle.
  36355. * platform/graphics/MediaPlayerPrivate.h:
  36356. (WebCore::MediaPlayerPrivateInterface::platformLayer): Method to vend the media layer.
  36357. * platform/graphics/mac/MediaPlayerPrivateQTKit.h: Ditto
  36358. * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
  36359. (WebCore::MediaPlayerPrivate::createQTMovieLayer): No longer parent the layer directly
  36360. via setContentsToMedia().
  36361. (WebCore::MediaPlayerPrivate::acceleratedRenderingStateChanged): Ditto.
  36362. (WebCore::MediaPlayerPrivate::setUpVideoRendering): Tell the client that the
  36363. rendering mode changed.
  36364. (WebCore::MediaPlayerPrivate::platformLayer): Method to vend the media layer.
  36365. * rendering/RenderLayerBacking.cpp:
  36366. (WebCore::RenderLayerBacking::updateGraphicsLayerConfiguration): Call setContentsToMedia()
  36367. here.
  36368. * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h: Add platformLayer().
  36369. * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
  36370. (WebCore::MediaPlayerPrivate::platformLayer): Method to vend the media layer.
  36371. (WebCore::MediaPlayerPrivate::setUpVideoRendering): Call mediaPlayerRenderingModeChanged()
  36372. (WebCore::MediaPlayerPrivate::createLayerForMovie): Don't parent the layer ourselves any more.
  36373. * rendering/RenderVideo.h: videoGraphicsLayer() is no longer needed.
  36374. * rendering/RenderVideo.cpp: Ditto.
  36375. 2010-02-12 Peter Kasting <pkasting@google.com>
  36376. Reviewed by Adam Barth.
  36377. Code cleanup in ImageDecoders; no functional change.
  36378. https://bugs.webkit.org/show_bug.cgi?id=28751
  36379. * Make code mostly comply with the style guide (switch indenting, use of
  36380. "!" vs. "== 0", don't unnecessarily wrap lines, etc.)
  36381. * Eliminate m_allDataReceived in ICO/BMP decoders since it's in the
  36382. base ImageDecoder class
  36383. * Remove some useless or wrong comments, add others
  36384. * Wrap comments at 80 columns (most already were) for
  36385. consistency/readability
  36386. * Avoid casts by using correct variable types
  36387. * Consistent naming of decode() function/args
  36388. * Shorter code in some places
  36389. * Make declaration and definition order match
  36390. * platform/graphics/qt/ImageDecoderQt.cpp:
  36391. (WebCore::ImageDecoderQt::frameCount):
  36392. (WebCore::ImageDecoderQt::frameBufferAtIndex):
  36393. (WebCore::ImageDecoderQt::forceLoadEverything):
  36394. * platform/image-decoders/ImageDecoder.cpp:
  36395. (WebCore::ImageDecoder::create):
  36396. (WebCore::RGBA32Buffer::clear):
  36397. (WebCore::RGBA32Buffer::setSize):
  36398. * platform/image-decoders/ImageDecoder.h:
  36399. (WebCore::RGBA32Buffer::):
  36400. (WebCore::ImageDecoder::ImageDecoder):
  36401. * platform/image-decoders/bmp/BMPImageDecoder.cpp:
  36402. (WebCore::BMPImageDecoder::BMPImageDecoder):
  36403. (WebCore::BMPImageDecoder::setData):
  36404. (WebCore::BMPImageDecoder::isSizeAvailable):
  36405. (WebCore::BMPImageDecoder::frameBufferAtIndex):
  36406. (WebCore::BMPImageDecoder::decode):
  36407. (WebCore::BMPImageDecoder::decodeHelper):
  36408. (WebCore::BMPImageDecoder::processFileHeader):
  36409. * platform/image-decoders/bmp/BMPImageDecoder.h:
  36410. (WebCore::BMPImageDecoder::readUint32):
  36411. * platform/image-decoders/bmp/BMPImageReader.cpp:
  36412. (WebCore::BMPImageReader::BMPImageReader):
  36413. (WebCore::BMPImageReader::decodeBMP):
  36414. (WebCore::BMPImageReader::readInfoHeaderSize):
  36415. (WebCore::BMPImageReader::processInfoHeader):
  36416. (WebCore::BMPImageReader::readInfoHeader):
  36417. (WebCore::BMPImageReader::isInfoHeaderValid):
  36418. (WebCore::BMPImageReader::processBitmasks):
  36419. (WebCore::BMPImageReader::processColorTable):
  36420. (WebCore::BMPImageReader::processRLEData):
  36421. (WebCore::BMPImageReader::processNonRLEData):
  36422. * platform/image-decoders/bmp/BMPImageReader.h:
  36423. (WebCore::BMPImageReader::readUint32):
  36424. (WebCore::BMPImageReader::pastEndOfImage):
  36425. (WebCore::BMPImageReader::readCurrentPixel):
  36426. (WebCore::BMPImageReader::getComponent):
  36427. (WebCore::BMPImageReader::getAlpha):
  36428. (WebCore::BMPImageReader::setI):
  36429. (WebCore::BMPImageReader::setRGBA):
  36430. * platform/image-decoders/gif/GIFImageDecoder.cpp:
  36431. (WebCore::GIFImageDecoder::GIFImageDecoder):
  36432. (WebCore::GIFImageDecoder::setData):
  36433. (WebCore::GIFImageDecoder::isSizeAvailable):
  36434. (WebCore::GIFImageDecoder::frameCount):
  36435. (WebCore::GIFImageDecoder::frameBufferAtIndex):
  36436. (WebCore::GIFImageDecoder::clearFrameBufferCache):
  36437. (WebCore::GIFImageDecoder::sizeNowAvailable):
  36438. (WebCore::GIFImageDecoder::haveDecodedRow):
  36439. (WebCore::GIFImageDecoder::frameComplete):
  36440. (WebCore::GIFImageDecoder::decode):
  36441. (WebCore::GIFImageDecoder::initFrameBuffer):
  36442. * platform/image-decoders/gif/GIFImageDecoder.h:
  36443. (WebCore::GIFImageDecoder::):
  36444. (WebCore::GIFImageDecoder::filenameExtension):
  36445. * platform/image-decoders/gif/GIFImageReader.cpp:
  36446. (GIFImageReader::do_lzw):
  36447. (GIFImageReader::read):
  36448. * platform/image-decoders/gif/GIFImageReader.h:
  36449. (GIFImageReader::~GIFImageReader):
  36450. * platform/image-decoders/ico/ICOImageDecoder.cpp:
  36451. (WebCore::ICOImageDecoder::ICOImageDecoder):
  36452. (WebCore::ICOImageDecoder::~ICOImageDecoder):
  36453. (WebCore::ICOImageDecoder::setData):
  36454. (WebCore::ICOImageDecoder::isSizeAvailable):
  36455. (WebCore::ICOImageDecoder::frameSizeAtIndex):
  36456. (WebCore::ICOImageDecoder::frameCount):
  36457. (WebCore::ICOImageDecoder::frameBufferAtIndex):
  36458. (WebCore::ICOImageDecoder::compareEntries):
  36459. (WebCore::ICOImageDecoder::setDataForPNGDecoderAtIndex):
  36460. (WebCore::ICOImageDecoder::decode):
  36461. (WebCore::ICOImageDecoder::decodeDirectory):
  36462. (WebCore::ICOImageDecoder::decodeAtIndex):
  36463. (WebCore::ICOImageDecoder::processDirectoryEntries):
  36464. (WebCore::ICOImageDecoder::readDirectoryEntry):
  36465. * platform/image-decoders/ico/ICOImageDecoder.h:
  36466. (WebCore::ICOImageDecoder::readUint16):
  36467. (WebCore::ICOImageDecoder::readUint32):
  36468. * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
  36469. (WebCore::):
  36470. (WebCore::JPEGImageReader::JPEGImageReader):
  36471. (WebCore::JPEGImageReader::skipBytes):
  36472. (WebCore::JPEGImageReader::decode):
  36473. (WebCore::error_exit):
  36474. (WebCore::fill_input_buffer):
  36475. (WebCore::term_source):
  36476. (WebCore::JPEGImageDecoder::setData):
  36477. (WebCore::JPEGImageDecoder::setSize):
  36478. (WebCore::JPEGImageDecoder::frameBufferAtIndex):
  36479. (WebCore::JPEGImageDecoder::jpegComplete):
  36480. (WebCore::JPEGImageDecoder::decode):
  36481. * platform/image-decoders/jpeg/JPEGImageDecoder.h:
  36482. (WebCore::JPEGImageDecoder::filenameExtension):
  36483. * platform/image-decoders/png/PNGImageDecoder.cpp:
  36484. (WebCore::decodingFailed):
  36485. (WebCore::decodingWarning):
  36486. (WebCore::headerAvailable):
  36487. (WebCore::rowAvailable):
  36488. (WebCore::pngComplete):
  36489. (WebCore::PNGImageReader::PNGImageReader):
  36490. (WebCore::PNGImageReader::close):
  36491. (WebCore::PNGImageReader::decode):
  36492. (WebCore::PNGImageReader::createInterlaceBuffer):
  36493. (WebCore::PNGImageDecoder::setData):
  36494. (WebCore::PNGImageDecoder::frameBufferAtIndex):
  36495. (WebCore::PNGImageDecoder::headerAvailable):
  36496. (WebCore::PNGImageDecoder::rowAvailable):
  36497. (WebCore::PNGImageDecoder::pngComplete):
  36498. (WebCore::PNGImageDecoder::decode):
  36499. * platform/image-decoders/png/PNGImageDecoder.h:
  36500. (WebCore::PNGImageDecoder::filenameExtension):
  36501. * platform/image-decoders/qt/RGBA32BufferQt.cpp:
  36502. (WebCore::RGBA32Buffer::setDecodedImage):
  36503. 2010-02-16 Csaba Osztrogonác <ossy@webkit.org>
  36504. [Qt] Unreviewed buildfix.
  36505. * WebCore.pro: Missing backslash added.
  36506. 2010-02-16 Mikhail Naganov <mnaganov@chromium.org>
  36507. Reviewed by Pavel Feldman.
  36508. Move JSC-specific wrappers for Profile and ProfileNode to bindings/js.
  36509. https://bugs.webkit.org/show_bug.cgi?id=34848
  36510. * GNUmakefile.am:
  36511. * WebCore.gypi:
  36512. * WebCore.pro:
  36513. * WebCore.vcproj/WebCore.vcproj:
  36514. * WebCore.xcodeproj/project.pbxproj:
  36515. * bindings/js/JavaScriptProfile.cpp: Added.
  36516. (WebCore::profileCache):
  36517. (WebCore::getTitleCallback):
  36518. (WebCore::getHeadCallback):
  36519. (WebCore::getUniqueIdCallback):
  36520. (WebCore::focus):
  36521. (WebCore::exclude):
  36522. (WebCore::restoreAll):
  36523. (WebCore::finalize):
  36524. (WebCore::ProfileClass):
  36525. (WebCore::toJS):
  36526. * bindings/js/JavaScriptProfile.h: Added.
  36527. * bindings/js/JavaScriptProfileNode.cpp: Added.
  36528. (WebCore::profileNodeCache):
  36529. (WebCore::getFunctionName):
  36530. (WebCore::getURL):
  36531. (WebCore::getLineNumber):
  36532. (WebCore::getTotalTime):
  36533. (WebCore::getSelfTime):
  36534. (WebCore::getNumberOfCalls):
  36535. (WebCore::getChildren):
  36536. (WebCore::getVisible):
  36537. (WebCore::getCallUID):
  36538. (WebCore::finalize):
  36539. (WebCore::ProfileNodeClass):
  36540. (WebCore::toJS):
  36541. * bindings/js/JavaScriptProfileNode.h: Added.
  36542. * inspector/JavaScriptProfile.cpp: Removed.
  36543. * inspector/JavaScriptProfile.h: Removed.
  36544. * inspector/JavaScriptProfileNode.cpp: Removed.
  36545. * inspector/JavaScriptProfileNode.h: Removed.
  36546. 2010-02-16 Alexander Pavlov <apavlov@chromium.org>
  36547. Reviewed by Pavel Feldman.
  36548. Web Inspector: Elements Panel: Limit the number of initially loaded element children
  36549. https://bugs.webkit.org/show_bug.cgi?id=34421
  36550. Test: inspector/elements-panel-limited-children.html
  36551. * English.lproj/localizedStrings.js:
  36552. * inspector/front-end/DOMAgent.js:
  36553. (WebInspector.DOMNode.prototype._insertChild):
  36554. * inspector/front-end/ElementsPanel.js:
  36555. (WebInspector.ElementsPanel.prototype.updateModifiedNodes):
  36556. * inspector/front-end/ElementsTreeOutline.js:
  36557. (WebInspector.ElementsTreeOutline.prototype.createTreeElementFor):
  36558. (WebInspector.ElementsTreeOutline.prototype.revealAndSelectNode):
  36559. (WebInspector.ElementsTreeElement):
  36560. (WebInspector.ElementsTreeElement.prototype.get expandedChildrenLimit):
  36561. (WebInspector.ElementsTreeElement.prototype.set expandedChildrenLimit):
  36562. (WebInspector.ElementsTreeElement.prototype.get expandedChildCount):
  36563. (WebInspector.ElementsTreeElement.prototype.showChild):
  36564. (WebInspector.ElementsTreeElement.prototype.insertChildElement):
  36565. (WebInspector.ElementsTreeElement.prototype.moveChild):
  36566. (WebInspector.ElementsTreeElement.prototype._updateChildren.updateChildrenOfNode):
  36567. (WebInspector.ElementsTreeElement.prototype._updateChildren):
  36568. (WebInspector.ElementsTreeElement.prototype.adjustCollapsedRange):
  36569. (WebInspector.ElementsTreeElement.prototype.handleLoadAllChildren):
  36570. ():
  36571. * inspector/front-end/inspector.css:
  36572. 2010-02-16 Ismail Donmez <ismail@namtrac.org>
  36573. Reviewed by Pavel Feldman.
  36574. Fix compilation with inspector disabled.
  36575. https://bugs.webkit.org/show_bug.cgi?id=32724
  36576. * rendering/RenderLayerBacking.cpp:
  36577. (WebCore::inspectorTimelineAgent):
  36578. 2010-02-16 Pavel Feldman <pfeldman@chromium.org>
  36579. Reviewed by Timothy Hatcher.
  36580. Web Inspector: turn off line wrapping in source view.
  36581. https://bugs.webkit.org/show_bug.cgi?id=34935
  36582. * inspector/front-end/TextViewer.js:
  36583. (WebInspector.TextViewer.prototype.markAndRevealRange):
  36584. (WebInspector.TextViewer.prototype._paintLine):
  36585. * inspector/front-end/textViewer.css:
  36586. * inspector/front-end/utilities.js:
  36587. 2010-02-16 Pavel Feldman <pfeldman@chromium.org>
  36588. Reviewed by Timothy Hatcher.
  36589. Web Inspector: let search iterate over views in Resources
  36590. and keep the view in Scripts.
  36591. https://bugs.webkit.org/show_bug.cgi?id=34968
  36592. * inspector/front-end/Panel.js:
  36593. (WebInspector.Panel.prototype.jumpToNextSearchResult):
  36594. (WebInspector.Panel.prototype.jumpToPreviousSearchResult):
  36595. (WebInspector.Panel.prototype.showSourceLineForURL):
  36596. (WebInspector.Panel.prototype.searchIteratesOverViews):
  36597. * inspector/front-end/ResourcesPanel.js:
  36598. (WebInspector.ResourcesPanel.prototype.get _resources):
  36599. (WebInspector.ResourcesPanel.prototype.searchIteratesOverViews):
  36600. * inspector/front-end/SourceView.js:
  36601. (WebInspector.SourceView.prototype.showingLastSearchResult):
  36602. * inspector/front-end/inspector.js:
  36603. (WebInspector.documentKeyDown):
  36604. (WebInspector.focusSearchField):
  36605. 2010-02-16 Noam Rosenthal <noam.rosenthal@nokia.com>
  36606. Reviewed by Ariya Hidayat.
  36607. [Qt] canvas clipping is buggy
  36608. https://bugs.webkit.org/show_bug.cgi?id=32405
  36609. Apparently the bug was in GraphicsContext::roundToDevicePixels, we
  36610. didn't take unto accounts rotation, so the device pixels were rounded
  36611. incorrectly. The new formula is a 1:1 copy from GraphicsContextCG so
  36612. it should be rather safe
  36613. Test: http://glimr.rubyforge.org/cake/canvas.html#Polaroids now looks right
  36614. * platform/graphics/qt/GraphicsContextQt.cpp:
  36615. (WebCore::GraphicsContext::roundToDevicePixels): Copy the formula from
  36616. GraphicsContextCG
  36617. 2010-02-16 Yury Semikhatsky <yurys@chromium.org>
  36618. Not Reviewed, build fix.
  36619. * platform/graphics/FloatRect.h:
  36620. (WebCore::FloatRect::center): make conversion from float to int explicit so that compiler
  36621. doesn't complain about that.
  36622. 2010-02-15 Dan Bernstein <mitz@apple.com>
  36623. Reviewed by Simon Fraser.
  36624. <rdar://problem/7645609> [webView selectionRect] API is broken for multicolumn layout
  36625. Refine the fix for https://bugs.webkit.org/show_bug.cgi?id=34923 by using the center of
  36626. a quad’s bounding box, rather than its top left, as the reference point passed to
  36627. offsetFromContainer(). This ensures that if a sliver off the top of the selection rect is in
  36628. one column, but most of it is on another column, the single rect we return will be for the
  36629. second column.
  36630. * platform/graphics/FloatRect.h:
  36631. (WebCore::FloatRect::center): Added.
  36632. * rendering/RenderObject.cpp:
  36633. (WebCore::RenderObject::localToContainerQuad): Use the center instead of the top left.
  36634. 2010-02-15 MORITA Hajime <morrita@gmail.com>
  36635. Reviewed by Nikolas Zimmermann.
  36636. SVG text refactor: reduce paint specific callbacks on SVGTextChunkWalker
  36637. https://bugs.webkit.org/show_bug.cgi?id=34831
  36638. No new tests, no change of functionality.
  36639. * rendering/SVGCharacterLayoutInfo.h:
  36640. (WebCore::SVGTextChunkWalker::SVGTextChunkWalker):
  36641. Removed setupBackground(), setupFill(), setupFillSelection(),
  36642. setupStroke(), setupStrokeSelection(), setupForeground()
  36643. and associated member variables.
  36644. * rendering/SVGRootInlineBox.cpp:
  36645. (WebCore::SVGRootInlineBoxPaintWalker::setupBackground):
  36646. renamed from chunkSetupBackgroundCallback.
  36647. (WebCore::SVGRootInlineBoxPaintWalker::setupFill):
  36648. renamed from chunkSetupFillCallback.
  36649. (WebCore::SVGRootInlineBoxPaintWalker::setupFillSelection):
  36650. renamed from chunkSetupFillSelectionCallback.
  36651. (WebCore::SVGRootInlineBoxPaintWalker::setupStroke):
  36652. renamed from chunkSetupStrokeCallback.
  36653. (WebCore::SVGRootInlineBoxPaintWalker::setupStrokeSelection):
  36654. renamed from chunkSetupStrokeSelectionCallback.
  36655. (WebCore::SVGRootInlineBoxPaintWalker::setupForeground):
  36656. renamed from chunkSetupForegroundCallback.
  36657. (WebCore::SVGRootInlineBoxPaintWalker::paintChunk):
  36658. renamed from chunkPortionCallback.
  36659. (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
  36660. extracted from walkTextChunks.
  36661. (WebCore::SVGRootInlineBox::paint):
  36662. follow SVGTextChunkWalker change.
  36663. (WebCore::SVGRootInlineBox::walkTextChunks):
  36664. moved paint some specific code to SVGRootInlineBoxPaintWalker::chunkPortionCallback().
  36665. 2010-02-15 Dan Bernstein <mitz@apple.com>
  36666. Try to fix the Chromium build.
  36667. * rendering/RenderThemeChromiumMac.mm:
  36668. (WebCore::RenderThemeChromiumMac::convertToPaintingRect):
  36669. 2010-02-14 Gavin Barraclough <barraclough@apple.com>
  36670. Reviewed by Darin Adler.
  36671. https://bugs.webkit.org/show_bug.cgi?id=33731
  36672. Many false leaks in release builds due to PtrAndFlags
  36673. PtrAndFlags has now been removed; remove forwarding header.
  36674. * ForwardingHeaders/wtf/PtrAndFlags.h: Removed.
  36675. 2010-02-15 Gavin Barraclough <barraclough@apple.com>
  36676. Reviewed by Geoff Garen.
  36677. Bug 34952 - String lengths in UString should be unsigned.
  36678. This matches WebCore::StringImpl, and better unifies behaviour throughout JSC.
  36679. * bindings/js/JSDOMWindowCustom.cpp:
  36680. (WebCore::JSDOMWindow::atob):
  36681. (WebCore::JSDOMWindow::btoa):
  36682. 2010-02-15 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  36683. Reviewed by Xan Lopez.
  36684. [GTK] Crashes when going back to a page that has data: URIs, with page cache enabled
  36685. https://bugs.webkit.org/show_bug.cgi?id=34944
  36686. Set the URL in the newly created response, when parsing data:
  36687. URIs.
  36688. Test: fast/harness/page-cache-crash-on-data-urls.html
  36689. * platform/network/soup/ResourceHandleSoup.cpp:
  36690. (WebCore::parseDataUrl):
  36691. 2010-02-15 Dan Bernstein <mitz@apple.com>
  36692. Reviewed by Simon Fraser.
  36693. <rdar://problem/7647300> Incorrect client rects for blocks the span multiple columns and their descendants
  36694. https://bugs.webkit.org/show_bug.cgi?id=34923
  36695. Test: fast/multicol/client-rects.html
  36696. In column layout, a different transform applies to different points in
  36697. the block and its descendants, depending on their y coordinate within the
  36698. block. offsetFromContainer() used to return the offset that applied to
  36699. the origin. With this change, it returns the offset that applies to a
  36700. given reference point. When mapping a quad from local to absolute
  36701. coordinates, the top left of the quad’s bounding box is used as that
  36702. reference point.
  36703. * editing/SelectionController.cpp:
  36704. (WebCore::SelectionController::layout): Pass the caret’s origin as the
  36705. reference point to offsetFromContainer().
  36706. * rendering/RenderBlock.cpp:
  36707. (WebCore::RenderBlock::adjustForColumns): Adds the offset between the
  36708. given point and its image under the column paint-time transform to the
  36709. given offset. Used by offsetFromContainer() where it had previously used
  36710. adjustRectForColumns(), which takes a rect and operates less efficiently.
  36711. * rendering/RenderBlock.h:
  36712. * rendering/RenderBox.cpp:
  36713. (WebCore::RenderBox::mapLocalToContainer): Pass the transformed point as
  36714. the reference point to offsetFromContainer().
  36715. (WebCore::RenderBox::mapAbsoluteToLocalPoint): Pass a point to
  36716. offsetFromContainer().
  36717. (WebCore::RenderBox::offsetFromContainer): Use adjustForColumns() instead
  36718. of adjustRectForColumns(), and use the reference point to get the right
  36719. adjustment for the point of interest, instead of the origin, in case this
  36720. box spans multiple columns.
  36721. * rendering/RenderBox.h:
  36722. * rendering/RenderInline.cpp:
  36723. (WebCore::RenderInline::offsetFromContainer): Ditto. Actually apply the
  36724. column offset to the computation, which previously this function didn’t
  36725. do.
  36726. (WebCore::RenderInline::mapLocalToContainer): Pass the transformed point
  36727. as the reference point to offsetFromContainer().
  36728. (WebCore::RenderInline::mapAbsoluteToLocalPoint): Pass a point to
  36729. offsetFromContainer().
  36730. * rendering/RenderInline.h:
  36731. * rendering/RenderObject.cpp:
  36732. (WebCore::RenderObject::mapLocalToContainer): Apply column adjustment,
  36733. based on the reference point, to the transform if needed.
  36734. (WebCore::RenderObject::localToContainerQuad): Initialize the
  36735. TransformState with the top left corner of the quad’s bounding box. It
  36736. is later used as the reference point when deciding on which column to
  36737. base the calculations.
  36738. (WebCore::RenderObject::offsetFromContainer): Adjust for columns.
  36739. (WebCore::RenderObject::offsetFromAncestorContainer): Pass the origin
  36740. as the reference point to offsetFromContainer().
  36741. * rendering/RenderObject.h:
  36742. (WebCore::RenderObject::adjustForColumns): Added.
  36743. * rendering/RenderTableCell.cpp:
  36744. (WebCore::RenderTableCell::offsetFromContainer): Pass the reference
  36745. point through.
  36746. * rendering/RenderTableCell.h:
  36747. * rendering/RenderText.cpp:
  36748. (WebCore::RenderText::absoluteRectsForRange): Map (the origin of) each
  36749. rect to absolute coordinates individually.
  36750. * rendering/RenderThemeMac.mm:
  36751. (WebCore::RenderThemeMac::convertToPaintingRect): Pass a point to
  36752. offsetFromContainer().
  36753. 2010-02-12 Alexey Proskuryakov <ap@apple.com>
  36754. Reviewed by Kevin Decker.
  36755. <rdar://problem/7130641> Browser objects identity is not preserved by Safari
  36756. Test: plugins/netscape-browser-object-identity.html
  36757. * bridge/runtime_root.h: (JSC::Bindings::RootObject::addInvalidationCallback):
  36758. RootObject can now call out during invalidation, making it possible for other code to know
  36759. when this happens.
  36760. * bridge/runtime_root.cpp:
  36761. (JSC::Bindings::RootObject::InvalidationCallback::~InvalidationCallback): Empty destructor,
  36762. in cpp file since it's virtual.
  36763. (JSC::Bindings::RootObject::invalidate): Invoke invalidation callbacks.
  36764. * bridge/NP_jsobject.cpp:
  36765. (ObjectMap): Keep a JSObject->NPObject map for each RootObject. It somewhat cleaner to
  36766. keep it outside RootObject, because (1) it is agnostic of what kinds of objects can wrap
  36767. JSObject, and (2) out of process NPAPI implementation also keeps its corresponding map
  36768. separately, due to supporting per-instance granularity (as opposed to per-RootObject here).
  36769. (jsDeallocate): Remove the corresponding map entry.
  36770. (_NPN_CreateScriptObject): Try to fetch existing object from the map, incrementing refcount.
  36771. 2010-02-15 Philippe Normand <pnormand@igalia.com>
  36772. Rubber-stamped by Gustavo Noronha Silva.
  36773. Removed redefine of LOG_VERBOSE. This should not have commited in
  36774. the first place.
  36775. * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
  36776. 2010-02-15 Pavel Feldman <pfeldman@chromium.org>
  36777. Reviewed by Timothy Hatcher.
  36778. Web Inspector: incorrect syntax highlighting as HTML in a script tag.
  36779. We were preserving initial lexer state upon entering other tags while in <script>
  36780. but were not doing it for <script tag itself. As a result, nested script
  36781. tags were failing to highlight.
  36782. https://bugs.webkit.org/show_bug.cgi?id=34934
  36783. * inspector/front-end/SourceHTMLTokenizer.js:
  36784. (WebInspector.SourceHTMLTokenizer.prototype.nextToken):
  36785. * inspector/front-end/SourceHTMLTokenizer.re2js:
  36786. 2010-02-15 Brady Eidson <beidson@apple.com>
  36787. Reviewed by Dan Bernstein.
  36788. Add a progress-indicator logging channel to WebCore, and convert the old WebKit Logging
  36789. messages over to WebCore-style.
  36790. No new tests. (Logging changes only)
  36791. * loader/ProgressTracker.cpp:
  36792. (WebCore::ProgressTracker::progressStarted):
  36793. (WebCore::ProgressTracker::progressCompleted):
  36794. (WebCore::ProgressTracker::finalProgressComplete):
  36795. (WebCore::ProgressTracker::incrementProgress):
  36796. * platform/Logging.cpp:
  36797. (WebCore::):
  36798. (WebCore::getChannelFromName):
  36799. * platform/Logging.h:
  36800. 2010-02-15 Noam Rosenthal <noam.rosenthal@nokia.com>
  36801. Reviewed by Simon Hausmann.
  36802. [Qt] QtWebkit bridge: enable passing a QWebElement to a signal/slot/property
  36803. https://bugs.webkit.org/show_bug.cgi?id=34901
  36804. When a signal/slot/property is of type QWebElement, it can seamlessly
  36805. connect with JS objects that hold a WebCore element.
  36806. New tests, see WebKit/qt/ChangeLog
  36807. * bridge/qt/qt_runtime.cpp:
  36808. (JSC::Bindings::QtWebElementRuntime::create): A proxy to QWebElement
  36809. constructor
  36810. (JSC::Bindings::QtWebElementRuntime::get): A proxy to
  36811. QWebElement::element
  36812. (JSC::Bindings::convertValueToQVariant): handle QWebElement
  36813. (JSC::Bindings::convertQVariantToValue): handle QWebElement
  36814. 2010-02-15 Pavel Feldman <pfeldman@chromium.org>
  36815. Not reviewed, Chromium build fix (force conversion of property names to
  36816. strings in Web Inspector's injected script).
  36817. * inspector/front-end/InjectedScript.js:
  36818. (injectedScriptConstructor):
  36819. 2010-02-15 Pavel Feldman <pfeldman@chromium.org>
  36820. Not reviewed: touch InspectorController in order to kick win bot tests
  36821. with new injected script contents.
  36822. * inspector/InspectorController.cpp:
  36823. 2010-02-14 Pavel Feldman <pfeldman@chromium.org>
  36824. Reviewed by Timothy Hatcher.
  36825. Web Inspector: highlight actual search match in elements panel.
  36826. https://bugs.webkit.org/show_bug.cgi?id=34251
  36827. * inspector/front-end/ElementsPanel.js:
  36828. (WebInspector.ElementsPanel.prototype.searchCanceled):
  36829. (WebInspector.ElementsPanel.prototype.performSearch):
  36830. (WebInspector.ElementsPanel.prototype.addNodesToSearchResult):
  36831. (WebInspector.ElementsPanel.prototype.jumpToNextSearchResult):
  36832. (WebInspector.ElementsPanel.prototype.jumpToPreviousSearchResult):
  36833. (WebInspector.ElementsPanel.prototype._highlightCurrentSearchResult):
  36834. (WebInspector.ElementsPanel.prototype._hideSearchHighlights):
  36835. * inspector/front-end/InjectedScript.js:
  36836. * inspector/front-end/SourceFrame.js:
  36837. (WebInspector.SourceFrame.prototype.findSearchMatches):
  36838. * inspector/front-end/TextViewer.js:
  36839. (WebInspector.TextViewer.prototype._paintLine):
  36840. * inspector/front-end/textViewer.css:
  36841. * inspector/front-end/utilities.js:
  36842. 2010-02-14 Pavel Feldman <pfeldman@chromium.org>
  36843. Reviewed by Timothy Hatcher.
  36844. Web Inspector: XPathResult objects are not expanded in console.
  36845. https://bugs.webkit.org/show_bug.cgi?id=34926
  36846. * inspector/front-end/InjectedScript.js:
  36847. (injectedScriptConstructor):
  36848. * inspector/front-end/ObjectPropertiesSection.js:
  36849. (WebInspector.ObjectPropertiesSection.prototype.updateProperties):
  36850. (WebInspector.ObjectPropertiesSection.CompareProperties):
  36851. (WebInspector.ObjectPropertyTreeElement.prototype.update):
  36852. * inspector/front-end/Section.js:
  36853. (WebInspector.Section):
  36854. * inspector/front-end/inspector.css:
  36855. 2010-02-10 Philippe Normand <pnormand@igalia.com>
  36856. Reviewed by Gustavo Noronha Silva.
  36857. [Gtk] wrong video aspect ratio
  36858. https://bugs.webkit.org/show_bug.cgi?id=34790
  36859. Fixed natural size calculation regarding pixel aspect ratio and
  36860. display aspect ratio.
  36861. Test: media/video-display-aspect-ratio.html
  36862. * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
  36863. (WebCore::greatestCommonDivisor):
  36864. (WebCore::MediaPlayerPrivate::naturalSize):
  36865. 2010-02-14 Adam Barth <abarth@webkit.org>
  36866. Reviewed by Darin Adler.
  36867. HTML5 iframe sandbox bypass of window.top.location navigation via <form target="_top">
  36868. https://bugs.webkit.org/show_bug.cgi?id=33277
  36869. submitForm wasn't respecting shouldAllowNavigation. Instead of calling
  36870. the wrapper function, we need to call shouldAllowNavigation because we
  36871. need to handle the "frame not found" case differently than the
  36872. "navigation denied" case.
  36873. Test: http/tests/security/sandboxed-iframe-form-top.html
  36874. * loader/FrameLoader.cpp:
  36875. (WebCore::FrameLoader::submitForm):
  36876. 2010-02-14 Kent Tamura <tkent@chromium.org>
  36877. No review. Touch RenderRuny*.cpp to fix Chromium/Windows build bot.
  36878. * rendering/RenderRuby.cpp: Add a comment for #endf.
  36879. * rendering/RenderRubyBase.cpp: Add a comment for #endf.
  36880. * rendering/RenderRubyRun.cpp: Add a comment for #endf.
  36881. * rendering/RenderRubyText.cpp: Add a comment for #endf.
  36882. 2010-02-13 Pavel Feldman <pfeldman@chromium.org>
  36883. Reviewed by Timothy Hatcher.
  36884. Web Inspector: cache created row, span and text elements
  36885. in TextView to improve scroller performance on debug build.
  36886. https://bugs.webkit.org/show_bug.cgi?id=34921
  36887. * inspector/front-end/SourceFrame.js:
  36888. (WebInspector.SourceFrame.prototype.set visible):
  36889. * inspector/front-end/TextViewer.js:
  36890. (WebInspector.TextViewer):
  36891. (WebInspector.TextViewer.prototype.freeCachedElements):
  36892. (WebInspector.TextViewer.prototype._buildChunks):
  36893. (WebInspector.TextViewer.prototype._makeLineAChunk):
  36894. (WebInspector.TextViewer.prototype._paintLine):
  36895. (WebInspector.TextViewer.prototype._releaseLines):
  36896. (WebInspector.TextViewer.prototype._appendSpan):
  36897. (WebInspector.TextViewer.prototype._appendTextNode):
  36898. (WebInspector.TextChunk):
  36899. (WebInspector.TextChunk.prototype.set expanded):
  36900. (WebInspector.TextChunk.prototype._lineNumberText):
  36901. (WebInspector.TextChunk.prototype._createRow):
  36902. 2010-02-13 Kent Tamura <tkent@chromium.org>
  36903. Reviewed by Darin Adler.
  36904. Refactor parsing/serialization functions in HTMLInputElement.
  36905. https://bugs.webkit.org/show_bug.cgi?id=34852
  36906. - Rename formStringToDouble() to parseToDoubleForNumberType()
  36907. - Rename formStringToDateComponents() to parseToDateComponents()
  36908. - Rename formStringFromDouble() to serializeForNumberType()
  36909. - Add serializeForDateTimeTypes()
  36910. The code is moved from setValueAsDate() and setDateValue().
  36911. - Add serialize()
  36912. parseToDouble() is the top-level function to parse a
  36913. type-dependent string and return a double
  36914. value. parseToDoubleForNumber() and parseToDateComponents()
  36915. functions are helper functions for it. serialize() is the
  36916. top-level function to serialize a double value to a type-dependent
  36917. string, and serializeForNumberType() and
  36918. serializeForDateTimeTypes() are helper functions for it.
  36919. No tests because of no functional changes.
  36920. * html/HTMLInputElement.cpp:
  36921. (WebCore::HTMLInputElement::stepMismatch):
  36922. (WebCore::HTMLInputElement::getAllowedValueStep):
  36923. (WebCore::HTMLInputElement::parseToDouble):
  36924. (WebCore::HTMLInputElement::valueAsDate):
  36925. (WebCore::HTMLInputElement::setValueAsDate):
  36926. (WebCore::HTMLInputElement::setValueAsNumber):
  36927. (WebCore::HTMLInputElement::serializeForDateTimeTypes):
  36928. (WebCore::HTMLInputElement::serialize):
  36929. (WebCore::HTMLInputElement::serializeForNumberType):
  36930. (WebCore::HTMLInputElement::parseToDoubleForNumberType):
  36931. (WebCore::HTMLInputElement::parseToDateComponents):
  36932. * html/HTMLInputElement.h:
  36933. * html/ValidityState.cpp:
  36934. (WebCore::ValidityState::typeMismatch):
  36935. * rendering/RenderSlider.cpp:
  36936. (WebCore::SliderRange::valueFromElement):
  36937. (WebCore::RenderSlider::updateFromElement):
  36938. (WebCore::RenderSlider::setValueForPosition):
  36939. 2010-01-05 Ojan Vafai <ojan@chromium.org>
  36940. Reviewed by Dan Bernstein.
  36941. Improve text control intrinsic widths.
  36942. https://bugs.webkit.org/show_bug.cgi?id=25566
  36943. https://bugs.webkit.org/show_bug.cgi?id=25581
  36944. https://bugs.webkit.org/show_bug.cgi?id=25958
  36945. For Mac fonts that have invalid avgCharWidth entries in the OS/2 table,
  36946. fallback to the Safari 4- behavior of using the width of a zero. For other
  36947. fonts, make Mac match Windows (and thus IE) metrics.
  36948. Lucida Grande is hard-coded to match MS Shell Dlg for inputs and
  36949. Courier New for textareas in order to match Safari Win, Firefox and, in
  36950. some cases IE (IE uses different default fonts depending on encoding).
  36951. The only case where we still don't match Windows is if no font-size is
  36952. set. The default font-size for form controls on the Mac is smaller and
  36953. thus text-control widths will be slightly smaller.
  36954. No new tests. Covered by existing tests.
  36955. * platform/graphics/mac/SimpleFontDataMac.mm:
  36956. (WebCore::SimpleFontData::platformCharWidthInit):
  36957. * rendering/RenderTextControl.cpp:
  36958. (WebCore::):
  36959. (WebCore::RenderTextControl::hasValidAvgCharWidth):
  36960. (WebCore::RenderTextControl::getAvgCharWidth):
  36961. (WebCore::RenderTextControl::calcPrefWidths):
  36962. * rendering/RenderTextControl.h:
  36963. (WebCore::RenderTextControl::scaleEmToUnits):
  36964. * rendering/RenderTextControlMultiLine.cpp:
  36965. (WebCore::RenderTextControlMultiLine::getAvgCharWidth):
  36966. * rendering/RenderTextControlMultiLine.h:
  36967. * rendering/RenderTextControlSingleLine.cpp:
  36968. (WebCore::RenderTextControlSingleLine::getAvgCharWidth):
  36969. (WebCore::RenderTextControlSingleLine::preferredContentWidth):
  36970. * rendering/RenderTextControlSingleLine.h:
  36971. 2010-02-11 Ariya Hidayat <ariya.hidayat@gmail.com>
  36972. Reviewed by Kenneth Rohde Christiansen.
  36973. [Qt] Unnecessary QBrush construction for doing a solid color stroke
  36974. https://bugs.webkit.org/show_bug.cgi?id=34874
  36975. Use the similar trick like in r54347, i.e. use the special brush for
  36976. solid color to avoid expensive QBrush constructor.
  36977. * platform/graphics/qt/GraphicsContextQt.cpp:
  36978. (WebCore::GraphicsContext::setPlatformStrokeColor):
  36979. 2010-02-11 Darin Fisher <darin@chromium.org>
  36980. Reviewed by Jeremy Orlow.
  36981. Pass the Document along to the ChromiumBridge cookie methods.
  36982. https://bugs.webkit.org/show_bug.cgi?id=34878
  36983. * platform/chromium/ChromiumBridge.h:
  36984. * platform/network/chromium/CookieJarChromium.cpp:
  36985. (WebCore::setCookies):
  36986. (WebCore::cookies):
  36987. (WebCore::cookiesEnabled):
  36988. (WebCore::getRawCookies):
  36989. (WebCore::deleteCookie):
  36990. 2010-02-12 Eric Seidel <eric@webkit.org>
  36991. No review, rolling out r54694.
  36992. http://trac.webkit.org/changeset/54694
  36993. https://bugs.webkit.org/show_bug.cgi?id=34633
  36994. This appears to have caused crashes on the Leopard bot. See
  36995. bug 34898.
  36996. * websockets/ThreadableWebSocketChannelClientWrapper.h:
  36997. (WebCore::ThreadableWebSocketChannelClientWrapper::didClose):
  36998. * websockets/WebSocket.cpp:
  36999. (WebCore::WebSocket::WebSocket):
  37000. (WebCore::WebSocket::send):
  37001. (WebCore::WebSocket::close):
  37002. (WebCore::WebSocket::bufferedAmount):
  37003. (WebCore::WebSocket::didConnect):
  37004. (WebCore::WebSocket::didClose):
  37005. * websockets/WebSocket.h:
  37006. * websockets/WebSocketChannel.cpp:
  37007. (WebCore::WebSocketChannel::WebSocketChannel):
  37008. (WebCore::WebSocketChannel::send):
  37009. (WebCore::WebSocketChannel::bufferedAmount):
  37010. (WebCore::WebSocketChannel::didClose):
  37011. * websockets/WebSocketChannel.h:
  37012. * websockets/WebSocketChannelClient.h:
  37013. (WebCore::WebSocketChannelClient::didClose):
  37014. * websockets/WorkerThreadableWebSocketChannel.cpp:
  37015. (WebCore::workerContextDidClose):
  37016. (WebCore::WorkerThreadableWebSocketChannel::Peer::didClose):
  37017. * websockets/WorkerThreadableWebSocketChannel.h:
  37018. 2010-02-12 Gavin Barraclough <barraclough@apple.com>
  37019. Reviewed by Sam Weinig.
  37020. Workers' EventListeners should be removed before JSGlobalData is destroyed
  37021. https://bugs.webkit.org/show_bug.cgi?id=34903
  37022. (Patch co-developed with Alexey Proskuryakov).
  37023. Since http://trac.webkit.org/changeset/54460 the EventListeners registered by a
  37024. worker thread are not removed until after the thread's JSGlobalData has been
  37025. destroyed. This is slightly worrisome since the JSEventListener contains
  37026. JSObject*s, which will be dangling once the heap is destroyed. The
  37027. JSEventListeners may also reference the worker thread's normal world, which
  37028. again it makes no sense to keep around after the JSGlobalData is freed.
  37029. Remove all event listeners immediately prior to tearing down the JSGlobalData.
  37030. https://bugs.webkit.org/show_bug.cgi?id=34728 addressed the symptoms of this
  37031. problem, and it is probably cleaner to make the client data's normal world no
  37032. longer be a member (since it is a ref-counted object), however they should be
  37033. no requirement to 'detatch' - it makes no sense for anyone to be referencing
  37034. the world after the JSGlobalData has gone away (the world's purpose is to hold
  37035. wrapper objects in the JSGlobalData's heap). Keep the restructuring that makes
  37036. the normal world no longer be a member, but remove the detach mechanism this
  37037. patch added & replace with stronger ASSERTs.
  37038. * bindings/js/JSDOMBinding.cpp:
  37039. (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
  37040. * bindings/js/JSDOMBinding.h:
  37041. (WebCore::WebCoreJSClientData::~WebCoreJSClientData):
  37042. * workers/WorkerThread.cpp:
  37043. (WebCore::WorkerThreadShutdownStartTask::performTask):
  37044. 2010-02-12 Gavin Barraclough <barraclough@apple.com>
  37045. Reviewed by Sam Weinig.
  37046. https://bugs.webkit.org/show_bug.cgi?id=33731
  37047. Remove uses of PtrAndFlags from WebCore::StringImpl.
  37048. These break the OS X Leaks tool. Use a bits stolen from the refCount to hold the
  37049. 'InTable' and 'HasTerminatingNullCharacter' flags, along with the string type
  37050. (fixes a leak where the string data is allocated at the address (this + 1), and is
  37051. misinterpreted as being an internal buffer).
  37052. * WebCore.base.exp:
  37053. * platform/text/StringImpl.cpp:
  37054. (WebCore::StringImpl::StringImpl):
  37055. (WebCore::StringImpl::~StringImpl):
  37056. (WebCore::StringImpl::create):
  37057. (WebCore::StringImpl::createWithTerminatingNullCharacter):
  37058. (WebCore::StringImpl::crossThreadString):
  37059. (WebCore::StringImpl::sharedBuffer):
  37060. * platform/text/StringImpl.h:
  37061. (WebCore::StringImpl::):
  37062. (WebCore::StringImpl::hasTerminatingNullCharacter):
  37063. (WebCore::StringImpl::inTable):
  37064. (WebCore::StringImpl::setInTable):
  37065. (WebCore::StringImpl::ref):
  37066. (WebCore::StringImpl::deref):
  37067. (WebCore::StringImpl::hasOneRef):
  37068. (WebCore::StringImpl::operator new):
  37069. (WebCore::StringImpl::bufferOwnership):
  37070. * storage/OriginUsageRecord.cpp:
  37071. (WebCore::OriginUsageRecord::addDatabase):
  37072. (WebCore::OriginUsageRecord::markDatabase):
  37073. 2010-02-12 Nikolas Zimmermann <nzimmermann@rim.com>
  37074. Reviewed by Dirk Schulze.
  37075. Repaint bug on Text selection in foreignObject
  37076. https://bugs.webkit.org/show_bug.cgi?id=16939
  37077. Tests: svg/overflow/overflow-on-foreignObject.svg
  37078. svg/text/foreignObject-text-clipping-bug.xml
  37079. Selecting text contained in <foreignObject> leads to artefacts. Same for zooming/panning.
  37080. RenderForeignObject contained old legacy code returning FloatRect() for repaintRectInLocalCoordinates,
  37081. which is obviously wrong. Fixing that leads to even more problems, as the underlying RenderBlock
  37082. did not reflect the x/y translation set on the <foreignObject>. This is problematic, as laying out
  37083. positioned objects in the XHTML subtree depends on proper size/location values of the frameRect.
  37084. Correctly clip on overflow="hidden". overflow="scroll" & friends are not yet supported, see lengthy
  37085. comment in RenderSVGBlock why we either need RenderLayer for RenderForeignObject or need to rework
  37086. overflow handling to avoid RenderLayer.
  37087. SVGForeignObjectElement uses a hacky custom solution to synchronize CSS width/height properties with
  37088. the SVG width/height attributes. Remove all of that code and just implement calcWidth/calcHeight in
  37089. RenderForeignObject, grabbing the right values from SVGForeignObjectElement::width/height upon layout.
  37090. * rendering/RenderForeignObject.cpp:
  37091. (WebCore::RenderForeignObject::paint): Clip properly to the actual bounds of the foreignObject, respecting that x/y translation is handled by RenderBlock now.
  37092. (WebCore::RenderForeignObject::clippedOverflowRectForRepaint): Added missing function, forward to SVGRenderBase just like all other SVG renderers.
  37093. (WebCore::RenderForeignObject::computeRectForRepaint): Remove manual implementation, forward to SVGRenderBase.
  37094. (WebCore::RenderForeignObject::localToParentTransform): Respect x/y translation here _after_ applying localTransform().
  37095. (WebCore::RenderForeignObject::calcWidth): Override RenderBlock::calcWidth to grab width() from SVGForeignObjectElement.
  37096. (WebCore::RenderForeignObject::calcHeight): Override RenderBlock::calcHeight to grab height() from SVGForeignObjectElement.
  37097. (WebCore::RenderForeignObject::layout): Calculate viewport once and cache it. Push x/y location down to RenderBlock - analogous to RenderSVGText.
  37098. (WebCore::RenderForeignObject::nodeAtFloatPoint): Adapt to x/y translation changes (map through localTransform, not localToParentTransform). Respect overflow clipping.
  37099. (WebCore::RenderForeignObject::mapLocalToContainer): Set useTransforms=true, to avoid assertions when selecting text in foreign objects.
  37100. * rendering/RenderForeignObject.h:
  37101. (WebCore::RenderForeignObject::objectBoundingBox): Return cached m_viewport.
  37102. (WebCore::RenderForeignObject::strokeBoundingBox): Ditto.
  37103. (WebCore::RenderForeignObject::repaintRectInLocalCoordinates): Ditto.
  37104. * rendering/RenderSVGBlock.cpp:
  37105. (WebCore::RenderSVGBlock::setStyle): Cleanup code, move setHasOverflowClip() overrides in updateBoxModelInfoFromStyle where it belongs.
  37106. (WebCore::RenderSVGBlock::updateBoxModelInfoFromStyle): Added to force setting setHasOverflowClip(false).
  37107. * rendering/RenderSVGBlock.h:
  37108. * svg/SVGForeignObjectElement.cpp: Kill a lot of custom code - it was just plain wrong to utilize CSS to push width/height information down to RenderBlock.
  37109. (WebCore::SVGForeignObjectElement::svgAttributeChanged):
  37110. 2010-02-12 Dan Bernstein <mitz@apple.com>
  37111. Reviewed by Simon Fraser.
  37112. <rdar://problem/7609268> REGRESSION (r50301): Problem selecting text in a Devanagari website
  37113. https://bugs.webkit.org/show_bug.cgi?id=34865
  37114. Test: fast/text/glyph-reordering.html
  37115. * platform/graphics/mac/ComplexTextController.cpp:
  37116. (WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun):
  37117. (WebCore::ComplexTextController::ComplexTextRun::setIsNonMonotonic): Added. Sets m_isMonotonic
  37118. and populates m_glyphEndOffsets with the end offsets of each glyph’s corresponding character range.
  37119. (WebCore::ComplexTextController::advance): For non-monotonic runs, use endOffsetAt() to get
  37120. glyphs’ end offsets.
  37121. (WebCore::ComplexTextController::adjustGlyphsAndAdvances): Check for monotonicity and call
  37122. setIsNonMonotonic() if needed.
  37123. * platform/graphics/mac/ComplexTextController.h:
  37124. (WebCore::ComplexTextController::ComplexTextRun::lastIndexAt): Added this getter.
  37125. (WebCore::ComplexTextController::ComplexTextRun::isMonotonic): Ditto.
  37126. * platform/graphics/mac/ComplexTextControllerATSUI.cpp:
  37127. (WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun): Initialize m_isMonotonic.
  37128. * platform/graphics/mac/ComplexTextControllerCoreText.cpp:
  37129. (WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun): Ditto.
  37130. 2010-02-12 Alexey Proskuryakov <ap@apple.com>
  37131. Reviewed by David Levin.
  37132. https://bugs.webkit.org/show_bug.cgi?id=34866
  37133. Leopard Debug Bot crashed on fast/forms/old-names.html
  37134. * html/HTMLFormCollection.cpp: (WebCore::HTMLFormCollection::formCollectionInfo): Removed
  37135. a misplaced checkConsistency() call. We are not looking at cache content at this point, and
  37136. caches will be reset on next access.
  37137. 2010-02-12 Pavel Feldman <pfeldman@chromium.org>
  37138. Reviewed by Timothy Hatcher.
  37139. Web Inspector: restore highlighting animation, bring back
  37140. keyboard navigation, beautify search results.
  37141. https://bugs.webkit.org/show_bug.cgi?id=34853
  37142. * inspector/front-end/TextViewer.js:
  37143. (WebInspector.TextViewer):
  37144. (WebInspector.TextViewer.prototype.highlightLine):
  37145. * inspector/front-end/textViewer.css:
  37146. 2010-02-12 Anton Muhin <antonm@chromium.org>
  37147. Reviewed by Adam Barth.
  37148. [v8] handle to the document can only own Objects, not Values
  37149. https://bugs.webkit.org/show_bug.cgi?id=34854
  37150. * bindings/v8/V8DOMWindowShell.cpp:
  37151. (WebCore::V8DOMWindowShell::updateDocumentWrapper):
  37152. (WebCore::V8DOMWindowShell::updateDocumentWrapperCache):
  37153. * bindings/v8/V8DOMWindowShell.h:
  37154. * bindings/v8/custom/V8DocumentCustom.cpp:
  37155. (WebCore::toV8):
  37156. 2010-02-12 Simon Hausmann <simon.hausmann@nokia.com>
  37157. Reviewed by Holger Freyther.
  37158. Replaced stray CRLF with LF.
  37159. * wml/WMLInputElement.cpp:
  37160. (WebCore::WMLInputElement::suggestedValue):
  37161. * wml/WMLInputElement.h:
  37162. 2010-02-10 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
  37163. Reviewed by Tor Arne Vestbø.
  37164. [Qt] Make qtlauncher and qgvlauncher use the generated headers
  37165. path to make sure they are correctly generated.
  37166. * WebCore.pro:
  37167. 2010-02-10 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
  37168. Reviewed by Tor Arne Vestbø.
  37169. [Qt] Ensure relative paths in generated .pri files to ensure that
  37170. a source package with pre-generated derived sources can be compiled.
  37171. - Re-add a separate headers.pri file for WEBKIT_API_HEADERS
  37172. - Rename the generated headers.pri to classheaders.pri to avoid
  37173. confusion with the one generated by synqt since they don't have the
  37174. same content.
  37175. - Remove private headers list variable from classheaders.pri
  37176. - Use $$PWD in classheaders.pri
  37177. - Remove classheaders.pri from the installed files
  37178. * WebCore.pro:
  37179. 2010-02-10 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
  37180. Reviewed by Tor Arne Vestbø.
  37181. [Qt] Manually add support for the install target on Symbian.
  37182. This is required to copy the headers over the ones in Qt.
  37183. * WebCore.pro:
  37184. 2010-02-10 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
  37185. Reviewed by Tor Arne Vestbø.
  37186. [Qt] Minor fixes on QtWebKit headers generation.
  37187. - Adds QtWebKit to the generated headers destination path
  37188. - Improve compatibility with MinGW
  37189. * WebCore.pro:
  37190. 2010-02-11 Fumitoshi Ukai <ukai@chromium.org>
  37191. Reviewed by Alexey Proskuryakov.
  37192. WebSocket ignores HttpOnly cookies, but should use in Handshake.
  37193. https://bugs.webkit.org/show_bug.cgi?id=34289
  37194. Test: websocket/tests/cookies/httponly-cookie.pl
  37195. * platform/CookieJar.h: add cookieRequestHeaderFieldValue()
  37196. * platform/chromium/ChromiumBridge.h:
  37197. * platform/haiku/CookieJarHaiku.cpp:
  37198. (WebCore::cookieRequestHeaderFieldValue):
  37199. * platform/mac/CookieJar.mm:
  37200. (WebCore::cookies):
  37201. (WebCore::cookieRequestHeaderFieldValue):
  37202. * platform/network/android/CookieJarAndroid.cpp:
  37203. (WebCore::cookieRequestHeaderFieldValue):
  37204. * platform/network/chromium/CookieJarChromium.cpp:
  37205. (WebCore::cookieRequestHeaderFieldValue):
  37206. * platform/network/curl/CookieJarCurl.cpp:
  37207. (WebCore::cookieRequestHeaderFieldValue):
  37208. * platform/network/soup/CookieJarSoup.cpp:
  37209. (WebCore::cookieRequestHeaderFieldValue):
  37210. * platform/network/win/CookieJarCFNetWin.cpp:
  37211. (WebCore::cookieRequestHeaderFieldValue):
  37212. * platform/network/win/CookieJarWin.cpp:
  37213. (WebCore::cookieRequestHeaderFieldValue):
  37214. * platform/qt/CookieJarQt.cpp:
  37215. (WebCore::cookieRequestHeaderFieldValue):
  37216. * websockets/WebSocketHandshake.cpp:
  37217. (WebCore::WebSocketHandshake::clientHandshakeMessage): use cookieRequestHeaderFieldValue() instead of cookies() to include HttpOnly cookies.
  37218. 2010-02-16 Sebastian Dröge <sebastian.droege@collabora.co.uk>
  37219. Reviewed by Gustavo Noronha Silva.
  37220. Notify about size changes in the WebKit GStreamer source.
  37221. https://bugs.webkit.org/show_bug.cgi?id=34881
  37222. * platform/graphics/gtk/WebKitWebSourceGStreamer.cpp:
  37223. (webkit_web_src_init):
  37224. (StreamingClient::didReceiveResponse):
  37225. * platform/graphics/gtk/WebKitWebSourceGStreamer.h:
  37226. This makes sure that other GStreamer elements know about the
  37227. size and on-disk buffering actually works.
  37228. Only notify about size changes if gst-plugins-base before
  37229. 0.10.27 is used, because from that version onwards this is
  37230. automatically handled.
  37231. If appsrc 0.10.27 or later is used, set the min-percent property
  37232. to 20% to allow more time to pass between the need-data signal
  37233. and starvation of the pipeline.
  37234. Also reset the size when stopping the source and send EOS
  37235. on seeking failures.
  37236. 2010-02-11 Ariya Hidayat <ariya.hidayat@gmail.com>
  37237. Reviewed by Kenneth Rohde Christiansen.
  37238. [Qt] Use clipRegion instead of clipPath to save lots of CPU cycles.
  37239. https://bugs.webkit.org/show_bug.cgi?id=32375
  37240. * platform/graphics/qt/GraphicsContextQt.cpp:
  37241. (WebCore::GraphicsContext::clipOut):
  37242. (WebCore::GraphicsContext::clipOutEllipseInRect):
  37243. 2010-02-11 Yuzo Fujishima <yuzo@google.com>
  37244. Reviewed by Shinichiro Hamaji.
  37245. Rename underscored identifiers in WebCore/css/CSSParser.cpp.
  37246. https://bugs.webkit.org/show_bug.cgi?id=34877
  37247. Also fix whitespace erros that surface due to the above fix.
  37248. This doesn't change the code logic. Hence no new tests are required.
  37249. * css/CSSParser.cpp:
  37250. (WebCore::CSSParser::parseValue):
  37251. 2010-02-11 Joseph Pecoraro <joepeck@webkit.org>
  37252. Reviewed by Timothy Hatcher.
  37253. Web Inspector: Focusing a resource in the inspector should default to content not header
  37254. https://bugs.webkit.org/show_bug.cgi?id=34861
  37255. * inspector/front-end/Settings.js:
  37256. (WebInspector.Settings.prototype._load): changed initial default to content tab
  37257. 2010-02-11 Joseph Pecoraro <joepeck@webkit.org>
  37258. Reviewed by Timothy Hatcher.
  37259. Web Inspector: Editing Styles Cannot Tab Backwards from a New Style Item
  37260. https://bugs.webkit.org/show_bug.cgi?id=34872
  37261. * inspector/front-end/StylesSidebarPane.js:
  37262. (WebInspector.StylePropertiesSection.prototype.update): triggers afterUpdate
  37263. (WebInspector.StylePropertiesSection.prototype.afterUpdate): factored out _afterUpdate handling
  37264. 2010-02-11 Nikolas Zimmermann <nzimmermann@rim.com>
  37265. Reviewed by Eric Seidel.
  37266. Add roundedIntSize() convenience method converting FloatSize to IntSize, just like roundedIntPoint() converting FloatPoint to IntPoint.
  37267. * platform/graphics/FloatSize.h:
  37268. (WebCore::roundedIntSize):
  37269. 2010-02-11 Kent Tamura <tkent@chromium.org>
  37270. Reviewed by Darin Adler.
  37271. Fix two issues on maxLength.
  37272. https://bugs.webkit.org/show_bug.cgi?id=34783
  37273. - ValidityState.tooLong behavior was inconsistent with UIs of
  37274. <input> and <textarea>. tooLong checked Unicode code point length
  37275. though the UIs checks grapheme cluster length.
  37276. - Setting HTMLTextAreaElement::value didn't update the dirty flag.
  37277. * html/HTMLInputElement.cpp:
  37278. (WebCore::HTMLInputElement::tooLong): Use numGraphemeClusters() instead of length().
  37279. * html/HTMLTextAreaElement.cpp:
  37280. Rename setValue() to setNonDirtyValue(), and introduce setValue()
  37281. which calls setNonDirtyValue() and sets the dirty flag.
  37282. (WebCore::HTMLTextAreaElement::childrenChanged):
  37283. (WebCore::HTMLTextAreaElement::reset):
  37284. (WebCore::HTMLTextAreaElement::setValue):
  37285. (WebCore::HTMLTextAreaElement::setNonDirtyValue):
  37286. (WebCore::HTMLTextAreaElement::setDefaultValue):
  37287. (WebCore::HTMLTextAreaElement::tooLong): Use numGraphemeClusters() instead of length().
  37288. * html/HTMLTextAreaElement.h:
  37289. 2010-02-11 Fumitoshi Ukai <ukai@chromium.org>
  37290. Reviewed by Alexey Proskuryakov.
  37291. WebSocket bufferedAmount should not be 0 when send after close.
  37292. https://bugs.webkit.org/show_bug.cgi?id=34633
  37293. Test: websocket/tests/bufferedAmount-after-close.html
  37294. * websockets/ThreadableWebSocketChannelClientWrapper.h:
  37295. (WebCore::ThreadableWebSocketChannelClientWrapper::didClose):
  37296. * websockets/WebSocket.cpp:
  37297. (WebCore::WebSocket::WebSocket):
  37298. (WebCore::WebSocket::send):
  37299. (WebCore::WebSocket::close):
  37300. (WebCore::WebSocket::bufferedAmount):
  37301. (WebCore::WebSocket::didConnect):
  37302. (WebCore::WebSocket::didClose):
  37303. * websockets/WebSocket.h:
  37304. * websockets/WebSocketChannel.cpp:
  37305. (WebCore::WebSocketChannel::WebSocketChannel):
  37306. (WebCore::WebSocketChannel::send):
  37307. (WebCore::WebSocketChannel::bufferedAmount):
  37308. (WebCore::WebSocketChannel::didClose):
  37309. * websockets/WebSocketChannel.h:
  37310. * websockets/WebSocketChannelClient.h:
  37311. (WebCore::WebSocketChannelClient::didClose):
  37312. * websockets/WorkerThreadableWebSocketChannel.cpp:
  37313. (WebCore::workerContextDidClose):
  37314. (WebCore::WorkerThreadableWebSocketChannel::Peer::didClose):
  37315. * websockets/WorkerThreadableWebSocketChannel.h:
  37316. 2010-02-11 Fumitoshi Ukai <ukai@chromium.org>
  37317. Reviewed by Alexey Proskuryakov.
  37318. WebSocket in Worker failed to close
  37319. https://bugs.webkit.org/show_bug.cgi?id=34785
  37320. Tests: websocket/tests/workers/close-in-shared-worker.html
  37321. websocket/tests/workers/close-in-worker.html
  37322. * websockets/WorkerThreadableWebSocketChannel.cpp:
  37323. (WebCore::WorkerThreadableWebSocketChannel::close):
  37324. 2010-02-11 Kwang Yul Seo <skyul@company100.net>
  37325. Reviewed by Eric Seidel.
  37326. [BREWMP] Add dummy Cursor
  37327. https://bugs.webkit.org/show_bug.cgi?id=34672
  37328. * platform/brew/CursorBrew.cpp: Added.
  37329. (WebCore::Cursor::Cursor):
  37330. (WebCore::Cursor::~Cursor):
  37331. (WebCore::Cursor::operator=):
  37332. (WebCore::dummyCursor):
  37333. (WebCore::pointerCursor):
  37334. (WebCore::crossCursor):
  37335. (WebCore::handCursor):
  37336. (WebCore::moveCursor):
  37337. (WebCore::iBeamCursor):
  37338. (WebCore::waitCursor):
  37339. (WebCore::helpCursor):
  37340. (WebCore::eastResizeCursor):
  37341. (WebCore::northResizeCursor):
  37342. (WebCore::northEastResizeCursor):
  37343. (WebCore::northWestResizeCursor):
  37344. (WebCore::southResizeCursor):
  37345. (WebCore::southEastResizeCursor):
  37346. (WebCore::southWestResizeCursor):
  37347. (WebCore::westResizeCursor):
  37348. (WebCore::northSouthResizeCursor):
  37349. (WebCore::eastWestResizeCursor):
  37350. (WebCore::northEastSouthWestResizeCursor):
  37351. (WebCore::northWestSouthEastResizeCursor):
  37352. (WebCore::columnResizeCursor):
  37353. (WebCore::rowResizeCursor):
  37354. (WebCore::verticalTextCursor):
  37355. (WebCore::cellCursor):
  37356. (WebCore::contextMenuCursor):
  37357. (WebCore::noDropCursor):
  37358. (WebCore::copyCursor):
  37359. (WebCore::progressCursor):
  37360. (WebCore::aliasCursor):
  37361. (WebCore::noneCursor):
  37362. (WebCore::notAllowedCursor):
  37363. (WebCore::zoomInCursor):
  37364. (WebCore::zoomOutCursor):
  37365. (WebCore::middlePanningCursor):
  37366. (WebCore::eastPanningCursor):
  37367. (WebCore::northPanningCursor):
  37368. (WebCore::northEastPanningCursor):
  37369. (WebCore::northWestPanningCursor):
  37370. (WebCore::southPanningCursor):
  37371. (WebCore::southEastPanningCursor):
  37372. (WebCore::southWestPanningCursor):
  37373. (WebCore::westPanningCursor):
  37374. (WebCore::grabCursor):
  37375. (WebCore::grabbingCursor):
  37376. 2010-02-11 Nate Chapin <japhet@chromium.org>
  37377. Reviewed by Dimitri Glazkov.
  37378. [V8] Add back in a fast path for v8 object wrapping
  37379. when it's not possible we're in a WorkerContext (the fast
  37380. path is important for performance).
  37381. https://bugs.webkit.org/show_bug.cgi?id=34805
  37382. * bindings/scripts/CodeGeneratorV8.pm:
  37383. * bindings/v8/V8DOMWrapper.cpp:
  37384. (WebCore::V8DOMWrapper::instantiateV8ObjectInWorkerContext):
  37385. (WebCore::V8DOMWrapper::instantiateV8Object):
  37386. * bindings/v8/V8DOMWrapper.h:
  37387. 2010-02-11 Nikolas Zimmermann <nzimmermann@rim.com>
  37388. Reviewed by Dirk Schulze.
  37389. Small cleanups in SVG render tree code.
  37390. Centralize calls to inflateShadow(), in SVGRenderSupport::computeRectForRepaint,
  37391. instead of spreading them around the subclasses. All classes should inherit
  37392. protected from SVGRenderBase, made it consistent.
  37393. Doesn't affect layout tests.
  37394. * rendering/RenderSVGImage.cpp:
  37395. (WebCore::RenderSVGImage::computeRectForRepaint):
  37396. * rendering/RenderSVGImage.h:
  37397. * rendering/RenderSVGModelObject.cpp:
  37398. (WebCore::RenderSVGModelObject::computeRectForRepaint):
  37399. * rendering/RenderSVGRoot.h:
  37400. * rendering/RenderSVGText.cpp:
  37401. (WebCore::RenderSVGText::computeRectForRepaint):
  37402. (WebCore::RenderSVGText::layout):
  37403. * rendering/SVGRenderSupport.cpp:
  37404. (WebCore::SVGRenderBase::computeRectForRepaint):
  37405. * rendering/SVGRootInlineBox.h:
  37406. 2010-02-11 David Hyatt <hyatt@apple.com>
  37407. Reviewed by Dan Bernstein.
  37408. https://bugs.webkit.org/show_bug.cgi?id=34857
  37409. Move InlineIterator and BidiRun into new files so subclasses can access them.
  37410. * GNUmakefile.am:
  37411. * WebCore.gypi:
  37412. * WebCore.pro:
  37413. * WebCore.vcproj/WebCore.vcproj:
  37414. * WebCore.xcodeproj/project.pbxproj:
  37415. * rendering/BidiRun.cpp: Added.
  37416. (WebCore::BidiRun::destroy):
  37417. (WebCore::throw):
  37418. (WebCore::BidiRun::operator delete):
  37419. * rendering/BidiRun.h: Added.
  37420. (WebCore::BidiRun::BidiRun):
  37421. (WebCore::BidiRun::next):
  37422. * rendering/InlineIterator.h: Added.
  37423. (WebCore::InlineIterator::InlineIterator):
  37424. (WebCore::operator==):
  37425. (WebCore::operator!=):
  37426. (WebCore::bidiNext):
  37427. (WebCore::bidiFirst):
  37428. (WebCore::InlineIterator::increment):
  37429. (WebCore::InlineIterator::atEnd):
  37430. (WebCore::InlineIterator::current):
  37431. (WebCore::InlineIterator::direction):
  37432. (WebCore::InlineBidiResolver::increment):
  37433. (WebCore::InlineBidiResolver::appendRun):
  37434. * rendering/RenderBlock.h:
  37435. * rendering/RenderBlockLineLayout.cpp:
  37436. (WebCore::RenderBlock::appendRunsForObject):
  37437. (WebCore::RenderBlock::requiresLineBox):
  37438. 2010-02-11 Steve Block <steveblock@google.com>
  37439. Reviewed by Dimitri Glazkov.
  37440. Fixes CodeGeneratorV8.pm to include the header for the indexer type when using setCollectionIndexedGetter()
  37441. https://bugs.webkit.org/show_bug.cgi?id=34836
  37442. setCollectionIndexedGetter() uses getIndexedPropertyOfCollection(),
  37443. which in turn uses toV8() with the indexer type, which is declared in
  37444. the header for the indexer type.
  37445. No new tests, build fix only.
  37446. * bindings/scripts/CodeGeneratorV8.pm:
  37447. 2010-02-11 Pavel Feldman <pfeldman@chromium.org>
  37448. Reviewed by Timothy Hatcher.
  37449. Web Inspector: split source code into chunks in order to improve text
  37450. viewer performance on large files.
  37451. https://bugs.webkit.org/show_bug.cgi?id=34816
  37452. This change brings back SourceFrame's canvas+style magic, restores line
  37453. wrapping and makes things a lot like they used to be.
  37454. It removes TextEditor for now and renames NativeTextViewer into TextViewer.
  37455. TextViewer is no longer derived from TextEditor.
  37456. This TextViewer is still based on TextEditorModel, no iframes are involved.
  37457. Instead of creating div per line, TextViewer splits source code into 50 line
  37458. chunks. Upon scroll event, visible chunks are sharded into lines and individual
  37459. lines are highlighted. Whenever highlighted region gets outside of the visible
  37460. area, highlight spans are thrown away and region is replaced with the original
  37461. plain text chunk.
  37462. Complex stuff:
  37463. - Whenever there is a need to manipulate individual lines (add message bubble /
  37464. set breakpoint / reveal / etc.), individual chunks for such lines are created.
  37465. - There is also an implicit machinery that is maintaining selection when it
  37466. goes beyond the visible area.
  37467. - Search occurrences are implemented as artificial spans interweaving
  37468. highlighting markup.
  37469. * WebCore.gypi:
  37470. * WebCore.vcproj/WebCore.vcproj:
  37471. * inspector/front-end/NativeTextViewer.js: Removed.
  37472. * inspector/front-end/ScriptView.js:
  37473. (WebInspector.ScriptView):
  37474. * inspector/front-end/Settings.js:
  37475. * inspector/front-end/SourceFrame.js:
  37476. (WebInspector.SourceFrame):
  37477. (WebInspector.SourceFrame.prototype.set visible):
  37478. (WebInspector.SourceFrame.prototype.set executionLine):
  37479. (WebInspector.SourceFrame.prototype.revealLine):
  37480. (WebInspector.SourceFrame.prototype.addBreakpoint):
  37481. (WebInspector.SourceFrame.prototype.removeBreakpoint):
  37482. (WebInspector.SourceFrame.prototype.addMessage):
  37483. (WebInspector.SourceFrame.prototype.clearMessages):
  37484. (WebInspector.SourceFrame.prototype.sizeToFitContentHeight):
  37485. (WebInspector.SourceFrame.prototype.setContent):
  37486. (WebInspector.SourceFrame.prototype.highlightLine):
  37487. (WebInspector.SourceFrame.prototype._createViewerIfNeeded):
  37488. (WebInspector.SourceFrame.prototype.markAndRevealRange):
  37489. (WebInspector.SourceFrame.prototype.clearMarkedRange):
  37490. (WebInspector.SourceFrame.prototype._breakpointChanged):
  37491. (WebInspector.SourceFrame.prototype._updateExecutionLine):
  37492. (WebInspector.SourceFrame.prototype._addMessageToSource):
  37493. (WebInspector.SourceFrame.prototype._addExistingBreakpointsToSource):
  37494. (WebInspector.SourceFrame.prototype._addBreakpointToSource):
  37495. (WebInspector.SourceFrame.prototype._removeBreakpointFromSource):
  37496. (WebInspector.SourceFrame.prototype._mouseDown):
  37497. (WebInspector.SourceFrame.prototype._editBreakpointCondition.committed):
  37498. (WebInspector.SourceFrame.prototype._editBreakpointCondition.dismissed):
  37499. (WebInspector.SourceFrame.prototype._editBreakpointCondition):
  37500. (WebInspector.SourceFrame.prototype._showBreakpointConditionPopup):
  37501. (WebInspector.SourceFrame.prototype._createConditionElement):
  37502. (WebInspector.SourceFrame.prototype._keyDown):
  37503. (WebInspector.SourceFrame.prototype.resize):
  37504. (WebInspector.SourceFrame.prototype._drawProgramCounterInContext):
  37505. (WebInspector.SourceFrame.prototype._drawProgramCounterImageIfNeeded):
  37506. (WebInspector.SourceFrame.prototype._drawBreakpointImagesIfNeeded.drawBreakpoint):
  37507. (WebInspector.SourceFrame.prototype._drawBreakpointImagesIfNeeded):
  37508. * inspector/front-end/SourceView.js:
  37509. (WebInspector.SourceView):
  37510. (WebInspector.SourceView.prototype._removeBreakpoint):
  37511. (WebInspector.SourceView.prototype.searchCanceled):
  37512. (WebInspector.SourceView.prototype._jumpToSearchResult):
  37513. * inspector/front-end/TextEditor.js: Removed.
  37514. * inspector/front-end/TextViewer.js: Added.
  37515. (WebInspector.TextViewer):
  37516. (WebInspector.TextViewer.prototype.set mimeType):
  37517. (WebInspector.TextViewer.prototype.get textModel):
  37518. (WebInspector.TextViewer.prototype.revealLine):
  37519. (WebInspector.TextViewer.prototype.addDecoration):
  37520. (WebInspector.TextViewer.prototype.removeDecoration):
  37521. (WebInspector.TextViewer.prototype.markAndRevealRange):
  37522. (WebInspector.TextViewer.prototype.highlightLine):
  37523. (WebInspector.TextViewer.prototype._textChanged):
  37524. (WebInspector.TextViewer.prototype._createChunkRow):
  37525. (WebInspector.TextViewer.prototype._makeLineAChunk):
  37526. (WebInspector.TextViewer.prototype._indexChunks):
  37527. (WebInspector.TextViewer.prototype._highlightChanged):
  37528. (WebInspector.TextViewer.prototype._scroll):
  37529. (WebInspector.TextViewer.prototype.setCoalescingUpdate):
  37530. (WebInspector.TextViewer.prototype._repaintAll):
  37531. (WebInspector.TextViewer.prototype._chunkForOffset):
  37532. (WebInspector.TextViewer.prototype._chunkNumberForLine):
  37533. (WebInspector.TextViewer.prototype._chunkStartLine):
  37534. (WebInspector.TextViewer.prototype._restoreChunks):
  37535. (WebInspector.TextViewer.prototype._repaint):
  37536. (WebInspector.TextViewer.prototype._getSelection):
  37537. (WebInspector.TextViewer.prototype._restoreSelection):
  37538. (WebInspector.TextViewer.prototype._selectionToPosition):
  37539. (WebInspector.TextViewer.prototype._createLineRow):
  37540. (WebInspector.TextViewer.prototype._paintLine):
  37541. (WebInspector.TextViewer.prototype._createSpan):
  37542. (WebInspector.TextViewer.prototype._createLink):
  37543. (WebInspector.TextViewer.prototype._rewriteHref):
  37544. (WebInspector.TextViewer.prototype._markRange):
  37545. (WebInspector.TextViewer.prototype._decimalDigits):
  37546. (WebInspector.TextViewer.prototype.resize):
  37547. * inspector/front-end/WebKit.qrc:
  37548. * inspector/front-end/inspector.css:
  37549. * inspector/front-end/inspector.html:
  37550. * inspector/front-end/textEditor.css: Removed.
  37551. * inspector/front-end/textViewer.css: Added.
  37552. * inspector/front-end/utilities.js:
  37553. (Node.prototype.traverseNextTextNode):
  37554. (Node.prototype.rangeBoundaryForOffset):
  37555. 2010-02-11 Csaba Osztrogonác <ossy@webkit.org>
  37556. Reviewed by Tor Arne Vestbø.
  37557. [Qt] ENABLE_RUBY flag was restored by r54649, but default value wasn't added for Qt port.
  37558. https://bugs.webkit.org/show_bug.cgi?id=34698
  37559. * WebCore.pri: Add ENABLE_RUBY=1 as default setting.
  37560. 2010-02-11 Steve Block <steveblock@google.com>
  37561. Reviewed by Jeremy Orlow.
  37562. Updates Android V8 Makefile to generate Notifications and WebSockets headers required by V8DOMWrapper.cpp
  37563. https://bugs.webkit.org/show_bug.cgi?id=34815
  37564. No new tests, build fix only.
  37565. * Android.derived.v8bindings.mk:
  37566. 2010-02-11 Steve Block <steveblock@google.com>
  37567. Reviewed by Jeremy Orlow.
  37568. Updates Android V8 Makefile to generate XPath header required by V8Proxy.cpp
  37569. https://bugs.webkit.org/show_bug.cgi?id=34814
  37570. No new tests, build fix only.
  37571. * Android.derived.v8bindings.mk:
  37572. 2010-02-11 Steve Block <steveblock@google.com>
  37573. Reviewed by Nate Chapin.
  37574. Update Android V8 Makefile to generate Inspector headers required by V8 ScriptObject.cpp
  37575. https://bugs.webkit.org/show_bug.cgi?id=34806
  37576. No new tests, build fix only.
  37577. * Android.derived.v8bindings.mk:
  37578. 2010-02-11 Steve Block <steveblock@google.com>
  37579. Reviewed by David Levin.
  37580. Guards SVG code in V8 bindings with ENABLE(SVG)
  37581. https://bugs.webkit.org/show_bug.cgi?id=34812
  37582. Also updates Android V8 Makefile to generate required SVG headers.
  37583. No new tests, build fix only.
  37584. * Android.derived.v8bindings.mk:
  37585. * bindings/v8/custom/V8CSSValueCustom.cpp:
  37586. (WebCore::toV8):
  37587. * bindings/v8/custom/V8DocumentCustom.cpp:
  37588. (WebCore::toV8):
  37589. * bindings/v8/custom/V8ElementCustom.cpp:
  37590. (WebCore::toV8):
  37591. 2010-02-08 Maciej Stachowiak <mjs@apple.com>
  37592. Reviewed by Cameron Zwarich.
  37593. Restore ENABLE_RUBY flag so vendors can ship with Ruby disabled if they choose.
  37594. https://bugs.webkit.org/show_bug.cgi?id=34698
  37595. * Configurations/FeatureDefines.xcconfig:
  37596. * DerivedSources.make:
  37597. * GNUmakefile.am:
  37598. * html/HTMLTagNames.in: Make the ruby-related tag names conditional.
  37599. * rendering/RenderObject.cpp:
  37600. (WebCore::RenderObject::createObject): ifdef the code that would create ruby elements.
  37601. * rendering/RenderObject.h: ditto above
  37602. * rendering/RenderRuby.cpp: ifdef this whole file
  37603. * rendering/RenderRuby.h: ditto
  37604. * rendering/RenderRubyBase.cpp: ditto
  37605. * rendering/RenderRubyBase.h: ditto
  37606. * rendering/RenderRubyRun.cpp: ditto
  37607. * rendering/RenderRubyRun.h: ditto
  37608. * rendering/RenderRubyText.cpp: ditto
  37609. * rendering/RenderRubyText.h: ditto
  37610. 2010-02-11 Kent Tamura <tkent@chromium.org>
  37611. Reviewed by Darin Adler.
  37612. Step attribute support for date&time types.
  37613. https://bugs.webkit.org/show_bug.cgi?id=30847
  37614. - Add implementation for ValidityState.stepMismatch, stepUp() and
  37615. stepDown() for date, datetime, datetime-local, month, time, week types.
  37616. - Fix string representation of DateComponents.
  37617. Tests: fast/forms/ValidityState-stepMismatch.html
  37618. fast/forms/input-stepup-stepdown.html
  37619. * html/HTMLInputElement.cpp:
  37620. - Change monthDefaultMaximum so that DateComponents::m_year doesn't overflow.
  37621. (WebCore::HTMLInputElement::stepBase):
  37622. (WebCore::HTMLInputElement::stepMismatch):
  37623. (WebCore::HTMLInputElement::getStepParameters):
  37624. (WebCore::HTMLInputElement::getAllowedValueStep):
  37625. (WebCore::HTMLInputElement::applyStep):
  37626. Renamed from applyStepForNumberOrRange(), and add support for other types.
  37627. (WebCore::HTMLInputElement::stepUp): Rename applyStepForNumberOrRange().
  37628. (WebCore::HTMLInputElement::stepDown): Rename applyStepForNumberOrRange().
  37629. (WebCore::HTMLInputElement::setValueAsDate): Use setDateValue().
  37630. (WebCore::HTMLInputElement::setDateValue):
  37631. A helper function to make the best representation of DateComponents.
  37632. (WebCore::HTMLInputElement::setValueAsNumber): Use setDateValue().
  37633. * html/HTMLInputElement.h:
  37634. 2010-02-10 Oliver Hunt <oliver@apple.com>
  37635. Reviewed by Gavin Barraclough.
  37636. postMessage does not send ImageData
  37637. https://bugs.webkit.org/show_bug.cgi?id=34825
  37638. Implement serialisation of ImageData, and for testing reasons
  37639. expose the ImageData constructor (which should already have
  37640. been exposed).
  37641. * bindings/js/SerializedScriptValue.cpp:
  37642. (WebCore::SerializedImageData::create):
  37643. (WebCore::SerializedImageData::width):
  37644. (WebCore::SerializedImageData::height):
  37645. (WebCore::SerializedImageData::data):
  37646. (WebCore::SerializedImageData::SerializedImageData):
  37647. (WebCore::SerializedScriptValueData::SerializedScriptValueData):
  37648. (WebCore::SharedSerializedData::asImageData):
  37649. (WebCore::SerializingTreeWalker::convertIfTerminal):
  37650. (WebCore::DeserializingTreeWalker::convertIfTerminal):
  37651. (WebCore::TeardownTreeWalker::convertIfTerminal):
  37652. * bindings/js/SerializedScriptValue.h:
  37653. (WebCore::SerializedScriptValueData::):
  37654. (WebCore::SerializedScriptValueData::asImageData):
  37655. * html/canvas/CanvasPixelArray.h:
  37656. (WebCore::CanvasPixelArray::data):
  37657. * page/DOMWindow.idl:
  37658. 2010-02-10 Adam Barth <abarth@webkit.org>
  37659. Reviewed by Darin Adler.
  37660. Address last round of review comments on r53607
  37661. https://bugs.webkit.org/show_bug.cgi?id=33940
  37662. Mostly renaming and cleaning up.
  37663. * css/CSSImportRule.cpp:
  37664. (WebCore::CSSImportRule::insertedIntoParent):
  37665. * css/CSSStyleSheet.h:
  37666. (WebCore::CSSStyleSheet::create):
  37667. (WebCore::CSSStyleSheet::createInline):
  37668. * css/StyleBase.cpp:
  37669. (WebCore::StyleBase::baseURL):
  37670. * css/StyleSheet.cpp:
  37671. (WebCore::StyleSheet::StyleSheet):
  37672. * css/StyleSheet.h:
  37673. (WebCore::StyleSheet::href):
  37674. (WebCore::StyleSheet::setFinalURL):
  37675. (WebCore::StyleSheet::finalURL):
  37676. * dom/Document.cpp:
  37677. (WebCore::Document::updateBaseURL):
  37678. * dom/ProcessingInstruction.cpp:
  37679. (WebCore::ProcessingInstruction::checkStyleSheet):
  37680. * xml/XSLImportRule.cpp:
  37681. (WebCore::XSLImportRule::loadSheet):
  37682. * xml/XSLStyleSheet.h:
  37683. (WebCore::XSLStyleSheet::create):
  37684. (WebCore::XSLStyleSheet::createInline):
  37685. * xml/XSLStyleSheetLibxslt.cpp:
  37686. (WebCore::XSLStyleSheet::XSLStyleSheet):
  37687. (WebCore::XSLStyleSheet::parseString):
  37688. (WebCore::XSLStyleSheet::loadChildSheets):
  37689. * xml/XSLStyleSheetQt.cpp:
  37690. (WebCore::XSLStyleSheet::XSLStyleSheet):
  37691. 2010-02-10 Noam Rosenthal <noam.rosenthal@nokia.com>
  37692. Reviewed by Ariya Hidayat.
  37693. [Qt] GraphicsLayer: somtimes the item flickers at the end of an animation
  37694. This is because we try to delete the animation when finished: that is
  37695. unnecessary. WebCore manages the animation's lifecycle and makes sure
  37696. to call the right function when the animation can be deleted.
  37697. https://bugs.webkit.org/show_bug.cgi?id=34761
  37698. No new tests.
  37699. * platform/graphics/qt/GraphicsLayerQt.cpp:
  37700. (WebCore::GraphicsLayerQt::addAnimation): No need to delete here
  37701. (WebCore::GraphicsLayerQt::removeAnimationsForProperty): deleteLater
  37702. 2010-02-10 Kevin Ollivier <kevino@theolliviers.com>
  37703. [wx] Build fix for wxMac/Cocoa.
  37704. * platform/wx/wxcode/mac/carbon/fontprops.cpp: Removed.
  37705. * platform/wx/wxcode/mac/carbon/fontprops.mm: Copied from WebCore/platform/wx/wxcode/mac/carbon/fontprops.cpp.
  37706. * wscript:
  37707. 2010-02-10 Jon Honeycutt <jhoneycutt@apple.com>
  37708. REGRESSION(24929): PDF page doesn't load in background tab
  37709. Reviewed by Dan Bernstein.
  37710. * plugins/PluginView.cpp:
  37711. (WebCore::PluginView::startOrAddToUnstartedList):
  37712. Only delay loading of the plug-in if we'll kick off our own load of the
  37713. plug-in data later, in start().
  37714. 2010-02-10 Enrica Casucci <enrica@apple.com>
  37715. Reviewed by Simon Fraser.
  37716. Crash in WebKit!WebCore::RenderTextControlSingleLine::createInnerTextStyle doing anything in Safari after sitting on a page with 3D site
  37717. <rdar://problem/7557201>
  37718. https://bugs.webkit.org/show_bug.cgi?id=34823
  37719. No tests added because the code is exercised by the existing tests.
  37720. The root cause was the fact that we were not releasing a reference that was held by CA.
  37721. In debug builds we had an assert in the destructor of WKCACFLayer.
  37722. * platform/graphics/win/GraphicsLayerCACF.cpp:
  37723. (WebCore::GraphicsLayerCACF::~GraphicsLayerCACF):
  37724. 2010-02-10 Kwang Yul Seo <skyul@company100.net>
  37725. Reviewed by Eric Seidel.
  37726. [BREWMP] Typedef DragImageRef
  37727. https://bugs.webkit.org/show_bug.cgi?id=34791
  37728. Use IImage* as it is the BREW's image type.
  37729. * platform/DragImage.h:
  37730. 2010-02-10 Beth Dakin <bdakin@apple.com>
  37731. Reviewed by Simon Fraser and Darin Adler.
  37732. Fix for https://bugs.webkit.org/show_bug.cgi?id=34185 REGRESSION:
  37733. Mask not invalidating
  37734. SVGMaskElement is the only class that keeps a HashMap of canvas
  37735. resources rather than just a pointer to a resource. This
  37736. patch makes SVGMaskElement invalidate all of its resources in the
  37737. HashMap instead of just one.
  37738. * svg/SVGMaskElement.cpp:
  37739. (WebCore::SVGMaskElement::svgAttributeChanged):
  37740. (WebCore::SVGMaskElement::childrenChanged):
  37741. (WebCore::SVGMaskElement::invalidateCanvasResources):
  37742. * svg/SVGMaskElement.h:
  37743. * svg/SVGStyledElement.cpp:
  37744. (WebCore::SVGStyledElement::invalidateResourcesInAncestorChain):
  37745. (WebCore::SVGStyledElement::invalidateCanvasResources):
  37746. * svg/SVGStyledElement.h:
  37747. 2010-02-10 Stephan Aßmus <superstippi@gmx.de>
  37748. Reviewed by David Levin.
  37749. Fixes to rect conversion and image rendering on Haiku
  37750. https://bugs.webkit.org/show_bug.cgi?id=34684
  37751. Covered by existing tests.
  37752. The changes to the rect conversions are indeed correct. In Haiku (to stay
  37753. compatibly with BeOS), a BRect specifies the left/top and bottom/right pixel
  37754. *indices*, even though the values are floating point. So a rectangle covering
  37755. just one pixel would be specified as BRect(0, 0, 0, 0). In WebCore and other
  37756. frame works, such rectangles would be expressed as 0, 0, 1, 1. In WebCore, the
  37757. width and height of rectangles refer to the distance between pixels, while on
  37758. Haiku, a one pixel rect has indeed a width and height of 0, as confusing as
  37759. that may be.
  37760. The part of the patch that affects
  37761. WebCore/platform/graphics/haiku/ImageHaiku.cpp also implements the drawing
  37762. methods more correctly. Image observers are notified, and pattern drawing takes
  37763. the "phase" into account which makes scrolled backgrounds render correctly.
  37764. Transformations are still not supported, since the Haiku drawing backend itself
  37765. does not yet support them.
  37766. Use OwnPtr when creating the BBitmap to avoid future leaks with early returns.
  37767. Convert the bitmap data to non pre-multiplied until Haiku supports drawing
  37768. pre-multiplied bitmaps.
  37769. * platform/graphics/haiku/FloatRectHaiku.cpp: Fixed conversion
  37770. * platform/graphics/haiku/ImageHaiku.cpp:
  37771. (WebCore::BitmapImage::draw): Fixed placement, notify observers
  37772. (WebCore::Image::drawPattern): Implemented using "phase" to fix scrolling, notify observers
  37773. * platform/graphics/haiku/IntRectHaiku.cpp: Fixed conversion
  37774. * platform/image-decoders/haiku/ImageDecoderHaiku.cpp: Fixed conversion
  37775. 2010-02-10 Simon Fraser <simon.fraser@apple.com>
  37776. Reviewed by David Levin.
  37777. Clean up unused member var and initialization in Document
  37778. https://bugs.webkit.org/show_bug.cgi?id=34820
  37779. Remove unused m_secureForms member variable in Document.
  37780. * dom/Document.cpp:
  37781. (WebCore::Document::Document):
  37782. * dom/Document.h:
  37783. 2010-02-10 Kevin Watters <kevinwatters@gmail.com>
  37784. Reviewed by Kevin Ollivier.
  37785. [wx] Add Windows complex text support and Mac support for containsCharacters.
  37786. https://bugs.webkit.org/show_bug.cgi?id=34759
  37787. * platform/graphics/SimpleFontData.h:
  37788. * platform/graphics/wx/FontPlatformData.h:
  37789. (WebCore::FontPlatformData::roundsGlyphAdvances):
  37790. * platform/graphics/wx/FontPlatformDataWx.cpp:
  37791. (WebCore::FontPlatformData::useGDI):
  37792. (WebCore::FontPlatformData::hfont):
  37793. * platform/graphics/wx/FontWx.cpp:
  37794. (WebCore::Font::canReturnFallbackFontsForComplexText):
  37795. (WebCore::Font::selectionRectForComplexText):
  37796. (WebCore::Font::drawComplexText):
  37797. (WebCore::Font::floatWidthForComplexText):
  37798. (WebCore::Font::offsetForPositionForComplexText):
  37799. * platform/graphics/wx/SimpleFontDataWx.cpp:
  37800. (WebCore::SimpleFontData::platformInit):
  37801. (WebCore::SimpleFontData::platformDestroy):
  37802. (WebCore::SimpleFontData::containsCharacters):
  37803. (WebCore::SimpleFontData::platformWidthForGlyph):
  37804. (WebCore::SimpleFontData::scriptFontProperties):
  37805. (WebCore::SimpleFontData::initGDIFont):
  37806. (WebCore::SimpleFontData::platformCommonDestroy):
  37807. (WebCore::SimpleFontData::widthForGDIGlyph):
  37808. * platform/wx/wxcode/fontprops.h:
  37809. * platform/wx/wxcode/gtk/fontprops.cpp:
  37810. (wxFontContainsCharacters):
  37811. * platform/wx/wxcode/mac/carbon/fontprops.cpp:
  37812. (wxFontContainsCharacters):
  37813. * platform/wx/wxcode/win/fontprops.cpp:
  37814. (wxFontContainsCharacters):
  37815. * platform/wx/wxcode/win/non-kerned-drawing.cpp:
  37816. (WebCore::drawTextWithSpacing):
  37817. * wscript:
  37818. 2010-02-10 Kwang Yul Seo <skyul@company100.net>
  37819. Reviewed by Eric Seidel.
  37820. [BREWMP] Add dummy Frame::dragImageForSelection
  37821. https://bugs.webkit.org/show_bug.cgi?id=34792
  37822. Add FrameBrew.cpp which contains a dummy implementation of
  37823. Frame::dragImageForSelection.
  37824. * page/brew/FrameBrew.cpp: Added.
  37825. (WebCore::Frame::dragImageForSelection):
  37826. 2010-02-10 Kevin Ollivier <kevino@theolliviers.com>
  37827. [wx] Build fix. Switch drawPattern to Image class like other platforms.
  37828. * platform/graphics/BitmapImage.h:
  37829. * platform/graphics/wx/ImageWx.cpp:
  37830. (WebCore::Image::drawPattern):
  37831. 2010-02-10 Chris Marrin <cmarrin@apple.com>
  37832. Reviewed by Darin Adler.
  37833. Added CA_PRINT_TREE functionality to WKCACFLayer implementation
  37834. https://bugs.webkit.org/show_bug.cgi?id=34779
  37835. I've tried to duplicate the look of the output on Mac, but
  37836. it's not quite the same. It shows all the useful information though.
  37837. It is enabled by setting the environment variable CA_PRINT_TREE=1
  37838. * platform/graphics/win/WKCACFLayer.cpp:Implementation of printTree
  37839. (WebCore::WKCACFLayer::isTransformLayer):
  37840. Moved function to cpp file because it needs to use the function form
  37841. of kCACFTransformLayer because the DLL is delay loaded, and that function
  37842. can only be called from the cpp file.
  37843. (WebCore::WKCACFLayer::sublayerAtIndex):
  37844. (WebCore::printIndent):
  37845. (WebCore::printTransform):
  37846. (WebCore::WKCACFLayer::printTree):Prints from this layer down
  37847. (WebCore::WKCACFLayer::printLayer):Prints this layer and recursively calls sublayers
  37848. * platform/graphics/win/WKCACFLayer.h:
  37849. * platform/graphics/win/WKCACFLayerRenderer.cpp:
  37850. (WebCore::WKCACFLayerRenderer::WKCACFLayerRenderer):
  37851. (WebCore::WKCACFLayerRenderer::createRenderer):Adds a name to the root layers
  37852. (WebCore::WKCACFLayerRenderer::render):Calls printTree when CA_PRINT_TREE is 1
  37853. * platform/graphics/win/WKCACFLayerRenderer.h:
  37854. 2010-02-10 Nate Chapin <japhet@chromium.org>
  37855. Reviewed by Adam Barth.
  37856. Change V8DOMWrapper::lookupDOMWrapper() and configureTemplate()
  37857. to not use V8ClassIndex.
  37858. https://bugs.webkit.org/show_bug.cgi?id=34768
  37859. * bindings/scripts/CodeGeneratorV8.pm:
  37860. * bindings/v8/V8Binding.cpp:
  37861. * bindings/v8/V8Binding.h:
  37862. * bindings/v8/V8DOMWindowShell.cpp:
  37863. * bindings/v8/V8DOMWrapper.cpp:
  37864. * bindings/v8/V8DOMWrapper.h:
  37865. * bindings/v8/V8Proxy.cpp:
  37866. * bindings/v8/WorkerContextExecutionProxy.cpp:
  37867. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  37868. * bindings/v8/custom/V8LocationCustom.cpp:
  37869. * bindings/v8/custom/V8MessageEventCustom.cpp:
  37870. 2010-02-10 Nate Chapin <japhet@chromium.org>
  37871. Reviewed by Dimitri Glazkov.
  37872. [V8] Handle the possibility that ScheduledAction::execute() may
  37873. retrieve a null V8Proxy* even if not in a WorkerContext (e.g., if
  37874. JS was disallowed).
  37875. * bindings/v8/ScheduledAction.cpp:
  37876. (WebCore::ScheduledAction::execute):
  37877. 2010-02-10 Kenneth Russell <kbr@google.com>
  37878. Reviewed by Oliver Hunt.
  37879. Remove automatic viewport resizing
  37880. https://bugs.webkit.org/show_bug.cgi?id=34766
  37881. Removed automatic viewport resizing per conclusions on the WebGL
  37882. mailing list. Added test verifying new behavior and updated a
  37883. couple of previous tests failing after this change.
  37884. Test: fast/canvas/webgl/viewport-unchanged-upon-resize.html
  37885. * platform/graphics/mac/GraphicsContext3DMac.cpp:
  37886. (WebCore::GraphicsContext3D::reshape):
  37887. 2010-02-10 Ariya Hidayat <ariya.hidayat@gmail.com>
  37888. Reviewed by Kenneth Rohde Christiansen.
  37889. [Qt] Implement image interpolation quality.
  37890. https://bugs.webkit.org/show_bug.cgi?id=34629
  37891. * platform/graphics/qt/GraphicsContextQt.cpp:
  37892. (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
  37893. (WebCore::GraphicsContext::setImageInterpolationQuality):
  37894. (WebCore::GraphicsContext::imageInterpolationQuality):
  37895. 2010-02-10 Eric Seidel <eric@webkit.org>
  37896. No review, Mac build fix.
  37897. Crash in Flash at http://www.cctv.com/
  37898. https://bugs.webkit.org/show_bug.cgi?id=34673
  37899. * plugins/PluginViewNone.cpp:
  37900. (WebCore::PluginView::getValueStatic):
  37901. 2010-02-10 Gustavo Noronha Silva <gns@gnome.org>
  37902. Reviewed by Xan Lopez.
  37903. [GTK] Hits assertion on history back, with page cache enabled, in specific conditions
  37904. https://bugs.webkit.org/show_bug.cgi?id=34773
  37905. When unsetting the adjustments from a ScrollView, also disconnect
  37906. them from the Scrollbars.
  37907. Test: fast/frames/frame-crash-with-page-cache.html
  37908. * platform/gtk/ScrollViewGtk.cpp:
  37909. (WebCore::ScrollView::setGtkAdjustments):
  37910. * platform/gtk/ScrollbarGtk.cpp:
  37911. (ScrollbarGtk::~ScrollbarGtk):
  37912. (ScrollbarGtk::detachAdjustment):
  37913. * platform/gtk/ScrollbarGtk.h:
  37914. 2010-02-09 Alexey Proskuryakov <ap@apple.com>
  37915. Reviewed by Geoffrey Garen.
  37916. https://bugs.webkit.org/show_bug.cgi?id=34490
  37917. WebCore::ImageEventSender::dispatchPendingEvents() crashes in certain conditions
  37918. Test: fast/images/destroyed-image-load-event.html
  37919. * ForwardingHeaders/wtf/ValueCheck.h: Added.
  37920. * loader/ImageLoader.cpp:
  37921. (WTF::ValueCheck): Special case value check for ImageLoader - it's allocated inside elements,
  37922. so check the owner instead.
  37923. (WebCore::ImageEventSender::hasPendingEvents): Added a debugging aid for ImageLoader destructor.
  37924. (WebCore::ImageLoader::~ImageLoader): Assert that we're not going to leave dangling pointers
  37925. in ImageEventSender.
  37926. (WebCore::ImageLoader::setImage): Cancel events that could be dispatched for the previous
  37927. image. The only client using this method that I could find was DeleteButton, which doesn't
  37928. care about load events for the new image, so I didn't add any code for firing those.
  37929. (WebCore::ImageLoader::setLoadingImage): This method only existed to confuse readers -
  37930. there wasn't any meaningful code shared (callers just undid most assignments made there).
  37931. Merged the logic into callers.
  37932. (WebCore::ImageLoader::updateFromElement): We're forgetting the old image, so forget its
  37933. old events, too.
  37934. (WebCore::ImageLoader::notifyFinished): This can be called from setImage(), in which case
  37935. no one is going to dispatch the event "soon". So, don't queue it.
  37936. (WebCore::ImageEventSender::dispatchPendingEvents): Call checkConsistency(). This didn't
  37937. help catch this particuar bug, but seems like a useful check anyway.
  37938. * loader/ImageLoader.h: Removed setLoadingImage().
  37939. 2010-02-10 Jon Honeycutt <jhoneycutt@apple.com>
  37940. Mac build fix. Unreviewed.
  37941. * WebCore.xcodeproj/project.pbxproj:
  37942. Add PluginViewNone.cpp to the Mac project.
  37943. 2010-02-10 Adam Roben <aroben@apple.com>
  37944. Optimize ImageBuffer::toDataURL's CG implementation
  37945. There was some unused code that could have been removed in r31830 when
  37946. this function was changed not to flip the CG image anymore.
  37947. Fixes <http://webkit.org/b/34808> ImageBuffer::toDataURL allocates
  37948. unnecessary memory under CoreGraphics
  37949. Reviewed by Sam Weinig.
  37950. * platform/graphics/cg/ImageBufferCG.cpp:
  37951. (WebCore::ImageBuffer::toDataURL): Don't allocate an unused CGImageRef
  37952. and buffer, and switch to the new overload of base64Encode that
  37953. doesn't require us to copy all the image data into a Vector first.
  37954. * platform/text/Base64.cpp:
  37955. (WebCore::base64Encode):
  37956. * platform/text/Base64.h:
  37957. Added an overload that takes a raw data pointer and length, just like
  37958. we have for base64Decode. The overload that takes a Vector as input
  37959. just calls through to the new overload.
  37960. 2010-02-10 Dan Bernstein <mitz@apple.com>
  37961. Reviewed by Dave Hyatt.
  37962. Complete the fix for <rdar://problem/7577604> Drag and Drop: background elements are bleeding through
  37963. https://bugs.webkit.org/show_bug.cgi?id=34546
  37964. * manual-tests/drag-image-table-part-decorations.html:
  37965. * rendering/RenderTableCell.cpp:
  37966. (WebCore::RenderTableCell::paint): Don’t paint collapsed borders if this object shouldn’t
  37967. paint within the current painting root.
  37968. 2010-02-08 Jon Honeycutt <jhoneycutt@apple.com>
  37969. <rdar://problem/7436875> Crash in Flash when visiting
  37970. http://www.cctv.com/default.shtml (WER ID 819298200) [watson 2502260]
  37971. Reviewed by Darin Adler.
  37972. Test: platform/win/plugins/plugin-delayed-destroy.html
  37973. * bridge/NP_jsobject.cpp:
  37974. (_NPN_Evaluate):
  37975. If Flash calls this to evaluate a script that destroys the PluginView,
  37976. we crash when returning to Flash code. Before evaluating the script,
  37977. call PluginView::keepAlive() to hold a ref to this instance (and release
  37978. it asynchronously).
  37979. * plugins/PluginView.cpp:
  37980. (WebCore::instanceMap):
  37981. Return a map from the NPP to the PluginView.
  37982. (WebCore::PluginView::~PluginView):
  37983. Assert that the keep alive timer is not running; remove ourselves from
  37984. the instance map.
  37985. (WebCore::PluginView::performRequest):
  37986. The parent Frame is now a RefPtr; use .get().
  37987. (WebCore::PluginView::status):
  37988. Ditto.
  37989. (WebCore::PluginView::didReceiveResponse):
  37990. Ditto.
  37991. (WebCore::PluginView::PluginView):
  37992. Add the view to the instance map.
  37993. (WebCore::PluginView::lifeSupportTimerFired):
  37994. Deref the PluginView.
  37995. (WebCore::PluginView::keepAlive):
  37996. Ref the PluginView, then start a time to release the reference
  37997. asynchronously.
  37998. (WebCore::PluginView::keepAlive):
  37999. Find the PluginView in the map, and call its keepAlive() function.
  38000. * plugins/PluginView.h:
  38001. Made m_parentFrame a RefPtr, so that it will remain valid when the
  38002. keep alive timer fires.
  38003. (WebCore::PluginView::parentFrame):
  38004. Use .get().
  38005. * plugins/gtk/PluginViewGtk.cpp:
  38006. (WebCore::PluginView::updatePluginWidget):
  38007. Use .get().
  38008. (WebCore::PluginView::handleKeyboardEvent):
  38009. Use .get().
  38010. (WebCore::PluginView::handleMouseEvent):
  38011. Use .get().
  38012. * plugins/PluginViewNone.cpp:
  38013. (WebCore::PluginView::keepAlive):
  38014. Stubbed.
  38015. 2010-02-10 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
  38016. Reviewed by Kenneth Rohde Christiansen.
  38017. Support frameset flattening
  38018. https://bugs.webkit.org/show_bug.cgi?id=32717
  38019. Add support for enabling/disabling FrameSet Flattening on the Mac port.
  38020. * WebCore.base.exp:
  38021. 2010-02-10 Jeremy Orlow <jorlow@chromium.org>
  38022. Revert 54599 because it breaks a lot of tests on Windows Chrome
  38023. * inspector/front-end/DOMAgent.js:
  38024. (WebInspector.DOMNode.prototype._insertChild):
  38025. * inspector/front-end/ElementsPanel.js:
  38026. (WebInspector.ElementsPanel.prototype.updateModifiedNodes):
  38027. * inspector/front-end/ElementsTreeOutline.js:
  38028. (WebInspector.ElementsTreeOutline.prototype.revealAndSelectNode):
  38029. (WebInspector.ElementsTreeElement):
  38030. (WebInspector.ElementsTreeElement.prototype._updateChildren.updateChildrenOfNode):
  38031. (WebInspector.ElementsTreeElement.prototype._updateChildren):
  38032. ():
  38033. * inspector/front-end/inspector.css:
  38034. 2010-02-10 Adam Roben <aroben@apple.com>
  38035. Fix bad paths in WebCore.vcproj
  38036. These were harmless in VS2005, but cause project conversion errors in
  38037. VS2010 RC.
  38038. Fixes <http://webkit.org/b/34801>.
  38039. Reviewed by Dan Bernstein.
  38040. * WebCore.vcproj/WebCore.vcproj: Removed leading "." from paths to
  38041. JSHTMLFrameSetElement.{cpp,h}.
  38042. 2010-02-10 Julien Chaffraix <jchaffraix@webkit.org>
  38043. Not reviewed (build fix).
  38044. * platform/graphics/win/FontCacheWin.cpp:
  38045. (WebCore::FontCache::getLastResortFallbackFont): Return a
  38046. SimpleFontData here.
  38047. 2010-02-10 Julien Chaffraix <jchaffraix@pleyo.com>
  38048. Reviewed by Eric Seidel.
  38049. Bug 23287 - Avoid using FontPlatformData outside the FontCache
  38050. No functional change, only refactored the code using FontPlatformData to use SimpleFontData.
  38051. This change leaves the class FontCached as it needs some thoughts and more refactoring.
  38052. * css/CSSFontFaceSource.cpp:
  38053. (WebCore::CSSFontFaceSource::getFontData): Call getCachedFontData with the 2 parameters directly.
  38054. * css/CSSFontSelector.cpp:
  38055. (WebCore::fontDataForGenericFamily): Ditto.
  38056. * platform/graphics/FontCache.cpp:
  38057. (WebCore::FontCache::getCachedFontData): This method is meant to replace getCachedFontPlatformData
  38058. that was moved in the private section of the class. It calls getCachedFontPlatformData and cache
  38059. the returned FontPlatformData if it is not null.
  38060. (WebCore::FontCache::getFontData): Updated to use the new getCachedFontData.
  38061. * platform/graphics/FontCache.h: Updated several methods to return a SimpleFontData in lieu of a
  38062. FontPlatformData. Moved some method in the private sections.
  38063. * platform/graphics/chromium/FontCacheChromiumWin.cpp:
  38064. (WebCore::FontCache::getSimilarFontPlatformData):
  38065. (WebCore::FontCache::getLastResortFallbackFont):
  38066. * platform/graphics/chromium/FontCacheLinux.cpp:
  38067. (WebCore::FontCache::getSimilarFontPlatformData):
  38068. (WebCore::FontCache::getLastResortFallbackFont):
  38069. * platform/graphics/gtk/FontCacheGtk.cpp:
  38070. (WebCore::FontCache::getSimilarFontPlatformData):
  38071. (WebCore::FontCache::getLastResortFallbackFont):
  38072. * platform/graphics/haiku/FontCacheHaiku.cpp:
  38073. (WebCore::FontCache::getSimilarFontPlatformData):
  38074. (WebCore::FontCache::getLastResortFallbackFont):
  38075. * platform/graphics/qt/FontCacheQt.cpp:
  38076. (WebCore::FontCache::getLastResortFallbackFont):
  38077. * platform/graphics/win/FontCacheWin.cpp:
  38078. (WebCore::FontCache::getSimilarFontPlatformData):
  38079. (WebCore::FontCache::getLastResortFallbackFont):
  38080. * platform/graphics/wince/FontCacheWince.cpp:
  38081. * platform/graphics/wx/FontCacheWx.cpp:
  38082. (WebCore::FontCache::getSimilarFontPlatformData):
  38083. (WebCore::FontCache::getLastResortFallbackFont):
  38084. Updated all the previous platform methods to return a SimpleFontData.
  38085. * platform/graphics/mac/FontCacheMac.mm:
  38086. (WebCore::FontCache::getSimilarFontPlatformData): Updated to return a SimpleFontData.
  38087. (WebCore::FontCache::getLastResortFallbackFont): Ditto. Also refactored the code
  38088. and moved a DEFINE_STATIC_LOCAL where it is needed.
  38089. 2010-02-10 Alexander Pavlov <apavlov@chromium.org>
  38090. Reviewed by Pavel Feldman.
  38091. Web Inspector: Elements Panel: Limit the number of initially loaded element children
  38092. https://bugs.webkit.org/show_bug.cgi?id=34421
  38093. Test: inspector/elements-panel-limited-children.html
  38094. * English.lproj/localizedStrings.js:
  38095. * inspector/front-end/DOMAgent.js:
  38096. (WebInspector.DOMNode.prototype._insertChild):
  38097. * inspector/front-end/ElementsPanel.js:
  38098. (WebInspector.ElementsPanel.prototype.updateModifiedNodes):
  38099. * inspector/front-end/ElementsTreeOutline.js:
  38100. (WebInspector.ElementsTreeOutline.prototype.createTreeElementFor):
  38101. (WebInspector.ElementsTreeOutline.prototype.revealAndSelectNode):
  38102. (WebInspector.ElementsTreeElement):
  38103. (WebInspector.ElementsTreeElement.prototype.get expandedChildrenLimit):
  38104. (WebInspector.ElementsTreeElement.prototype.set expandedChildrenLimit):
  38105. (WebInspector.ElementsTreeElement.prototype.get expandedChildCount):
  38106. (WebInspector.ElementsTreeElement.prototype.showChild):
  38107. (WebInspector.ElementsTreeElement.prototype.insertChildElement):
  38108. (WebInspector.ElementsTreeElement.prototype.moveChild):
  38109. (WebInspector.ElementsTreeElement.prototype._updateChildren.updateChildrenOfNode):
  38110. (WebInspector.ElementsTreeElement.prototype._updateChildren):
  38111. (WebInspector.ElementsTreeElement.prototype.adjustCollapsedRange):
  38112. (WebInspector.ElementsTreeElement.prototype.handleLoadAllChildren):
  38113. ():
  38114. * inspector/front-end/inspector.css:
  38115. 2010-02-10 Mikhail Naganov <mnaganov@chromium.org>
  38116. Reviewed by Pavel Feldman.
  38117. Remove several #if USE(JSC) branches. Introduce ScriptDebugServer class for
  38118. making JavaScriptDebugServer engine-agnostic.
  38119. https://bugs.webkit.org/show_bug.cgi?id=34795
  38120. * GNUmakefile.am:
  38121. * WebCore.gypi:
  38122. * WebCore.pro:
  38123. * WebCore.xcodeproj/project.pbxproj:
  38124. * bindings/js/JSBindingsAllInOne.cpp:
  38125. * bindings/js/ScriptDebugServer.cpp: Added.
  38126. (WebCore::ScriptDebugServer::recompileAllJSFunctions):
  38127. (WebCore::ScriptDebugServer::recompileAllJSFunctionsSoon):
  38128. * bindings/js/ScriptDebugServer.h: Added.
  38129. * bindings/v8/ScriptDebugServer.cpp: Added.
  38130. (WebCore::ScriptDebugServer::recompileAllJSFunctions):
  38131. (WebCore::ScriptDebugServer::recompileAllJSFunctionsSoon):
  38132. * bindings/v8/ScriptDebugServer.h: Added.
  38133. * inspector/InspectorController.cpp:
  38134. (WebCore::InspectorController::startUserInitiatedProfiling):
  38135. (WebCore::InspectorController::enableProfiler):
  38136. (WebCore::InspectorController::disableProfiler):
  38137. * page/Console.cpp:
  38138. (WebCore::Console::profile):
  38139. (WebCore::Console::profileEnd):
  38140. 2009-10-06 Yongjun Zhang <yongjun.zhang@nokia.com>
  38141. Reviewed by Simon Hausmann.
  38142. Make JObjectWrapper::ref() and deref() public accessible to derefIfNull().
  38143. Will be reverted when the following winscw compiler bug is fixed.
  38144. https://xdabug001.ext.nokia.com/bugzilla/show_bug.cgi?id=9812
  38145. https://bugs.webkit.org/show_bug.cgi?id=28054
  38146. * bridge/jni/jsc/JavaInstanceJSC.h:
  38147. * bridge/jni/v8/JavaInstanceV8.h:
  38148. 2010-02-10 Yaar Schnitman <yaar@chromium.org>
  38149. Reviewed by Adam Barth.
  38150. Simplified RuntimeEnabledFeatures and corresponding v8 generated code
  38151. https://bugs.webkit.org/show_bug.cgi?id=34667
  38152. * WebCore.gypi:
  38153. * bindings/generic/RuntimeEnabledFeatures.cpp: Added.
  38154. (WebCore::RuntimeEnabledFeatures::audioEnabled):
  38155. (WebCore::RuntimeEnabledFeatures::htmlMediaElementEnabled):
  38156. (WebCore::RuntimeEnabledFeatures::htmlAudioElementEnabled):
  38157. (WebCore::RuntimeEnabledFeatures::htmlVideoElementEnabled):
  38158. (WebCore::RuntimeEnabledFeatures::mediaErrorEnabled):
  38159. (WebCore::RuntimeEnabledFeatures::sharedWorkerEnabled):
  38160. (WebCore::RuntimeEnabledFeatures::webSocketEnabled):
  38161. (WebCore::RuntimeEnabledFeatures::openDatabaseEnabled):
  38162. * bindings/generic/RuntimeEnabledFeatures.h: Added.
  38163. (WebCore::RuntimeEnabledFeatures::setLocalStorageEnabled):
  38164. (WebCore::RuntimeEnabledFeatures::localStorageEnabled):
  38165. (WebCore::RuntimeEnabledFeatures::setSessionStorageEnabled):
  38166. (WebCore::RuntimeEnabledFeatures::sessionStorageEnabled):
  38167. (WebCore::RuntimeEnabledFeatures::setWebkitNotificationsEnabled):
  38168. (WebCore::RuntimeEnabledFeatures::webkitNotificationsEnabled):
  38169. (WebCore::RuntimeEnabledFeatures::setApplicationCacheEnabled):
  38170. (WebCore::RuntimeEnabledFeatures::applicationCacheEnabled):
  38171. (WebCore::RuntimeEnabledFeatures::setGeolocationEnabled):
  38172. (WebCore::RuntimeEnabledFeatures::geolocationEnabled):
  38173. (WebCore::RuntimeEnabledFeatures::setIndexedDBEnabled):
  38174. (WebCore::RuntimeEnabledFeatures::indexedDBEnabled):
  38175. (WebCore::RuntimeEnabledFeatures::RuntimeEnabledFeatures):
  38176. * bindings/scripts/CodeGenerator.pm:
  38177. * bindings/scripts/CodeGeneratorV8.pm:
  38178. * bindings/v8/RuntimeEnabledFeatures.cpp: Removed.
  38179. * bindings/v8/RuntimeEnabledFeatures.h: Removed.
  38180. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  38181. * bindings/v8/custom/V8NavigatorCustom.cpp:
  38182. * bindings/v8/custom/V8WorkerContextCustom.cpp:
  38183. 2010-02-09 Alexander Pavlov <apavlov@chromium.org>
  38184. Reviewed by Pavel Feldman.
  38185. Web Inspector: Add two basic categories for the Audits panel
  38186. https://bugs.webkit.org/show_bug.cgi?id=32930
  38187. * WebCore.gypi:
  38188. * WebCore.vcproj/WebCore.vcproj:
  38189. * inspector/front-end/AuditCategories.js: Added.
  38190. (WebInspector.AuditCategories.PagePerformance):
  38191. (WebInspector.AuditCategories.PagePerformance.prototype.initialize):
  38192. (WebInspector.AuditCategories.NetworkUtilization):
  38193. (WebInspector.AuditCategories.NetworkUtilization.prototype.initialize):
  38194. * inspector/front-end/AuditLauncherView.js:
  38195. (WebInspector.AuditLauncherView.prototype.updateResourceTrackingState):
  38196. (WebInspector.AuditLauncherView.prototype._createLauncherUI):
  38197. (WebInspector.AuditLauncherView.prototype.show):
  38198. * inspector/front-end/AuditRules.js: Added.
  38199. (WebInspector.AuditRules.arrayAsUL):
  38200. (WebInspector.AuditRules.getDomainToResourcesMap):
  38201. (WebInspector.AuditRules.evaluateInTargetWindow):
  38202. (WebInspector.AuditRules.GzipRule):
  38203. (WebInspector.AuditRules.GzipRule.prototype.doRun):
  38204. (WebInspector.AuditRules.GzipRule.prototype._isCompressed):
  38205. (WebInspector.AuditRules.GzipRule.prototype._shouldCompress):
  38206. (WebInspector.AuditRules.CombineExternalResourcesRule):
  38207. (WebInspector.AuditRules.CombineExternalResourcesRule.prototype.doRun):
  38208. (WebInspector.AuditRules.CombineJsResourcesRule):
  38209. (WebInspector.AuditRules.CombineCssResourcesRule):
  38210. (WebInspector.AuditRules.MinimizeDnsLookupsRule):
  38211. (WebInspector.AuditRules.MinimizeDnsLookupsRule.prototype.doRun):
  38212. (WebInspector.AuditRules.ParallelizeDownloadRule):
  38213. (WebInspector.AuditRules.ParallelizeDownloadRule.prototype.doRun):
  38214. (WebInspector.AuditRules.UnusedCssRule):
  38215. (WebInspector.AuditRules.UnusedCssRule.prototype._getUnusedStylesheetRatioMessage):
  38216. (WebInspector.AuditRules.UnusedCssRule.prototype._getUnusedTotalRatioMessage):
  38217. (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.evalCallback):
  38218. (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.routine):
  38219. (WebInspector.AuditRules.UnusedCssRule.prototype.doRun):
  38220. (WebInspector.AuditRules.CacheControlRule):
  38221. (WebInspector.AuditRules.CacheControlRule.prototype.InfoCheck.1.FailCheck.0.WarningCheck.1.SevereCheck.2.doRun):
  38222. (WebInspector.AuditRules.CacheControlRule.prototype.handleNonCacheableResources):
  38223. (WebInspector.AuditRules.CacheControlRule.prototype._cacheableAndNonCacheableResources):
  38224. (WebInspector.AuditRules.CacheControlRule.prototype.execCheck):
  38225. (WebInspector.AuditRules.CacheControlRule.prototype.freshnessLifetimeGreaterThan):
  38226. (WebInspector.AuditRules.CacheControlRule.prototype.responseHeader):
  38227. (WebInspector.AuditRules.CacheControlRule.prototype.hasResponseHeader):
  38228. (WebInspector.AuditRules.CacheControlRule.prototype.isCompressible):
  38229. (WebInspector.AuditRules.CacheControlRule.prototype.isPubliclyCacheable):
  38230. (WebInspector.AuditRules.CacheControlRule.prototype.responseHeaderMatch):
  38231. (WebInspector.AuditRules.CacheControlRule.prototype.hasExplicitExpiration):
  38232. (WebInspector.AuditRules.CacheControlRule.prototype._isExplicitlyNonCacheable):
  38233. (WebInspector.AuditRules.CacheControlRule.prototype.isCacheableResource):
  38234. (WebInspector.AuditRules.BrowserCacheControlRule):
  38235. (WebInspector.AuditRules.BrowserCacheControlRule.prototype.handleNonCacheableResources):
  38236. (WebInspector.AuditRules.BrowserCacheControlRule.prototype.runChecks):
  38237. (WebInspector.AuditRules.BrowserCacheControlRule.prototype._missingExpirationCheck):
  38238. (WebInspector.AuditRules.BrowserCacheControlRule.prototype._varyCheck):
  38239. (WebInspector.AuditRules.BrowserCacheControlRule.prototype._oneMonthExpirationCheck):
  38240. (WebInspector.AuditRules.BrowserCacheControlRule.prototype._oneYearExpirationCheck):
  38241. (WebInspector.AuditRules.ProxyCacheControlRule):
  38242. (WebInspector.AuditRules.ProxyCacheControlRule.prototype.runChecks):
  38243. (WebInspector.AuditRules.ProxyCacheControlRule.prototype._questionMarkCheck):
  38244. (WebInspector.AuditRules.ProxyCacheControlRule.prototype._publicCachingCheck):
  38245. (WebInspector.AuditRules.ProxyCacheControlRule.prototype._setCookieCacheableCheck):
  38246. (WebInspector.AuditRules.ImageDimensionsRule):
  38247. (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun):
  38248. (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun.routine.hasDimension):
  38249. (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun.routine.hasWidth):
  38250. (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun.routine.hasHeight):
  38251. (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun.routine):
  38252. (WebInspector.AuditRules.CssInHeadRule):
  38253. (WebInspector.AuditRules.CssInHeadRule.prototype.doRun):
  38254. (WebInspector.AuditRules.CssInHeadRule.prototype.doRun.routine.allViews):
  38255. (WebInspector.AuditRules.CssInHeadRule.prototype.doRun.routine):
  38256. (WebInspector.AuditRules.StylesScriptsOrderRule):
  38257. (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun):
  38258. (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun.routine):
  38259. (WebInspector.AuditRules.CookieRuleBase):
  38260. (WebInspector.AuditRules.CookieRuleBase.prototype.doRun.resultCallback):
  38261. (WebInspector.AuditRules.CookieRuleBase.prototype.doRun):
  38262. (WebInspector.AuditRules.CookieRuleBase.prototype.mapResourceCookies):
  38263. (WebInspector.AuditRules.CookieRuleBase.prototype._callbackForResourceCookiePairs):
  38264. (WebInspector.AuditRules.CookieSizeRule):
  38265. (WebInspector.AuditRules.CookieSizeRule.prototype._average):
  38266. (WebInspector.AuditRules.CookieSizeRule.prototype._max):
  38267. (WebInspector.AuditRules.CookieSizeRule.prototype.processCookies):
  38268. (WebInspector.AuditRules.CookieSizeRule.prototype.processCookies.avgSizeSorter):
  38269. (WebInspector.AuditRules.StaticCookielessRule):
  38270. (WebInspector.AuditRules.StaticCookielessRule.prototype.processCookies):
  38271. (WebInspector.AuditRules.StaticCookielessRule.prototype._collectorCallback):
  38272. * inspector/front-end/AuditsPanel.js:
  38273. (WebInspector.AuditsPanel.prototype._constructCategories):
  38274. (WebInspector.AuditsPanel.prototype._reloadResources):
  38275. (WebInspector.AuditsPanel.prototype.show):
  38276. (WebInspector.AuditsPanel.prototype._updateLauncherViewControls):
  38277. (WebInspector.AuditCategory):
  38278. (WebInspector.AuditCategory.prototype.get id):
  38279. (WebInspector.AuditCategory.prototype.get ruleCount):
  38280. (WebInspector.AuditCategory.prototype.runRules):
  38281. (WebInspector.AuditCategory.prototype._ensureInitialized):
  38282. (WebInspector.AuditCategoryResult):
  38283. * inspector/front-end/WebKit.qrc:
  38284. * inspector/front-end/audits.css:
  38285. * inspector/front-end/inspector.html:
  38286. * inspector/front-end/inspector.js:
  38287. (WebInspector.loaded):
  38288. (WebInspector.addPanelToolbarIcon):
  38289. (WebInspector.documentKeyDown):
  38290. 2010-02-10 Adam Barth <abarth@webkit.org>
  38291. Reviewed by Darin Adler.
  38292. Freeze sandbox attributes on creation
  38293. https://bugs.webkit.org/show_bug.cgi?id=34184
  38294. This is how the spec works now.
  38295. Test: fast/frames/sandboxed-iframe-forms-dynamic.html
  38296. * bindings/ScriptControllerBase.cpp:
  38297. (WebCore::ScriptController::canExecuteScripts):
  38298. * bindings/generic/BindingDOMWindow.h:
  38299. (WebCore::::createWindow):
  38300. * bindings/js/JSDOMWindowCustom.cpp:
  38301. (WebCore::createWindow):
  38302. * dom/Document.cpp:
  38303. * dom/Document.h:
  38304. * loader/FrameLoader.cpp:
  38305. (WebCore::FrameLoader::submitForm):
  38306. (WebCore::FrameLoader::requestObject):
  38307. (WebCore::FrameLoader::shouldAllowNavigation):
  38308. (WebCore::FrameLoader::updateSandboxFlags):
  38309. * page/SecurityOrigin.cpp:
  38310. * page/SecurityOrigin.h:
  38311. 2010-02-09 Ariya Hidayat <ariya.hidayat@gmail.com>
  38312. Rubber-stamped by Kenneth Rohde Christiansen.
  38313. [Qt] Remove old, outdated unused code block.
  38314. * platform/graphics/qt/GraphicsContextQt.cpp:
  38315. 2010-02-09 Chris Guillory <ctguil@google.com>
  38316. Reviewed by Darin Fisher.
  38317. [Chromium] Notify ChromeClientChromium of state change notifications.
  38318. https://bugs.webkit.org/show_bug.cgi?id=34464
  38319. * accessibility/chromium/AXObjectCacheChromium.cpp:
  38320. (WebCore::toChromeClientChromium):
  38321. (WebCore::AXObjectCache::postPlatformNotification):
  38322. * page/chromium/ChromeClientChromium.h:
  38323. 2010-02-09 Kwang Yul Seo <skyul@company100.net>
  38324. Reviewed by Adam Barth.
  38325. [BREWMP] Port PlatformMouseEvent
  38326. https://bugs.webkit.org/show_bug.cgi?id=34600
  38327. Retrieve the event type, position, key modifiers, time stamp
  38328. and click count from AEEEvent.
  38329. * platform/PlatformMouseEvent.h:
  38330. * platform/brew/PlatformMouseEventBrew.cpp: Added.
  38331. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  38332. 2010-02-09 Avi Drissman <avi@chromium.org>
  38333. Reviewed by Timothy Hatcher.
  38334. [Chromium] RenderTheme does not draw focus rings on SL for checkboxes, radio buttons
  38335. https://bugs.webkit.org/show_bug.cgi?id=34544
  38336. Covered by layout tests when run on SL.
  38337. * platform/chromium/ThemeChromiumMac.mm:
  38338. (-[TCMVisibleView _focusRingVisibleRect]):
  38339. (-[TCMVisibleView _focusRingClipAncestor]):
  38340. (FocusIndicationFix::currentOSHasSetFocusRingStyleInBitmapBug):
  38341. (FocusIndicationFix::swizzleFocusView):
  38342. (FocusIndicationFix::ScopedFixer::ScopedFixer):
  38343. (FocusIndicationFix::ScopedFixer::~ScopedFixer):
  38344. (+[NSView TCMInterposing_focusView]):
  38345. (WebCore::paintCheckbox):
  38346. (WebCore::paintRadio):
  38347. (WebCore::paintButton):
  38348. 2010-02-09 Anton Muhin <antonm@chromium.org>
  38349. Reviewed by Nate Chapin.
  38350. [v8] Check if returned wrapper is empty before operating on it.
  38351. https://bugs.webkit.org/show_bug.cgi?id=34746
  38352. * bindings/v8/custom/V8DocumentCustom.cpp:
  38353. (WebCore::toV8):
  38354. * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
  38355. (WebCore::toV8):
  38356. * bindings/v8/custom/V8SVGDocumentCustom.cpp:
  38357. (WebCore::toV8):
  38358. 2010-02-09 Mikhail Naganov <mnaganov@chromium.org>
  38359. Reviewed by Pavel Feldman.
  38360. Continuing debugger and profiler unforking: narrow scope of JSC-specific ifdefs.
  38361. Also, enable JAVASCRIPT_DEBUGGER explicitly in features, it appears to be required
  38362. for really enabling it in V8 bindings generation.
  38363. https://bugs.webkit.org/show_bug.cgi?id=34706
  38364. * inspector/InjectedScriptHost.idl:
  38365. * inspector/InspectorBackend.cpp:
  38366. (WebCore::InspectorBackend::currentCallFrame):
  38367. (WebCore::InspectorBackend::getProfile):
  38368. * inspector/InspectorBackend.h:
  38369. * inspector/InspectorBackend.idl:
  38370. * inspector/InspectorController.cpp:
  38371. (WebCore::InspectorController::InspectorController):
  38372. (WebCore::InspectorController::addProfile):
  38373. (WebCore::InspectorController::getProfile):
  38374. (WebCore::InspectorController::startUserInitiatedProfiling):
  38375. (WebCore::InspectorController::stopUserInitiatedProfiling):
  38376. (WebCore::InspectorController::enableProfiler):
  38377. (WebCore::InspectorController::disableProfiler):
  38378. * inspector/InspectorController.h:
  38379. * inspector/InspectorFrontend.cpp:
  38380. (WebCore::InspectorFrontend::pausedScript):
  38381. (WebCore::InspectorFrontend::resumedScript):
  38382. (WebCore::InspectorFrontend::profilerWasEnabled):
  38383. (WebCore::InspectorFrontend::profilerWasDisabled):
  38384. (WebCore::InspectorFrontend::didGetProfile):
  38385. * inspector/InspectorFrontend.h:
  38386. * page/Console.idl:
  38387. 2010-02-09 Gavin Barraclough <barraclough@apple.com>
  38388. Rubber Stamped by Geoff Garen.
  38389. Rename StringBuilder::release && JSStringBuilder::releaseJSString
  38390. to 'build()'.
  38391. * bindings/js/ScriptString.h:
  38392. (WebCore::ScriptString::operator+=):
  38393. 2010-02-09 Dan Bernstein <mitz@apple.com>
  38394. Reviewed by Anders Carlsson.
  38395. <rdar://problem/7400160> Netscape plug-ins are not instantiated on property access if there are pending stylesheets
  38396. https://bugs.webkit.org/show_bug.cgi?id=34776
  38397. Tests: plugins/instance-available-before-stylesheets-loaded-object.html
  38398. plugins/instance-available-before-stylesheets-loaded.html
  38399. * html/HTMLEmbedElement.cpp:
  38400. (WebCore::HTMLEmbedElement::renderWidgetForJSBindings): Call
  38401. updateLayoutIgnorePendingStylesheets() before checking for a renderer.
  38402. * html/HTMLObjectElement.cpp:
  38403. (WebCore::HTMLObjectElement::renderWidgetForJSBindings): Ditto.
  38404. 2010-02-09 Alejandro G. Castro <alex@igalia.com>
  38405. Reviewed by Darin Adler.
  38406. Problems navigating by caret in links whose text wraps onto
  38407. subsequent lines.
  38408. https://bugs.webkit.org/show_bug.cgi?id=25676
  38409. We should not search ahead if we are not in the last element.
  38410. * dom/Position.cpp:
  38411. 2010-02-09 Dirk Schulze <krit@webkit.org>
  38412. Reviewed by Nikolas Zimmermann.
  38413. More optimization for AffineTransform with SVG
  38414. https://bugs.webkit.org/show_bug.cgi?id=34774
  38415. Some optimizations to safe unnecessary summations and multiplications.
  38416. Optimize AffineTransform to handle an identity or translation matrix
  38417. more efficient.
  38418. Added translationRight to avoid multiplications of matrices as much as
  38419. possible.
  38420. No tests added, no change of functionality.
  38421. * platform/graphics/transforms/AffineTransform.cpp:
  38422. (WebCore::AffineTransform::inverse):
  38423. (WebCore::AffineTransform::translate):
  38424. (WebCore::AffineTransform::translateRight):
  38425. * platform/graphics/transforms/AffineTransform.h:
  38426. * rendering/RenderForeignObject.cpp:
  38427. (WebCore::RenderForeignObject::translationForAttributes):
  38428. (WebCore::RenderForeignObject::localToParentTransform):
  38429. * rendering/RenderForeignObject.h:
  38430. * rendering/RenderSVGRoot.cpp:
  38431. (WebCore::RenderSVGRoot::localToBorderBoxTransform):
  38432. (WebCore::RenderSVGRoot::localToRepaintContainerTransform):
  38433. (WebCore::RenderSVGRoot::localToParentTransform):
  38434. * rendering/RenderSVGViewportContainer.cpp:
  38435. (WebCore::RenderSVGViewportContainer::localToParentTransform):
  38436. * rendering/SVGRootInlineBox.cpp:
  38437. (WebCore::applyTextLengthCorrectionToTextChunk):
  38438. 2010-02-09 Dirk Schulze <krit@webkit.org>
  38439. Reviewed by Nikolas Zimmermann.
  38440. SVG patterns with some scale patternTransform are not displayed correctly for small elements
  38441. https://bugs.webkit.org/show_bug.cgi?id=25484
  38442. SVG Pattern size was clipped to the size of the target, if the pattern is bigger than the target. This
  38443. causes problems, if the patternTransform scales the pattern. This patch deletes the clipping.
  38444. Tests: svg/custom/pattern-excessive-malloc.svg
  38445. svg/custom/pattern-size-bigger-than-target-size.svg
  38446. svg/custom/pattern-skew-transformed.svg
  38447. * svg/SVGPatternElement.cpp:
  38448. (WebCore::SVGPatternElement::buildPattern):
  38449. 2010-02-09 Darin Adler <darin@apple.com>
  38450. * rendering/RenderObject.cpp:
  38451. (WebCore::RenderObject::styleDidChange): Fixed typo in comment.
  38452. 2010-02-09 MORITA Hajime <morrita@gmail.com>
  38453. Reviewed by Nikolas Zimmermann.
  38454. SVG selection text foreground colour does not respect user settings
  38455. https://bugs.webkit.org/show_bug.cgi?id=15997
  38456. Add two subphases SVGTextPaintSubphaseGlyphFillSelection and
  38457. SVGTextPaintSubphaseGlyphStrokeSelection for painting selected
  38458. text on SVG. Selected texts are painted with style from
  38459. getCachedPseudoStyle() instead of style().
  38460. Tests: svg/text/selection-styles.xhtml
  38461. * rendering/SVGCharacterLayoutInfo.h:
  38462. (WebCore::SVGTextChunkWalker::SVGTextChunkWalker):
  38463. (WebCore::SVGTextChunkWalker::setupFillSelection):
  38464. (WebCore::SVGTextChunkWalker::setupStrokeSelection):
  38465. * rendering/SVGRootInlineBox.cpp:
  38466. (WebCore::SVGRootInlineBoxPaintWalker::mayHaveSelection):
  38467. (WebCore::SVGRootInlineBoxPaintWalker::chunkSetupFillSelectionCallback):
  38468. (WebCore::SVGRootInlineBoxPaintWalker::chunkSetupStrokeSelectionCallback):
  38469. (WebCore::SVGRootInlineBoxPaintWalker::activePaintServer):
  38470. (WebCore::SVGRootInlineBox::paint):
  38471. (WebCore::SVGRootInlineBox::walkTextChunks):
  38472. * rendering/SVGInlineTextBox.h:
  38473. (WebCore::):
  38474. Add callback hooks and its implementation for handle new
  38475. subphases.
  38476. * rendering/SVGInlineTextBox.cpp:
  38477. (WebCore::SVGInlineTextBox::chunkSelectionStartEnd):
  38478. (WebCore::SVGInlineTextBox::paintCharacters):
  38479. Split box text into selected part and non-selected part, and use
  38480. separate subphases to paint them.
  38481. * svg/SVGFont.cpp:
  38482. (WebCore::SVGTextRunWalker::walk):
  38483. Relax ASSERT() condition to accept a part of text.
  38484. * svg/graphics/SVGPaintServer.cpp:
  38485. (WebCore::applyStrokeStyleToContext):
  38486. (WebCore::SVGPaintServer::setup):
  38487. * svg/graphics/SVGPaintServer.h:
  38488. * svg/graphics/SVGPaintServerGradient.cpp:
  38489. (WebCore::SVGPaintServerGradient::setup):
  38490. * svg/graphics/SVGPaintServerGradient.h:
  38491. * svg/graphics/SVGPaintServerPattern.cpp:
  38492. (WebCore::SVGPaintServerPattern::setup):
  38493. * svg/graphics/SVGPaintServerPattern.h:
  38494. * svg/graphics/SVGPaintServerSolid.cpp:
  38495. (WebCore::SVGPaintServerSolid::setup):
  38496. * svg/graphics/SVGPaintServerSolid.h:
  38497. Change setup() signature to accept RenderStyle instead of always
  38498. using RenderObject::style().
  38499. 2010-02-09 Nikolas Zimmermann <nzimmermann@rim.com>
  38500. Reviewed by Dirk Schulze.
  38501. No scroll bars are displayed for standalone SVG image
  38502. https://bugs.webkit.org/show_bug.cgi?id=11225
  38503. Height and width defined for svg element are not honored
  38504. https://bugs.webkit.org/show_bug.cgi?id=24033
  38505. SVG file does not pan and has no scroll bars
  38506. https://bugs.webkit.org/show_bug.cgi?id=24448
  38507. Adapt to SVG 1.1 errata to change the overflow handling:
  38508. Replace "svg { overflow: hidden }" by "svg:not(:root) { overflow: hidden }" to allow standalone SVG documents to contain scrolllbars.
  38509. Agreed by SVG WG to make this the default behaviour, already implemented by Opera & FireFox (partial support).
  38510. Add new tests in svg/overflow covering all special SVG css overflow handling rules on inner/outer svg elements.
  38511. Tests: svg/overflow/overflow-on-inner-svg-element-defaults.svg
  38512. svg/overflow/overflow-on-inner-svg-element.svg
  38513. svg/overflow/overflow-on-outermost-svg-element-defaults.svg
  38514. svg/overflow/overflow-on-outermost-svg-element-ignore-attribute-1.svg
  38515. svg/overflow/overflow-on-outermost-svg-element-ignore-attribute-2.svg
  38516. svg/overflow/overflow-on-outermost-svg-element-ignore-attribute-3.svg
  38517. svg/overflow/overflow-on-outermost-svg-element-in-xhtml-auto.xhtml
  38518. svg/overflow/overflow-on-outermost-svg-element-in-xhtml-defaults.xhtml
  38519. svg/overflow/overflow-on-outermost-svg-element-in-xhtml-hidden.xhtml
  38520. svg/overflow/overflow-on-outermost-svg-element-in-xhtml-scroll.xhtml
  38521. svg/overflow/overflow-on-outermost-svg-element-in-xhtml-visible.xhtml
  38522. * css/svg.css: Change default <svg> overflow rule to only apply to inner <svg> elements.
  38523. * page/FrameView.cpp:
  38524. (WebCore::FrameView::layout): Only apply overflow rules for non-standalone SVG documents.
  38525. * rendering/RenderSVGRoot.cpp: Remove all calls to isOverflowHidden - it's always the case for the outermost SVG element, see spec + errata.
  38526. (WebCore::RenderSVGRoot::paint): Always clip to initial viewport size.
  38527. (WebCore::RenderSVGRoot::computeRectForRepaint): Ditto.
  38528. (WebCore::RenderSVGRoot::nodeAtPoint): Simplify.
  38529. * rendering/RenderSVGViewportContainer.cpp:
  38530. (WebCore::RenderSVGViewportContainer::applyViewportClip): Use isOverflowHidden() instead of a manual oveflow query and clip in float precision.
  38531. * rendering/SVGRenderSupport.cpp:
  38532. (WebCore::SVGRenderBase::isOverflowHidden): Simplify implementation, assure the function is not called anymore for RenderSVGRoot objects.
  38533. 2010-02-09 Kwang Yul Seo <skyul@company100.net>
  38534. Reviewed by Eric Seidel.
  38535. [BREWMP] Port KURL::fileSystemPath
  38536. https://bugs.webkit.org/show_bug.cgi?id=34516
  38537. Convert a file URL to a file path by prefixing
  38538. AEEFS_HOME_DIR to access files relative to the current
  38539. module directory in a case-sensitive manner.
  38540. As IWeb "file:" engine opens files in BREW's application-relative
  38541. file namespace, we follow the same policy here.
  38542. * platform/brew/KURLBrew.cpp: Added.
  38543. (WebCore::KURL::fileSystemPath):
  38544. 2010-02-09 Noam Rosenthal <noam.rosenthal@nokia.com>
  38545. Reviewed by Kenneth Rohde Christiansen.
  38546. [Qt] the above website does not render properly when in compositing mode
  38547. https://bugs.webkit.org/show_bug.cgi?id=34681
  38548. http://media.24ways.org/2009/15/spinner-alt.html now renders correctly
  38549. * platform/graphics/qt/GraphicsLayerQt.cpp:
  38550. (WebCore::MaskEffectQt::MaskEffectQt): implement mask as
  38551. QGraphicsEffect
  38552. (WebCore::MaskEffectQt::draw): reimp
  38553. (WebCore::GraphicsLayerQtImpl::GraphicsLayerQtImpl): init the effect
  38554. (WebCore::GraphicsLayerQtImpl::paint): no need for drawContents
  38555. (WebCore::GraphicsLayerQtImpl::flushChanges): make sure to update the
  38556. mask layer, not just the actual children
  38557. 2010-02-09 Kwang Yul Seo <skyul@company100.net>
  38558. Reviewed by Laszlo Gombos.
  38559. [BREWMP] Fix macro redefinition error in BREWMP simulator build.
  38560. https://bugs.webkit.org/show_bug.cgi?id=34738
  38561. Remove warning: 'FAR' macro redefinition.
  38562. * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
  38563. 2010-02-07 Yuzo Fujishima <yuzo@google.com>
  38564. Reviewed by Dan Bernstein.
  38565. Fix the following bugs:
  38566. https://bugs.webkit.org/show_bug.cgi?id=18926 - dt:after generate a line break. Boost documentation page renders poorly
  38567. https://bugs.webkit.org/show_bug.cgi?id=7276 - Most W3C padding related tests fail
  38568. Tests: fast/css/inline-element-line-break.html
  38569. fast/css/pseudo-element-line-break.html
  38570. findNextLineBreak() unconditionally allowed lines to break between elements when no other line breaking opportunity had been found,
  38571. but that was unnecessary and led to incorrect layout. Disallow that kind of line breaks.
  38572. * rendering/RenderBlockLineLayout.cpp:
  38573. (WebCore::RenderBlock::findNextLineBreak):
  38574. 2010-02-09 Shinichiro Hamaji <hamaji@chromium.org>
  38575. Reviewed by Darin Adler.
  38576. Provide a way to get total number of pages to be printed
  38577. https://bugs.webkit.org/show_bug.cgi?id=34699
  38578. Test: printing/numberOfPages.html
  38579. * WebCore.base.exp:
  38580. * page/PrintContext.cpp:
  38581. (WebCore::PrintContext::pageNumberForElement):
  38582. (WebCore::PrintContext::numberOfPages):
  38583. * page/PrintContext.h:
  38584. (WebCore::PrintContext::pageRects):
  38585. 2010-02-08 Dominic Cooney <dominicc@google.com>
  38586. Reviewed by Adam Barth.
  38587. [V8] Move Element custom methods into generic bindings
  38588. This patch moves the security checks in setAttribute,
  38589. setAttributeNode, setAttributeNS and setAttributeNodeNS from
  38590. V8ElementCustom into the generic bindings so that they can be
  38591. reused in other bindings. This is in a similar vein to
  38592. <https://bugs.webkit.org/attachment.cgi?id=45872>.
  38593. https://bugs.webkit.org/show_bug.cgi?id=34554
  38594. LayoutTests: None
  38595. * WebCore.gypi:
  38596. * bindings/generic/BindingElement.h: Added.
  38597. (WebCore::::setAttribute):
  38598. (WebCore::::setAttributeNode):
  38599. (WebCore::::setAttributeNS):
  38600. (WebCore::::setAttributeNodeNS):
  38601. * bindings/v8/V8Binding.h:
  38602. * bindings/v8/custom/V8ElementCustom.cpp:
  38603. (WebCore::V8Element::setAttributeCallback):
  38604. (WebCore::V8Element::setAttributeNodeCallback):
  38605. (WebCore::V8Element::setAttributeNSCallback):
  38606. (WebCore::V8Element::setAttributeNodeNSCallback):
  38607. 2010-02-08 Hayato Ito <hayato@chromium.org>
  38608. Reviewed by Darin Adler.
  38609. Schedule a loading request when there are many in-flight requests beyond
  38610. the limit to avoid forever page loading.
  38611. https://bugs.webkit.org/show_bug.cgi?id=31227
  38612. Test: http/tests/loading/load-javascript-after-many-xhrs.html
  38613. * loader/loader.cpp:
  38614. (WebCore::Loader::Host::servePendingRequests):
  38615. 2010-02-08 David Levin <levin@chromium.org>
  38616. Reviewed by Gavin Barraclough.
  38617. REGRESSION (before r54472): Various tests in fast/workers are crashing on the buildbot.
  38618. https://bugs.webkit.org/show_bug.cgi?id=34728
  38619. The core part of the fix is to change WebCoreJSClientData::m_normalWorld
  38620. from DOMWrapperWorld to RefPtr<DOMWrapperWorld> so that the DOMWrapperWorld
  38621. is really ref counted.
  38622. No new tests because current tests sufficiently cover this as evidenced as
  38623. the buildbot crashes.
  38624. * bindings/js/JSDOMBinding.cpp:
  38625. (WebCore::DOMWrapperWorld::~DOMWrapperWorld): Made this robust to m_globalData
  38626. being 0.
  38627. * bindings/js/JSDOMBinding.h:
  38628. (WebCore::DOMWrapperWorld::create): Made this class follow the standard
  38629. create pattern for RefCounted classes.
  38630. (WebCore::DOMWrapperWorld::detachFromGlobalData): Since this class can
  38631. now outlive JSGlobalData, this method tells it to stop using its JSGlobalData.
  38632. (WebCore::WebCoreJSClientData::WebCoreJSClientData): Adjusted due to
  38633. m_normalWorld being a RefPtr.
  38634. (WebCore::WebCoreJSClientData::~WebCoreJSClientData): Ditto (and added
  38635. asserts for the FIXME).
  38636. (WebCore::WebCoreJSClientData::normalWorld): Ditto.
  38637. * bindings/js/ScriptController.cpp:
  38638. (WebCore::IsolatedWorld::create): Made the constructor protected.
  38639. (WebCore::IsolatedWorld::IsolatedWorld): Made the constructor protected, so
  38640. that code would have to use the create method.
  38641. 2010-02-08 Kinuko Yasuda <kinuko@chromium.org>
  38642. Reviewed by David Levin.
  38643. Remove special utf-8 tag from Chromium cilpboard code because
  38644. we now have the corresponding code in generic clipboard framework
  38645. code in chromium (since it's needed by other places than in Web
  38646. page rendering) and no longer need the separate workaround code in
  38647. WebKit.
  38648. https://bugs.webkit.org/show_bug.cgi?id=34567
  38649. Test: (for regression) editing/pasteboard
  38650. * platform/chromium/ClipboardChromium.cpp:
  38651. (WebCore::ClipboardChromium::writeRange):
  38652. * platform/chromium/PasteboardChromium.cpp:
  38653. (WebCore::Pasteboard::writeSelection):
  38654. (WebCore::Pasteboard::documentFragment):
  38655. 2010-02-08 Darin Adler <darin@apple.com>
  38656. Reviewed by Dan Bernstein.
  38657. Crash due to layout not done in case involving removal of absolute positioning
  38658. https://bugs.webkit.org/show_bug.cgi?id=34734
  38659. rdar://problem/7588280
  38660. Test: fast/dynamic/position-change-layout.html
  38661. * rendering/RenderObject.cpp:
  38662. (WebCore::RenderObject::styleDidChange): Call markContainingBlocksForLayout in
  38663. a case where the object already needs layout, but might have a new containing
  38664. block and so needs to mark the new containing block.
  38665. 2010-02-08 Charlie Reis <creis@chromium.org>
  38666. Reviewed by Darin Adler.
  38667. onbeforeunload not called at window close + frame or iframe focused
  38668. https://bugs.webkit.org/show_bug.cgi?id=27481
  38669. Chromium and WebKit on Windows will now fire beforeunload handlers
  38670. even if an inner frame is focused.
  38671. Layout tests aren't able to test this bug, since it requires closing
  38672. the actual browser window, not calling window.close(). Instead,
  38673. test with WebCore/manual-tests/onbeforeunload-focused-iframe.html.
  38674. * manual-tests/onbeforeunload-focused-iframe.html: Added.
  38675. * manual-tests/resources/focused-iframe.html: Added.
  38676. 2010-02-08 Alexey Proskuryakov <ap@apple.com>
  38677. Addressing review feedback.
  38678. * bridge/c/c_instance.h: Removed argument name.
  38679. 2010-02-08 Alexey Proskuryakov <ap@apple.com>
  38680. Reviewed by Darin Adler.
  38681. https://bugs.webkit.org/show_bug.cgi?id=34727
  38682. Assertion crashes and freezes when plug-in property access results in an exception
  38683. Test: plugins/netscape-plugin-property-access-exception.html
  38684. * bridge/c/c_instance.h: Made moveGlobalExceptionToExecState public, since it also need to
  38685. be called from CField.
  38686. * bridge/c/c_runtime.cpp:
  38687. (JSC::Bindings::CField::valueFromInstance): Call moveGlobalExceptionToExecState(). Without
  38688. this, not only didn't we get exceptions, but we also got an assertion failure because of
  38689. dangling global exception on next call into plug-in.
  38690. (JSC::Bindings::CField::setValueToInstance): Ditto.
  38691. 2010-02-08 Dirk Schulze <krit@webkit.org>
  38692. Unreviewed build fix of ChromiumWin.
  38693. * platform/graphics/chromium/TransparencyWin.cpp:
  38694. (WebCore::):
  38695. (WebCore::TransparencyWin::setupLayerForOpaqueCompositeLayer):
  38696. (WebCore::TransparencyWin::setupTransformForKeepTransform):
  38697. * platform/graphics/chromium/TransparencyWin.h:
  38698. * rendering/RenderThemeChromiumWin.cpp:
  38699. (WebCore::):
  38700. 2010-02-05 Dumitru Daniliuc <dumi@chromium.org>
  38701. Reviewed by Jeremy Orlow.
  38702. Adding a way to get the set of all open database handles pointing
  38703. to a given database.
  38704. https://bugs.webkit.org/show_bug.cgi?id=34619
  38705. Sometimes we need to be able to close all handles to a database as
  38706. soon as possible (to delete the DB file, for example).
  38707. * storage/DatabaseTracker.cpp:
  38708. (WebCore::DatabaseTracker::getOpenDatabases):
  38709. * storage/DatabaseTracker.h:
  38710. * storage/chromium/DatabaseTrackerChromium.cpp:
  38711. (WebCore::DatabaseTracker::addOpenDatabase):
  38712. (WebCore::DatabaseTracker::removeOpenDatabase):
  38713. (WebCore::DatabaseTracker::getOpenDatabases):
  38714. 2010-02-08 Dirk Schulze <krit@webkit.org>
  38715. Unreviewed windows build-fix.
  38716. * page/win/FrameCGWin.cpp:
  38717. (WebCore::drawRectIntoContext):
  38718. 2010-02-08 Dirk Schulze <krit@webkit.org>
  38719. Reviewed by Nikolas Zimmermann.
  38720. Add back an AffineTransform class for use by SVG
  38721. https://bugs.webkit.org/show_bug.cgi?id=33750
  38722. This adds back AffineTransform. This saves additional 4% memory consumption
  38723. on the 50k rects stress test: https://bugs.webkit.org/attachment.cgi?id=46721
  38724. It also makes it possible to optimize the calculations internally of
  38725. AffineTransform to the needs of 2D transformations (the second benefit for SVG,
  38726. which uses transformations relative often at the moment.
  38727. Everything that is 2D related (like images, patterns, gradients, fonts), uses
  38728. AffineTransform now.
  38729. * WebCore.xcodeproj/project.pbxproj:
  38730. * bindings/js/JSSVGMatrixCustom.cpp:
  38731. (WebCore::JSSVGMatrix::multiply):
  38732. (WebCore::JSSVGMatrix::inverse):
  38733. (WebCore::JSSVGMatrix::rotateFromVector):
  38734. * bindings/js/JSSVGPODTypeWrapper.h:
  38735. * bindings/scripts/CodeGeneratorJS.pm:
  38736. * bindings/scripts/CodeGeneratorObjC.pm:
  38737. * bindings/scripts/CodeGeneratorV8.pm:
  38738. * bindings/v8/V8Index.h:
  38739. * bindings/v8/custom/V8SVGMatrixCustom.cpp:
  38740. (WebCore::V8SVGMatrix::multiplyCallback):
  38741. (WebCore::V8SVGMatrix::inverseCallback):
  38742. (WebCore::V8SVGMatrix::rotateFromVectorCallback):
  38743. * html/HTMLCanvasElement.cpp: Changed to AffineTransform now
  38744. (WebCore::HTMLCanvasElement::baseTransform):
  38745. * html/HTMLCanvasElement.h:
  38746. * platform/graphics/FloatPoint.cpp:
  38747. (WebCore::FloatPoint::matrixTransform):
  38748. * platform/graphics/FloatPoint.h:
  38749. * platform/graphics/GeneratedImage.cpp:
  38750. (WebCore::GeneratedImage::drawPattern):
  38751. * platform/graphics/GeneratedImage.h:
  38752. * platform/graphics/Gradient.cpp:
  38753. (WebCore::Gradient::setGradientSpaceTransform):
  38754. (WebCore::Gradient::setPlatformGradientSpaceTransform):
  38755. * platform/graphics/Gradient.h:
  38756. (WebCore::Gradient::gradientSpaceTransform):
  38757. * platform/graphics/GraphicsContext.h:
  38758. * platform/graphics/Image.cpp:
  38759. (WebCore::Image::drawTiled):
  38760. * platform/graphics/Image.h:
  38761. * platform/graphics/ImageBuffer.h:
  38762. (WebCore::ImageBuffer::baseTransform):
  38763. * platform/graphics/Path.h:
  38764. * platform/graphics/Pattern.cpp:
  38765. (WebCore::Pattern::setPatternSpaceTransform):
  38766. * platform/graphics/Pattern.h:
  38767. (WebCore::Pattern::create):
  38768. (WebCore::Pattern::tileImage):
  38769. * platform/graphics/cairo/FontCairo.cpp:
  38770. (WebCore::Font::drawGlyphs):
  38771. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  38772. (WebCore::setPlatformFill):
  38773. (WebCore::setPlatformStroke):
  38774. (WebCore::GraphicsContext::getCTM):
  38775. * platform/graphics/cairo/ImageCairo.cpp:
  38776. (WebCore::Image::drawPattern):
  38777. * platform/graphics/cairo/PathCairo.cpp:
  38778. * platform/graphics/cairo/PatternCairo.cpp:
  38779. (WebCore::Pattern::createPlatformPattern):
  38780. * platform/graphics/cg/GraphicsContextCG.cpp:
  38781. (WebCore::GraphicsContext::getCTM):
  38782. * platform/graphics/cg/GraphicsContextPlatformPrivateCG.h:
  38783. (WebCore::GraphicsContextPlatformPrivate::concatCTM):
  38784. * platform/graphics/cg/ImageCG.cpp:
  38785. (WebCore::Image::drawPattern):
  38786. * platform/graphics/cg/PathCG.cpp:
  38787. * platform/graphics/cg/PatternCG.cpp:
  38788. (WebCore::Pattern::createPlatformPattern):
  38789. * platform/graphics/haiku/GraphicsContextHaiku.cpp:
  38790. (WebCore::GraphicsContext::getCTM):
  38791. * platform/graphics/haiku/ImageHaiku.cpp:
  38792. (WebCore::Image::drawPattern):
  38793. * platform/graphics/haiku/PathHaiku.cpp:
  38794. * platform/graphics/qt/FontQt.cpp:
  38795. (WebCore::Font::drawComplexText):
  38796. * platform/graphics/qt/GraphicsContextQt.cpp:
  38797. (WebCore::GraphicsContext::getCTM):
  38798. (WebCore::GraphicsContext::fillPath):
  38799. (WebCore::GraphicsContext::strokePath):
  38800. (WebCore::GraphicsContext::fillRect):
  38801. * platform/graphics/qt/ImageQt.cpp:
  38802. (WebCore::Image::drawPattern):
  38803. * platform/graphics/qt/PathQt.cpp:
  38804. * platform/graphics/qt/PatternQt.cpp:
  38805. (WebCore::Pattern::createPlatformPattern):
  38806. * platform/graphics/skia/GradientSkia.cpp:
  38807. (WebCore::Gradient::setPlatformGradientSpaceTransform):
  38808. * platform/graphics/skia/GraphicsContextSkia.cpp:
  38809. (WebCore::GraphicsContext::getCTM):
  38810. * platform/graphics/skia/ImageSkia.cpp:
  38811. (WebCore::Image::drawPattern):
  38812. * platform/graphics/skia/PathSkia.cpp:
  38813. * platform/graphics/skia/PatternSkia.cpp:
  38814. (WebCore::Pattern::platformPattern):
  38815. * platform/graphics/skia/SkiaFontWin.cpp:
  38816. (WebCore::windowsCanHandleTextDrawing):
  38817. * platform/graphics/transforms/AffineTransform.cpp:
  38818. (WebCore::AffineTransform::makeIdentity): needed by some parts of WebCore
  38819. (WebCore::AffineTransform::scale): Didn't scale the complete matrix
  38820. (WebCore::AffineTransform::translate): Didn't respect other transformations
  38821. (WebCore::AffineTransform::shear): direct calculation, no extra multiply of matrices
  38822. (WebCore::AffineTransform::map):
  38823. (WebCore::AffineTransform::mapPoint):
  38824. (WebCore::AffineTransform::mapRect):
  38825. * platform/graphics/transforms/AffineTransform.h:
  38826. (WebCore::AffineTransform::isIdentityOrTranslation):
  38827. * platform/graphics/transforms/TransformationMatrix.cpp:
  38828. (WebCore::TransformationMatrix::toAffineTransform):
  38829. * platform/graphics/transforms/TransformationMatrix.h:
  38830. * platform/graphics/win/FontCGWin.cpp:
  38831. (WebCore::drawGDIGlyphs):
  38832. * platform/graphics/win/GraphicsContextCGWin.cpp:
  38833. * platform/graphics/win/GraphicsContextCairoWin.cpp:
  38834. * platform/graphics/win/GraphicsContextWin.cpp:
  38835. (WebCore::GraphicsContextPlatformPrivate::concatCTM):
  38836. * platform/graphics/wince/FontWince.cpp:
  38837. * platform/graphics/wince/GraphicsContextWince.cpp:
  38838. (WebCore::GraphicsContextPlatformPrivate::concatCTM):
  38839. (WebCore::GraphicsContext::fillPath):
  38840. (WebCore::GraphicsContext::strokePath):
  38841. (WebCore::GraphicsContext::getCTM):
  38842. (WebCore::GraphicsContext::drawBitmapPattern):
  38843. * platform/graphics/wince/ImageBufferWince.cpp:
  38844. (WebCore::):
  38845. (WebCore::BufferedImage::drawPattern):
  38846. * platform/graphics/wince/PathWince.cpp:
  38847. (WebCore::Path::transform):
  38848. * platform/graphics/wince/PlatformPathWince.cpp:
  38849. (WebCore::drawPolygons):
  38850. (WebCore::PathPolygon::transform):
  38851. (WebCore::PlatformPathElement::transform):
  38852. (WebCore::PlatformPath::strokePath):
  38853. (WebCore::PlatformPath::fillPath):
  38854. (WebCore::PlatformPath::transform):
  38855. * platform/graphics/wince/PlatformPathWince.h:
  38856. (WebCore::):
  38857. * platform/graphics/wx/GraphicsContextWx.cpp:
  38858. (WebCore::GraphicsContext::getCTM):
  38859. * platform/graphics/wx/ImageWx.cpp:
  38860. (WebCore::BitmapImage::drawPattern):
  38861. (WebCore::Image::drawPattern):
  38862. * platform/graphics/wx/PathWx.cpp:
  38863. * platform/gtk/RenderThemeGtk.cpp:
  38864. (WebCore::paintMozillaGtkWidget):
  38865. * plugins/win/PluginViewWin.cpp:
  38866. (WebCore::PluginView::paintWindowedPluginIntoContext):
  38867. * rendering/RenderBox.cpp:
  38868. (WebCore::RenderBox::localTransform):
  38869. * rendering/RenderBox.h:
  38870. * rendering/RenderBoxModelObject.cpp:
  38871. (WebCore::RenderBoxModelScaleData::RenderBoxModelScaleData):
  38872. (WebCore::RenderBoxModelScaleData::transform):
  38873. (WebCore::RenderBoxModelScaleData::setTransform):
  38874. (WebCore::RenderBoxModelScaleObserver::shouldPaintBackgroundAtLowQuality):
  38875. (WebCore::RenderBoxModelObject::paintBoxShadow):
  38876. * rendering/RenderForeignObject.cpp:
  38877. (WebCore::RenderForeignObject::translationForAttributes):
  38878. (WebCore::RenderForeignObject::localToParentTransform):
  38879. * rendering/RenderForeignObject.h:
  38880. (WebCore::RenderForeignObject::localTransform):
  38881. * rendering/RenderLayer.cpp:
  38882. (WebCore::RenderLayer::paintLayer):
  38883. * rendering/RenderObject.cpp:
  38884. (WebCore::RenderObject::localTransform):
  38885. (WebCore::RenderObject::localToParentTransform):
  38886. (WebCore::RenderObject::absoluteTransform):
  38887. * rendering/RenderObject.h:
  38888. * rendering/RenderPath.cpp:
  38889. (WebCore::RenderPath::localToParentTransform):
  38890. (WebCore::RenderPath::localTransform):
  38891. * rendering/RenderPath.h:
  38892. * rendering/RenderSVGHiddenContainer.h:
  38893. (WebCore::RenderSVGHiddenContainer::absoluteTransform):
  38894. * rendering/RenderSVGImage.h:
  38895. (WebCore::RenderSVGImage::localToParentTransform):
  38896. (WebCore::RenderSVGImage::localTransform):
  38897. * rendering/RenderSVGRoot.cpp:
  38898. (WebCore::RenderSVGRoot::localToBorderBoxTransform):
  38899. (WebCore::RenderSVGRoot::localToRepaintContainerTransform):
  38900. (WebCore::RenderSVGRoot::localToParentTransform):
  38901. (WebCore::RenderSVGRoot::absoluteTransform):
  38902. (WebCore::RenderSVGRoot::localTransform):
  38903. * rendering/RenderSVGRoot.h:
  38904. * rendering/RenderSVGText.h:
  38905. (WebCore::RenderSVGText::localToParentTransform):
  38906. (WebCore::RenderSVGText::localTransform):
  38907. * rendering/RenderSVGTransformableContainer.cpp:
  38908. (WebCore::RenderSVGTransformableContainer::localToParentTransform):
  38909. (WebCore::RenderSVGTransformableContainer::localTransform):
  38910. (WebCore::RenderSVGTransformableContainer::calculateLocalTransform):
  38911. * rendering/RenderSVGTransformableContainer.h:
  38912. * rendering/RenderSVGViewportContainer.cpp:
  38913. (WebCore::RenderSVGViewportContainer::markerBoundaries):
  38914. (WebCore::RenderSVGViewportContainer::markerContentTransformation):
  38915. (WebCore::RenderSVGViewportContainer::viewportTransform):
  38916. (WebCore::RenderSVGViewportContainer::localToParentTransform):
  38917. (WebCore::RenderSVGViewportContainer::absoluteTransform):
  38918. * rendering/RenderSVGViewportContainer.h:
  38919. * rendering/SVGCharacterLayoutInfo.cpp:
  38920. (WebCore::SVGChar::characterTransform):
  38921. * rendering/SVGCharacterLayoutInfo.h:
  38922. (WebCore::SVGTextChunkWalker::operator()):
  38923. * rendering/SVGInlineTextBox.cpp:
  38924. (WebCore::SVGInlineTextBox::calculateGlyphBoundaries):
  38925. (WebCore::SVGInlineTextBoxClosestCharacterToPositionWalker::chunkPortionCallback):
  38926. (WebCore::SVGInlineTextBoxSelectionRectWalker::chunkPortionCallback):
  38927. (WebCore::SVGInlineTextBox::paintCharacters):
  38928. (WebCore::SVGInlineTextBox::paintDecoration):
  38929. * rendering/SVGMarkerLayoutInfo.h:
  38930. (WebCore::MarkerLayout::MarkerLayout):
  38931. * rendering/SVGRenderSupport.cpp:
  38932. (WebCore::applyTransformToPaintInfo):
  38933. * rendering/SVGRenderSupport.h:
  38934. * rendering/SVGRenderTreeAsText.cpp:
  38935. (WebCore::operator<<):
  38936. * rendering/SVGRenderTreeAsText.h:
  38937. * rendering/SVGRootInlineBox.cpp:
  38938. (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
  38939. (WebCore::applyTextLengthCorrectionToTextChunk):
  38940. (WebCore::SVGRootInlineBox::buildLayoutInformation):
  38941. * rendering/TransformState.cpp:
  38942. (WebCore::TransformState::applyTransform):
  38943. * rendering/TransformState.h:
  38944. * svg/GradientAttributes.h:
  38945. (WebCore::GradientAttributes::gradientTransform):
  38946. (WebCore::GradientAttributes::setGradientTransform):
  38947. * svg/PatternAttributes.h:
  38948. (WebCore::PatternAttributes::patternTransform):
  38949. (WebCore::PatternAttributes::setPatternTransform):
  38950. * svg/SVGAnimateMotionElement.cpp:
  38951. (WebCore::SVGAnimateMotionElement::resetToBaseValue):
  38952. (WebCore::SVGAnimateMotionElement::calculateAnimatedValue):
  38953. (WebCore::SVGAnimateMotionElement::applyResultsToTarget):
  38954. * svg/SVGAnimateMotionElement.h:
  38955. * svg/SVGAnimateTransformElement.cpp:
  38956. * svg/SVGAnimateTransformElement.h:
  38957. * svg/SVGElement.h:
  38958. (WebCore::SVGElement::supplementalTransform):
  38959. * svg/SVGFitToViewBox.cpp:
  38960. (WebCore::SVGFitToViewBox::viewBoxToViewTransform):
  38961. * svg/SVGFitToViewBox.h:
  38962. * svg/SVGLocatable.cpp:
  38963. (WebCore::SVGLocatable::getCTM):
  38964. (WebCore::SVGLocatable::getScreenCTM):
  38965. (WebCore::SVGLocatable::getTransformToElement):
  38966. * svg/SVGLocatable.h:
  38967. * svg/SVGMarkerElement.cpp:
  38968. (WebCore::SVGMarkerElement::viewBoxToViewTransform):
  38969. * svg/SVGMarkerElement.h:
  38970. * svg/SVGMaskElement.cpp:
  38971. (WebCore::SVGMaskElement::drawMaskerContent):
  38972. * svg/SVGMatrix.idl:
  38973. * svg/SVGPatternElement.cpp:
  38974. (WebCore::SVGPatternElement::buildPattern):
  38975. * svg/SVGPreserveAspectRatio.cpp:
  38976. (WebCore::SVGPreserveAspectRatio::getCTM):
  38977. * svg/SVGPreserveAspectRatio.h:
  38978. * svg/SVGSVGElement.cpp:
  38979. (WebCore::SVGSVGElement::viewport):
  38980. (WebCore::SVGSVGElement::createSVGMatrix):
  38981. (WebCore::SVGSVGElement::createSVGTransformFromMatrix):
  38982. (WebCore::SVGSVGElement::getCTM):
  38983. (WebCore::SVGSVGElement::getScreenCTM):
  38984. (WebCore::SVGSVGElement::viewBoxToViewTransform):
  38985. * svg/SVGSVGElement.h:
  38986. * svg/SVGStyledLocatableElement.cpp:
  38987. (WebCore::SVGStyledLocatableElement::getCTM):
  38988. (WebCore::SVGStyledLocatableElement::getScreenCTM):
  38989. * svg/SVGStyledLocatableElement.h:
  38990. * svg/SVGStyledTransformableElement.cpp:
  38991. (WebCore::SVGStyledTransformableElement::getCTM):
  38992. (WebCore::SVGStyledTransformableElement::getScreenCTM):
  38993. (WebCore::SVGStyledTransformableElement::animatedLocalTransform):
  38994. (WebCore::SVGStyledTransformableElement::supplementalTransform):
  38995. * svg/SVGStyledTransformableElement.h:
  38996. (WebCore::SVGStyledTransformableElement::isStyledTransformable):
  38997. (WebCore::SVGStyledTransformableElement::toPathData):
  38998. * svg/SVGTextContentElement.cpp:
  38999. (WebCore::SVGInlineTextBoxQueryWalker::chunkPortionCallback):
  39000. * svg/SVGTextElement.cpp:
  39001. (WebCore::SVGTextElement::getScreenCTM):
  39002. (WebCore::SVGTextElement::getCTM):
  39003. (WebCore::SVGTextElement::animatedLocalTransform):
  39004. (WebCore::SVGTextElement::supplementalTransform):
  39005. * svg/SVGTextElement.h:
  39006. * svg/SVGTextPathElement.cpp:
  39007. * svg/SVGTransform.cpp:
  39008. (SVGTransform::SVGTransform):
  39009. (SVGTransform::matrix):
  39010. (SVGTransform::setMatrix):
  39011. * svg/SVGTransform.h:
  39012. * svg/SVGTransformDistance.cpp:
  39013. (WebCore::SVGTransformDistance::SVGTransformDistance):
  39014. (WebCore::SVGTransformDistance::scaledDistance):
  39015. (WebCore::SVGTransformDistance::isZero):
  39016. * svg/SVGTransformDistance.h:
  39017. * svg/SVGTransformList.cpp:
  39018. (SVGTransformList::createSVGTransformFromMatrix):
  39019. (SVGTransformList::concatenate):
  39020. (SVGTransformList::valueAsString):
  39021. * svg/SVGTransformList.h:
  39022. * svg/SVGTransformable.cpp:
  39023. (WebCore::SVGTransformable::getCTM):
  39024. (WebCore::SVGTransformable::getScreenCTM):
  39025. (WebCore::SVGTransformable::parseTransformValue):
  39026. * svg/SVGTransformable.h:
  39027. (WebCore::SVGTransformable::):
  39028. * svg/graphics/SVGPaintServerGradient.cpp:
  39029. (WebCore::SVGPaintServerGradient::gradientTransform):
  39030. (WebCore::SVGPaintServerGradient::setGradientTransform):
  39031. (WebCore::clipToTextMask):
  39032. (WebCore::SVGPaintServerGradient::setup):
  39033. * svg/graphics/SVGPaintServerGradient.h:
  39034. * svg/graphics/SVGPaintServerPattern.cpp:
  39035. (WebCore::SVGPaintServerPattern::patternTransform):
  39036. (WebCore::SVGPaintServerPattern::setPatternTransform):
  39037. (WebCore::SVGPaintServerPattern::setup):
  39038. * svg/graphics/SVGPaintServerPattern.h:
  39039. * svg/graphics/SVGResourceClipper.cpp:
  39040. (WebCore::SVGResourceClipper::applyClip):
  39041. * svg/graphics/SVGResourceMarker.cpp:
  39042. (WebCore::SVGResourceMarker::markerTransformation):
  39043. (WebCore::SVGResourceMarker::draw):
  39044. * svg/graphics/SVGResourceMarker.h:
  39045. * svg/graphics/filters/SVGFEImage.cpp:
  39046. * svg/graphics/filters/SVGFETile.cpp:
  39047. (WebCore::FETile::apply):
  39048. 2010-02-08 Stephen White <senorblanco@chromium.org>
  39049. Reviewed by Dimitri Glazkov.
  39050. Make an inline function containing a static var out-of-line. This is
  39051. a workaround for Xcode 3.1 bug radar 7070016. We tripped on this in
  39052. deviceRGBColorSpaceRef on the Chromium canaries. This is a proactive
  39053. fix for the same problem in sRGBColorSpaceRef().
  39054. https://bugs.webkit.org/show_bug.cgi?id=34663
  39055. * platform/graphics/cg/GraphicsContextCG.cpp:
  39056. (WebCore::sRGBColorSpaceRef):
  39057. * platform/graphics/cg/GraphicsContextPlatformPrivateCG.h:
  39058. 2010-02-08 Nate Chapin <japhet@chromium.org>
  39059. Reviewed by Dimitri Glazkov.
  39060. [V8] Unify the WorkerContext V8 object wrapping code with
  39061. the standard V8 object wrapping code.
  39062. https://bugs.webkit.org/show_bug.cgi?id=34658
  39063. * bindings/scripts/CodeGeneratorV8.pm:
  39064. * bindings/v8/V8DOMWrapper.cpp:
  39065. (WebCore::V8DOMWrapper::instantiateV8Object):
  39066. (WebCore::V8DOMWrapper::convertEventTargetToV8Object):
  39067. * bindings/v8/V8WorkerContextEventListener.cpp:
  39068. (WebCore::V8WorkerContextEventListener::handleEvent):
  39069. (WebCore::V8WorkerContextEventListener::getReceiverObject):
  39070. * bindings/v8/WorkerContextExecutionProxy.cpp:
  39071. * bindings/v8/WorkerContextExecutionProxy.h:
  39072. * bindings/v8/custom/V8NotificationCenterCustom.cpp:
  39073. (WebCore::V8NotificationCenter::createHTMLNotificationCallback):
  39074. (WebCore::V8NotificationCenter::createNotificationCallback):
  39075. * bindings/v8/custom/V8WorkerContextCustom.cpp:
  39076. (WebCore::toV8):
  39077. 2010-02-08 Kwang Yul Seo <skyul@company100.net>
  39078. Reviewed by Darin Adler.
  39079. Use fastStrDup instead of strdup
  39080. https://bugs.webkit.org/show_bug.cgi?id=33943
  39081. Replace strdup/free with fastStrDup/fastFree.
  39082. * bridge/IdentifierRep.h:
  39083. (WebCore::IdentifierRep::IdentifierRep):
  39084. * bridge/jni/JNIBridge.cpp:
  39085. (JavaMethod::~JavaMethod):
  39086. (appendClassName):
  39087. (JavaMethod::signature):
  39088. * bridge/jni/jsc/JavaClassJSC.cpp:
  39089. (JavaClass::JavaClass):
  39090. (JavaClass::~JavaClass):
  39091. * platform/network/curl/ResourceHandleCurl.cpp:
  39092. (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
  39093. * platform/network/curl/ResourceHandleManager.cpp:
  39094. (WebCore::ResourceHandleManager::~ResourceHandleManager):
  39095. (WebCore::ResourceHandleManager::setCookieJarFileName):
  39096. (WebCore::ResourceHandleManager::initializeHandle):
  39097. * plugins/PluginStream.cpp:
  39098. (WebCore::PluginStream::~PluginStream):
  39099. (WebCore::PluginStream::startStream):
  39100. * xml/XSLTProcessorLibxslt.cpp:
  39101. (WebCore::xsltParamArrayFromParameterMap):
  39102. (WebCore::freeXsltParamArray):
  39103. 2010-02-08 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
  39104. Reviewed by Simon Hausmann.
  39105. Fix Qt build on Windows.
  39106. nmake fails to pick the right cpp file, so we have to
  39107. rename the file to to a unique name.
  39108. * WebCore.pro:
  39109. * platform/graphics/qt/FontCustomPlatformDataQt.cpp: Renamed from WebCore/platform/graphics/qt/FontCustomPlatformData.cpp.
  39110. 2010-02-08 Nikolas Zimmermann <nzimmermann@rim.com>
  39111. Reviewed by Dirk Schulze.
  39112. All SVG *-expected.txt files contain wrong results
  39113. https://bugs.webkit.org/show_bug.cgi?id=34703
  39114. Finally dump meaningful information for SVG layout tests.
  39115. Use 'absoluteClippedOverflowRect' which goes through the same code paths used
  39116. to actually calculate repaint rects etc - instead of the legacy CSS-unaware
  39117. code path that mapped 'repaintRectInLocalCoordinates' through 'absoluteTransform'.
  39118. Remove absoluteTransform() - a long standing TODO, finally not needed anymore.
  39119. Despite SVGRenderTreeAsText, SVGPaintServerGradient was also using absoluteTransform().
  39120. Rewrite the code in question, fixing svg/W3C-SVG-1.1/pserver-grad-08-b.svg alignment issues
  39121. when scaling/panning text using gradient on stroke/fill. Affects some other gradient tests as well.
  39122. As we're now dumping clipped overflow rects any problems with repaint rects will become
  39123. immediate visible - it turns out we're not supporting the overflow rules on the outermost <svg>
  39124. element properly (repaint rects and bounding boxes need to take special SVG overflow rules into account).
  39125. Fixing that magically gives pixel-perfect clipped overflow rects for all types of shapes/text/containers.
  39126. Note: This will break any overriden platform-specific SVG results, need to wait for build bots in order to update them.
  39127. * rendering/RenderObject.cpp: Remove absoluteTransform() method, centralize overflow query code in SVGRenderSupport::isOverflowHidden().
  39128. * rendering/RenderObject.h: Remove absoluteTransform() method.
  39129. * rendering/RenderSVGHiddenContainer.h: Ditto.
  39130. * rendering/RenderSVGRoot.cpp:
  39131. (WebCore::RenderSVGRoot::paint): Use SVGRenderSupport::isOverflowHidden() to query SVG overflow mode.
  39132. (WebCore::RenderSVGRoot::computeRectForRepaint): Respect SVG overflow rules here: clip repaintRect against overflow rect _before_ passing
  39133. along to RenderBox. This is the key issue behind wrong absoluteClippedOverflowRect() values.
  39134. (WebCore::RenderSVGRoot::nodeAtPoint): Use SVGRenderSupport::isOverflowHidden() to query SVG overflow mode.
  39135. * rendering/RenderSVGRoot.h: Remove absoluteTransform(). Don't expose viewportSize() anymore.
  39136. * rendering/RenderSVGText.cpp:
  39137. (WebCore::RenderSVGText::strokeBoundingBox): Fix default stroke width to 1. This was the only wrong place -> fixes repaint rects for stroked text.
  39138. * rendering/RenderSVGViewportContainer.cpp: Remove absoluteTransform() method.
  39139. (WebCore::RenderSVGViewportContainer::pointIsInsideViewportClip): Use SVGRenderSupport::isOverflowHidden() to query SVG overflow mode.
  39140. * rendering/RenderSVGViewportContainer.h: Remove absoluteTransform() method.
  39141. * rendering/SVGRenderSupport.cpp: Refactored overflow queries in one place, centralizing SVG specific assumptions about overflowX/Y.
  39142. (WebCore::SVGRenderBase::isOverflowHidden):
  39143. * rendering/SVGRenderSupport.h:
  39144. * rendering/SVGRenderTreeAsText.cpp: Dump absoluteClippedOverflowRect() instead of absoluteTransform().mapRect(repaintRectInLocalCoordinates()).
  39145. (WebCore::writePositionAndStyle): Affects all layout tests dumping render trees.
  39146. * svg/graphics/SVGPaintServerGradient.cpp: Rewrite Gradient on text fill/stroke support on Cg, to avoid using absoluteTransform().
  39147. (WebCore::absoluteTransformForRenderer):
  39148. (WebCore::createMaskAndSwapContextForTextGradient):
  39149. (WebCore::clipToTextMask):
  39150. (WebCore::SVGPaintServerGradient::setup):
  39151. 2010-02-07 Daniel Bates <dbates@webkit.org>
  39152. Reviewed by Darin Adler.
  39153. https://bugs.webkit.org/show_bug.cgi?id=34402
  39154. Implements all of the numeric CSS3 list-style-types as per
  39155. section 4.3 of the CSS3 Lists module <http://www.w3.org/TR/css3-lists/#numeric>.
  39156. Test: fast/lists/w3-css3-list-styles-numeric.html
  39157. * css/CSSPrimitiveValueMappings.h:
  39158. (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
  39159. * css/CSSValueKeywords.in:
  39160. * inspector/front-end/SourceCSSTokenizer.re2js:
  39161. * platform/text/CharacterNames.h: Added constant hyphenMinus.
  39162. * rendering/RenderListMarker.cpp:
  39163. (WebCore::): Defined enum SequenceType.
  39164. (WebCore::toAlphabeticOrNumeric): Added.
  39165. (WebCore::toAlphabetic): Modified to call WebCore::toAlphabeticOrNumeric.
  39166. (WebCore::toNumeric): Added.
  39167. (WebCore::listMarkerSuffix):
  39168. (WebCore::listMarkerText):
  39169. (WebCore::RenderListMarker::paint):
  39170. (WebCore::RenderListMarker::calcPrefWidths):
  39171. (WebCore::RenderListMarker::getRelativeMarkerRect):
  39172. * rendering/style/RenderStyle.h:
  39173. (WebCore::):
  39174. * rendering/style/RenderStyleConstants.h: Added numeric list style types
  39175. and fixed indent level for the enum values.
  39176. (WebCore::):
  39177. 2010-02-07 Ismail Donmez <ismail@namtrac.org>
  39178. Reviewed by Darin Adler.
  39179. Include wtf/StringExtras.h for strdup definition, which
  39180. is needed for WinCE.
  39181. * bridge/IdentifierRep.h:
  39182. 2010-02-07 Pavel Feldman <pfeldman@chromium.org>
  39183. Reviewed by Timothy Hatcher.
  39184. Web Inspector: Fragment-held Elements Not Shown in Inspector.
  39185. https://bugs.webkit.org/show_bug.cgi?id=34680
  39186. * inspector/InspectorDOMAgent.cpp:
  39187. (WebCore::InspectorDOMAgent::pushChildNodesToFrontend):
  39188. (WebCore::InspectorDOMAgent::buildObjectForNode):
  39189. * inspector/front-end/ElementsTreeOutline.js:
  39190. (WebInspector.ElementsTreeElement.prototype._nodeTitleInfo):
  39191. 2010-02-07 Jian Li <jianli@chromium.org>
  39192. Reviewed by Darin Fisher.
  39193. [chromium] Change chromium interface to handle DownloadURL format.
  39194. https://bugs.webkit.org/show_bug.cgi?id=34655
  39195. * platform/chromium/ChromiumDataObject.cpp:
  39196. (WebCore::ChromiumDataObject::clear):
  39197. (WebCore::ChromiumDataObject::hasData):
  39198. (WebCore::ChromiumDataObject::ChromiumDataObject):
  39199. * platform/chromium/ChromiumDataObject.h:
  39200. * platform/chromium/ClipboardChromium.cpp:
  39201. (WebCore::ClipboardChromium::setData):
  39202. 2010-02-06 Dimitri Glazkov <dglazkov@chromium.org>
  39203. No review, rolling out r54364.
  39204. http://trac.webkit.org/changeset/54364
  39205. https://bugs.webkit.org/show_bug.cgi?id=34464
  39206. Introduced asserts in layout tests, needs more testing
  39207. locally.
  39208. * accessibility/chromium/AXObjectCacheChromium.cpp:
  39209. (WebCore::AXObjectCache::postPlatformNotification):
  39210. * page/chromium/ChromeClientChromium.h:
  39211. 2010-02-06 Dimitri Glazkov <dglazkov@chromium.org>
  39212. Reviewed by Adam Barth.
  39213. Using inlines and function-level statics don't mix, according to gcc.
  39214. https://bugs.webkit.org/show_bug.cgi?id=34663
  39215. De-inline deviceRGBColorSpaceRef to avoid gcc-bug landmines.
  39216. It appears that the initialization check, generated by gcc doesn't account
  39217. for a possibility that the function may be inlined, resulting in lazy
  39218. initialization failure for more than one inlined instance of the function.
  39219. No behavior change, so no new tests.
  39220. * platform/graphics/cg/GraphicsContextCG.cpp:
  39221. (WebCore::deviceRGBColorSpaceRef):
  39222. * platform/graphics/cg/GraphicsContextPlatformPrivateCG.h:
  39223. 2010-02-05 Geoffrey Garen <ggaren@apple.com>
  39224. Reviewed by Dan Bernstein.
  39225. Added an ASSERT to catch an implausible but theoretically possible leak.
  39226. In theory, if malloc allocated a UChar buffer directly after a StringImpl,
  39227. the StringImpl might incorrecly assume that the UChar buffer was inline,
  39228. and fail to delete it.
  39229. This ASSERT is somewhat academic, since we don't use the same allocator
  39230. in debug builds, but oh well.
  39231. * platform/text/StringImpl.cpp:
  39232. (WebCore::StringImpl::StringImpl):
  39233. (WebCore::StringImpl::createUninitialized):
  39234. * platform/text/StringImpl.h: Separated the inline buffer StringImpl
  39235. constructor from the out-of-line buffer StringImpl constructor. Made
  39236. the former ASSERT that its buffer was indeed inline, and the latter ASSERT
  39237. that its buffer was indeed not inline.
  39238. 2010-02-05 Chris Marrin <cmarrin@apple.com>
  39239. Reviewed by Simon Fraser.
  39240. Fixed changed virtual function in GraphicsLayerCACF and call order issues
  39241. https://bugs.webkit.org/show_bug.cgi?id=34348
  39242. The correct virtual function in GraphicsLayerCACF is now being
  39243. called. We also fixed an issue in QTMovieWin where the size
  39244. of the movie was not being set correctly because the call order
  39245. was changed.
  39246. I also changed the order of a couple of calls in QTMovieWin to account
  39247. for changed calling order from the logic above.
  39248. * platform/graphics/win/GraphicsLayerCACF.cpp:Update to new virtual function API
  39249. (WebCore::GraphicsLayerCACF::setContentsToMedia):
  39250. (WebCore::GraphicsLayerCACF::updateContentsMedia):
  39251. * platform/graphics/win/GraphicsLayerCACF.h:Update to new virtual function API
  39252. (WebCore::GraphicsLayerCACF::):
  39253. * platform/graphics/win/QTMovieWin.cpp:
  39254. (QTMovieWinPrivate::cacheMovieScale):Fix a bug where ratio was computed wrong because it was using integer math
  39255. (QTMovieWinPrivate::task):Compute movie scale before computing movie size so values are correct
  39256. (QTMovieWinPrivate::setSize):Move movie size update to updateMovieSize()
  39257. (QTMovieWinPrivate::updateMovieSize):Wrap size update in a new call so it can be used from multiple places
  39258. 2010-02-05 Enrica Casucci <enrica@apple.com>
  39259. Reviewed by Simon Fraser.
  39260. Horizontal scrollbar works in reverse at milliondollarcu.be
  39261. <rdar://problem/7556121>
  39262. https://bugs.webkit.org/show_bug.cgi?id=33848
  39263. Added a manual test.
  39264. * manual-tests/win: Added.
  39265. * manual-tests/win/horizontal-scroll-composited.html: Added.
  39266. * platform/graphics/win/WKCACFLayerRenderer.cpp:
  39267. (WebCore::WKCACFLayerRenderer::setScrollFrame):
  39268. (WebCore::WKCACFLayerRenderer::setRootChildLayer):
  39269. 2010-02-05 Ryan Leavengood <leavengood@gmail.com>
  39270. Reviewed by David Levin.
  39271. Implementation of GlyphPage::fill() for Haiku port.
  39272. https://bugs.webkit.org/show_bug.cgi?id=34527
  39273. Covered by existing tests.
  39274. * platform/graphics/haiku/GlyphPageTreeNodeHaiku.cpp
  39275. 2010-01-19 Kenneth Rohde Christiansen <kenneth@webkit.org>
  39276. Reviewed by Dave Hyatt.
  39277. Implement flattening of framesets
  39278. https://bugs.webkit.org/show_bug.cgi?id=32717
  39279. The following patch, builds ontop of Antti Koivisto's frameset
  39280. flattening code from the iPhone source, which itself is based on
  39281. the old Nokia Series 60 source.
  39282. Layout tests have been added to test the functionality and the original
  39283. code which has then been fixed to make these pass, as well as support
  39284. frameset grids.
  39285. Tests: fast/frames/flattening/frameset-flattening-advanced.html
  39286. fast/frames/flattening/frameset-flattening-grid.html
  39287. fast/frames/flattening/frameset-flattening-simple.html
  39288. fast/frames/flattening/frameset-flattening-subframe-resize.html
  39289. fast/frames/flattening/frameset-flattening-subframesets.html
  39290. * page/FrameView.cpp:
  39291. (WebCore::FrameView::layout):
  39292. (WebCore::FrameView::scheduleRelayout):
  39293. * page/Settings.cpp:
  39294. (WebCore::Settings::Settings):
  39295. (WebCore::Settings::setFrameSetFlatteningEnabled):
  39296. * page/Settings.h:
  39297. (WebCore::Settings::frameSetFlatteningEnabled):
  39298. * rendering/RenderFrame.cpp:
  39299. (WebCore::RenderFrame::layoutWithFlattening):
  39300. * rendering/RenderFrame.h:
  39301. * rendering/RenderFrameSet.cpp:
  39302. (WebCore::RenderFrameSet::layout):
  39303. (WebCore::RenderFrameSet::positionFramesWithFlattening):
  39304. (WebCore::RenderFrameSet::flattenFrameSet):
  39305. (WebCore::RenderFrameSet::userResize):
  39306. * rendering/RenderFrameSet.h:
  39307. 2010-02-05 Simon Fraser <simon.fraser@apple.com>
  39308. Reviewed by Dan Bernstein.
  39309. Changing display type of parent of input on focus causes input field to not receive key events
  39310. https://bugs.webkit.org/show_bug.cgi?id=34620
  39311. <rdar://problem/7584572>
  39312. When layout affects a text input, the RenderTextControl gets destroyed and
  39313. recreated, which in turn makes a new innerTextElement. However, if the text field was
  39314. focused, the VisibleSelection is left pointing to the old innerTextElement, so text
  39315. input no longer works.
  39316. The fix is to call updateFocusAppearanceSoon() when attaching the input element,
  39317. which will update the selection if necessary.
  39318. Test: fast/forms/restore-selection-after-layout.html
  39319. * dom/Document.h: Add a paramter to updateFocusAppearanceSoon() and a member variable,
  39320. m_updateFocusAppearanceRestoresSelection, to store its value until the timer fires.
  39321. * dom/Document.cpp:
  39322. (WebCore::Document::Document): Initialize m_updateFocusAppearanceRestoresSelection
  39323. (WebCore::Document::updateFocusAppearanceSoon): New restorePreviousSelection parameter.
  39324. (WebCore::Document::updateFocusAppearanceTimerFired): Pass m_updateFocusAppearanceRestoresSelection down.
  39325. * dom/Element.cpp:
  39326. (WebCore::Element::attach): Call updateFocusAppearanceSoon() with false.
  39327. * dom/Element.h: The updateFocusAppearanceSoonAfterAttach() was undefined.
  39328. * html/HTMLInputElement.cpp:
  39329. (WebCore::HTMLInputElement::attach): Call document()->updateFocusAppearanceSoon() with true.
  39330. 2010-02-05 Pavel Feldman <pfeldman@chromium.org>
  39331. Reviewed by Timothy Hatcher.
  39332. Web Inspector: simplify cookies view, introduce DataGrid::autoSizeColumns.
  39333. https://bugs.webkit.org/show_bug.cgi?id=34646
  39334. * inspector/front-end/CookieItemsView.js:
  39335. (WebInspector.CookieItemsView):
  39336. (WebInspector.CookieItemsView.prototype.show):
  39337. (WebInspector.CookieItemsView.prototype._update):
  39338. (WebInspector.CookieItemsView.prototype._updateWithCookies):
  39339. (WebInspector.CookieItemsView.prototype._filterCookiesForDomain):
  39340. (WebInspector.CookieItemsView.prototype._createDataGrid):
  39341. (WebInspector.CookieItemsView.prototype._populateDataGrid.expiresCompare):
  39342. (WebInspector.CookieItemsView.prototype._populateDataGrid):
  39343. (WebInspector.CookieItemsView.prototype._createSimpleDataGrid):
  39344. (WebInspector.CookieItemsView.prototype._populateSimpleDataGrid):
  39345. (WebInspector.CookieItemsView.prototype._deleteCookieCallback):
  39346. (WebInspector.CookieItemsView.prototype._refreshButtonClicked):
  39347. * inspector/front-end/DOMStorageItemsView.js:
  39348. (WebInspector.DOMStorageItemsView.prototype._showDOMStorageEntries):
  39349. (WebInspector.DOMStorageItemsView.prototype._dataGridForDOMStorageEntries):
  39350. * inspector/front-end/DataGrid.js:
  39351. (WebInspector.DataGrid):
  39352. (WebInspector.DataGrid.prototype.autoSizeColumns):
  39353. * inspector/front-end/DatabaseQueryView.js:
  39354. (WebInspector.DatabaseQueryView.prototype._queryFinished):
  39355. * inspector/front-end/DatabaseTableView.js:
  39356. (WebInspector.DatabaseTableView.prototype._queryFinished):
  39357. * inspector/front-end/StoragePanel.js:
  39358. (WebInspector.StoragePanel.prototype.dataGridForResult):
  39359. 2010-02-04 Pavel Feldman <pfeldman@chromium.org>
  39360. Reviewed by Timothy Hatcher.
  39361. Web Inspector: group cookies by frame, show total
  39362. cookies size, allow sorting cookie table.
  39363. https://bugs.webkit.org/show_bug.cgi?id=34617
  39364. * English.lproj/localizedStrings.js:
  39365. * inspector/InspectorController.cpp:
  39366. (WebCore::InspectorController::deleteCookie):
  39367. * inspector/front-end/CookieItemsView.js:
  39368. (WebInspector.CookieItemsView):
  39369. (WebInspector.CookieItemsView.prototype.update):
  39370. (WebInspector.CookieItemsView.prototype._updateWithCookies):
  39371. (WebInspector.CookieItemsView.prototype._cookiesForDomain):
  39372. (WebInspector.CookieItemsView.prototype.dataGridForCookies):
  39373. (WebInspector.CookieItemsView.prototype._createNodes):
  39374. (WebInspector.CookieItemsView.prototype._sortData.localeCompare):
  39375. (WebInspector.CookieItemsView.prototype._sortData.numberCompare):
  39376. (WebInspector.CookieItemsView.prototype._sortData.expiresCompare):
  39377. (WebInspector.CookieItemsView.prototype._sortData):
  39378. * inspector/front-end/StoragePanel.js:
  39379. (WebInspector.StoragePanel.prototype.showCookies):
  39380. (WebInspector.CookieSidebarTreeElement):
  39381. (WebInspector.CookieSidebarTreeElement.prototype.onselect):
  39382. (WebInspector.CookieSidebarTreeElement.prototype.get subtitle):
  39383. (WebInspector.CookieSidebarTreeElement.prototype.set subtitle):
  39384. * inspector/front-end/inspector.js:
  39385. (WebInspector.updateResource):
  39386. 2010-02-05 Maxime Simone <simon.maxime@gmail.com>
  39387. Reviewed by David Levin.
  39388. More robust conversion from BString to String for Haiku port.
  39389. https://bugs.webkit.org/show_bug.cgi?id=34527
  39390. Covered by existing tests.
  39391. * platform/text/haiku/StringHaiku.cpp: Fixed include order, Improved coversion from BString.
  39392. 2010-02-05 Steve Falkenburg <sfalken@apple.com>
  39393. Reviewed by Adam Roben.
  39394. Windows build fix.
  39395. * WebCore.vcproj/WebCore.make:
  39396. 2010-02-05 Csaba Osztrogonác <ossy@webkit.org>
  39397. Reviewed by Dirk Schulze.
  39398. Rubber-stamped by Kenneth Rohde Christiansen.
  39399. [Qt] Modifying SVG path dumping to equal to other ports
  39400. https://bugs.webkit.org/show_bug.cgi?id=33784
  39401. * platform/graphics/qt/PathQt.cpp:
  39402. (WebCore::Path::debugString): Path dumping style is aproached to Mac.
  39403. 2010-02-05 Sebastian Dröge <sebastian.droege@collabora.co.uk>
  39404. Reviewed by Gustavo Noronha.
  39405. Add a GStreamer HTTP/HTTPS source, using WebKit infrastructure
  39406. https://bugs.webkit.org/show_bug.cgi?id=34317
  39407. * GNUmakefile.am:
  39408. * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
  39409. (WebCore::mediaPlayerPrivateSourceChangedCallback):
  39410. (WebCore::doGstInit):
  39411. * platform/graphics/gtk/WebKitWebSourceGStreamer.cpp:
  39412. * platform/graphics/gtk/WebKitWebSourceGStreamer.h:
  39413. Add a GStreamer HTTP/HTTPS source, using the WebKit infrastructure.
  39414. This makes sure that referer, cookies, authentication information
  39415. and all kinds of other context are passed to GStreamer for websites
  39416. like Vimeo or YouTube.
  39417. 2010-02-05 Nate Chapin <japhet@chromium.org>
  39418. Reviewed by Dimitri Glazkov.
  39419. [V8] Clean up code for getting a v8::FunctionTemplate.
  39420. https://bugs.webkit.org/show_bug.cgi?id=34606
  39421. * bindings/scripts/CodeGeneratorV8.pm: Making GetTemplate() public
  39422. * bindings/v8/V8Binding.cpp:
  39423. (WebCore::configureTemplate):
  39424. * bindings/v8/V8DOMWrapper.cpp: Remove getTemplate(), use V8ClassIndex::getTemplate() instead.
  39425. (WebCore::V8DOMWrapper::getConstructor):
  39426. (WebCore::V8DOMWrapper::instantiateV8Object):
  39427. * bindings/v8/V8DOMWrapper.h:
  39428. (WebCore::V8DOMWrapper::lookupDOMWrapper):
  39429. * bindings/v8/V8Index.cpp: Remove duplicate caching of FunctionTemplates.
  39430. (WebCore::V8ClassIndex::getTemplate):
  39431. * bindings/v8/V8Index.h:
  39432. * bindings/v8/WorkerContextExecutionProxy.cpp:
  39433. (WebCore::WorkerContextExecutionProxy::toV8):
  39434. * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
  39435. (WebCore::v8HTMLAudioElementConstructorCallback):
  39436. (WebCore::V8HTMLAudioElementConstructor::GetTemplate):
  39437. * bindings/v8/custom/V8HTMLAudioElementConstructor.h:
  39438. * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
  39439. (WebCore::v8HTMLImageElementConstructorCallback):
  39440. (WebCore::V8HTMLImageElementConstructor::GetTemplate):
  39441. * bindings/v8/custom/V8HTMLImageElementConstructor.h:
  39442. * bindings/v8/custom/V8HTMLOptionElementConstructor.cpp:
  39443. (WebCore::v8HTMLOptionElementConstructorCallback):
  39444. (WebCore::V8HTMLOptionElementConstructor::GetTemplate):
  39445. * bindings/v8/custom/V8HTMLOptionElementConstructor.h:
  39446. * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
  39447. (WebCore::createInjectedScriptHostV8Wrapper):
  39448. 2010-02-05 Siddharth Mathur <siddharth.mathur@nokia.com>
  39449. Reviewed by Ariya Hidayat.
  39450. [Qt] Build break in QtWebkit on Symbian
  39451. https://bugs.webkit.org/show_bug.cgi?id=34597
  39452. * plugins/PluginView.h:
  39453. 2010-02-05 Yury Semikhatsky <yurys@chromium.org>
  39454. Reviewed by Pavel Feldman.
  39455. - Use SerializedScriptValue for passing data between injected script and
  39456. inspector frontend.
  39457. - Remove custom JSON implementation from the instpector utility script.
  39458. - Make sure that only objects created in the same ScriptState can be values
  39459. of ScriptObject/Array properties and arguments to ScriptFunctionCall. We don't
  39460. want ScriptObjects to leak between contexts.
  39461. - Use ScriptState of the 'this' object in ScriptFunctionCall instead of passing
  39462. it as additional parameter.
  39463. https://bugs.webkit.org/show_bug.cgi?id=33592
  39464. * bindings/js/JSInjectedScriptHostCustom.cpp:
  39465. (WebCore::JSInjectedScriptHost::reportDidDispatchOnInjectedScript):
  39466. * bindings/js/ScriptArray.cpp:
  39467. (WebCore::ScriptArray::set):
  39468. * bindings/js/ScriptFunctionCall.cpp:
  39469. (WebCore::ScriptFunctionCall::ScriptFunctionCall):
  39470. (WebCore::ScriptFunctionCall::appendArgument):
  39471. * bindings/js/ScriptFunctionCall.h:
  39472. * bindings/js/ScriptObject.cpp:
  39473. (WebCore::ScriptObject::set):
  39474. * bindings/js/ScriptValue.cpp:
  39475. (WebCore::ScriptValue::serialize):
  39476. (WebCore::ScriptValue::deserialize):
  39477. * bindings/js/ScriptValue.h:
  39478. * bindings/v8/ScriptArray.cpp:
  39479. (WebCore::ScriptArray::set):
  39480. * bindings/v8/ScriptFunctionCall.cpp:
  39481. (WebCore::ScriptFunctionCall::ScriptFunctionCall):
  39482. (WebCore::ScriptFunctionCall::appendArgument):
  39483. * bindings/v8/ScriptFunctionCall.h:
  39484. * bindings/v8/ScriptObject.cpp:
  39485. (WebCore::ScriptObject::set):
  39486. * bindings/v8/ScriptState.h:
  39487. * bindings/v8/ScriptValue.cpp:
  39488. (WebCore::ScriptValue::serialize):
  39489. (WebCore::deserialize):
  39490. * bindings/v8/ScriptValue.h:
  39491. * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
  39492. (WebCore::V8InjectedScriptHost::reportDidDispatchOnInjectedScriptCallback):
  39493. * inspector/InjectedScript.cpp:
  39494. (WebCore::InjectedScript::dispatch):
  39495. (WebCore::InjectedScript::callFrames):
  39496. (WebCore::InjectedScript::wrapForConsole):
  39497. (WebCore::InjectedScript::releaseWrapperObjectGroup):
  39498. * inspector/InjectedScript.h:
  39499. * inspector/InjectedScriptHost.cpp:
  39500. (WebCore::InjectedScriptHost::reportDidDispatchOnInjectedScript):
  39501. * inspector/InjectedScriptHost.h:
  39502. * inspector/InjectedScriptHost.idl:
  39503. * inspector/InspectorBackend.cpp:
  39504. (WebCore::InspectorBackend::dispatchOnInjectedScript):
  39505. * inspector/InspectorController.cpp:
  39506. (WebCore::InspectorController::setFrontendProxyObject):
  39507. (WebCore::InspectorController::didPause):
  39508. (WebCore::InspectorController::didEvaluateForTestInFrontend):
  39509. * inspector/InspectorFrontend.cpp:
  39510. (WebCore::InspectorFrontend::InspectorFrontend):
  39511. (WebCore::InspectorFrontend::newScriptArray):
  39512. (WebCore::InspectorFrontend::newScriptObject):
  39513. (WebCore::InspectorFrontend::populateFrontendSettings):
  39514. (WebCore::InspectorFrontend::updateConsoleMessageExpiredCount):
  39515. (WebCore::InspectorFrontend::addConsoleMessage):
  39516. (WebCore::InspectorFrontend::updateConsoleMessageRepeatCount):
  39517. (WebCore::InspectorFrontend::updateResource):
  39518. (WebCore::InspectorFrontend::removeResource):
  39519. (WebCore::InspectorFrontend::didGetResourceContent):
  39520. (WebCore::InspectorFrontend::updateFocusedNode):
  39521. (WebCore::InspectorFrontend::setAttachedWindow):
  39522. (WebCore::InspectorFrontend::addRecordToTimeline):
  39523. (WebCore::InspectorFrontend::parsedScriptSource):
  39524. (WebCore::InspectorFrontend::failedToParseScriptSource):
  39525. (WebCore::InspectorFrontend::addProfileHeader):
  39526. (WebCore::InspectorFrontend::setRecordingProfile):
  39527. (WebCore::InspectorFrontend::didGetProfileHeaders):
  39528. (WebCore::InspectorFrontend::didGetProfile):
  39529. (WebCore::InspectorFrontend::pausedScript):
  39530. (WebCore::InspectorFrontend::setDocument):
  39531. (WebCore::InspectorFrontend::setDetachedRoot):
  39532. (WebCore::InspectorFrontend::setChildNodes):
  39533. (WebCore::InspectorFrontend::childNodeCountUpdated):
  39534. (WebCore::InspectorFrontend::childNodeInserted):
  39535. (WebCore::InspectorFrontend::childNodeRemoved):
  39536. (WebCore::InspectorFrontend::attributesUpdated):
  39537. (WebCore::InspectorFrontend::didRemoveNode):
  39538. (WebCore::InspectorFrontend::didGetChildNodes):
  39539. (WebCore::InspectorFrontend::didApplyDomChange):
  39540. (WebCore::InspectorFrontend::didGetEventListenersForNode):
  39541. (WebCore::InspectorFrontend::didGetCookies):
  39542. (WebCore::InspectorFrontend::didDispatchOnInjectedScript):
  39543. (WebCore::InspectorFrontend::addDatabase):
  39544. (WebCore::InspectorFrontend::selectDatabase):
  39545. (WebCore::InspectorFrontend::didGetDatabaseTableNames):
  39546. (WebCore::InspectorFrontend::addDOMStorage):
  39547. (WebCore::InspectorFrontend::selectDOMStorage):
  39548. (WebCore::InspectorFrontend::didGetDOMStorageEntries):
  39549. (WebCore::InspectorFrontend::didSetDOMStorageItem):
  39550. (WebCore::InspectorFrontend::didRemoveDOMStorageItem):
  39551. (WebCore::InspectorFrontend::updateDOMStorage):
  39552. (WebCore::InspectorFrontend::addNodesToSearchResult):
  39553. (WebCore::InspectorFrontend::contextMenuItemSelected):
  39554. (WebCore::InspectorFrontend::evaluateForTestInFrontend):
  39555. (WebCore::InspectorFrontend::callSimpleFunction):
  39556. * inspector/InspectorFrontend.h:
  39557. (WebCore::InspectorFrontend::scriptState):
  39558. * inspector/front-end/InjectedScript.js:
  39559. (injectedScriptConstructor):
  39560. (injectedScriptConstructor.):
  39561. * inspector/front-end/InjectedScriptAccess.js:
  39562. (InjectedScriptAccess._installHandler.InjectedScriptAccess.prototype.methodName.myCallback):
  39563. (InjectedScriptAccess._installHandler.InjectedScriptAccess.prototype.methodName):
  39564. (InjectedScriptAccess._installHandler):
  39565. * inspector/front-end/inspector.js:
  39566. (WebInspector.pausedScript):
  39567. (WebInspector.addConsoleMessage):
  39568. 2010-02-05 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
  39569. Reviewed by Simon Hausmann.
  39570. [Qt] Generate convenience headers (QWebView, etc) using qmake
  39571. In Qt this is done using syncqt, but we use a pro-file instead
  39572. that generates makefile-rules for each of the extra headers.
  39573. These extra headers are installed alongside the normal headers.
  39574. * WebCore.pro: Use headers.pri based on DerivedSources instead
  39575. of the one previously checked in in the source tree.
  39576. 2010-02-05 Mikhail Naganov <mnaganov@chromium.org>
  39577. Reviewed by Pavel Feldman.
  39578. Enable JAVASCRIPT_DEBUGGER in chromium port.
  39579. https://bugs.webkit.org/show_bug.cgi?id=34638
  39580. * page/Console.cpp:
  39581. * page/Console.h:
  39582. * page/Console.idl:
  39583. 2010-02-05 Pavel Feldman <pfeldman@chromium.org>
  39584. Reviewed by Timothy Hatcher.
  39585. Web Inspector: Tab width for javascript source is 8, should be 4
  39586. https://bugs.webkit.org/show_bug.cgi?id=31248
  39587. * inspector/front-end/SourceFrame.js:
  39588. (WebInspector.SourceFrame):
  39589. * inspector/front-end/TextEditorModel.js:
  39590. (WebInspector.TextEditorModel.prototype.set replaceTabsWithSpaces):
  39591. (WebInspector.TextEditorModel.prototype._innerSetText):
  39592. (WebInspector.TextEditorModel.prototype._replaceTabsIfNeeded):
  39593. 2010-02-05 Tony Chang <tony@chromium.org>
  39594. Reviewed by Eric Seidel.
  39595. https://bugs.webkit.org/show_bug.cgi?id=24872
  39596. When pasting a list into another list should not indent another level.
  39597. If the cursor is at the beginning of the line, it should insert the
  39598. list items before the current list item. If the cursor is at the end
  39599. of the line, it should insert the list items after the current list item.
  39600. This matches Firefox and IE and makes the common activity of reordering a list
  39601. work as expected.
  39602. This also adds a small helper method (isListItem) to htmlediting.h.
  39603. Test: editing/pasteboard/paste-list-002.html
  39604. * editing/ReplaceSelectionCommand.cpp:
  39605. (WebCore::ReplaceSelectionCommand::doApply):
  39606. (WebCore::ReplaceSelectionCommand::insertAsListItems):
  39607. * editing/ReplaceSelectionCommand.h:
  39608. * editing/htmlediting.cpp:
  39609. (WebCore::isListItem):
  39610. (WebCore::appendedSublist):
  39611. * editing/htmlediting.h:
  39612. 2010-02-04 Mark Rowe <mrowe@apple.com>
  39613. Reviewed by Timothy Hatcher.
  39614. Build fix. Remove a symbol corresponding to an inline function from the linker export
  39615. file to prevent a weak external failure.
  39616. * WebCore.base.exp: Remove symbol.
  39617. * WebCore.xcodeproj/project.pbxproj: Accommodate rename of script.
  39618. 2010-02-04 Geoffrey Garen <ggaren@apple.com>
  39619. Reviewed by Oliver Hunt.
  39620. Updated to use new WeakGCPtr::clear interface.
  39621. * bindings/js/JSEventListener.cpp:
  39622. * bindings/js/JSEventListener.h:
  39623. (WebCore::JSEventListener::invalidateJSFunction):
  39624. 2010-02-04 Geoffrey Garen <ggaren@apple.com>
  39625. Build fix: Added a forwarding header.
  39626. * ForwardingHeaders/runtime/WeakGCPtr.h: Added.
  39627. 2010-02-04 Geoffrey Garen <ggaren@apple.com>
  39628. Reviewed by Alexey Proskuryakov and Darin Adler.
  39629. REGRESSION (r52082): Missing event handlers on JQuery demo page (33383)
  39630. https://bugs.webkit.org/show_bug.cgi?id=33383
  39631. <rdar://problem/7559449>
  39632. There were two bugs here:
  39633. 1. A stale wrapper would invalidate a node's event listeners, even if
  39634. the node had a fresh wrapper keeping it alive.
  39635. The fix for this is for an event listener to keep a WeakGCPtr back-pointer
  39636. to the wrapper it expects to mark it. The wrapper destructor checks this
  39637. back-pointer, and only invalidates the event listener in the case of a match.
  39638. 2. Conversely, a stale wrapper would not invalidate a node's event
  39639. listeners soon enough, if its destructor didn't have a chance to run
  39640. before an event fired on the node. (This can only happen in cases where
  39641. we've made some other error and failed to mark a wrapper that was circuitously
  39642. observable in the DOM. But we know we have edge case bugs like this, and
  39643. we don't want them to be crashes.)
  39644. The fix for this is to check the wrapper back-pointer before firing the
  39645. event listener. As long as the the wrapper back-pointer is not null,
  39646. it's safe to fire the listener.
  39647. * ForwardingHeaders/runtime/WeakGCPtr.h: Added. Appease build gods.
  39648. * bindings/js/JSAbstractWorkerCustom.cpp:
  39649. (WebCore::JSAbstractWorker::addEventListener):
  39650. (WebCore::JSAbstractWorker::removeEventListener):
  39651. * bindings/js/JSDOMApplicationCacheCustom.cpp:
  39652. (WebCore::JSDOMApplicationCache::addEventListener):
  39653. (WebCore::JSDOMApplicationCache::removeEventListener):
  39654. * bindings/js/JSDOMWindowCustom.cpp:
  39655. (WebCore::JSDOMWindow::markChildren):
  39656. (WebCore::JSDOMWindow::addEventListener):
  39657. (WebCore::JSDOMWindow::removeEventListener): Updated to pass a wrapper
  39658. to the JSEventListener constructor.
  39659. * bindings/js/JSEventListener.cpp:
  39660. (WebCore::JSEventListener::JSEventListener):
  39661. (WebCore::JSEventListener::initializeJSFunction):
  39662. (WebCore::JSEventListener::invalidateJSFunction):
  39663. * bindings/js/JSEventListener.h:
  39664. (WebCore::JSEventListener::create):
  39665. (WebCore::JSEventListener::isolatedWorld):
  39666. (WebCore::JSEventListener::wrapper):
  39667. (WebCore::JSEventListener::setWrapper):
  39668. (WebCore::JSEventListener::jsFunction):
  39669. (WebCore::createJSAttributeEventListener): Implemented the back-pointer
  39670. described above. Refactored the jsFunction() accessor to return 0 if
  39671. the wrapper back-pointer is 0.
  39672. * bindings/js/JSEventSourceCustom.cpp:
  39673. (WebCore::JSEventSource::addEventListener):
  39674. (WebCore::JSEventSource::removeEventListener):
  39675. * bindings/js/JSLazyEventListener.cpp:
  39676. (WebCore::JSLazyEventListener::JSLazyEventListener):
  39677. (WebCore::JSLazyEventListener::initializeJSFunction):
  39678. * bindings/js/JSLazyEventListener.h:
  39679. (WebCore::JSLazyEventListener::create):
  39680. * bindings/js/JSMessagePortCustom.cpp:
  39681. (WebCore::JSMessagePort::markChildren):
  39682. (WebCore::JSMessagePort::addEventListener):
  39683. (WebCore::JSMessagePort::removeEventListener):
  39684. * bindings/js/JSNodeCustom.cpp:
  39685. (WebCore::JSNode::addEventListener):
  39686. (WebCore::JSNode::removeEventListener):
  39687. (WebCore::JSNode::markChildren):
  39688. * bindings/js/JSSVGElementInstanceCustom.cpp:
  39689. (WebCore::JSSVGElementInstance::addEventListener):
  39690. (WebCore::JSSVGElementInstance::removeEventListener):
  39691. * bindings/js/JSWebSocketCustom.cpp:
  39692. (WebCore::JSWebSocket::addEventListener):
  39693. (WebCore::JSWebSocket::removeEventListener):
  39694. * bindings/js/JSWorkerContextCustom.cpp:
  39695. (WebCore::JSWorkerContext::markChildren):
  39696. (WebCore::JSWorkerContext::addEventListener):
  39697. (WebCore::JSWorkerContext::removeEventListener):
  39698. * bindings/js/JSXMLHttpRequestCustom.cpp:
  39699. (WebCore::JSXMLHttpRequest::markChildren):
  39700. (WebCore::JSXMLHttpRequest::addEventListener):
  39701. (WebCore::JSXMLHttpRequest::removeEventListener):
  39702. * bindings/js/JSXMLHttpRequestUploadCustom.cpp:
  39703. (WebCore::JSXMLHttpRequestUpload::markChildren):
  39704. (WebCore::JSXMLHttpRequestUpload::addEventListener):
  39705. (WebCore::JSXMLHttpRequestUpload::removeEventListener): Updated to pass a wrapper
  39706. to the JSEventListener constructor.
  39707. * bindings/js/ScriptEventListener.cpp:
  39708. (WebCore::createAttributeEventListener): Updated to pass a wrapper
  39709. to the JSEventListener constructor.
  39710. (WebCore::getEventListenerHandlerBody): Updated for the fact that jsFunction()
  39711. is no longer a virtual accessor on the EventHandler base class.
  39712. * bindings/scripts/CodeGeneratorJS.pm: Updated for the fact that jsFunction()
  39713. is no longer a virtual accessor on the EventHandler base class. Added a "JS"
  39714. to invalidateEventListeners and markEventListeners to clarify that these
  39715. actions are for JS event listeners only. Added a wrapper parameter to
  39716. invalidateEventListeners for the back-pointer check explained above.
  39717. * dom/EventListener.h:
  39718. (WebCore::EventListener::invalidateJSFunction): ditto
  39719. * dom/EventTarget.h:
  39720. (WebCore::EventTarget::markJSEventListeners):
  39721. (WebCore::EventTarget::invalidateJSEventListeners): ditto
  39722. 2010-02-04 Tony Chang <tony@chromium.org>
  39723. Reviewed by Eric Seidel.
  39724. https://bugs.webkit.org/show_bug.cgi?id=25002
  39725. When inserting a new paragraph, avoid nesting empty divs. When
  39726. pasting near the end of a paragraph, this prevents each paste
  39727. command for getting nested one level deeper.
  39728. Test: editing/inserting/paragraph-outside-nested-divs.html
  39729. * editing/InsertParagraphSeparatorCommand.cpp:
  39730. (WebCore::highestVisuallyEquivalentDiv):
  39731. (WebCore::InsertParagraphSeparatorCommand::doApply):
  39732. 2010-02-04 Dumitru Daniliuc <dumi@chromium.org>
  39733. Reviewed by Eric Seidel.
  39734. 1. Fix a bug in SQLiteTransaction: do not assume that COMMIT always
  39735. succeeds.
  39736. 2. Jump straight to the transaction error callback when a
  39737. statement fails in a way that makes sqlite automatically rollback
  39738. the transaction.
  39739. 3. Fix the code that handles the "quota reached" failure, as it is
  39740. one of the failures that lead to an automatic transaction
  39741. rollback.
  39742. https://bugs.webkit.org/show_bug.cgi?id=34280
  39743. * platform/sql/SQLiteDatabase.cpp:
  39744. (WebCore::SQLiteDatabase::isAutoCommitOn):
  39745. * platform/sql/SQLiteDatabase.h:
  39746. * platform/sql/SQLiteTransaction.cpp:
  39747. (WebCore::SQLiteTransaction::begin):
  39748. (WebCore::SQLiteTransaction::commit):
  39749. (WebCore::SQLiteTransaction::rollback):
  39750. (WebCore::SQLiteTransaction::transactionWasRolledBackBySqlite):
  39751. * platform/sql/SQLiteTransaction.h:
  39752. * storage/SQLTransaction.cpp:
  39753. (WebCore::SQLTransaction::SQLTransaction):
  39754. (WebCore::SQLTransaction::runStatements):
  39755. (WebCore::SQLTransaction::runCurrentStatement):
  39756. (WebCore::SQLTransaction::handleCurrentStatementError):
  39757. (WebCore::SQLTransaction::deliverQuotaIncreaseCallback):
  39758. 2010-02-04 Peter Kasting <pkasting@google.com>
  39759. Not reviewed, rollback.
  39760. Rollback r54387, it doesn't fix builds and Chromium doesn't want this behavior.
  39761. * platform/chromium/ScrollbarThemeChromiumMac.h:
  39762. 2010-02-04 Stephen White <senorblanco@chromium.org>
  39763. Unreviewed, build fix.
  39764. Fix for Chromium/Mac after palindromic scrollbar change (54345).
  39765. Covered by many layout tests.
  39766. * platform/chromium/ScrollbarThemeChromiumMac.h:
  39767. (WebCore::ScrollbarThemeChromiumMac::maxOverlapBetweenPages):
  39768. 2010-02-04 Clemmitt Sigler <cmsigler@gmail.com>
  39769. Reviewed by David Levin.
  39770. WebKitGTK doesn't build GtkLauncher when --enable-mathml is specified.
  39771. Updated WebCore/GNUmakefile.am to include needed files in build.
  39772. https://bugs.webkit.org/show_bug.cgi?id=34387
  39773. No new tests.
  39774. * GNUmakefile.am:
  39775. 2010-02-04 Stephan Aßmus <superstippi@gmx.de>
  39776. Reviewed by David Levin.
  39777. Misc coding style fixes in Haiku port code.
  39778. https://bugs.webkit.org/show_bug.cgi?id=34527
  39779. No tests needed.
  39780. * platform/haiku/ContextMenuItemHaiku.cpp: Trailing white space, NULL -> 0
  39781. * platform/haiku/DragImageHaiku.cpp: Trailing white space.
  39782. * platform/haiku/FileChooserHaiku.cpp: Sorted headers.
  39783. * platform/haiku/LocalizedStringsHaiku.cpp: Needed to include NotImplemented.h
  39784. 2010-02-04 Enrica Casucci <enrica@apple.com>
  39785. Reviewed by Csaba Osztrogonac.
  39786. Fixed crash on QT introduced with the fix for
  39787. https://bugs.webkit.org/show_bug.cgi?id=34609
  39788. The test has been added with the original patch.
  39789. * platform/qt/ClipboardQt.cpp:
  39790. (WebCore::ClipboardQt::writePlainText): Added missing allocation of m_writeData.
  39791. 2010-02-04 Christian Dywan <christian@twotoasts.de>
  39792. Reviewed by Xan Lopez.
  39793. Conditionalize third party cookie policy for libsoup 2.29.90.
  39794. * platform/network/soup/CookieJarSoup.cpp:
  39795. (WebCore::setCookies):
  39796. * platform/network/soup/DNSSoup.cpp:
  39797. (WebCore::prefetchDNS):
  39798. * platform/network/soup/ResourceHandleSoup.cpp:
  39799. (WebCore::restartedCallback):
  39800. (WebCore::startHttp):
  39801. * platform/network/soup/ResourceRequestSoup.cpp:
  39802. (WebCore::ResourceRequest::toSoupMessage):
  39803. (WebCore::ResourceRequest::updateFromSoupMessage):
  39804. 2010-02-04 Christian Dywan <christian@twotoasts.de>
  39805. Rubber-stamped by Gustavo Noronha Silva.
  39806. Add ENABLE(VIDEO) guards around freeOwnedGPtr<GstElement> implementation.
  39807. * platform/gtk/GOwnPtrGtk.cpp:
  39808. 2010-02-04 Alexey Proskuryakov <ap@apple.com>
  39809. Reviewed by Darin Adler.
  39810. Assertion failure in CheckedRadioButtons::removeButton when using jQuery 1.4.1
  39811. https://bugs.webkit.org/show_bug.cgi?id=34520
  39812. Test: fast/dom/HTMLInputElement/cloned-input-checked-state.html
  39813. * dom/Element.cpp: (WebCore::Element::cloneElementWithoutChildren): Copy non-attribute
  39814. properties before attributes. Otherwise, copying "checked" attribute would make the cloned
  39815. node checked, unchecking original (they share a name, and are thus in the same radio group).
  39816. We do want the original to be unchecked, but we also want to know its original state in
  39817. HTMLInputElement::copyNonAttributeProperties().
  39818. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::copyNonAttributeProperties):
  39819. Use setChecked instead of plain assignment to prevent m_checked getting out of sync with
  39820. checkedRadioButtons. Also, copy field related to default checked state, so that m_checked
  39821. won't be overridden when copying attributes.
  39822. 2010-02-04 Kevin Ollivier <kevino@theolliviers.com>
  39823. [wx] Build fix after addition of Clipboard::writePlainText method.
  39824. * platform/wx/ClipboardWx.cpp:
  39825. (WebCore::ClipboardWx::writePlainText):
  39826. * platform/wx/ClipboardWx.h:
  39827. 2010-02-04 Enrica Casucci <enrica@apple.com>
  39828. Reviewed by Oliver Hunt.
  39829. REGRESSION: Dragging plain text into a styled text region does not acquire the correct style info.
  39830. <rdar://problem/7595685>
  39831. https://bugs.webkit.org/show_bug.cgi?id=34609
  39832. Test: editing/pasteboard/drop-inputtext-acquires-style.html
  39833. The dragging code did not distinguish the case of dragging the content of an input control
  39834. as a special case. The markup placed in the pasteboard included the style information.
  39835. I've modified the Clipboard class interface adding a new method writePlainText to match the
  39836. behavior of the copy and cut commands and modified the drag code to detect the special case.
  39837. I've modified all the platform specific implementations of the Clipboard class.
  39838. * dom/Clipboard.h: Added writePlainText pure virtual function.
  39839. * editing/Editor.cpp:
  39840. (WebCore::Editor::cut): Renamed nodeIsTextFormControl to isNodeInTextFormControl.
  39841. (WebCore::Editor::copy): Renamed nodeIsTextFormControl to isNodeInTextFormControl.
  39842. * editing/htmlediting.cpp:
  39843. (WebCore::isNodeInTextFormControl): Added, after removing the implementation with the old name
  39844. in Editor.cpp
  39845. * editing/htmlediting.h:
  39846. * page/DragController.cpp:
  39847. (WebCore::DragController::startDrag):
  39848. * platform/Pasteboard.h:
  39849. * platform/android/ClipboardAndroid.cpp:
  39850. (WebCore::ClipboardAndroid::writePlainText): Added.
  39851. * platform/android/ClipboardAndroid.h:
  39852. * platform/chromium/ClipboardChromium.cpp:
  39853. (WebCore::ClipboardChromium::writePlainText): Added.
  39854. * platform/chromium/ClipboardChromium.h:
  39855. * platform/gtk/ClipboardGtk.cpp:
  39856. (WebCore::ClipboardGtk::writePlainText): Added.
  39857. * platform/gtk/ClipboardGtk.h:
  39858. * platform/haiku/ClipboardHaiku.cpp:
  39859. (WebCore::ClipboardHaiku::writePlainText): Added.
  39860. * platform/haiku/ClipboardHaiku.h:
  39861. * platform/mac/ClipboardMac.h:
  39862. * platform/mac/ClipboardMac.mm:
  39863. (WebCore::ClipboardMac::writePlainText): Added.
  39864. * platform/mac/PasteboardMac.mm:
  39865. (WebCore::Pasteboard::writePlainText): Added helper function.
  39866. * platform/qt/ClipboardQt.cpp:
  39867. (WebCore::ClipboardQt::writePlainText): Added.
  39868. * platform/qt/ClipboardQt.h:
  39869. * platform/win/ClipboardWin.cpp:
  39870. (WebCore::ClipboardWin::writePlainText): Added.
  39871. * platform/win/ClipboardWin.h:
  39872. 2010-02-04 Steve Block <steveblock@google.com>
  39873. Reviewed by Nate Chapin.
  39874. Fix bug in V8 convertNPVariantToJValue when converting float and double types
  39875. https://bugs.webkit.org/show_bug.cgi?id=34593
  39876. No new tests, build fix only.
  39877. * bridge/jni/v8/JNIUtilityPrivate.cpp: Modified.
  39878. (JSC::Bindings::convertNPVariantToJValue): Modified. Use correct members of 'result' enum.
  39879. 2010-02-04 Chris Guillory <chris.guillory@google.com>
  39880. Reviewed by Darin Fisher.
  39881. [Chromium] Notify ChromeClientChromium of AccessibilityObject state
  39882. change notifications.
  39883. https://bugs.webkit.org/show_bug.cgi?id=34464
  39884. * accessibility/chromium/AXObjectCacheChromium.cpp:
  39885. (WebCore::toChromeClientChromium):
  39886. (WebCore::AXObjectCache::postPlatformNotification):
  39887. * page/chromium/ChromeClientChromium.h:
  39888. 2010-02-04 Stephen White <senorblanco@chromium.org>
  39889. Unreviewed, build fix for Chromium.
  39890. Revert r54341 ("[v8] Remove clear method from DOM object maps"),
  39891. since it causes the worker tests to fail on Chromium.
  39892. * bindings/v8/DOMData.h:
  39893. (WebCore::DOMData::removeObjectsFromWrapperMap):
  39894. * bindings/v8/DOMDataStore.h:
  39895. (WebCore::ChunkedTable::clear):
  39896. (WebCore::ChunkedTable::clearEntries):
  39897. (WebCore::DOMDataStore::IntrusiveDOMWrapperMap::clear):
  39898. (WebCore::DOMDataStore::IntrusiveDOMWrapperMap::ChunkedTableTraits::clear):
  39899. * bindings/v8/V8DOMMap.cpp:
  39900. (WebCore::removeAllDOMObjectsInCurrentThreadHelper):
  39901. (WebCore::removeAllDOMObjectsInCurrentThread):
  39902. * bindings/v8/V8DOMMap.h:
  39903. (WebCore::WeakReferenceMap::clear):
  39904. * bindings/v8/WorkerScriptController.cpp:
  39905. (WebCore::WorkerScriptController::~WorkerScriptController):
  39906. 2010-02-04 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
  39907. Reviewed by Xan Lopez.
  39908. [GTK] Crashes when an invalid hostname is pre-fetched
  39909. https://bugs.webkit.org/show_bug.cgi?id=34602
  39910. * platform/network/soup/DNSSoup.cpp:
  39911. (WebCore::prefetchDNS): NULL-check the SoupURI that is created
  39912. from the hostname; that will happen for invalid hostnames.
  39913. 2010-02-04 José Millán Soto <jmillan@igalia.com>
  39914. Reviewed by Xan Lopez.
  39915. [Gtk] webkitgtk crashed when Orca open
  39916. https://bugs.webkit.org/show_bug.cgi?id=34463
  39917. * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
  39918. (textForObject):
  39919. Checking if render objects are texts before calling toRenderText
  39920. 2010-02-04 Xan Lopez <xlopez@igalia.com>
  39921. Reviewed by Gustavo Noronha.
  39922. Set first party URI in all SoupMessages. This allows libsoup to
  39923. implement a "no third party cookies" policy in case it wants
  39924. to. Also start a non-JSC-specific, gtk-specific GOwnPtr module and
  39925. use it for SoupURI.
  39926. * platform/network/soup/CookieJarSoup.cpp:
  39927. (WebCore::setCookies):
  39928. * platform/network/soup/ResourceHandleSoup.cpp:
  39929. (WebCore::restartedCallback):
  39930. (WebCore::startHttp):
  39931. * platform/network/soup/ResourceRequestSoup.cpp:
  39932. (WebCore::ResourceRequest::toSoupMessage):
  39933. (WebCore::ResourceRequest::updateFromSoupMessage):
  39934. 2010-02-04 Pavel Feldman <pfeldman@chromium.org>
  39935. Reviewed by Timothy Hatcher.
  39936. Web Inspector: group cookies by domains, not frame's domains.
  39937. https://bugs.webkit.org/show_bug.cgi?id=34599
  39938. * inspector/front-end/CookieItemsView.js:
  39939. (WebInspector.CookieItemsView.prototype._cookiesForDomain):
  39940. * inspector/front-end/inspector.js:
  39941. (WebInspector.updateResource):
  39942. (WebInspector._addCookieDomain):
  39943. 2010-02-04 Nate Chapin <japhet@chromium.org>
  39944. Reviewed by Dimitri Glazkov.
  39945. [V8] Delete V8CustomBinding.h and all references to V8Custom
  39946. https://bugs.webkit.org/show_bug.cgi?id=32638
  39947. * bindings/v8/NPV8Object.cpp:
  39948. * bindings/v8/V8DOMWindowShell.h:
  39949. * bindings/v8/V8NPObject.cpp:
  39950. * bindings/v8/V8Utilities.cpp:
  39951. * bindings/v8/custom/V8AbstractWorkerCustom.cpp:
  39952. * bindings/v8/custom/V8AttrCustom.cpp:
  39953. * bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp:
  39954. * bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp:
  39955. * bindings/v8/custom/V8ClipboardCustom.cpp:
  39956. * bindings/v8/custom/V8CoordinatesCustom.cpp:
  39957. * bindings/v8/custom/V8CustomBinding.h: Removed.
  39958. * bindings/v8/custom/V8DOMApplicationCacheCustom.cpp:
  39959. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  39960. * bindings/v8/custom/V8DataGridColumnListCustom.cpp:
  39961. * bindings/v8/custom/V8DatabaseCustom.cpp:
  39962. * bindings/v8/custom/V8ElementCustom.cpp:
  39963. * bindings/v8/custom/V8EventSourceConstructor.cpp:
  39964. * bindings/v8/custom/V8EventSourceCustom.cpp:
  39965. * bindings/v8/custom/V8GeolocationCustom.cpp:
  39966. * bindings/v8/custom/V8HTMLAllCollectionCustom.cpp:
  39967. * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
  39968. (WebCore::v8HTMLAudioElementConstructorCallback):
  39969. (WebCore::V8HTMLAudioElementConstructor::GetTemplate):
  39970. * bindings/v8/custom/V8HTMLCollectionCustom.cpp:
  39971. * bindings/v8/custom/V8HTMLDataGridElementCustom.cpp:
  39972. * bindings/v8/custom/V8HTMLFrameElementCustom.cpp:
  39973. * bindings/v8/custom/V8HTMLIFrameElementCustom.cpp:
  39974. * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
  39975. (WebCore::v8HTMLImageElementConstructorCallback):
  39976. (WebCore::V8HTMLImageElementConstructor::GetTemplate):
  39977. * bindings/v8/custom/V8HTMLInputElementCustom.cpp:
  39978. * bindings/v8/custom/V8HTMLOptionElementConstructor.cpp:
  39979. (WebCore::v8HTMLOptionElementConstructorCallback):
  39980. (WebCore::V8HTMLOptionElementConstructor::GetTemplate):
  39981. * bindings/v8/custom/V8HTMLPlugInElementCustom.cpp:
  39982. * bindings/v8/custom/V8HistoryCustom.cpp:
  39983. * bindings/v8/custom/V8InspectorFrontendHostCustom.cpp:
  39984. * bindings/v8/custom/V8LocationCustom.cpp:
  39985. * bindings/v8/custom/V8MessagePortCustom.cpp:
  39986. * bindings/v8/custom/V8NodeCustom.cpp:
  39987. * bindings/v8/custom/V8NodeFilterCustom.cpp:
  39988. * bindings/v8/custom/V8SQLResultSetRowListCustom.cpp:
  39989. * bindings/v8/custom/V8SQLTransactionCustom.cpp:
  39990. * bindings/v8/custom/V8SVGElementInstanceCustom.cpp:
  39991. * bindings/v8/custom/V8SVGLengthCustom.cpp:
  39992. * bindings/v8/custom/V8SharedWorkerCustom.cpp:
  39993. * bindings/v8/custom/V8StorageCustom.cpp:
  39994. * bindings/v8/custom/V8WebGLArrayBufferCustom.cpp:
  39995. * bindings/v8/custom/V8WebGLArrayCustom.h:
  39996. * bindings/v8/custom/V8WebGLByteArrayCustom.cpp:
  39997. * bindings/v8/custom/V8WebGLFloatArrayCustom.cpp:
  39998. * bindings/v8/custom/V8WebGLIntArrayCustom.cpp:
  39999. * bindings/v8/custom/V8WebGLShortArrayCustom.cpp:
  40000. * bindings/v8/custom/V8WebGLUnsignedByteArrayCustom.cpp:
  40001. * bindings/v8/custom/V8WebGLUnsignedIntArrayCustom.cpp:
  40002. * bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp:
  40003. * bindings/v8/custom/V8WebKitPointConstructor.cpp:
  40004. * bindings/v8/custom/V8WorkerContextCustom.cpp:
  40005. * bindings/v8/custom/V8WorkerCustom.cpp:
  40006. * bindings/v8/custom/V8XMLHttpRequestConstructor.cpp:
  40007. * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
  40008. * bindings/v8/custom/V8XMLHttpRequestUploadCustom.cpp:
  40009. 2010-02-04 Ariya Hidayat <ariya.hidayat@gmail.com>
  40010. Reviewed by Simon Hausmann.
  40011. [Qt] Unnecessary QBrush construction for doing a solid fill
  40012. https://bugs.webkit.org/show_bug.cgi?id=34559
  40013. Use the similar trick like r37421, i.e. use the special brush for
  40014. solid color to avoid creating QBrush again and again.
  40015. * platform/graphics/qt/GraphicsContextQt.cpp:
  40016. (WebCore::GraphicsContext::setPlatformFillColor):
  40017. 2010-02-04 Dan Bernstein <mitz@apple.com>
  40018. Reviewed by Simon Fraser.
  40019. REGRESSION (r53718): When scrolling a tall window by page, the overlap between pages is too big
  40020. https://bugs.webkit.org/show_bug.cgi?id=34371
  40021. Allow ScrollbarTheme to cap the overlap between pages, and set a cap of
  40022. 40 in ScrollbarThemeMac.
  40023. * WebCore.base.exp: Export Scrollbar::maxOverlapBetweenPages().
  40024. * editing/EditorCommand.cpp:
  40025. (WebCore::verticalScrollDistance): Use Scrollbar methods instead of
  40026. constants, and cap the scroll distance if needed.
  40027. * platform/ScrollView.cpp:
  40028. (WebCore::ScrollView::updateScrollbars): Ditto.
  40029. (WebCore::ScrollView::wheelEvent): Ditto.
  40030. * platform/Scrollbar.cpp:
  40031. (WebCore::Scrollbar::maxOverlapBetweenPages): Added. Returns the
  40032. value from the native scrollbar theme.
  40033. * platform/Scrollbar.h: Replaced scroll amount constants with static methods.
  40034. (WebCore::Scrollbar::pixelsPerLineStep): Replaces cScrollbarPixelsPerLineStep.
  40035. (WebCore::Scrollbar::minFractionToStepWhenPaging): Replaces cFractionToStepWhenPaging.
  40036. * platform/ScrollbarTheme.h:
  40037. (WebCore::ScrollbarTheme::maxOverlapBetweenPages): A base implementation
  40038. that returns the largest int.
  40039. * platform/gtk/WheelEventGtk.cpp:
  40040. (WebCore::PlatformWheelEvent::PlatformWheelEvent): Use Scrollbar methods instead of
  40041. constants.
  40042. * platform/haiku/PlatformWheelEventHaiku.cpp:
  40043. (WebCore::PlatformWheelEvent::PlatformWheelEvent): Use Scrollbar methods instead of
  40044. constants.
  40045. * platform/mac/ScrollbarThemeMac.h:
  40046. (WebCore::ScrollbarThemeMac::maxOverlapBetweenPages): An override
  40047. that returns 40.
  40048. * platform/mac/WheelEventMac.mm:
  40049. (WebCore::PlatformWheelEvent::PlatformWheelEvent): Use
  40050. Scrollbar::pixelsPerLineStep() instead of cScrollbarPixelsPerLineStep.
  40051. * platform/wx/MouseWheelEventWx.cpp:
  40052. (WebCore::PlatformWheelEvent::PlatformWheelEvent): Use Scrollbar methods instead of
  40053. constants.
  40054. * platform/wx/ScrollViewWx.cpp:
  40055. (WebCore::ScrollView::ScrollViewPrivate::OnScrollWinEvents): Use Scrollbar
  40056. methods instead of constants, and cap the scroll distance if needed.
  40057. * rendering/RenderLayer.cpp:
  40058. (WebCore::RenderLayer::updateScrollInfoAfterLayout): Ditto.
  40059. 2010-02-04 No'am Rosenthal <noam.rosenthal@nokia.com>
  40060. Reviewed by Ariya Hidayat.
  40061. [Qt] Tuning and optimizations to GraphicsLayerQt. Reduce unnecessary
  40062. recaching, remove QTimer::singleShot and QPixmap::scaled, more
  40063. accurate strategy of handling transform operation blends. Rotating a
  40064. bordered-table, for example, now runs at 50FPS instead of 40FPS on Maemo5.
  40065. https://bugs.webkit.org/show_bug.cgi?id=34062
  40066. This is tested by https://bugs.webkit.org/show_bug.cgi?id=34450, fps measurements.
  40067. * platform/graphics/qt/GraphicsLayerQt.cpp:
  40068. (WebCore::GraphicsLayerQtImpl::flushChanges): Fine-tune caching
  40069. (WebCore::TransformAnimationQt::TransformAnimationQt): transform bugs
  40070. (WebCore::OpacityAnimationQt::updateState): style change
  40071. 2010-02-04 Pavel Feldman <pfeldman@chromium.org>
  40072. Reviewed by Timothy Hatcher.
  40073. Web Inspector: Cookies for resources are not shown in storage panel.
  40074. https://bugs.webkit.org/show_bug.cgi?id=34594
  40075. * inspector/InspectorController.cpp:
  40076. (WebCore::InspectorController::getCookies):
  40077. * inspector/InspectorResource.cpp:
  40078. (WebCore::InspectorResource::updateScriptObject):
  40079. (WebCore::InspectorResource::cachedResource):
  40080. * inspector/InspectorResource.h:
  40081. (WebCore::InspectorResource::requestURL):
  40082. 2010-02-04 Anton Muhin <antonm@chromium.org>
  40083. Reviewed by Adam Barth.
  40084. [v8] Remove clear method from DOM object maps
  40085. https://bugs.webkit.org/show_bug.cgi?id=34530
  40086. No new tests. Should be covered by existent testing infrastructure.
  40087. * bindings/v8/DOMData.h:
  40088. * bindings/v8/DOMDataStore.h:
  40089. * bindings/v8/V8DOMMap.cpp:
  40090. * bindings/v8/V8DOMMap.h:
  40091. * bindings/v8/WorkerScriptController.cpp:
  40092. (WebCore::WorkerScriptController::~WorkerScriptController):
  40093. 2010-02-04 Holger Hans Peter Freyther <zecke@selfish.org>
  40094. Reviewed by Xan Lopez.
  40095. [Gtk] Check if the renderer() exists in textForObject.
  40096. This is fixing a crash in the textForObject method. It can
  40097. happen when inspecting AtkObjects in the accerciser, then
  40098. navigating to a new page and still inspecting the old tree.
  40099. In this case the AccessibilityObjectWrapperAtk was still
  40100. valid but the included renderer() was returning 0. Add a
  40101. check for the accObject->renderer() before trying to use
  40102. the result.
  40103. * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
  40104. (textForObject):
  40105. 2010-02-04 Yury Semikhatsky <yurys@chromium.org>
  40106. Reviewed by Pavel Feldman.
  40107. Provide strongly typed C++ interface for inspector's injected script.
  40108. https://bugs.webkit.org/show_bug.cgi?id=33616
  40109. * GNUmakefile.am:
  40110. * WebCore.gypi:
  40111. * WebCore.pro:
  40112. * WebCore.vcproj/WebCore.vcproj:
  40113. * WebCore.xcodeproj/project.pbxproj:
  40114. * bindings/js/JSInjectedScriptHostCustom.cpp:
  40115. (WebCore::InjectedScriptHost::injectedScriptFor):
  40116. * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
  40117. (WebCore::InjectedScriptHost::injectedScriptFor):
  40118. * inspector/InjectedScript.cpp: Added.
  40119. (WebCore::InjectedScript::InjectedScript):
  40120. (WebCore::InjectedScript::dispatch):
  40121. (WebCore::InjectedScript::callFrames):
  40122. (WebCore::InjectedScript::wrapAndStringifyForConsole):
  40123. (WebCore::InjectedScript::releaseWrapperObjectGroup):
  40124. * inspector/InjectedScript.h: Added.
  40125. (WebCore::InjectedScript::InjectedScript):
  40126. (WebCore::InjectedScript::~InjectedScript):
  40127. (WebCore::InjectedScript::hasNoValue):
  40128. * inspector/InjectedScriptHost.cpp:
  40129. (WebCore::InjectedScriptHost::injectedScriptForId):
  40130. (WebCore::InjectedScriptHost::releaseWrapperObjectGroup):
  40131. * inspector/InjectedScriptHost.h:
  40132. * inspector/InspectorBackend.cpp:
  40133. (WebCore::InspectorBackend::dispatchOnInjectedScript):
  40134. * inspector/InspectorController.cpp:
  40135. (WebCore::InspectorController::InspectorController):
  40136. (WebCore::InspectorController::~InspectorController):
  40137. (WebCore::InspectorController::inspectedPageDestroyed):
  40138. (WebCore::InspectorController::windowScriptObjectAvailable):
  40139. (WebCore::InspectorController::scriptObjectReady):
  40140. (WebCore::InspectorController::setFrontendProxyObject):
  40141. (WebCore::InspectorController::close):
  40142. (WebCore::InspectorController::getProfile):
  40143. (WebCore::InspectorController::enableDebugger):
  40144. (WebCore::InspectorController::didPause):
  40145. (WebCore::InspectorController::injectedScriptForNodeId):
  40146. * inspector/InspectorController.h:
  40147. (WebCore::InspectorController::frontendScriptState):
  40148. * inspector/InspectorFrontend.cpp:
  40149. (WebCore::InspectorFrontend::addConsoleMessage):
  40150. * inspector/front-end/InjectedScript.js:
  40151. (injectedScriptConstructor):
  40152. 2010-02-04 Philippe Normand <pnormand@igalia.com>
  40153. Rubber stamped by Xan Lopez.
  40154. Missing include, build fix after landing of patch from the bug 34435.
  40155. * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
  40156. 2010-02-02 Philippe Normand <pnormand@igalia.com>
  40157. Reviewed by Gustavo Noronha Silva.
  40158. [Gtk] libsoup critical warning in media player http cookies injection code
  40159. https://bugs.webkit.org/show_bug.cgi?id=34435
  40160. Fixed the critical warning and refactored the
  40161. User-Agent/Referer/cookies injection code, in that order. Previous
  40162. order (cookies first) was wrong because if cookies injection could
  40163. not be done neither the User-Agent nor Referer were injected. Also
  40164. started a non-JSC-specific, gtk-specific GOwnPtr module.
  40165. * GNUmakefile.am:
  40166. * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
  40167. (WebCore::mediaPlayerPrivateSourceChangedCallback):
  40168. * platform/gtk/GOwnPtrGtk.cpp: Added.
  40169. (WTF::SoupURI):
  40170. (WTF::GstElement):
  40171. * platform/gtk/GOwnPtrGtk.h: Added.
  40172. 2010-02-04 Mikhail Naganov <mnaganov@chromium.org>
  40173. Reviewed by Timothy Hatcher.
  40174. Put JSC-specific debugger & profiler code under "USE(JSC)" defines.
  40175. The plan is to enable "JAVASCRIPT_DEBUGGER" in Chromium and then
  40176. make this code engine-agnostic.
  40177. https://bugs.webkit.org/show_bug.cgi?id=34531
  40178. * inspector/InjectedScriptHost.cpp:
  40179. * inspector/InjectedScriptHost.h:
  40180. * inspector/InspectorBackend.cpp:
  40181. * inspector/InspectorBackend.h:
  40182. * inspector/InspectorController.cpp:
  40183. (WebCore::InspectorController::InspectorController):
  40184. (WebCore::InspectorController::setWindowVisible):
  40185. (WebCore::InspectorController::scriptObjectReady):
  40186. (WebCore::InspectorController::close):
  40187. (WebCore::InspectorController::didCommitLoad):
  40188. * inspector/InspectorController.h:
  40189. * inspector/InspectorFrontend.cpp:
  40190. * inspector/InspectorFrontend.h:
  40191. * inspector/JavaScriptCallFrame.cpp:
  40192. * inspector/JavaScriptCallFrame.h:
  40193. * inspector/JavaScriptDebugListener.h:
  40194. * inspector/JavaScriptDebugServer.cpp:
  40195. * inspector/JavaScriptDebugServer.h:
  40196. * inspector/JavaScriptProfile.cpp:
  40197. * inspector/JavaScriptProfile.h:
  40198. * inspector/JavaScriptProfileNode.cpp:
  40199. * inspector/JavaScriptProfileNode.h:
  40200. * loader/FrameLoader.cpp:
  40201. (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
  40202. * page/Page.cpp:
  40203. (WebCore::Page::Page):
  40204. 2010-02-03 Nicholas Young <nicholas.young@nokia.com>
  40205. Reviewed by Eric Carlson.
  40206. Defer formatting of times displayed on media controls to the current theme.
  40207. https://bugs.webkit.org/show_bug.cgi?id=34405
  40208. No new tests needed. Refactoring Only.
  40209. * rendering/MediaControlElements.cpp: Removed formatTime()
  40210. (WebCore::MediaControlTimeDisplayElement::setCurrentValue): No longer sets inner text
  40211. * rendering/MediaControlElements.h:
  40212. * rendering/RenderMedia.cpp:
  40213. (WebCore::RenderMedia::updateTimeDisplay): Asks the theme to format the time display elements
  40214. * rendering/RenderTheme.cpp:
  40215. (WebCore::RenderTheme::formatMediaControlsTime): new virtual method
  40216. (WebCore::RenderTheme::formatMediaControlsCurrentTime): new virtual method
  40217. (WebCore::RenderTheme::formatMediaControlsRemainingTime): new virtual method
  40218. * rendering/RenderTheme.h:
  40219. 2010-02-03 Steve Falkenburg <sfalken@apple.com>
  40220. Windows Debug_All build fix.
  40221. * platform/graphics/win/WKCACFLayer.cpp:
  40222. 2010-02-03 Brady Eidson <beidson@apple.com>
  40223. Reviewed by Alexey Proskuryakov.
  40224. REGRESSION (r51644): WebCore/manual-tests/linkjump-1.html fails
  40225. <rdar://problem/7595694> and https://bugs.webkit.org/show_bug.cgi?id=34550
  40226. Tests: fast/loader/document-with-fragment-url-1.html
  40227. fast/loader/document-with-fragment-url-2.html
  40228. fast/loader/document-with-fragment-url-3.html
  40229. fast/loader/document-with-fragment-url-4.html
  40230. * platform/KURL.cpp:
  40231. (WebCore::KURL::init): When resolving new URL from an empty reference relative to an absolute URL,
  40232. any fragment identifier from the absolute URL should be removed from the resulting resolution.
  40233. 2010-02-03 Kwang Yul Seo <skyul@company100.net>
  40234. Reviewed by Eric Seidel.
  40235. [BREWMP] Port TextBreakIteratorInternalICU
  40236. https://bugs.webkit.org/show_bug.cgi?id=34515
  40237. Port TextBreakIteratorInternalICU.
  40238. * platform/text/brew/TextBreakIteratorInternalICUBrew.cpp: Added.
  40239. (WebCore::currentSearchLocaleID):
  40240. (WebCore::currentTextBreakLocaleID):
  40241. 2010-02-03 Adele Peterson <adele@apple.com>
  40242. Reviewed by Simon Fraser.
  40243. Fix for <rdar://problem/7594212>
  40244. https://bugs.webkit.org/show_bug.cgi?id=34549 - CSS counters crash at http://www.w3.org/TR/css3-content/
  40245. CrashTracer: [USER] 20 crashes in Safari at com.apple.WebCore: WebCore::CounterNode::insertAfter + 319
  40246. Test: fast/css/counters/counter-before-selector-crash.html
  40247. * rendering/RenderCounter.cpp: (WebCore::updateCounters): nil check.
  40248. 2010-02-03 Adele Peterson <adele@apple.com>
  40249. Reviewed by Brady Eidson.
  40250. Initialize the variable in the last checkin to false. I didn't realize DRT relies on this being false.
  40251. So ports that want visited link tracking need to set that flag.
  40252. * page/PageGroup.cpp:
  40253. 2010-02-03 Adele Peterson <adele@apple.com>
  40254. Reviewed by Brady Eidson.
  40255. Fix for https://bugs.webkit.org/show_bug.cgi?id=34547
  40256. static shouldTrackVisitedLinks is not initialized
  40257. For ports that don't call into WebKit to initialize this,
  40258. we should initialize to true so they get the visited link behavior by default.
  40259. * page/PageGroup.cpp:
  40260. 2010-02-03 Dan Bernstein <mitz@apple.com>
  40261. Reviewed by Simon Fraser.
  40262. <rdar://problem/7577604> Drag and Drop: background elements are bleeding through
  40263. https://bugs.webkit.org/show_bug.cgi?id=34546
  40264. * manual-tests/drag-image-table-part-decorations.html: Added.
  40265. * rendering/RenderFieldset.cpp:
  40266. (WebCore::RenderFieldset::paintBoxDecorations): Bail out if this object shouldn’t
  40267. paint within the current painting root.
  40268. * rendering/RenderTable.cpp:
  40269. (WebCore::RenderTable::paintBoxDecorations): Ditto.
  40270. * rendering/RenderTableCell.cpp:
  40271. (WebCore::RenderTableCell::paintBackgroundsBehindCell): Ditto.
  40272. (WebCore::RenderTableCell::paintBoxDecorations): Ditto.
  40273. 2010-02-03 Nate Chapin <japhet@chromium.org>
  40274. Unreviewed, Chromium mac build fix.
  40275. [V8] Remove unused V8Proxy* variable from generated wrapping code.
  40276. * bindings/scripts/CodeGeneratorV8.pm:
  40277. 2010-02-03 Nate Chapin <japhet@chromium.org>
  40278. Reviewed by Dimitri Glazkov.
  40279. [V8] Use toV8() to wrap in the custom bindings, and remove
  40280. the old wrapping code from V8DOMWrapper.
  40281. https://bugs.webkit.org/show_bug.cgi?id=32563
  40282. * bindings/scripts/CodeGeneratorV8.pm:
  40283. * bindings/v8/ScriptController.cpp:
  40284. * bindings/v8/ScriptObject.cpp:
  40285. * bindings/v8/V8AbstractEventListener.cpp:
  40286. * bindings/v8/V8Collection.h:
  40287. * bindings/v8/V8DOMWindowShell.cpp:
  40288. * bindings/v8/V8DOMWrapper.cpp:
  40289. * bindings/v8/V8DOMWrapper.h:
  40290. * bindings/v8/V8NodeFilterCondition.cpp:
  40291. * bindings/v8/V8Proxy.cpp:
  40292. * bindings/v8/WorkerContextExecutionProxy.h
  40293. * bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp:
  40294. * bindings/v8/custom/V8CustomPositionCallback.cpp:
  40295. * bindings/v8/custom/V8CustomPositionErrorCallback.cpp:
  40296. * bindings/v8/custom/V8CustomSQLStatementCallback.cpp:
  40297. * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp:
  40298. * bindings/v8/custom/V8CustomSQLTransactionCallback.cpp:
  40299. * bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp:
  40300. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  40301. * bindings/v8/custom/V8DataGridColumnListCustom.cpp:
  40302. * bindings/v8/custom/V8DocumentCustom.cpp:
  40303. * bindings/v8/custom/V8DocumentLocationCustom.cpp:
  40304. * bindings/v8/custom/V8ElementCustom.cpp:
  40305. * bindings/v8/custom/V8EventCustom.cpp:
  40306. * bindings/v8/custom/V8HTMLAllCollectionCustom.cpp:
  40307. * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
  40308. * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
  40309. * bindings/v8/custom/V8HTMLCollectionCustom.cpp:
  40310. * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
  40311. * bindings/v8/custom/V8HTMLFormElementCustom.cpp:
  40312. * bindings/v8/custom/V8HTMLFrameSetElementCustom.cpp:
  40313. * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
  40314. * bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:
  40315. * bindings/v8/custom/V8HTMLSelectElementCustom.cpp:
  40316. * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
  40317. * bindings/v8/custom/V8MessageChannelConstructor.cpp:
  40318. * bindings/v8/custom/V8MessageEventCustom.cpp:
  40319. * bindings/v8/custom/V8NamedNodeMapCustom.cpp:
  40320. * bindings/v8/custom/V8NodeIteratorCustom.cpp:
  40321. * bindings/v8/custom/V8NodeListCustom.cpp:
  40322. * bindings/v8/custom/V8NotificationCenterCustom.cpp:
  40323. * bindings/v8/custom/V8SVGMatrixCustom.cpp:
  40324. * bindings/v8/custom/V8StyleSheetListCustom.cpp:
  40325. * bindings/v8/custom/V8TreeWalkerCustom.cpp:
  40326. * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
  40327. * bindings/v8/custom/V8XSLTProcessorCustom.cpp:
  40328. 2010-02-03 Sam Weinig <sam@webkit.org>
  40329. Reviewed by Anders Carlsson.
  40330. Fix drawing buttons in viewless WebKit.
  40331. * platform/mac/ThemeMac.mm:
  40332. (WebCore::paintButton): If there is no view, make sure to flip the
  40333. context so that the button is drawn correctly.
  40334. 2010-02-03 Yael Aharon <yael.aharon@nokia.com>
  40335. Reviewed by Kenneth Rohde Christiansen.
  40336. [Qt] WebSockets : Buffer the data in WebKit instead of QtNetwork
  40337. https://bugs.webkit.org/show_bug.cgi?id=34425
  40338. Reverting r54279, it was a misunderstanding.
  40339. * platform/network/qt/SocketStreamHandlePrivate.h:
  40340. * platform/network/qt/SocketStreamHandleQt.cpp:
  40341. (WebCore::SocketStreamHandlePrivate::SocketStreamHandlePrivate):
  40342. (WebCore::SocketStreamHandlePrivate::send):
  40343. (WebCore::SocketStreamHandlePrivate::close):
  40344. 2010-02-03 Drew Wilson <atwilson@chromium.org>
  40345. Reviewed by Alexey Proskuryakov.
  40346. SharedWorkerScriptLoader should not be an ActiveDOMObject
  40347. https://bugs.webkit.org/show_bug.cgi?id=34513
  40348. Test: Existing tests suffice (fixes test downstream in Chrome).
  40349. * workers/DefaultSharedWorkerRepository.cpp:
  40350. (WebCore::SharedWorkerScriptLoader::SharedWorkerScriptLoader):
  40351. Changed to no longer derive from ActiveDOMObject (handles its own refcounting).
  40352. (WebCore::SharedWorkerScriptLoader::load):
  40353. Now increments own refcount when a load is pending.
  40354. (WebCore::SharedWorkerScriptLoader::notifyFinished):
  40355. Changed to decrement refcount when load is complete.
  40356. * workers/WorkerScriptLoaderClient.h:
  40357. Documentation change about reliability of notifyFinished() when used from worker context.
  40358. 2010-02-03 Pavel Feldman <pfeldman@chromium.org>
  40359. Reviewed by Timothy Hatcher.
  40360. Web Inspector: Inspector renders blank scripts on reloading the webpage.
  40361. https://bugs.webkit.org/show_bug.cgi?id=34537
  40362. * inspector/front-end/ResourcesPanel.js:
  40363. (WebInspector.ResourcesPanel.prototype.recreateViewForResourceIfNeeded):
  40364. 2010-02-03 Yury Semikhatsky <yurys@chromium.org>
  40365. Reviewed by Pavel Feldman.
  40366. Provide strongly typed C++ interface for inspector's injected script.
  40367. https://bugs.webkit.org/show_bug.cgi?id=33616
  40368. * WebCore.gypi:
  40369. * WebCore.pro:
  40370. * WebCore.vcproj/WebCore.vcproj:
  40371. * WebCore.xcodeproj/project.pbxproj:
  40372. * bindings/js/JSInjectedScriptHostCustom.cpp:
  40373. (WebCore::InjectedScriptHost::injectedScriptFor):
  40374. * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
  40375. (WebCore::InjectedScriptHost::injectedScriptFor):
  40376. * inspector/InjectedScript.cpp: Added.
  40377. (WebCore::InjectedScript::InjectedScript):
  40378. (WebCore::InjectedScript::dispatch):
  40379. (WebCore::InjectedScript::callFrames):
  40380. (WebCore::InjectedScript::wrapAndStringify):
  40381. (WebCore::InjectedScript::releaseWrapperObjectGroup):
  40382. * inspector/InjectedScript.h: Added.
  40383. (WebCore::InjectedScript::InjectedScript):
  40384. (WebCore::InjectedScript::~InjectedScript):
  40385. (WebCore::InjectedScript::hasNoValue):
  40386. * inspector/InjectedScriptHost.cpp:
  40387. (WebCore::InjectedScriptHost::injectedScriptForId):
  40388. (WebCore::InjectedScriptHost::releaseWrapperObjectGroup):
  40389. * inspector/InjectedScriptHost.h:
  40390. * inspector/InspectorBackend.cpp:
  40391. (WebCore::InspectorBackend::dispatchOnInjectedScript):
  40392. * inspector/InspectorController.cpp:
  40393. (WebCore::InspectorController::InspectorController):
  40394. (WebCore::InspectorController::~InspectorController):
  40395. (WebCore::InspectorController::inspectedPageDestroyed):
  40396. (WebCore::InspectorController::windowScriptObjectAvailable):
  40397. (WebCore::InspectorController::scriptObjectReady):
  40398. (WebCore::InspectorController::setFrontendProxyObject):
  40399. (WebCore::InspectorController::close):
  40400. (WebCore::InspectorController::getProfile):
  40401. (WebCore::InspectorController::enableDebugger):
  40402. (WebCore::InspectorController::didPause):
  40403. (WebCore::InspectorController::injectedScriptForNodeId):
  40404. * inspector/InspectorController.h:
  40405. (WebCore::InspectorController::frontendScriptState):
  40406. * inspector/InspectorFrontend.cpp:
  40407. (WebCore::InspectorFrontend::addConsoleMessage):
  40408. 2010-02-03 Andras Becsi <abecsi@webkit.org>
  40409. Unreviewed build fix.
  40410. [Qt] Roll-out r54281 because it broke the build on the Qt Release bot.
  40411. * platform/graphics/qt/GraphicsLayerQt.cpp:
  40412. (WebCore::GraphicsLayerQtImpl::State::State):
  40413. (WebCore::GraphicsLayerQtImpl::GraphicsLayerQtImpl):
  40414. (WebCore::GraphicsLayerQtImpl::setBaseTransform):
  40415. (WebCore::GraphicsLayerQtImpl::drawContents):
  40416. (WebCore::GraphicsLayerQtImpl::notifyChange):
  40417. (WebCore::GraphicsLayerQtImpl::flushChanges):
  40418. (WebCore::GraphicsLayerQt::setNeedsDisplayInRect):
  40419. (WebCore::applyTimingFunction):
  40420. (WebCore::webkitAnimationToQtAnimationValue):
  40421. (WebCore::AnimationQtBase::updateState):
  40422. (WebCore::AnimationQt::updateCurrentTime):
  40423. (WebCore::TransformAnimationQt::TransformAnimationQt):
  40424. (WebCore::TransformAnimationQt::~TransformAnimationQt):
  40425. (WebCore::TransformAnimationQt::applyFrame):
  40426. (WebCore::TransformAnimationQt::updateState):
  40427. (WebCore::OpacityAnimationQt::updateState):
  40428. (WebCore::GraphicsLayerQt::pauseAnimation):
  40429. 2010-02-02 Bryan Yeung <bryeung@google.com>
  40430. Reviewed by Darin Adler.
  40431. Avoid using an invalidated KURL object in baseURI.
  40432. https://bugs.webkit.org/show_bug.cgi?id=34492
  40433. This change fixes baseURI for Chromium (where the KURL implementation
  40434. does not allow invalid KURLs to carry relative paths). This is
  40435. regression tested by
  40436. LayoutTests/svg/W3C-SVG-1.1/struct-image-07-t.svg
  40437. This is a re-application of this patch since it was mistakenly identified as
  40438. the cause of a big chromium test regression and rolled out in r54264.
  40439. * dom/Element.cpp:
  40440. (WebCore::Element::baseURI):
  40441. 2010-02-02 Joel Stanley <joel@jms.id.au>
  40442. Reviewed by David Levin.
  40443. [Chromium] Make setCaretBlinkInterval static.
  40444. https://bugs.webkit.org/show_bug.cgi?id=31704
  40445. This is so it can be called from the newly exposed Chromium API setter
  40446. method.
  40447. * rendering/RenderThemeChromiumLinux.cpp:
  40448. * rendering/RenderThemeChromiumLinux.h:
  40449. 2010-02-02 Yael Aharon <yael.aharon@nokia.com>
  40450. Reviewed by Kenneth Rohde Christiansen.
  40451. [Qt] WebSockets : Buffer the data in WebKit instead of QtNetwork
  40452. https://bugs.webkit.org/show_bug.cgi?id=34425
  40453. Buffer the sent data in SocketStreamHandlePrivate instead of relying on
  40454. the network layer to do it. This is more robust and more consistent with how
  40455. Qt's HTTP stack works.
  40456. Close the socket in SocketStreamHandlePrivate::close() regardless of its state.
  40457. No new tests, since no new functionality is introduced.
  40458. * platform/network/qt/SocketStreamHandlePrivate.h:
  40459. * platform/network/qt/SocketStreamHandleQt.cpp:
  40460. (WebCore::SocketStreamHandlePrivate::SocketStreamHandlePrivate):
  40461. (WebCore::SocketStreamHandlePrivate::send):
  40462. (WebCore::SocketStreamHandlePrivate::close):
  40463. (WebCore::SocketStreamHandlePrivate::socketBytesWritten):
  40464. 2010-02-03 Shinichiro Hamaji <hamaji@chromium.org>
  40465. Unreviewed revert of r54259 as it seems to break chromium's unit tests.
  40466. The tests pass with r54257 but fail with r54260.
  40467. As r54258 and r54260 don't touch code, I'm reverting this change.
  40468. [V8] Generate toV8 conversion helpers, a la JSC bindings.
  40469. https://bugs.webkit.org/show_bug.cgi?id=32563
  40470. * bindings/v8/ScriptController.cpp:
  40471. (WebCore::ScriptController::processingUserGesture):
  40472. (WebCore::createScriptObject):
  40473. (WebCore::ScriptController::createScriptObjectForPluginElement):
  40474. * bindings/v8/ScriptObject.cpp:
  40475. (WebCore::ScriptGlobalObject::set):
  40476. * bindings/v8/V8AbstractEventListener.cpp:
  40477. (WebCore::V8AbstractEventListener::handleEvent):
  40478. * bindings/v8/V8Collection.h:
  40479. (WebCore::getV8Object):
  40480. (WebCore::toNativeCollection):
  40481. (WebCore::getNamedPropertyOfCollection):
  40482. (WebCore::collectionNamedPropertyGetter):
  40483. (WebCore::getIndexedPropertyOfCollection):
  40484. (WebCore::collectionIndexedPropertyGetter):
  40485. (WebCore::nodeCollectionIndexedPropertyEnumerator):
  40486. (WebCore::collectionIndexedPropertyEnumerator):
  40487. (WebCore::collectionStringOrNullIndexedPropertyGetter):
  40488. (WebCore::collectionStringIndexedPropertyGetter):
  40489. (WebCore::setCollectionIndexedGetter):
  40490. (WebCore::setCollectionNamedGetter):
  40491. (WebCore::setCollectionStringOrNullIndexedGetter):
  40492. (WebCore::setCollectionStringIndexedGetter):
  40493. * bindings/v8/V8DOMWindowShell.cpp:
  40494. (WebCore::V8DOMWindowShell::updateDocumentWrapperCache):
  40495. * bindings/v8/V8DOMWrapper.cpp:
  40496. (WebCore::downcastSVGPathSeg):
  40497. (WebCore::V8DOMWrapper::convertSVGElementInstanceToV8Object):
  40498. (WebCore::V8DOMWrapper::convertSVGObjectWithContextToV8Object):
  40499. (WebCore::V8DOMWrapper::convertToV8Object):
  40500. (WebCore::V8DOMWrapper::instantiateV8Object):
  40501. (WebCore::V8DOMWrapper::isDOMEventWrapper):
  40502. (WebCore::V8DOMWrapper::htmlElementType):
  40503. (WebCore::V8DOMWrapper::svgElementType):
  40504. (WebCore::V8DOMWrapper::convertEventToV8Object):
  40505. (WebCore::):
  40506. (WebCore::V8DOMWrapper::convertDocumentToV8Object):
  40507. (WebCore::V8DOMWrapper::convertNodeToV8Object):
  40508. (WebCore::V8DOMWrapper::convertNewNodeToV8Object):
  40509. (WebCore::V8DOMWrapper::convertEventListenerToV8Object):
  40510. (WebCore::V8DOMWrapper::convertDOMImplementationToV8Object):
  40511. (WebCore::V8DOMWrapper::convertStyleSheetToV8Object):
  40512. (WebCore::V8DOMWrapper::convertCSSValueToV8Object):
  40513. (WebCore::V8DOMWrapper::convertCSSRuleToV8Object):
  40514. (WebCore::V8DOMWrapper::convertWindowToV8Object):
  40515. (WebCore::V8DOMWrapper::convertNamedNodeMapToV8Object):
  40516. * bindings/v8/V8DOMWrapper.h:
  40517. (WebCore::V8DOMWrapper::convertToV8Object):
  40518. (WebCore::V8DOMWrapper::convertNodeToV8Object):
  40519. (WebCore::V8DOMWrapper::convertNewNodeToV8Object):
  40520. (WebCore::V8DOMWrapper::convertEventToV8Object):
  40521. (WebCore::V8DOMWrapper::convertEventListenerToV8Object):
  40522. (WebCore::V8DOMWrapper::instantiateV8Object):
  40523. * bindings/v8/V8NodeFilterCondition.cpp:
  40524. (WebCore::V8NodeFilterCondition::acceptNode):
  40525. * bindings/v8/V8Proxy.cpp:
  40526. (WebCore::V8Proxy::setDOMException):
  40527. * bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp:
  40528. (WebCore::toV8Object):
  40529. (WebCore::V8CanvasRenderingContext2D::createPatternCallback):
  40530. * bindings/v8/custom/V8CustomPositionCallback.cpp:
  40531. (WebCore::V8CustomPositionCallback::handleEvent):
  40532. * bindings/v8/custom/V8CustomPositionErrorCallback.cpp:
  40533. (WebCore::V8CustomPositionErrorCallback::handleEvent):
  40534. * bindings/v8/custom/V8CustomSQLStatementCallback.cpp:
  40535. (WebCore::V8CustomSQLStatementCallback::handleEvent):
  40536. * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp:
  40537. (WebCore::V8CustomSQLStatementErrorCallback::handleEvent):
  40538. * bindings/v8/custom/V8CustomSQLTransactionCallback.cpp:
  40539. (WebCore::V8CustomSQLTransactionCallback::handleEvent):
  40540. * bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp:
  40541. (WebCore::V8CustomSQLTransactionErrorCallback::handleEvent):
  40542. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  40543. (WebCore::V8DOMWindow::openCallback):
  40544. (WebCore::V8DOMWindow::indexedPropertyGetter):
  40545. (WebCore::V8DOMWindow::namedPropertyGetter):
  40546. * bindings/v8/custom/V8DataGridColumnListCustom.cpp:
  40547. (WebCore::NAMED_PROPERTY_GETTER):
  40548. * bindings/v8/custom/V8DocumentCustom.cpp:
  40549. (WebCore::V8Document::evaluateCallback):
  40550. (WebCore::V8Document::getCSSCanvasContextCallback):
  40551. (WebCore::V8Document::implementationAccessorGetter):
  40552. * bindings/v8/custom/V8DocumentLocationCustom.cpp:
  40553. (WebCore::V8Document::locationAccessorGetter):
  40554. * bindings/v8/custom/V8ElementCustom.cpp:
  40555. (WebCore::V8Element::setAttributeNodeCallback):
  40556. (WebCore::V8Element::setAttributeNodeNSCallback):
  40557. * bindings/v8/custom/V8EventCustom.cpp:
  40558. (WebCore::V8Event::dataTransferAccessorGetter):
  40559. (WebCore::V8Event::clipboardDataAccessorGetter):
  40560. * bindings/v8/custom/V8HTMLAllCollectionCustom.cpp:
  40561. (WebCore::getNamedItems):
  40562. (WebCore::getItem):
  40563. (WebCore::V8HTMLAllCollection::callAsFunctionCallback):
  40564. * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
  40565. (WebCore::V8Custom::v8HTMLAudioElementConstructorCallback):
  40566. * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
  40567. (WebCore::V8HTMLCanvasElement::getContextCallback):
  40568. * bindings/v8/custom/V8HTMLCollectionCustom.cpp:
  40569. (WebCore::getNamedItems):
  40570. (WebCore::getItem):
  40571. (WebCore::V8HTMLCollection::callAsFunctionCallback):
  40572. * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
  40573. (WebCore::V8HTMLDocument::namedPropertyGetter):
  40574. (WebCore::V8HTMLDocument::allAccessorGetter):
  40575. * bindings/v8/custom/V8HTMLFormElementCustom.cpp:
  40576. (WebCore::V8HTMLFormElement::indexedPropertyGetter):
  40577. (WebCore::V8HTMLFormElement::namedPropertyGetter):
  40578. * bindings/v8/custom/V8HTMLFrameSetElementCustom.cpp:
  40579. (WebCore::V8HTMLFrameSetElement::namedPropertyGetter):
  40580. * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
  40581. (WebCore::V8Custom::v8HTMLImageElementConstructorCallback):
  40582. * bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:
  40583. (WebCore::V8HTMLOptionsCollection::indexedPropertyGetter):
  40584. * bindings/v8/custom/V8HTMLSelectElementCustom.cpp:
  40585. (WebCore::V8HTMLSelectElement::namedPropertyGetter):
  40586. (WebCore::V8HTMLSelectElement::indexedPropertyGetter):
  40587. * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
  40588. (WebCore::createInjectedScript):
  40589. (WebCore::V8InjectedScriptHost::nodeForIdCallback):
  40590. (WebCore::V8InjectedScriptHost::databaseForIdCallback):
  40591. * bindings/v8/custom/V8MessageChannelConstructor.cpp:
  40592. (WebCore::V8MessageChannel::constructorCallback):
  40593. * bindings/v8/custom/V8MessageEventCustom.cpp:
  40594. (WebCore::V8MessageEvent::portsAccessorGetter):
  40595. * bindings/v8/custom/V8NamedNodeMapCustom.cpp:
  40596. (WebCore::V8NamedNodeMap::indexedPropertyGetter):
  40597. (WebCore::V8NamedNodeMap::namedPropertyGetter):
  40598. * bindings/v8/custom/V8NodeIteratorCustom.cpp:
  40599. (WebCore::toV8):
  40600. * bindings/v8/custom/V8NodeListCustom.cpp:
  40601. (WebCore::V8NodeList::namedPropertyGetter):
  40602. (WebCore::V8NodeList::callAsFunctionCallback):
  40603. * bindings/v8/custom/V8NotificationCenterCustom.cpp:
  40604. (WebCore::V8NotificationCenter::createHTMLNotificationCallback):
  40605. (WebCore::V8NotificationCenter::createNotificationCallback):
  40606. * bindings/v8/custom/V8SVGMatrixCustom.cpp:
  40607. (WebCore::V8SVGMatrix::multiplyCallback):
  40608. (WebCore::V8SVGMatrix::inverseCallback):
  40609. (WebCore::V8SVGMatrix::rotateFromVectorCallback):
  40610. * bindings/v8/custom/V8StyleSheetListCustom.cpp:
  40611. (WebCore::V8StyleSheetList::namedPropertyGetter):
  40612. * bindings/v8/custom/V8TreeWalkerCustom.cpp:
  40613. (WebCore::toV8Object):
  40614. * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
  40615. (WebCore::toV8Object):
  40616. * bindings/v8/custom/V8XSLTProcessorCustom.cpp:
  40617. (WebCore::V8XSLTProcessor::transformToFragmentCallback):
  40618. (WebCore::V8XSLTProcessor::transformToDocumentCallback):
  40619. 2010-02-03 Mikhail Naganov <mnaganov@chromium.org>
  40620. Reviewed by Pavel Feldman.
  40621. Start unforking debugger and profiler code.
  40622. Remove custom implementation of Console.
  40623. Add 'ScriptProfiler' and 'ScriptProfile' types.
  40624. Start migration to engine-neutral types in InspectorController.
  40625. https://bugs.webkit.org/show_bug.cgi?id=34481
  40626. * GNUmakefile.am:
  40627. * WebCore.gypi:
  40628. * WebCore.pro:
  40629. * WebCore.xcodeproj/project.pbxproj:
  40630. * bindings/js/JSBindingsAllInOne.cpp:
  40631. * bindings/js/JSConsoleCustom.cpp:
  40632. * bindings/js/ScriptProfile.h: Added.
  40633. * bindings/js/ScriptProfiler.cpp: Added.
  40634. (WebCore::ScriptProfiler::start):
  40635. (WebCore::ScriptProfiler::stop):
  40636. * bindings/js/ScriptProfiler.h: Added.
  40637. * bindings/scripts/CodeGeneratorV8.pm:
  40638. * bindings/v8/ScriptProfile.h: Added.
  40639. (WebCore::ScriptProfile::create):
  40640. (WebCore::ScriptProfile::~ScriptProfile):
  40641. (WebCore::ScriptProfile::title):
  40642. (WebCore::ScriptProfile::uid):
  40643. (WebCore::ScriptProfile::ScriptProfile):
  40644. * bindings/v8/ScriptProfiler.cpp: Added.
  40645. (WebCore::ScriptProfiler::start):
  40646. (WebCore::ScriptProfiler::stop):
  40647. * bindings/v8/ScriptProfiler.h: Added.
  40648. * bindings/v8/custom/V8ConsoleCustom.cpp: Removed.
  40649. * inspector/InspectorController.cpp:
  40650. (WebCore::InspectorController::endGroup):
  40651. (WebCore::InspectorController::show):
  40652. (WebCore::InspectorController::setDOMStorageItem):
  40653. (WebCore::InspectorController::addProfile):
  40654. (WebCore::InspectorController::addProfileFinishedMessageToConsole):
  40655. (WebCore::InspectorController::addStartProfilingMessageToConsole):
  40656. (WebCore::InspectorController::createProfileHeader):
  40657. (WebCore::InspectorController::getCurrentUserInitiatedProfileName):
  40658. (WebCore::InspectorController::startUserInitiatedProfiling):
  40659. (WebCore::InspectorController::stopUserInitiatedProfiling):
  40660. (WebCore::InspectorController::enableDebugger):
  40661. (WebCore::InspectorController::specialPanelForJSName):
  40662. * inspector/InspectorController.h:
  40663. (WebCore::InspectorController::searchingForNodeInPage):
  40664. * page/Console.cpp:
  40665. (WebCore::Console::profile):
  40666. (WebCore::Console::profileEnd):
  40667. * page/Console.h:
  40668. (WebCore::):
  40669. (WebCore::Console::create):
  40670. (WebCore::Console::profiles):
  40671. * page/Console.idl:
  40672. 2010-02-02 Kent Tamura <tkent@chromium.org>
  40673. Reviewed by Darin Adler.
  40674. Fix a bug that changes for some constraint attributes doesn't
  40675. update validation CSS selectors.
  40676. https://bugs.webkit.org/show_bug.cgi?id=31716
  40677. - Rename HTMLFormControlElement::updateValidity() to setNeedsValidityCheck()
  40678. - Introduce HTMLFormControlElement::setNeedsWillValidate()
  40679. - Introduce HTMLFormControlElement::m_hasName to make willValidate()
  40680. work in parseMappedAttribute().
  40681. - We need to call setNeedsValidityCheck() when HTMLInputElement::step or
  40682. HTMLTextAreaElement::maxLength is changed.
  40683. * html/HTMLFormControlElement.cpp:
  40684. (WebCore::HTMLFormControlElement::HTMLFormControlElement):
  40685. (WebCore::HTMLFormControlElement::parseMappedAttribute):
  40686. (WebCore::HTMLFormControlElement::insertedIntoTree):
  40687. (WebCore::HTMLFormControlElement::removedFromTree):
  40688. (WebCore::HTMLFormControlElement::formDestroyed):
  40689. (WebCore::HTMLFormControlElement::willValidate): Avoids function calls.
  40690. (WebCore::HTMLFormControlElement::setNeedsWillValidateCheck):
  40691. (WebCore::HTMLFormControlElement::setNeedsValidityCheck):
  40692. * html/HTMLFormControlElement.h:
  40693. (WebCore::HTMLFormControlElement::disabled): Move the code from .cpp.
  40694. * html/HTMLInputElement.cpp:
  40695. (WebCore::HTMLInputElement::setInputType):
  40696. (WebCore::HTMLInputElement::parseMappedAttribute):
  40697. (WebCore::HTMLInputElement::setValue):
  40698. (WebCore::HTMLInputElement::setValueFromRenderer):
  40699. (WebCore::HTMLInputElement::setFileListFromRenderer):
  40700. * html/HTMLTextAreaElement.cpp:
  40701. (WebCore::HTMLTextAreaElement::parseMappedAttribute):
  40702. (WebCore::HTMLTextAreaElement::setValue):
  40703. * rendering/RenderTextControlMultiLine.cpp:
  40704. (WebCore::RenderTextControlMultiLine::subtreeHasChanged):
  40705. 2010-02-02 Roland Steiner <rolandsteiner@chromium.org>
  40706. Reviewed by Adele Peterson.
  40707. Bug 34198 - Ruby text should not inherit line-height
  40708. (https://bugs.webkit.org/show_bug.cgi?id=34198)
  40709. Resetting line-height to 'normal' in the default UA style sheet.
  40710. Adding layout-test to check for this.
  40711. Test: fast/ruby/ruby-line-height.html
  40712. * css/html.css:
  40713. 2010-02-02 James Robinson <jamesr@chromium.org>
  40714. Reviewed by Dmitry Titov.
  40715. Add a null check for image, which might be NULL if tileSize is empty
  40716. https://bugs.webkit.org/show_bug.cgi?id=34510
  40717. Test: fast/gradients/crash-on-1px-border.html
  40718. * rendering/RenderBoxModelObject.cpp:
  40719. (WebCore::RenderBoxModelScaleObserver::shouldPaintBackgroundAtLowQuality):
  40720. 2010-02-02 Kent Tamura <tkent@chromium.org>
  40721. Reviewed by Darin Adler.
  40722. rangeOverflow/rangeUnderflow support for type=datetime, datetime-local,
  40723. month, time and week
  40724. https://bugs.webkit.org/show_bug.cgi?id=34483
  40725. Tests: fast/forms/ValidityState-rangeOverflow.html
  40726. fast/forms/ValidityState-rangeUnderflow.html
  40727. * html/HTMLInputElement.cpp:
  40728. Defines the hard limits for the types as double values.
  40729. (WebCore::HTMLInputElement::rangeUnderflow): Supports the types.
  40730. (WebCore::HTMLInputElement::rangeOverflow): Supports the types.
  40731. (WebCore::HTMLInputElement::minimum): Supports the types.
  40732. (WebCore::HTMLInputElement::maximum): Supports the types.
  40733. 2010-02-02 Fumitoshi Ukai <ukai@chromium.org>
  40734. Reviewed by Alexey Proskuryakov.
  40735. WebSocket set pending activity to avoid unexpected GC.
  40736. https://bugs.webkit.org/show_bug.cgi?id=34014
  40737. Test: websocket/tests/websocket-pending-activity.html
  40738. * websockets/WebSocket.cpp:
  40739. (WebCore::WebSocket::connect): set pending activity until it receives didClose.
  40740. (WebCore::WebSocket::contextDestroyed): check socket is already closed.
  40741. (WebCore::WebSocket::stop): close the connection and unset pending activity when it stops.
  40742. (WebCore::WebSocket::didClose): unset pending activity.
  40743. * websockets/WebSocket.h:
  40744. * websockets/WebSocketChannel.cpp:
  40745. (WebCore::WebSocketChannel::didReceiveData): protect this while it processes received data.
  40746. 2010-02-02 Gustavo Noronha Silva <gns@gnome.org>
  40747. No review, rolling out r54261.
  40748. http://trac.webkit.org/changeset/54261
  40749. https://bugs.webkit.org/show_bug.cgi?id=34435
  40750. Causes crashes on release builds
  40751. * GNUmakefile.am:
  40752. * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
  40753. (WebCore::mediaPlayerPrivateSourceChangedCallback):
  40754. * platform/gtk/GOwnPtrGtk.cpp: Removed.
  40755. * platform/gtk/GOwnPtrGtk.h: Removed.
  40756. 2010-02-02 David Levin <levin@chromium.org>
  40757. No review, rolling out r54245.
  40758. http://trac.webkit.org/changeset/54245
  40759. https://bugs.webkit.org/show_bug.cgi?id=34492
  40760. This patch seems to have broken thousands of chromium tests on
  40761. Windows (and since it was for chromium, I'm rolling it out).
  40762. * dom/Element.cpp:
  40763. (WebCore::Element::baseURI):
  40764. 2010-02-02 Steve Falkenburg <sfalken@apple.com>
  40765. Reviewed by Darin Adler.
  40766. Copyright year updating for Windows version resources should be automatic
  40767. https://bugs.webkit.org/show_bug.cgi?id=34503
  40768. * WebCore.vcproj/QTMovieWin.rc:
  40769. 2010-02-02 Dimitri Glazkov <dglazkov@chromium.org>
  40770. No review, rolling out r54257.
  40771. http://trac.webkit.org/changeset/54257
  40772. https://bugs.webkit.org/show_bug.cgi?id=34491
  40773. [Chromium] broke thousands of Win tests and a few of Linux tests.
  40774. * platform/graphics/skia/GraphicsContextSkia.cpp:
  40775. (WebCore::GraphicsContext::beginTransparencyLayer):
  40776. * platform/graphics/skia/PlatformContextSkia.cpp:
  40777. (PlatformContextSkia::applyAntiAliasedClipPaths):
  40778. * platform/graphics/skia/PlatformContextSkia.h:
  40779. 2010-02-02 Philippe Normand <pnormand@igalia.com>
  40780. Reviewed by Gustavo Noronha Silva.
  40781. [Gtk] libsoup critical warning in media player http cookies injection code
  40782. https://bugs.webkit.org/show_bug.cgi?id=34435
  40783. Fixed the critical warning and refactored the
  40784. User-Agent/Referer/cookies injection code, in that order. Previous
  40785. order (cookies first) was wrong because if cookies injection could
  40786. not be done neither the User-Agent not Referer were injected. Also
  40787. started a non-JSC-specific, gtk-specific GOwnPtr module.
  40788. * GNUmakefile.am:
  40789. * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
  40790. (WebCore::mediaPlayerPrivateSourceChangedCallback):
  40791. * platform/gtk/GOwnPtrGtk.cpp: Added.
  40792. (WTF::SoupURI):
  40793. (WTF::GstElement):
  40794. * platform/gtk/GOwnPtrGtk.h: Added.
  40795. 2010-02-02 Nate Chapin <japhet@chromium.org>
  40796. Reviewed by Dimitri Glazkov.
  40797. [V8] Use toV8() to wrap in the custom bindings, and remove
  40798. the old wrapping code from V8DOMWrapper.
  40799. https://bugs.webkit.org/show_bug.cgi?id=32563
  40800. * bindings/v8/ScriptController.cpp:
  40801. * bindings/v8/ScriptObject.cpp:
  40802. * bindings/v8/V8AbstractEventListener.cpp:
  40803. * bindings/v8/V8Collection.h:
  40804. * bindings/v8/V8DOMWindowShell.cpp:
  40805. * bindings/v8/V8DOMWrapper.cpp:
  40806. * bindings/v8/V8DOMWrapper.h:
  40807. * bindings/v8/V8NodeFilterCondition.cpp:
  40808. * bindings/v8/V8Proxy.cpp:
  40809. * bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp:
  40810. * bindings/v8/custom/V8CustomPositionCallback.cpp:
  40811. * bindings/v8/custom/V8CustomPositionErrorCallback.cpp:
  40812. * bindings/v8/custom/V8CustomSQLStatementCallback.cpp:
  40813. * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp:
  40814. * bindings/v8/custom/V8CustomSQLTransactionCallback.cpp:
  40815. * bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp:
  40816. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  40817. * bindings/v8/custom/V8DataGridColumnListCustom.cpp:
  40818. * bindings/v8/custom/V8DocumentCustom.cpp:
  40819. * bindings/v8/custom/V8DocumentLocationCustom.cpp:
  40820. * bindings/v8/custom/V8ElementCustom.cpp:
  40821. * bindings/v8/custom/V8EventCustom.cpp:
  40822. * bindings/v8/custom/V8HTMLAllCollectionCustom.cpp:
  40823. * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
  40824. * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
  40825. * bindings/v8/custom/V8HTMLCollectionCustom.cpp:
  40826. * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
  40827. * bindings/v8/custom/V8HTMLFormElementCustom.cpp:
  40828. * bindings/v8/custom/V8HTMLFrameSetElementCustom.cpp:
  40829. * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
  40830. * bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:
  40831. * bindings/v8/custom/V8HTMLSelectElementCustom.cpp:
  40832. * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
  40833. * bindings/v8/custom/V8MessageChannelConstructor.cpp:
  40834. * bindings/v8/custom/V8MessageEventCustom.cpp:
  40835. * bindings/v8/custom/V8NamedNodeMapCustom.cpp:
  40836. * bindings/v8/custom/V8NodeIteratorCustom.cpp:
  40837. * bindings/v8/custom/V8NodeListCustom.cpp:
  40838. * bindings/v8/custom/V8NotificationCenterCustom.cpp:
  40839. * bindings/v8/custom/V8SVGMatrixCustom.cpp:
  40840. * bindings/v8/custom/V8StyleSheetListCustom.cpp:
  40841. * bindings/v8/custom/V8TreeWalkerCustom.cpp:
  40842. * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
  40843. * bindings/v8/custom/V8XSLTProcessorCustom.cpp:
  40844. 2010-02-02 Garret Kelly <gdk@chromium.org>
  40845. Reviewed by David Levin.
  40846. When using the Skia graphics context, the beginTransparencyLayer call
  40847. currently creates a new layer, but does not keep the current
  40848. compositing mode for use when merging the created layer back onto the
  40849. rest of the context. This patch fixes that.
  40850. https://bugs.webkit.org/show_bug.cgi?id=34491
  40851. fast/backgrounds/svg-as-mask.html is affected by this change in Chromium,
  40852. but not fixed. This is the first of a series of patches to fix it.
  40853. * platform/graphics/skia/GraphicsContextSkia.cpp:
  40854. (WebCore::GraphicsContext::beginTransparencyLayer):
  40855. * platform/graphics/skia/PlatformContextSkia.cpp:
  40856. (PlatformContextSkia::beginTransparencyLayer):
  40857. * platform/graphics/skia/PlatformContextSkia.h:
  40858. 2010-02-02 Kwang Yul Seo <skyul@company100.net>
  40859. Reviewed by Eric Seidel.
  40860. Use WTF::getLocalTime instead of localtime_r in FTPDirectoryDocument
  40861. https://bugs.webkit.org/show_bug.cgi?id=34409
  40862. Platform guards for localtime_r are not needed because we already have
  40863. WTF::getLocalTime which does the same thing.
  40864. * loader/FTPDirectoryDocument.cpp:
  40865. (WebCore::processFileDateString):
  40866. * loader/FTPDirectoryParser.cpp:
  40867. (WebCore::gmtimeQt):
  40868. 2010-02-02 Adam Roben <aroben@apple.com>
  40869. Copy WebCore's bindings generation scripts to the PrivateHeaders
  40870. directory on Mac
  40871. This will allow other projects to use these scripts.
  40872. Fixes <http://webkit.org/b/34498>.
  40873. Reviewed by Mark Rowe.
  40874. * WebCore.xcodeproj/project.pbxproj: Added the bindings generation
  40875. scripst to the Copy Headers phase, and marked them as Private.
  40876. 2010-02-02 Adam Roben <aroben@apple.com>
  40877. Copy WebCore's bindings generation scripts to a more sensible location
  40878. Part of Bug 34496: Clean up WebCore's IDL/script copying
  40879. <https://bugs.webkit.org/show_bug.cgi?id=34496>
  40880. Reviewed by Steve Falkenburg.
  40881. * WebCore.vcproj/WebCore.make:
  40882. * WebCore.vcproj/WebCoreGenerated.vcproj:
  40883. Instead of copying to obj/WebKit/DOMInterfaces, copy to obj/WebCore/scripts.
  40884. 2010-02-02 Adam Roben <aroben@apple.com>
  40885. Rename the scripts used to copy WebCore's bindings generation scripts
  40886. Part of Bug 34496: Clean up WebCore's IDL/script copying
  40887. <https://bugs.webkit.org/show_bug.cgi?id=34496>
  40888. Reviewed by Steve Falkenburg.
  40889. * WebCore.vcproj/MigrateScripts: Renamed from WebCore/WebCore.vcproj/MigrateIDLAndScripts.
  40890. * WebCore.vcproj/migrate-scripts.sh: Renamed from WebCore/WebCore.vcproj/migrate-idls.sh.
  40891. * WebCore.vcproj/WebCoreGenerated.vcproj: Updated for renames.
  40892. 2010-02-02 Adam Roben <aroben@apple.com>
  40893. Stop copying IDL files into $(WebKitOutputDir)
  40894. No one uses these anymore (as of r52921).
  40895. Part of Bug 34496: Clean up WebCore's IDL/script copying
  40896. <https://bugs.webkit.org/show_bug.cgi?id=34496>
  40897. Reviewed by Steve Falkenburg.
  40898. * WebCore.vcproj/MigrateIDLAndScripts: Don't copy the IDL files
  40899. anymore. Keep copying the scripts, though, since other projects
  40900. (outside of the WebKit repository) do use those.
  40901. 2010-02-02 Bryan Yeung <bryeung@google.com>
  40902. Reviewed by Darin Adler.
  40903. Avoid using an invalidated KURL object in baseURI.
  40904. https://bugs.webkit.org/show_bug.cgi?id=34492
  40905. This change fixes baseURI for Chromium (where the KURL implementation
  40906. does not allow invalid KURLs to carry relative paths). This is
  40907. regression tested by
  40908. LayoutTests/svg/W3C-SVG-1.1/struct-image-07-t.svg
  40909. * dom/Element.cpp:
  40910. (WebCore::Element::baseURI):
  40911. 2010-02-02 Alexey Proskuryakov <ap@apple.com>
  40912. Reviewed by Darin Adler.
  40913. https://bugs.webkit.org/show_bug.cgi?id=34076
  40914. <rdar://problem/7594601> Crash in mangleme in WebCore::Element::getAttribute
  40915. Test: fast/forms/misplaced-img-form-registration.html
  40916. * html/HTMLFormElement.cpp:
  40917. (WebCore::HTMLFormElement::registerImgElement): Assert that the same image isn't added
  40918. to vector again.
  40919. (WebCore::HTMLFormElement::removeImgElement): Similarly, assert that we're removing something
  40920. that's actually registered.
  40921. * html/HTMLImageElement.cpp: (WebCore::HTMLImageElement::~HTMLImageElement): If parser fails
  40922. to insert the image element, then there will be no removed from tree notification either,
  40923. need to unregister right away.
  40924. 2010-02-02 Alexander Pavlov <apavlov@chromium.org>
  40925. Reviewed by Pavel Feldman.
  40926. Web Inspector: Eliminate some of the platform flavor-specific stylesheet selectors
  40927. Extract OS version into WebInspector.platformFlavor
  40928. https://bugs.webkit.org/show_bug.cgi?id=34469
  40929. * inspector/front-end/InspectorBackendStub.js:
  40930. * inspector/front-end/InspectorFrontendHostStub.js:
  40931. (.WebInspector.InspectorFrontendHostStub.prototype.platform):
  40932. * inspector/front-end/inspector.css:
  40933. * inspector/front-end/inspector.js:
  40934. (WebInspector.pendingDispatches.0.URLRegExp.i.get platform):
  40935. (WebInspector.get platformFlavor):
  40936. (WebInspector._detectPlatformFlavor):
  40937. (WebInspector.loaded):
  40938. (WebInspector.toolbarDragStart):
  40939. (WebInspector.isMac):
  40940. 2010-02-02 Steve Block <steveblock@google.com>
  40941. Reviewed by Ariya Hidayat.
  40942. Adds utility functions for converting between JavaInstance and NPAPI types
  40943. https://bugs.webkit.org/show_bug.cgi?id=34468
  40944. This is required by Android for injecting objects into V8 JavaScript.
  40945. No new tests, added utility functions only.
  40946. * Android.v8bindings.mk: Modified. Added JavaNPObjectV8.cpp
  40947. * bridge/jni/v8/JavaNPObjectV8.cpp: Added.
  40948. (JSC::Bindings::AllocJavaNPObject):
  40949. (JSC::Bindings::FreeJavaNPObject):
  40950. (JSC::Bindings::):
  40951. (JSC::Bindings::JavaInstanceToNPObject):
  40952. (JSC::Bindings::ExtractJavaInstance):
  40953. (JSC::Bindings::JavaNPObjectHasMethod):
  40954. (JSC::Bindings::JavaNPObjectInvoke):
  40955. (JSC::Bindings::JavaNPObjectHasProperty):
  40956. (JSC::Bindings::JavaNPObjectGetProperty):
  40957. * bridge/jni/v8/JavaNPObjectV8.h: Added.
  40958. 2010-02-02 Benjamin Poulain <benjamin.poulain@nokia.com>
  40959. Reviewed by Ariya Hidayat.
  40960. [Qt] Symbian plugins include a wrong header file for QPixmap
  40961. https://bugs.webkit.org/show_bug.cgi?id=34475
  40962. * plugins/symbian/PluginViewSymbian.cpp:
  40963. 2010-02-02 Pavel Feldman <pfeldman@chromium.org>
  40964. Reviewed by Timothy Hatcher.
  40965. Web Inspector: URLs are not syntax-higlighted as links in source view.
  40966. This change enables linkifier in the NativeTextViewer. It adds
  40967. "linkify" and "a_node" parse states into the highlighter in order
  40968. to detect links and distinguish between resource and external ones.
  40969. Contains drive-by fix for the webkit-html-* styles and moves them to the
  40970. common location.
  40971. https://bugs.webkit.org/show_bug.cgi?id=34364
  40972. * inspector/front-end/NativeTextViewer.js:
  40973. (WebInspector.NativeTextViewer):
  40974. (WebInspector.NativeTextViewer.prototype._createSpan):
  40975. (WebInspector.NativeTextViewer.prototype._createLink):
  40976. (WebInspector.NativeTextViewer.prototype._rewriteHref):
  40977. * inspector/front-end/SourceFrame.js:
  40978. (WebInspector.SourceFrame.prototype.setContent):
  40979. (WebInspector.SourceFrame.prototype._createEditorIfNeeded):
  40980. * inspector/front-end/SourceHTMLTokenizer.js:
  40981. (WebInspector.SourceHTMLTokenizer):
  40982. (WebInspector.SourceHTMLTokenizer.prototype._isExpectingAttribute):
  40983. (WebInspector.SourceHTMLTokenizer.prototype._isExpectingAttributeValue):
  40984. (WebInspector.SourceHTMLTokenizer.prototype._setExpectingAttribute):
  40985. (WebInspector.SourceHTMLTokenizer.prototype._setExpectingAttributeValue):
  40986. (WebInspector.SourceHTMLTokenizer.prototype._stringToken):
  40987. (WebInspector.SourceHTMLTokenizer.prototype._attrValueTokenType):
  40988. (WebInspector.SourceHTMLTokenizer.prototype.nextToken):
  40989. * inspector/front-end/SourceHTMLTokenizer.re2js:
  40990. * inspector/front-end/SourceView.js:
  40991. (WebInspector.SourceView.prototype._contentLoaded):
  40992. * inspector/front-end/TextEditorHighlighter.js:
  40993. (WebInspector.TextEditorHighlighter):
  40994. * inspector/front-end/inspector.css:
  40995. * inspector/front-end/inspectorSyntaxHighlight.css:
  40996. 2010-02-02 Simon Hausmann <simon.hausmann@nokia.com>
  40997. Reviewed by Ariya Hidayat.
  40998. [Qt] Install libraries and headers in package builds
  40999. https://bugs.webkit.org/show_bug.cgi?id=34325
  41000. Add the QtWebKit libraries to the installable items, except on
  41001. Symbian where the libraries are always linked in their final
  41002. destination.
  41003. Also include the headers generated by syncqt in the installation.
  41004. * WebCore.pro:
  41005. 2010-02-02 Kavita Kanetkar <kkanetkar@chromium.org>
  41006. Reviewed by Dmitry Titov.
  41007. [V8] Raising an exception while setting timeout/interval from a detached frame
  41008. https://bugs.webkit.org/show_bug.cgi?id=34453
  41009. This fixes the issue/failing test mentioned in Chromium bug:
  41010. http://code.google.com/p/chromium/issues/detail?id=32671
  41011. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  41012. (WebCore::WindowSetTimeoutImpl):
  41013. 2010-02-02 Kwang Yul Seo <skyul@company100.net>
  41014. Reviewed by Eric Seidel.
  41015. [BREWMP] Port Screen
  41016. https://bugs.webkit.org/show_bug.cgi?id=34299
  41017. Get the screen size and depth from the main display bitmap.
  41018. * platform/brew/ScreenBrew.cpp: Added.
  41019. (WebCore::getDisplayInfo):
  41020. (WebCore::screenRect):
  41021. (WebCore::screenAvailableRect):
  41022. (WebCore::screenDepth):
  41023. (WebCore::screenDepthPerComponent):
  41024. (WebCore::screenIsMonochrome):
  41025. 2010-02-02 Kwang Yul Seo <skyul@company100.net>
  41026. Reviewed by Eric Seidel.
  41027. [BREWMP] Port LocalizedStrings
  41028. https://bugs.webkit.org/show_bug.cgi?id=34257
  41029. Port LocalizedStrings to BREWMP.
  41030. * platform/brew/LocalizedStringsBrew.cpp: Added.
  41031. (WebCore::submitButtonDefaultLabel):
  41032. (WebCore::inputElementAltText):
  41033. (WebCore::resetButtonDefaultLabel):
  41034. (WebCore::defaultLanguage):
  41035. (WebCore::searchableIndexIntroduction):
  41036. (WebCore::fileButtonChooseFileLabel):
  41037. (WebCore::fileButtonNoFileSelectedLabel):
  41038. (WebCore::contextMenuItemTagOpenLinkInNewWindow):
  41039. (WebCore::contextMenuItemTagDownloadLinkToDisk):
  41040. (WebCore::contextMenuItemTagCopyLinkToClipboard):
  41041. (WebCore::contextMenuItemTagOpenImageInNewWindow):
  41042. (WebCore::contextMenuItemTagDownloadImageToDisk):
  41043. (WebCore::contextMenuItemTagCopyImageToClipboard):
  41044. (WebCore::contextMenuItemTagOpenFrameInNewWindow):
  41045. (WebCore::contextMenuItemTagCopy):
  41046. (WebCore::contextMenuItemTagGoBack):
  41047. (WebCore::contextMenuItemTagGoForward):
  41048. (WebCore::contextMenuItemTagStop):
  41049. (WebCore::contextMenuItemTagReload):
  41050. (WebCore::contextMenuItemTagCut):
  41051. (WebCore::contextMenuItemTagPaste):
  41052. (WebCore::contextMenuItemTagNoGuessesFound):
  41053. (WebCore::contextMenuItemTagIgnoreSpelling):
  41054. (WebCore::contextMenuItemTagLearnSpelling):
  41055. (WebCore::contextMenuItemTagSearchWeb):
  41056. (WebCore::contextMenuItemTagLookUpInDictionary):
  41057. (WebCore::contextMenuItemTagOpenLink):
  41058. (WebCore::contextMenuItemTagIgnoreGrammar):
  41059. (WebCore::contextMenuItemTagSpellingMenu):
  41060. (WebCore::contextMenuItemTagShowSpellingPanel):
  41061. (WebCore::contextMenuItemTagCheckSpelling):
  41062. (WebCore::contextMenuItemTagCheckSpellingWhileTyping):
  41063. (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
  41064. (WebCore::contextMenuItemTagFontMenu):
  41065. (WebCore::contextMenuItemTagBold):
  41066. (WebCore::contextMenuItemTagItalic):
  41067. (WebCore::contextMenuItemTagUnderline):
  41068. (WebCore::contextMenuItemTagOutline):
  41069. (WebCore::contextMenuItemTagWritingDirectionMenu):
  41070. (WebCore::contextMenuItemTagDefaultDirection):
  41071. (WebCore::contextMenuItemTagLeftToRight):
  41072. (WebCore::contextMenuItemTagRightToLeft):
  41073. (WebCore::contextMenuItemTagInspectElement):
  41074. (WebCore::searchMenuNoRecentSearchesText):
  41075. (WebCore::searchMenuRecentSearchesText):
  41076. (WebCore::searchMenuClearRecentSearchesText):
  41077. (WebCore::unknownFileSizeText):
  41078. (WebCore::AXWebAreaText):
  41079. (WebCore::AXLinkText):
  41080. (WebCore::AXListMarkerText):
  41081. (WebCore::AXImageMapText):
  41082. (WebCore::AXHeadingText):
  41083. (WebCore::imageTitle):
  41084. (WebCore::contextMenuItemTagTextDirectionMenu):
  41085. (WebCore::AXButtonActionVerb):
  41086. (WebCore::AXTextFieldActionVerb):
  41087. (WebCore::AXRadioButtonActionVerb):
  41088. (WebCore::AXCheckedCheckBoxActionVerb):
  41089. (WebCore::AXUncheckedCheckBoxActionVerb):
  41090. (WebCore::AXLinkActionVerb):
  41091. (WebCore::AXMenuListPopupActionVerb):
  41092. (WebCore::AXMenuListActionVerb):
  41093. (WebCore::AXDefinitionListTermText):
  41094. (WebCore::AXDefinitionListDefinitionText):
  41095. (WebCore::validationMessageValueMissingText):
  41096. (WebCore::validationMessageTypeMismatchText):
  41097. (WebCore::validationMessagePatternMismatchText):
  41098. (WebCore::validationMessageTooLongText):
  41099. (WebCore::validationMessageRangeUnderflowText):
  41100. (WebCore::validationMessageRangeOverflowText):
  41101. (WebCore::validationMessageStepMismatchText):
  41102. 2010-02-02 Kwang Yul Seo <skyul@company100.net>
  41103. Reviewed by Eric Seidel.
  41104. [BREWMP] Port systemBeep
  41105. https://bugs.webkit.org/show_bug.cgi?id=33601
  41106. Implement systemBeep with IShell_Beep.
  41107. * platform/brew/SoundBrew.cpp: Added.
  41108. (WebCore::systemBeep):
  41109. 2010-02-02 Shinichiro Hamaji <hamaji@chromium.org>
  41110. Reviewed by Eric Seidel.
  41111. [Win] Utilize PrintContext to share the printing code with other ports
  41112. https://bugs.webkit.org/show_bug.cgi?id=34312
  41113. No new tests as this is just a small refactoring.
  41114. 2010-02-02 Kwang Yul Seo <skyul@company100.net>
  41115. Reviewed by Eric Seidel.
  41116. [BREWMP] Add conversions between IntPoint and AEEPoint
  41117. https://bugs.webkit.org/show_bug.cgi?id=34194
  41118. Make it easy to convert between IntPoint and AEEPoint.
  41119. * platform/graphics/IntPoint.h:
  41120. * platform/graphics/brew/IntPointBrew.cpp: Added.
  41121. (WebCore::IntPoint::IntPoint):
  41122. (WebCore::IntPoint::operator AEEPoint):
  41123. 2010-02-02 Steve Block <steveblock@google.com>
  41124. Reviewed by Adam Barth.
  41125. Adds virtual destructors for AbstractWeakReferenceMap and AbstractWeakReferenceMap::Visitor
  41126. https://bugs.webkit.org/show_bug.cgi?id=34434
  41127. No new tests, build fix only.
  41128. * bindings/v8/V8DOMMap.h: Modified.
  41129. (WebCore::AbstractWeakReferenceMap::~AbstractWeakReferenceMap): Added.
  41130. (WebCore::AbstractWeakReferenceMap::Visitor::~Visitor): Added.
  41131. 2010-02-02 Avi Drissman <avi@chromium.org>
  41132. Reviewed by Eric Seidel.
  41133. Sync up Chromium Mac render theme to Mac render theme
  41134. https://bugs.webkit.org/show_bug.cgi?id=34340
  41135. Covered by existing layout tests.
  41136. * platform/chromium/ThemeChromiumMac.mm:
  41137. (WebCore::updateStates):
  41138. (WebCore::checkbox):
  41139. (WebCore::paintCheckbox):
  41140. (WebCore::radio):
  41141. (WebCore::paintRadio):
  41142. (WebCore::listButtonSizes):
  41143. (WebCore::setupButtonCell):
  41144. (WebCore::button):
  41145. (WebCore::paintButton):
  41146. (WebCore::ThemeChromiumMac::controlSize):
  41147. (WebCore::ThemeChromiumMac::minimumControlSize):
  41148. (WebCore::ThemeChromiumMac::controlBorder):
  41149. (WebCore::ThemeChromiumMac::paint):
  41150. * rendering/RenderThemeChromiumMac.h:
  41151. * rendering/RenderThemeChromiumMac.mm:
  41152. (-[WebCoreRenderThemeNotificationObserver initWithTheme:WebCore::]):
  41153. (WebCore::convertNSColorToColor):
  41154. (WebCore::RenderThemeChromiumMac::systemColor):
  41155. (WebCore::RenderThemeChromiumMac::isControlStyled):
  41156. (WebCore::RenderThemeChromiumMac::adjustRepaintRect):
  41157. (WebCore::RenderThemeChromiumMac::convertToPaintingRect):
  41158. (WebCore::RenderThemeChromiumMac::paintCapsLockIndicator):
  41159. (WebCore::RenderThemeChromiumMac::paintMenuList):
  41160. (WebCore::RenderThemeChromiumMac::paintMenuListButton):
  41161. (WebCore::RenderThemeChromiumMac::adjustMenuListStyle):
  41162. (WebCore::RenderThemeChromiumMac::adjustMenuListButtonStyle):
  41163. (WebCore::RenderThemeChromiumMac::paintSliderTrack):
  41164. (WebCore::RenderThemeChromiumMac::paintSliderThumb):
  41165. (WebCore::RenderThemeChromiumMac::paintSearchField):
  41166. (WebCore::RenderThemeChromiumMac::setSearchFieldSize):
  41167. (WebCore::RenderThemeChromiumMac::adjustSearchFieldStyle):
  41168. (WebCore::RenderThemeChromiumMac::paintSearchFieldResultsButton):
  41169. (WebCore::RenderThemeChromiumMac::adjustSliderThumbSize):
  41170. (WebCore::RenderThemeChromiumMac::popupButton):
  41171. (WebCore::RenderThemeChromiumMac::sliderThumbHorizontal):
  41172. (WebCore::RenderThemeChromiumMac::sliderThumbVertical):
  41173. 2010-02-02 Kwang Yul Seo <skyul@company100.net>
  41174. Reviewed by Eric Seidel.
  41175. [BREWMP] Port Logging
  41176. https://bugs.webkit.org/show_bug.cgi?id=34300
  41177. Log calls to notImplemented() by default.
  41178. * platform/brew/LoggingBrew.cpp: Added.
  41179. (WebCore::InitializeLoggingChannelsIfNecessary):
  41180. 2010-02-02 Kwang Yul Seo <skyul@company100.net>
  41181. Reviewed by Eric Seidel.
  41182. [BREWMP] Port FileChooser
  41183. https://bugs.webkit.org/show_bug.cgi?id=34261
  41184. Port FileChooser to BREWMP.
  41185. * platform/brew/FileChooserBrew.cpp: Added.
  41186. (WebCore::FileChooser::basenameForWidth):
  41187. 2010-02-01 Zoltan Horvath <zoltan@webkit.org>
  41188. Reviewed by Darin Adler.
  41189. Allow custom memory allocation control for IconDatabaseClient class
  41190. https://bugs.webkit.org/show_bug.cgi?id=33252
  41191. Inherits the following struct from Noncopyable because it is
  41192. instantiated by 'new' and no need to be copyable:
  41193. class name - instantiated at: WebCore/'location'
  41194. class IconDatabaseClient - loader/icon/IconDatabase.cpp:89
  41195. * loader/icon/IconDatabaseClient.h:
  41196. 2010-02-01 Kwang Yul Seo <skyul@company100.net>
  41197. Reviewed by Eric Seidel.
  41198. [BREWMP] Port MIMETypeRegistry
  41199. https://bugs.webkit.org/show_bug.cgi?id=34220
  41200. Port MIMETypeRegistry with an extension map as other ports do.
  41201. * platform/brew: Added.
  41202. * platform/brew/MIMETypeRegistryBrew.cpp: Added.
  41203. (WebCore::):
  41204. (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
  41205. 2010-02-01 Dmitry Titov <dimich@chromium.org>
  41206. Not reviewed, revert r54194 that fails new test on Qt and Chromium.
  41207. https://bugs.webkit.org/show_bug.cgi?id=34382
  41208. * html/HTMLFrameElementBase.cpp:
  41209. (WebCore::HTMLFrameElementBase::setNameAndOpenURL):
  41210. (WebCore::HTMLFrameElementBase::insertedIntoDocument):
  41211. * html/HTMLFrameElementBase.h:
  41212. * page/Frame.cpp:
  41213. * page/Frame.h:
  41214. 2010-02-01 Shinichiro Hamaji <hamaji@chromium.org>
  41215. Reviewed by Eric Seidel.
  41216. Provide a way to get page number with layoutTestController
  41217. https://bugs.webkit.org/show_bug.cgi?id=33840
  41218. Test: printing/page-break-always.html
  41219. * WebCore.base.exp:
  41220. * WebCore.xcodeproj/project.pbxproj:
  41221. * page/PrintContext.cpp:
  41222. (WebCore::PrintContext::pageRect): Added a getter function.
  41223. (WebCore::PrintContext::computePageRects): Move its logic into computePageRectsWithPageSize.
  41224. (WebCore::PrintContext::computePageRectsWithPageSize): Factored out from computePageRects for pageNumberForElement.
  41225. (WebCore::enclosingBoxModelObject): Added for pageNumberForElement.
  41226. (WebCore::PrintContext::pageNumberForElement): Added for testing.
  41227. * page/PrintContext.h:
  41228. 2010-02-01 Kwang Yul Seo <skyul@company100.net>
  41229. Reviewed by Eric Seidel.
  41230. [BREWMP] Add conversions between IntSize and AEESize
  41231. https://bugs.webkit.org/show_bug.cgi?id=34197
  41232. Make it easy to convert between IntSize and AEESize.
  41233. * platform/graphics/IntSize.h:
  41234. * platform/graphics/brew/IntSizeBrew.cpp: Added.
  41235. (WebCore::IntSize::IntSize):
  41236. (WebCore::IntSize::operator AEESize):
  41237. 2010-02-01 Stephen White <senorblanco@chromium.org>
  41238. Reviewed by Eric Seidel.
  41239. Fix for Pattern transformations in Chromium/Skia. This required
  41240. reworking Pattern a bit to be more like the Gradient implementation.
  41241. In particular, it now holds an m_pattern reference to the
  41242. platform-specific implementation, and passes along changes to the
  41243. m_patternSpaceTransformation, in the same way that Gradient does for
  41244. m_gradientSpaceTransformation. This is necessary since Skia creates the
  41245. platform-specific pattern (SkShader) once, rather than recreating it
  41246. on each draw.
  41247. For platforms other than Skia, m_pattern is unused, they will
  41248. continue to use the static createPlatformPattern(), and the new
  41249. notification functions are stubbed out. Other platforms can switch to
  41250. the new implementation if they so choose.
  41251. https://bugs.webkit.org/show_bug.cgi?id=24534
  41252. Covered by svg/custom/pattern-y-offset.svg,
  41253. svg/custom/pattern-cycle-detection.svg, and many more.
  41254. * platform/graphics/Pattern.cpp:
  41255. (WebCore::Pattern::Pattern):
  41256. Initializer for m_pattern.
  41257. (WebCore::Pattern::~Pattern):
  41258. call platformDestroy().
  41259. (WebCore::Pattern::setPatternSpaceTransform):
  41260. Pass along the transform via setPlatformPatternSpaceTransform().
  41261. (WebCore::Pattern::platformDestroy):
  41262. (WebCore::Pattern::setPlatformPatternSpaceTransform):
  41263. Stub implementations for non-skia platforms.
  41264. * platform/graphics/Pattern.h:
  41265. * platform/graphics/skia/GraphicsContextSkia.cpp:
  41266. (WebCore::GraphicsContext::setPlatformFillPattern):
  41267. (WebCore::GraphicsContext::setPlatformStrokePattern):
  41268. Call platformPattern() instead of static version.
  41269. Since Pattern now owns its SkShader, no need to unref here.
  41270. * platform/graphics/skia/PatternSkia.cpp:
  41271. (WebCore::Pattern::platformDestroy):
  41272. Unref the SkShader on destroy.
  41273. (WebCore::Pattern::platformPattern):
  41274. Create the platform pattern (SkShader) once, and cache it.
  41275. (WebCore::Pattern::setPlatformPatternSpaceTransform):
  41276. Set the shader's local matrix from the m_patternSpaceTransformation.
  41277. 2010-02-01 Daniel Bates <dbates@webkit.org>
  41278. Reviewed by Adam Barth.
  41279. https://bugs.webkit.org/show_bug.cgi?id=27312
  41280. Implements support for full page blocking via the X-XSS-Protection header.
  41281. Tests: http/tests/security/xssAuditor/full-block-base-href.html
  41282. http/tests/security/xssAuditor/full-block-get-from-iframe.html
  41283. http/tests/security/xssAuditor/full-block-iframe-javascript-url.html
  41284. http/tests/security/xssAuditor/full-block-iframe-no-inherit.php
  41285. http/tests/security/xssAuditor/full-block-javascript-link.html
  41286. http/tests/security/xssAuditor/full-block-link-onclick.html
  41287. http/tests/security/xssAuditor/full-block-object-tag.html
  41288. http/tests/security/xssAuditor/full-block-post-from-iframe.html
  41289. http/tests/security/xssAuditor/full-block-script-tag-with-source.html
  41290. http/tests/security/xssAuditor/full-block-script-tag.html
  41291. http/tests/security/xssAuditor/malformed-xss-protection-header.html
  41292. * page/XSSAuditor.cpp:
  41293. (WebCore::XSSAuditor::shouldFullPageBlockForXSSProtectionHeader): Added.
  41294. (WebCore::XSSAuditor::findInRequest): Modified to call method
  41295. XSSAuditor::shouldFullPageBlockForXSSProtectionHeader.
  41296. * page/XSSAuditor.h: Defined method shouldFullPageBlockForXSSProtectionHeader
  41297. and fixed misspelled words in large comment block.
  41298. 2010-02-01 Kwang Yul Seo <skyul@company100.net>
  41299. Reviewed by Eric Seidel.
  41300. [BREWMP] Port SharedTimer with IShell_SetTimerEx.
  41301. https://bugs.webkit.org/show_bug.cgi?id=33599
  41302. As fireTime passed in setSharedTimerFireTime is the absolute time,
  41303. we must calcalute the interval by subtracting currentTime() from
  41304. fireTime and pass the result to ISHELL_SetTimerEx.
  41305. * platform/brew/SharedTimerBrew.cpp: Added.
  41306. (WebCore::invokeCallback):
  41307. (WebCore::setSharedTimerFiredFunction):
  41308. (WebCore::setSharedTimerFireTime):
  41309. (WebCore::stopSharedTimer):
  41310. 2010-02-01 Shinichiro Hamaji <hamaji@chromium.org>
  41311. [Chromium] Unreviewed attempt to fix the chromium build.
  41312. Corresponding change: http://trac.webkit.org/changeset/54182
  41313. * bindings/scripts/CodeGeneratorV8.pm:
  41314. * bindings/v8/ScriptController.cpp:
  41315. (WebCore::ScriptController::processingUserGesture):
  41316. * bindings/v8/ScriptController.h:
  41317. 2010-02-01 Dmitry Titov <dimich@chromium.org>
  41318. Reviewed by David Levin.
  41319. When a live iframe element is moved between pages, it still depends on the old page.
  41320. https://bugs.webkit.org/show_bug.cgi?id=34382
  41321. Test: fast/frames/iframe-reparenting-new-page.html
  41322. * html/HTMLFrameElementBase.cpp:
  41323. (WebCore::HTMLFrameElementBase::setName):
  41324. Move the code setting the frame name into a separate function.
  41325. (WebCore::HTMLFrameElementBase::setNameAndOpenURL):
  41326. (WebCore::HTMLFrameElementBase::updateLiveFrame):
  41327. Update frame tree, reset page in the contentFrame and re-set the name.
  41328. (WebCore::HTMLFrameElementBase::insertedIntoDocument):
  41329. * html/HTMLFrameElementBase.h:
  41330. * page/Frame.cpp:
  41331. (WebCore::Frame::setPage):
  41332. * page/Frame.h: Add setPage method. It is only currently used when iframe is
  41333. moved between pages (so the ASSERT(m_ownerElement).
  41334. 2010-02-01 Brady Eidson <beidson@apple.com>
  41335. Reviewed by Tim Hatcher.
  41336. Add common IRC ports to port blocking.
  41337. <rdar://problem/7593895> and https://bugs.webkit.org/show_bug.cgi?id=34451
  41338. * platform/KURL.cpp:
  41339. (WebCore::portAllowed):
  41340. 2010-01-29 Jeremy Orlow <jorlow@chromium.org>
  41341. Reviewed by Nate Chapin.
  41342. [V8] Add compile time guards for IndexedDB custom functions
  41343. https://bugs.webkit.org/show_bug.cgi?id=34368
  41344. * bindings/v8/custom/V8IDBRequestCustom.cpp:
  41345. * bindings/v8/custom/V8IndexedDatabaseRequestCustom.cpp:
  41346. 2010-01-29 Gavin Barraclough <barraclough@apple.com>
  41347. Reviewed by Sam Weinig + Oliver Hunt.
  41348. Bug 34346 - With JSC bindings, make processingUserGesture work with events in Isolated Worlds
  41349. Change HTMLMediaElement methods that require checking whether the event is a user gesture to
  41350. be passed a boolean. This may be passed from the JSC bindings (where we have an exec state),
  41351. or read from the event. Add a Flag to the IDL to mark this information is required.
  41352. * WebCore.Video.exp:
  41353. * bindings/js/JSDOMBinding.cpp:
  41354. (WebCore::processingUserGesture):
  41355. * bindings/js/JSDOMWindowCustom.cpp:
  41356. (WebCore::domWindowAllowPopUp):
  41357. (WebCore::JSDOMWindow::open):
  41358. (WebCore::JSDOMWindow::showModalDialog):
  41359. * bindings/js/JSDocumentCustom.cpp:
  41360. (WebCore::JSDocument::setLocation):
  41361. * bindings/js/ScriptController.cpp:
  41362. (WebCore::ScriptController::processingUserGesture):
  41363. (WebCore::ScriptController::processingUserGestureEvent):
  41364. (WebCore::ScriptController::anyPageIsProcessingUserGesture):
  41365. * bindings/js/ScriptController.h:
  41366. * bindings/scripts/CodeGeneratorJS.pm:
  41367. * dom/Event.cpp:
  41368. (WebCore::Event::isUserEvent):
  41369. * dom/Event.h:
  41370. * html/HTMLMediaElement.cpp:
  41371. (WebCore::HTMLMediaElement::removedFromDocument):
  41372. (WebCore::HTMLMediaElement::load):
  41373. (WebCore::HTMLMediaElement::play):
  41374. (WebCore::HTMLMediaElement::pause):
  41375. (WebCore::HTMLMediaElement::beginScrubbing):
  41376. (WebCore::HTMLMediaElement::documentDidBecomeActive):
  41377. (WebCore::HTMLMediaElement::webkitEnterFullScreen):
  41378. * html/HTMLMediaElement.h:
  41379. * html/HTMLMediaElement.idl:
  41380. * loader/FrameLoader.cpp:
  41381. (WebCore::FrameLoader::isProcessingUserGesture):
  41382. * loader/MediaDocument.cpp:
  41383. (WebCore::MediaDocument::defaultEventHandler):
  41384. * page/DOMWindow.cpp:
  41385. (WebCore::DOMWindow::allowPopUp):
  41386. * rendering/MediaControlElements.cpp:
  41387. (WebCore::MediaControlSeekButtonElement::defaultEventHandler):
  41388. 2010-02-01 Andreas Kling <andreas.kling@nokia.com>
  41389. Reviewed by Kenneth Rohde Christiansen.
  41390. [Qt] Use the fallback style on Maemo 5
  41391. https://bugs.webkit.org/show_bug.cgi?id=34376
  41392. * platform/qt/RenderThemeQt.cpp:
  41393. (WebCore::RenderThemeQt::RenderThemeQt):
  41394. (WebCore::RenderThemeQt::fallbackStyle):
  41395. (WebCore::RenderThemeQt::qStyle):
  41396. (WebCore::RenderThemeQt::setPaletteFromPageClientIfExists):
  41397. * platform/qt/RenderThemeQt.h:
  41398. 2010-02-01 Kavita Kanetkar <kkanetkar@chromium.org>
  41399. Reviewed by Nate Chapin.
  41400. [V8] Making V8 generated classes' GetTemplate() function public
  41401. https://bugs.webkit.org/show_bug.cgi?id=34026
  41402. * bindings/scripts/CodeGeneratorV8.pm: Generated code need not depend on V8CustomBinding.h, made GetTemplate() signature public.
  41403. 2010-02-01 Steve Block <steveblock@google.com>
  41404. Reviewed by Ariya Hidayat.
  41405. Adds V8-specific JNI bridge classes
  41406. https://bugs.webkit.org/show_bug.cgi?id=34166
  41407. This is the V8 equivalent of bridge/jni/jsc/JNIBridgeJSC.
  41408. No new tests, build fix only.
  41409. * Android.v8bindings.mk: Modified. Added JNIBridge.cpp and JNIBridgeV8.cpp
  41410. * bridge/Bridge.h: Modified. Added missing include for Noncopyable.h
  41411. * bridge/jni/v8/JNIBridgeV8.cpp: Added.
  41412. (JavaField::JavaField):
  41413. * bridge/jni/v8/JNIBridgeV8.h: Added.
  41414. (JSC::Bindings::JavaField::name):
  41415. (JSC::Bindings::JavaField::type):
  41416. (JSC::Bindings::JavaField::getJNIType):
  41417. 2010-02-01 Steve Block <steveblock@google.com>
  41418. Reviewed by Ariya Hidayat.
  41419. Adds V8-specific JNI utility functions.
  41420. https://bugs.webkit.org/show_bug.cgi?id=33901
  41421. This is the V8 equivalent of bridge/jni/jsc/JNIUtilityPrivate.
  41422. No new tests, build fix only.
  41423. * Android.v8bindings.mk: Modified. Add JNIUtilityPrivate.cpp
  41424. * bridge/jni/v8/JNIUtilityPrivate.cpp: Added.
  41425. (JSC::Bindings::convertNPVariantToJValue):
  41426. (JSC::Bindings::convertJValueToNPVariant):
  41427. * bridge/jni/v8/JNIUtilityPrivate.h: Added.
  41428. 2010-02-01 Steve Block <steveblock@google.com>
  41429. Reviewed by Ariya Hidayat.
  41430. Adds V8 version of JavaClass
  41431. https://bugs.webkit.org/show_bug.cgi?id=33898
  41432. This is the V8 equivalent of bridge/jni/jsc/JavaClassJSC
  41433. No new tests, build fix only.
  41434. * Android.v8bindings.mk: Modified. Added JavaClassV8.cpp
  41435. * bridge/jni/v8/JavaClassV8.cpp: Added.
  41436. (JavaClass::JavaClass):
  41437. (JavaClass::~JavaClass):
  41438. (JavaClass::methodsNamed):
  41439. (JavaClass::fieldNamed):
  41440. * bridge/jni/v8/JavaClassV8.h: Added.
  41441. 2010-02-01 Steve Block <steveblock@google.com>
  41442. Reviewed by Ariya Hidayat.
  41443. Adds V8 version of JavaInstance
  41444. https://bugs.webkit.org/show_bug.cgi?id=33951
  41445. This is the V8 equivalent of bridge/jni/jsc/JavaInstanceJSC.
  41446. Also fixes a typo in a comment in JavaInstanceJSC.cpp.
  41447. No new tests, build fix only.
  41448. * Android.v8bindings.mk: Modified. Added JavaInstanceV8.cpp
  41449. * bridge/jni/jsc/JavaInstanceJSC.cpp: Modified.
  41450. (JavaInstance::invokeMethod): Modified. Fixed comment
  41451. * bridge/jni/v8/JavaInstanceV8.cpp: Added.
  41452. (JavaInstance::JavaInstance):
  41453. (JavaInstance::~JavaInstance):
  41454. (JavaInstance::getClass):
  41455. (JavaInstance::invokeMethod):
  41456. (JObjectWrapper::JObjectWrapper):
  41457. (JObjectWrapper::~JObjectWrapper):
  41458. * bridge/jni/v8/JavaInstanceV8.h: Added.
  41459. (JSC::Bindings::JObjectWrapper::instance):
  41460. (JSC::Bindings::JObjectWrapper::setInstance):
  41461. (JSC::Bindings::JObjectWrapper::ref):
  41462. (JSC::Bindings::JObjectWrapper::deref):
  41463. (JSC::Bindings::JavaInstance::javaInstance):
  41464. (JSC::Bindings::JavaInstance::begin):
  41465. (JSC::Bindings::JavaInstance::end):
  41466. (JSC::Bindings::JavaInstance::virtualBegin):
  41467. (JSC::Bindings::JavaInstance::virtualEnd):
  41468. 2010-02-01 Dumitru Daniliuc <dumi@chromium.org>
  41469. Reviewed by Eric Seidel.
  41470. Making sure that all in-progress transactions are rolled back on
  41471. the database thread before they're destroyed. Otherwise,
  41472. SQLiteTransaction's destructor will try to do a rollback and that
  41473. would cause an assertion failure, if the object is not destroyed
  41474. on the DB thread.
  41475. https://bugs.webkit.org/show_bug.cgi?id=34152
  41476. * platform/sql/SQLiteTransaction.cpp:
  41477. (WebCore::SQLiteTransaction::stop):
  41478. * storage/SQLTransaction.cpp:
  41479. (WebCore::SQLTransaction::notifyDatabaseThreadIsShuttingDown):
  41480. * storage/SQLTransaction.h:
  41481. * storage/SQLTransactionCoordinator.cpp:
  41482. (WebCore::SQLTransactionCoordinator::shutdown):
  41483. 2010-02-01 Sam Weinig <sam@webkit.org>
  41484. Reviewed by Beth Dakin.
  41485. Fix EXPERIMENTAL_SINGLE_VIEW_MODE build.
  41486. * page/EventHandler.h:
  41487. * page/mac/EventHandlerMac.mm:
  41488. (WebCore::EventHandler::currentNSEvent):
  41489. (WebCore::EventHandler::currentKeyboardEvent):
  41490. (WebCore::EventHandler::mouseDown):
  41491. (WebCore::EventHandler::mouseDragged):
  41492. (WebCore::EventHandler::mouseUp):
  41493. (WebCore::EventHandler::mouseMoved):
  41494. (WebCore::EventHandler::keyEvent):
  41495. (WebCore::EventHandler::wheelEvent):
  41496. (WebCore::EventHandler::sendContextMenuEvent):
  41497. (WebCore::EventHandler::eventMayStartDrag):
  41498. (WebCore::EventHandler::sendFakeEventsAfterWidgetTracking):
  41499. 2010-02-01 Nate Chapin <japhet@chromium.org>
  41500. Unreviewed, Chromium build fix.
  41501. Failed to properly add new files for http://trac.webkit.org/changeset/54150.
  41502. * bindings/v8/custom/V8BarInfoCustom.cpp: Added.
  41503. * bindings/v8/custom/V8CSSRuleCustom.cpp: Added.
  41504. * bindings/v8/custom/V8CSSStyleSheetCustom.cpp: Added.
  41505. * bindings/v8/custom/V8CSSValueCustom.cpp: Added.
  41506. * bindings/v8/custom/V8CanvasPixelArrayCustom.cpp: Added.
  41507. * bindings/v8/custom/V8DOMSelectionCustom.cpp: Added.
  41508. * bindings/v8/custom/V8HTMLElementCustom.cpp: Added.
  41509. * bindings/v8/custom/V8SVGDocumentCustom.cpp: Added.
  41510. * bindings/v8/custom/V8SVGElementCustom.cpp: Added.
  41511. * bindings/v8/custom/V8SVGPathSegCustom.cpp: Added.
  41512. * bindings/v8/custom/V8ScreenCustom.cpp: Added.
  41513. * bindings/v8/custom/V8StyleSheetCustom.cpp: Added.
  41514. * bindings/v8/custom/V8WebGLArrayCustom.cpp: Added.
  41515. 2010-01-27 Matt Perry <mpcomplete@chromium.org>
  41516. Reviewed by Eric Seidel.
  41517. Add support for addUserScript to chromium port.
  41518. * bindings/v8/ScriptController.cpp:
  41519. (WebCore::ScriptController::evaluateInWorld):
  41520. * bindings/v8/ScriptController.h:
  41521. 2010-02-01 Eric Carlson <eric.carlson@apple.com>
  41522. Reviewed by Dan Bernstein.
  41523. https://bugs.webkit.org/show_bug.cgi?id=34448
  41524. <rdar://problem/7598130>
  41525. RenderVideo::intrinsicSizeChanged infinite recursion
  41526. * rendering/RenderImage.h:
  41527. (WebCore::RenderImage::intrinsicSizeChanged): Make protected instead of private so it can
  41528. be called by RenderVideo.
  41529. * rendering/RenderVideo.cpp:
  41530. (WebCore::RenderVideo::intrinsicSizeChanged): Call RenderMedia::intrinsicSizeChanged, not
  41531. RenderVideo::intrinsicSizeChanged.
  41532. (WebCore::RenderVideo::imageChanged): Call RenderMedia::imageChanged instead of
  41533. RenderImage::imageChanged.
  41534. 2010-02-01 Nate Chapin <japhet@chromium.org>
  41535. Reviewed by Dimitri Glazkov.
  41536. [V8] Generate toV8() converter for most WebCore->V8 conversions,
  41537. and defined custom converters in their respective V8<class>Custom.cpp.
  41538. Old converters in V8DOMWrapper will be deleted in a later patch.
  41539. https://bugs.webkit.org/show_bug.cgi?id=32563
  41540. * Android.v8bindings.mk:
  41541. * WebCore.gyp/WebCore.gyp:
  41542. * WebCore.gypi:
  41543. * bindings/scripts/CodeGeneratorV8.pm:
  41544. * bindings/v8/V8Collection.h:
  41545. * bindings/v8/V8DOMWrapper.cpp:
  41546. * bindings/v8/V8DOMWrapper.h:
  41547. * bindings/v8/V8Proxy.h:
  41548. * bindings/v8/custom/V8BarInfoCustom.cpp: Added.
  41549. * bindings/v8/custom/V8CSSRuleCustom.cpp: Added.
  41550. * bindings/v8/custom/V8CSSStyleSheetCustom.cpp: Added.
  41551. * bindings/v8/custom/V8CSSValueCustom.cpp: Added.
  41552. * bindings/v8/custom/V8CanvasPixelArrayCustom.cpp: Added.
  41553. * bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp:
  41554. * bindings/v8/custom/V8ConsoleCustom.cpp:
  41555. * bindings/v8/custom/V8DOMSelectionCustom.cpp: Added.
  41556. * bindings/v8/custom/V8DOMWindowCustom.cpp:
  41557. * bindings/v8/custom/V8DocumentCustom.cpp:
  41558. * bindings/v8/custom/V8ElementCustom.cpp:
  41559. * bindings/v8/custom/V8EventCustom.cpp:
  41560. * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
  41561. * bindings/v8/custom/V8HTMLElementCustom.cpp: Added.
  41562. * bindings/v8/custom/V8HTMLSelectElementCustom.cpp:
  41563. * bindings/v8/custom/V8HistoryCustom.cpp:
  41564. * bindings/v8/custom/V8LocationCustom.cpp:
  41565. * bindings/v8/custom/V8NamedNodeMapCustom.cpp:
  41566. * bindings/v8/custom/V8NavigatorCustom.cpp:
  41567. * bindings/v8/custom/V8NodeCustom.cpp:
  41568. * bindings/v8/custom/V8SVGDocumentCustom.cpp: Added.
  41569. * bindings/v8/custom/V8SVGElementCustom.cpp: Added.
  41570. * bindings/v8/custom/V8SVGPathSegCustom.cpp: Added.
  41571. * bindings/v8/custom/V8ScreenCustom.cpp: Added.
  41572. * bindings/v8/custom/V8StyleSheetCustom.cpp: Added.
  41573. * bindings/v8/custom/V8TreeWalkerCustom.cpp:
  41574. * bindings/v8/custom/V8WebGLArrayCustom.cpp: Added.
  41575. * bindings/v8/custom/V8WebGLByteArrayCustom.cpp:
  41576. * bindings/v8/custom/V8WebGLFloatArrayCustom.cpp:
  41577. * bindings/v8/custom/V8WebGLIntArrayCustom.cpp:
  41578. * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
  41579. * bindings/v8/custom/V8WebGLShortArrayCustom.cpp:
  41580. * bindings/v8/custom/V8WebGLUnsignedByteArrayCustom.cpp:
  41581. * bindings/v8/custom/V8WebGLUnsignedIntArrayCustom.cpp:
  41582. * bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp:
  41583. * dom/make_names.pl: Add options to generate wrapper factory for V8 bindings.
  41584. 2010-02-01 Alexander Pavlov <apavlov@chromium.org>
  41585. Reviewed by Pavel Feldman.
  41586. Web Inspector: lazy-load textual resources to avoid UI hangup
  41587. https://bugs.webkit.org/show_bug.cgi?id=34332
  41588. * inspector/front-end/ResourceView.js:
  41589. (WebInspector.ResourceView.prototype._innerSelectContentTab):
  41590. * inspector/front-end/SourceView.js:
  41591. (WebInspector.SourceView.prototype.show):
  41592. (WebInspector.SourceView.prototype.contentTabSelected):
  41593. 2010-02-01 Brady Eidson <beidson@apple.com>
  41594. Reviewed by Adele Peterson.
  41595. Crash in Safari opening new tabs to "same page"
  41596. <rdar://problem/7593857> and https://bugs.webkit.org/show_bug.cgi?id=34444
  41597. Test: fast/loader/crash-copying-backforwardlist.html
  41598. * loader/FrameLoader.cpp:
  41599. (WebCore::FrameLoader::loadItem): Null check currentItem().
  41600. * page/Page.cpp:
  41601. (WebCore::Page::goToItem): Ditto.
  41602. 2010-02-01 Kevin Watters <kevinwatters@gmail.com>
  41603. Reviewed by Kevin Ollivier.
  41604. [wx] Remove unused file that doesn't seem to belong to the port.
  41605. https://bugs.webkit.org/show_bug.cgi?id=34445
  41606. * platform/wx/KeyEventWin.cpp: Removed.
  41607. 2010-02-01 Eric Carlson <eric.carlson@apple.com>
  41608. Reviewed by Adele Peterson.
  41609. Fullscreen API should be on HTMLVideoElement
  41610. https://bugs.webkit.org/show_bug.cgi?id=34438
  41611. Move fullscreen DOM APIs from HTMLMediaElement to HTMLVideoElement.
  41612. * html/HTMLMediaElement.cpp:
  41613. * html/HTMLMediaElement.h:
  41614. * html/HTMLMediaElement.idl:
  41615. * html/HTMLVideoElement.cpp:
  41616. (WebCore::HTMLVideoElement::paint): Removed outdated FIXME.
  41617. (WebCore::HTMLVideoElement::paintCurrentFrameInContext): Ditto.
  41618. (WebCore::HTMLVideoElement::webkitEnterFullScreen): Moved from HTMLMediaElement.
  41619. (WebCore::HTMLVideoElement::webkitExitFullScreen): Ditto.
  41620. (WebCore::HTMLVideoElement::webkitSupportsFullscreen): Ditto.
  41621. (WebCore::HTMLVideoElement::webkitDisplayingFullscreen): Ditto.
  41622. * html/HTMLVideoElement.h:
  41623. * html/HTMLVideoElement.idl:
  41624. 2010-02-01 Pavel Feldman <pfeldman@chromium.org>
  41625. Reviewed by Timothy Hatcher.
  41626. Web Inspector: Syntax highlighting in source view of
  41627. Resources pane stops half-way.
  41628. There were two problems here: (1) styles for html highlighter were not
  41629. added into the css file (they used to be injected manually in the
  41630. SourceFrame before). (2) 'Tag' needed to be lexer's state, not parser's.
  41631. Otherwise unbalanced quotes in the text nodes were matching too match
  41632. into the string tokens.
  41633. https://bugs.webkit.org/show_bug.cgi?id=34359
  41634. * inspector/front-end/NativeTextViewer.js:
  41635. (WebInspector.NativeTextViewer.prototype._createLineDivs):
  41636. (WebInspector.NativeTextViewer.prototype._lineHeight):
  41637. (WebInspector.NativeTextViewer.prototype.initFontMetrics):
  41638. * inspector/front-end/SourceFrame.js:
  41639. (WebInspector.SourceFrame.prototype._createEditorIfNeeded):
  41640. * inspector/front-end/SourceHTMLTokenizer.js:
  41641. (WebInspector.SourceHTMLTokenizer):
  41642. (WebInspector.SourceHTMLTokenizer.prototype.nextToken):
  41643. * inspector/front-end/SourceHTMLTokenizer.re2js:
  41644. * inspector/front-end/TextEditor.js:
  41645. (WebInspector.TextEditor.prototype.initFontMetrics):
  41646. (WebInspector.TextEditor.prototype._registerShortcuts):
  41647. * inspector/front-end/inspectorSyntaxHighlight.css:
  41648. 2010-02-01 Ben Murdoch <benm@google.com>
  41649. Reviewed by Darin Adler.
  41650. ScriptCallFrame's do not get line numbers/source id's if the caller is unkown.
  41651. https://bugs.webkit.org/show_bug.cgi?id=34335
  41652. * bindings/js/ScriptCallStack.cpp:
  41653. (WebCore::ScriptCallStack::ScriptCallStack): If the caller is unknown, the line number and source information is still available so pass it to the ScriptCallFrame being constructed.
  41654. 2010-02-01 Dirk Schulze <krit@webkit.org>
  41655. Reviewed by Simon Fraser.
  41656. Add back an AffineTransform class for use by SVG
  41657. https://bugs.webkit.org/show_bug.cgi?id=33750
  41658. These are the first steps on reimplementing AffineTransform. Unlike
  41659. the old affine code, this one is platform independent like TransformationMatrix.
  41660. AffineTransform has the benefit, that it stores just 6 doubles instead of
  41661. 16 in TransformationMatrix. The calculations of transformations are not that
  41662. complex and can improve the memory usage and speed of SVG.
  41663. AffineTransform can be used by HTML Canvas3D or SVG, since they are 2D related (at
  41664. least for the moment).
  41665. HTML Canvas is the first that makes use of the new AffineTransform. Next patches
  41666. will introduce the affine code to SVG.
  41667. No new tests. The new AffineTransformation code is tested by fast/canvas.
  41668. * Android.mk:
  41669. * GNUmakefile.am:
  41670. * WebCore.gypi:
  41671. * WebCore.pro:
  41672. * WebCore.vcproj/WebCore.vcproj:
  41673. * WebCore.xcodeproj/project.pbxproj:
  41674. * html/canvas/CanvasRenderingContext2D.cpp:
  41675. (WebCore::CanvasRenderingContext2D::scale):
  41676. (WebCore::CanvasRenderingContext2D::rotate):
  41677. (WebCore::CanvasRenderingContext2D::translate):
  41678. (WebCore::CanvasRenderingContext2D::transform):
  41679. (WebCore::CanvasRenderingContext2D::setTransform):
  41680. (WebCore::CanvasRenderingContext2D::isPointInPath):
  41681. (WebCore::CanvasRenderingContext2D::willDraw):
  41682. * html/canvas/CanvasRenderingContext2D.h:
  41683. * platform/graphics/GraphicsContext.h:
  41684. * platform/graphics/Path.h:
  41685. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  41686. (WebCore::GraphicsContext::getAffineCTM):
  41687. (WebCore::GraphicsContext::concatCTM):
  41688. * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
  41689. (WebCore::GraphicsContextPlatformPrivate::concatCTM):
  41690. * platform/graphics/cairo/PathCairo.cpp:
  41691. (WebCore::Path::transform):
  41692. * platform/graphics/cairo/TransformationMatrixCairo.cpp:
  41693. (WebCore::AffineTransform::operator cairo_matrix_t):
  41694. * platform/graphics/cg/GraphicsContextCG.cpp:
  41695. (WebCore::GraphicsContext::concatCTM):
  41696. (WebCore::GraphicsContext::getAffineCTM):
  41697. * platform/graphics/cg/GraphicsContextPlatformPrivateCG.h:
  41698. (WebCore::GraphicsContextPlatformPrivate::concatCTM):
  41699. * platform/graphics/cg/PathCG.cpp:
  41700. (WebCore::Path::transform):
  41701. * platform/graphics/cg/TransformationMatrixCG.cpp:
  41702. (WebCore::AffineTransform::operator CGAffineTransform):
  41703. * platform/graphics/haiku/GraphicsContextHaiku.cpp:
  41704. (WebCore::GraphicsContext::getAffineCTM):
  41705. (WebCore::GraphicsContext::concatCTM):
  41706. * platform/graphics/haiku/PathHaiku.cpp:
  41707. (WebCore::Path::transform):
  41708. * platform/graphics/qt/GraphicsContextQt.cpp:
  41709. (WebCore::GraphicsContext::getAffineCTM):
  41710. (WebCore::GraphicsContext::concatCTM):
  41711. * platform/graphics/qt/PathQt.cpp:
  41712. (WebCore::Path::transform):
  41713. * platform/graphics/qt/TransformationMatrixQt.cpp:
  41714. (WebCore::AffineTransform::operator QTransform):
  41715. * platform/graphics/skia/GraphicsContextSkia.cpp:
  41716. (WebCore::GraphicsContext::concatCTM):
  41717. (WebCore::GraphicsContext::getAffineCTM):
  41718. * platform/graphics/skia/PathSkia.cpp:
  41719. (WebCore::Path::transform):
  41720. * platform/graphics/skia/TransformationMatrixSkia.cpp:
  41721. (WebCore::AffineTransform::operator SkMatrix):
  41722. * platform/graphics/transforms/AffineTransform.cpp: Added.
  41723. (WebCore::affineTransformDecompose):
  41724. (WebCore::affineTransformCompose):
  41725. (WebCore::AffineTransform::AffineTransform):
  41726. (WebCore::AffineTransform::reset):
  41727. (WebCore::AffineTransform::setMatrix):
  41728. (WebCore::AffineTransform::isIdentity):
  41729. (WebCore::AffineTransform::det):
  41730. (WebCore::AffineTransform::isInvertible):
  41731. (WebCore::AffineTransform::inverse):
  41732. (WebCore::AffineTransform::multiply):
  41733. (WebCore::AffineTransform::multLeft):
  41734. (WebCore::AffineTransform::rotate):
  41735. (WebCore::AffineTransform::scale):
  41736. (WebCore::AffineTransform::translate):
  41737. (WebCore::AffineTransform::scaleNonUniform):
  41738. (WebCore::AffineTransform::rotateFromVector):
  41739. (WebCore::AffineTransform::flipX):
  41740. (WebCore::AffineTransform::flipY):
  41741. (WebCore::AffineTransform::shear):
  41742. (WebCore::AffineTransform::skew):
  41743. (WebCore::AffineTransform::skewX):
  41744. (WebCore::AffineTransform::skewY):
  41745. (WebCore::makeMapBetweenRects):
  41746. (WebCore::AffineTransform::map):
  41747. (WebCore::AffineTransform::mapPoint):
  41748. (WebCore::AffineTransform::mapRect):
  41749. (WebCore::AffineTransform::blend):
  41750. (WebCore::AffineTransform::toTransformationMatrix):
  41751. * platform/graphics/transforms/AffineTransform.h: Added.
  41752. (WebCore::AffineTransform::a):
  41753. (WebCore::AffineTransform::setA):
  41754. (WebCore::AffineTransform::b):
  41755. (WebCore::AffineTransform::setB):
  41756. (WebCore::AffineTransform::c):
  41757. (WebCore::AffineTransform::setC):
  41758. (WebCore::AffineTransform::d):
  41759. (WebCore::AffineTransform::setD):
  41760. (WebCore::AffineTransform::e):
  41761. (WebCore::AffineTransform::setE):
  41762. (WebCore::AffineTransform::f):
  41763. (WebCore::AffineTransform::setF):
  41764. (WebCore::AffineTransform::operator== ):
  41765. (WebCore::AffineTransform::operator!=):
  41766. (WebCore::AffineTransform::operator*=):
  41767. (WebCore::AffineTransform::operator*):
  41768. (WebCore::AffineTransform::setMatrix):
  41769. * platform/graphics/win/GraphicsContextWin.cpp:
  41770. (WebCore::GraphicsContextPlatformPrivate::concatCTM):
  41771. * platform/graphics/wince/GraphicsContextWince.cpp:
  41772. (WebCore::GraphicsContext::concatCTM):
  41773. (WebCore::GraphicsContext::getAffineCTM):
  41774. * platform/graphics/wx/GraphicsContextWx.cpp:
  41775. (WebCore::GraphicsContext::getAffineCTM):
  41776. (WebCore::GraphicsContext::concatCTM):
  41777. * platform/graphics/wx/PathWx.cpp:
  41778. (WebCore::Path::transform):
  41779. * platform/graphics/wx/TransformationMatrixWx.cpp:
  41780. (WebCore::AffineTransform::operator wxGraphicsMatrix):
  41781. 2010-01-29 Philippe Normand <pnormand@igalia.com>
  41782. Reviewed by Eric Carlson.
  41783. [GTK] set playbin mute property depending on volume value
  41784. https://bugs.webkit.org/show_bug.cgi?id=31586
  41785. New API in MediaPlayer for mute control. 3 new methods are
  41786. introduced:
  41787. - bool supportsMuting() const;
  41788. - bool muted() const;
  41789. - void setMuted(bool);
  41790. Platform MediaPlayer implementations can support it easily if the
  41791. underlying sound daemon/API supports muting (eg. not only setting
  41792. volume to 0) like PulseAudio for instance on Linux. At the moment
  41793. the only player supporting this new API is the
  41794. MediaPlayerPrivateGStreamer.
  41795. * html/HTMLMediaElement.cpp:
  41796. (WebCore::HTMLMediaElement::setMuted):
  41797. (WebCore::HTMLMediaElement::mediaPlayerVolumeChanged):
  41798. (WebCore::HTMLMediaElement::mediaPlayerMuteChanged):
  41799. * html/HTMLMediaElement.h:
  41800. * platform/graphics/MediaPlayer.cpp:
  41801. (WebCore::NullMediaPlayerPrivate::supportsMuting):
  41802. (WebCore::NullMediaPlayerPrivate::setMuted):
  41803. (WebCore::MediaPlayer::MediaPlayer):
  41804. (WebCore::MediaPlayer::muted):
  41805. (WebCore::MediaPlayer::supportsMuting):
  41806. (WebCore::MediaPlayer::setMuted):
  41807. (WebCore::MediaPlayer::volumeChanged):
  41808. (WebCore::MediaPlayer::muteChanged):
  41809. * platform/graphics/MediaPlayer.h:
  41810. (WebCore::MediaPlayerClient::mediaPlayerMuteChanged):
  41811. * platform/graphics/MediaPlayerPrivate.h:
  41812. (WebCore::MediaPlayerPrivateInterface::supportsMuting):
  41813. (WebCore::MediaPlayerPrivateInterface::setMuted):
  41814. * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
  41815. (WebCore::mediaPlayerPrivateVolumeChangedCallback):
  41816. (WebCore::notifyVolumeIdleCallback):
  41817. (WebCore::mediaPlayerPrivateMuteChangedCallback):
  41818. (WebCore::notifyMuteIdleCallback):
  41819. (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
  41820. (WebCore::MediaPlayerPrivate::~MediaPlayerPrivate):
  41821. (WebCore::MediaPlayerPrivate::volumeChangedCallback):
  41822. (WebCore::MediaPlayerPrivate::volumeChanged):
  41823. (WebCore::MediaPlayerPrivate::supportsMuting):
  41824. (WebCore::MediaPlayerPrivate::setMuted):
  41825. (WebCore::MediaPlayerPrivate::muteChangedCallback):
  41826. (WebCore::MediaPlayerPrivate::muteChanged):
  41827. (WebCore::MediaPlayerPrivate::createGSTPlayBin):
  41828. * platform/graphics/gtk/MediaPlayerPrivateGStreamer.h:
  41829. 2010-02-01 Henry Haverinen <henry.haverinen@nokia.com>
  41830. Reviewed by Simon Hausmann.
  41831. [Qt] Build without SSL support is broken
  41832. Added missing #ifdefs for OpenSSL support and one null-pointer
  41833. check for the socket.
  41834. https://bugs.webkit.org/show_bug.cgi?id=34416
  41835. * platform/network/qt/SocketStreamHandlePrivate.h:
  41836. * platform/network/qt/SocketStreamHandleQt.cpp:
  41837. (WebCore::SocketStreamHandlePrivate::SocketStreamHandlePrivate):
  41838. (WebCore::SocketStreamHandlePrivate::send):
  41839. 2010-02-01 Pavel Feldman <pfeldman@chromium.org>
  41840. Reviewed by Timothy Hatcher.
  41841. Web Inspector: Fix rest of the NativeTextViewer (line numbers,
  41842. conditional breakpoints, selection).
  41843. * inspector/front-end/NativeTextViewer.js:
  41844. (WebInspector.NativeTextViewer):
  41845. (WebInspector.NativeTextViewer.prototype._updatePreferredSize):
  41846. (WebInspector.NativeTextViewer.prototype._registerMouseListeners):
  41847. (WebInspector.NativeTextViewer.prototype._mouseDown):
  41848. (WebInspector.NativeTextViewer.prototype._contextMenu):
  41849. (WebInspector.NativeTextViewer.prototype._lineForMouseEvent):
  41850. (WebInspector.NativeTextViewer.prototype._lineHeight):
  41851. * inspector/front-end/TextEditor.js:
  41852. (WebInspector.TextEditor):
  41853. (WebInspector.TextEditor.prototype._registerMouseListeners):
  41854. (WebInspector.TextEditor.prototype._offsetToLine):
  41855. (WebInspector.TextEditor.prototype._lineHeight):
  41856. (WebInspector.TextEditor.prototype.reveal):
  41857. (WebInspector.TextEditor.prototype._paint):
  41858. (WebInspector.TextEditor.prototype._updateDivDecorations):
  41859. (WebInspector.TextEditor.prototype._paintSelection):
  41860. 2010-02-01 Steve Block <steveblock@google.com>
  41861. Reviewed by Ariya Hidayat.
  41862. Adds implementation of JavaString for V8.
  41863. https://bugs.webkit.org/show_bug.cgi?id=33953
  41864. No new tests, build fix only.
  41865. * bridge/jni/JNIBridge.h: Modified. Include JavaStringV8.h for V8
  41866. * bridge/jni/v8: Added.
  41867. * bridge/jni/v8/JavaStringV8.h: Added.
  41868. (JSC::Bindings::JavaStringImpl::init):
  41869. (JSC::Bindings::JavaStringImpl::UTF8String):
  41870. (JSC::Bindings::JavaStringImpl::uchars):
  41871. (JSC::Bindings::JavaStringImpl::length):
  41872. 2010-02-01 Alex Milowski <alex@milowski.com>
  41873. Reviewed by Darin Adler.
  41874. Added compile time debug support for mathml layout (block boundary & baseline)
  41875. * mathml/RenderMathMLBlock.cpp:
  41876. (WebCore::RenderMathMLBlock::stretchToHeight):
  41877. (WebCore::RenderMathMLBlock::paint):
  41878. * mathml/RenderMathMLBlock.h:
  41879. 2010-02-01 Philippe Normand <pnormand@igalia.com>
  41880. Rubber stamped by Xan Lopez.
  41881. Fixed compilation warning about unsigned vs signed comparison.
  41882. * plugins/gtk/PluginViewGtk.cpp:
  41883. (WebCore::PluginView::paint):
  41884. 2010-01-31 Kent Tamura <tkent@chromium.org>
  41885. Unreviewed. Revert r54112 and r54124 because of Windows build error.
  41886. * Android.mk:
  41887. * GNUmakefile.am:
  41888. * WebCore.gypi:
  41889. * WebCore.pro:
  41890. * WebCore.vcproj/WebCore.vcproj:
  41891. * WebCore.xcodeproj/project.pbxproj:
  41892. * html/canvas/CanvasRenderingContext2D.cpp:
  41893. (WebCore::CanvasRenderingContext2D::scale):
  41894. (WebCore::CanvasRenderingContext2D::rotate):
  41895. (WebCore::CanvasRenderingContext2D::translate):
  41896. (WebCore::CanvasRenderingContext2D::transform):
  41897. (WebCore::CanvasRenderingContext2D::setTransform):
  41898. (WebCore::CanvasRenderingContext2D::isPointInPath):
  41899. (WebCore::CanvasRenderingContext2D::willDraw):
  41900. * html/canvas/CanvasRenderingContext2D.h:
  41901. * platform/graphics/GraphicsContext.h:
  41902. * platform/graphics/Path.h:
  41903. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  41904. * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
  41905. * platform/graphics/cairo/PathCairo.cpp:
  41906. * platform/graphics/cairo/TransformationMatrixCairo.cpp:
  41907. * platform/graphics/cg/GraphicsContextCG.cpp:
  41908. * platform/graphics/cg/GraphicsContextPlatformPrivateCG.h:
  41909. * platform/graphics/cg/PathCG.cpp:
  41910. * platform/graphics/cg/TransformationMatrixCG.cpp:
  41911. * platform/graphics/haiku/GraphicsContextHaiku.cpp:
  41912. * platform/graphics/haiku/PathHaiku.cpp:
  41913. * platform/graphics/qt/GraphicsContextQt.cpp:
  41914. * platform/graphics/qt/PathQt.cpp:
  41915. * platform/graphics/qt/TransformationMatrixQt.cpp:
  41916. * platform/graphics/skia/GraphicsContextSkia.cpp:
  41917. * platform/graphics/skia/PathSkia.cpp:
  41918. * platform/graphics/skia/TransformationMatrixSkia.cpp:
  41919. * platform/graphics/transforms/AffineTransform.cpp: Removed.
  41920. * platform/graphics/transforms/AffineTransform.h: Removed.
  41921. * platform/graphics/wince/GraphicsContextWince.cpp:
  41922. * platform/graphics/wx/GraphicsContextWx.cpp:
  41923. * platform/graphics/wx/PathWx.cpp:
  41924. * platform/graphics/wx/TransformationMatrixWx.cpp:
  41925. (WebCore::TransformationMatrix::operator wxGraphicsMatrix):
  41926. 2010-01-31 Kwang Yul Seo <skyul@company100.net>
  41927. Reviewed by Darin Adler.
  41928. Limit the scope of packing alignment to avoid MSVC C4103 warning.
  41929. https://bugs.webkit.org/show_bug.cgi?id=34390
  41930. Use pack(push, 16) and pack(pop) to limit the scope of packing
  41931. alignment change.
  41932. * bindings/js/JSSVGPODTypeWrapper.h:
  41933. 2010-01-31 Kent Tamura <tkent@chromium.org>
  41934. Reviewed by Darin Adler.
  41935. Fix valueAsNumber calculation for type=month.
  41936. https://bugs.webkit.org/show_bug.cgi?id=34304
  41937. valueAsNumber calculation for type=month which was checked in as
  41938. r53893 was the number of milliseconds since UNIX epoch, and it was
  41939. wrong. The correct way is the number months since UNIX epoch.
  41940. * html/DateComponents.cpp:
  41941. (WebCore::DateComponents::setMonthsSinceEpoch):
  41942. (WebCore::DateComponents::monthsSinceEpoch):
  41943. * html/DateComponents.h: Declare setMonthsSinceEpoch() and monthsSinceEpoch().
  41944. * html/HTMLInputElement.cpp:
  41945. (WebCore::HTMLInputElement::parseToDouble):
  41946. Switch to monthsSinceEpoch() for type=MONTH.
  41947. (WebCore::HTMLInputElement::valueAsDate):
  41948. Add code with millisecondsSinceEpoch() for MONTH because
  41949. parseToDouble() changed its behavior.
  41950. (WebCore::HTMLInputElement::setValueAsNumber):
  41951. Use setMonthsSinceEpoch() for MONTH.
  41952. 2010-01-31 Dan Bernstein <mitz@apple.com>
  41953. Reviewed by Timothy Hatcher.
  41954. Web Inspector: REGRESSION: Numbers in bubbles are vertically off-center
  41955. https://bugs.webkit.org/show_bug.cgi?id=34398
  41956. * inspector/front-end/inspector.css: Specify line-height: normal for
  41957. ".console-message .bubble" and ".sidebar-tree-item .status .bubble".
  41958. 2010-01-28 Ojan Vafai <ojan@chromium.org>
  41959. Reviewed by Darin Adler.
  41960. Implement CSSOM Range.getClientRects for collapsed selections
  41961. https://bugs.webkit.org/show_bug.cgi?id=34239
  41962. When getting the quads for a range on a text node, allow returning
  41963. zero width quads. This leaves the case of collapsed selections inside
  41964. elements still not fixed, but no worse.
  41965. * rendering/InlineTextBox.cpp:
  41966. (WebCore::InlineTextBox::selectionRect):
  41967. * rendering/RenderText.cpp:
  41968. (WebCore::RenderText::absoluteQuadsForRange):
  41969. 2010-01-31 Oliver Hunt <oliver@apple.com>
  41970. Reviewed by Simon Fraser.
  41971. Animated scaling of background-image is too slow
  41972. https://bugs.webkit.org/show_bug.cgi?id=33808
  41973. Implement a version of the RenderImage animated scaling optimisation
  41974. for background images. Due to the possibility of arbitrary transforms
  41975. being applied to containing elements we explicitly check the current
  41976. CTM of the context for scaling or rotation.
  41977. * platform/graphics/GraphicsContext.cpp:
  41978. (WebCore::GraphicsContext::drawTiledImage):
  41979. * platform/graphics/GraphicsContext.h:
  41980. * platform/graphics/transforms/TransformationMatrix.h:
  41981. (WebCore::TransformationMatrix::isIdentityOrTranslation):
  41982. * rendering/RenderBoxModelObject.cpp:
  41983. (WebCore::RenderBoxModelScaleData::RenderBoxModelScaleData):
  41984. (WebCore::RenderBoxModelScaleData::~RenderBoxModelScaleData):
  41985. (WebCore::RenderBoxModelScaleData::hiqhQualityRepaintTimer):
  41986. (WebCore::RenderBoxModelScaleData::size):
  41987. (WebCore::RenderBoxModelScaleData::setSize):
  41988. (WebCore::RenderBoxModelScaleData::lastPaintTime):
  41989. (WebCore::RenderBoxModelScaleData::setLastPaintTime):
  41990. (WebCore::RenderBoxModelScaleData::useLowQualityScale):
  41991. (WebCore::RenderBoxModelScaleData::transform):
  41992. (WebCore::RenderBoxModelScaleData::setTransform):
  41993. (WebCore::RenderBoxModelScaleData::setUseLowQualityScale):
  41994. (WebCore::RenderBoxModelScaleObserver::boxModelObjectDestroyed):
  41995. (WebCore::RenderBoxModelScaleObserver::highQualityRepaintTimerFired):
  41996. (WebCore::RenderBoxModelScaleObserver::shouldPaintBackgroundAtLowQuality):
  41997. (WebCore::RenderBoxModelObject::highQualityRepaintTimerFired):
  41998. (WebCore::RenderBoxModelObject::~RenderBoxModelObject):
  41999. (WebCore::RenderBoxModelObject::paintFillLayerExtended):
  42000. * rendering/RenderBoxModelObject.h:
  42001. 2010-01-31 Dirk Schulze <krit@webkit.org>
  42002. Reviewed by Simon Fraser.
  42003. Add back an AffineTransform class for use by SVG
  42004. https://bugs.webkit.org/show_bug.cgi?id=33750
  42005. These are the first steps on reimplementing AffineTransform. Unlike
  42006. the old affine code, this one is platform independent like TransformationMatrix.
  42007. AffineTransform has the benefit, that it stores just 6 doubles instead of
  42008. 16 in TransformationMatrix. The calculations of transformations are not that
  42009. complex and can improve the memory usage and speed of SVG.
  42010. AffineTransform can be used by HTML Canvas3D or SVG, since they are 2D related (at
  42011. least for the moment).
  42012. HTML Canvas is the first that makes use of the new AffineTransform. Next patches
  42013. will introduce the affine code to SVG.
  42014. No new tests. The new AffineTransformation code is tested by fast/canvas.
  42015. * Android.mk:
  42016. * GNUmakefile.am:
  42017. * WebCore.gypi:
  42018. * WebCore.pro:
  42019. * WebCore.vcproj/WebCore.vcproj:
  42020. * WebCore.xcodeproj/project.pbxproj:
  42021. * html/canvas/CanvasRenderingContext2D.cpp:
  42022. (WebCore::CanvasRenderingContext2D::scale):
  42023. (WebCore::CanvasRenderingContext2D::rotate):
  42024. (WebCore::CanvasRenderingContext2D::translate):
  42025. (WebCore::CanvasRenderingContext2D::transform):
  42026. (WebCore::CanvasRenderingContext2D::setTransform):
  42027. (WebCore::CanvasRenderingContext2D::isPointInPath):
  42028. (WebCore::CanvasRenderingContext2D::willDraw):
  42029. * html/canvas/CanvasRenderingContext2D.h:
  42030. * platform/graphics/GraphicsContext.h:
  42031. * platform/graphics/Path.h:
  42032. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  42033. (WebCore::GraphicsContext::getAffineCTM):
  42034. (WebCore::GraphicsContext::concatCTM):
  42035. * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
  42036. (WebCore::GraphicsContextPlatformPrivate::concatCTM):
  42037. * platform/graphics/cairo/PathCairo.cpp:
  42038. (WebCore::Path::transform):
  42039. * platform/graphics/cairo/TransformationMatrixCairo.cpp:
  42040. (WebCore::AffineTransform::operator cairo_matrix_t):
  42041. * platform/graphics/cg/GraphicsContextCG.cpp:
  42042. (WebCore::GraphicsContext::concatCTM):
  42043. (WebCore::GraphicsContext::getAffineCTM):
  42044. * platform/graphics/cg/GraphicsContextPlatformPrivateCG.h:
  42045. (WebCore::GraphicsContextPlatformPrivate::concatCTM):
  42046. * platform/graphics/cg/PathCG.cpp:
  42047. (WebCore::Path::transform):
  42048. * platform/graphics/cg/TransformationMatrixCG.cpp:
  42049. (WebCore::AffineTransform::operator CGAffineTransform):
  42050. * platform/graphics/haiku/GraphicsContextHaiku.cpp:
  42051. (WebCore::GraphicsContext::getAffineCTM):
  42052. (WebCore::GraphicsContext::concatCTM):
  42053. * platform/graphics/haiku/PathHaiku.cpp:
  42054. (WebCore::Path::transform):
  42055. * platform/graphics/qt/GraphicsContextQt.cpp:
  42056. (WebCore::GraphicsContext::getAffineCTM):
  42057. (WebCore::GraphicsContext::concatCTM):
  42058. * platform/graphics/qt/PathQt.cpp:
  42059. (WebCore::Path::transform):
  42060. * platform/graphics/qt/TransformationMatrixQt.cpp:
  42061. (WebCore::AffineTransform::operator QTransform):
  42062. * platform/graphics/skia/GraphicsContextSkia.cpp:
  42063. (WebCore::GraphicsContext::getAffineCTM):
  42064. * platform/graphics/skia/PathSkia.cpp:
  42065. (WebCore::Path::transform):
  42066. * platform/graphics/skia/TransformationMatrixSkia.cpp:
  42067. (WebCore::AffineTransform::operator SkMatrix):
  42068. * platform/graphics/transforms/AffineTransform.cpp: Added.
  42069. (WebCore::affineTransformDecompose):
  42070. (WebCore::affineTransformCompose):
  42071. (WebCore::AffineTransform::AffineTransform):
  42072. (WebCore::AffineTransform::reset):
  42073. (WebCore::AffineTransform::setMatrix):
  42074. (WebCore::AffineTransform::isIdentity):
  42075. (WebCore::AffineTransform::det):
  42076. (WebCore::AffineTransform::isInvertible):
  42077. (WebCore::AffineTransform::inverse):
  42078. (WebCore::AffineTransform::multiply):
  42079. (WebCore::AffineTransform::multLeft):
  42080. (WebCore::AffineTransform::rotate):
  42081. (WebCore::AffineTransform::scale):
  42082. (WebCore::AffineTransform::translate):
  42083. (WebCore::AffineTransform::scaleNonUniform):
  42084. (WebCore::AffineTransform::rotateFromVector):
  42085. (WebCore::AffineTransform::flipX):
  42086. (WebCore::AffineTransform::flipY):
  42087. (WebCore::AffineTransform::shear):
  42088. (WebCore::AffineTransform::skew):
  42089. (WebCore::AffineTransform::skewX):
  42090. (WebCore::AffineTransform::skewY):
  42091. (WebCore::makeMapBetweenRects):
  42092. (WebCore::AffineTransform::map):
  42093. (WebCore::AffineTransform::mapPoint):
  42094. (WebCore::AffineTransform::mapRect):
  42095. (WebCore::AffineTransform::blend):
  42096. * platform/graphics/transforms/AffineTransform.h: Added.
  42097. (WebCore::AffineTransform::a):
  42098. (WebCore::AffineTransform::setA):
  42099. (WebCore::AffineTransform::b):
  42100. (WebCore::AffineTransform::setB):
  42101. (WebCore::AffineTransform::c):
  42102. (WebCore::AffineTransform::setC):
  42103. (WebCore::AffineTransform::d):
  42104. (WebCore::AffineTransform::setD):
  42105. (WebCore::AffineTransform::e):
  42106. (WebCore::AffineTransform::setE):
  42107. (WebCore::AffineTransform::f):
  42108. (WebCore::AffineTransform::setF):
  42109. (WebCore::AffineTransform::operator== ):
  42110. (WebCore::AffineTransform::operator!=):
  42111. (WebCore::AffineTransform::operator*=):
  42112. (WebCore::AffineTransform::operator*):
  42113. (WebCore::AffineTransform::setMatrix):
  42114. * platform/graphics/wince/GraphicsContextWince.cpp:
  42115. (WebCore::GraphicsContext::concatCTM):
  42116. (WebCore::GraphicsContext::getAffineCTM):
  42117. * platform/graphics/wx/GraphicsContextWx.cpp:
  42118. (WebCore::GraphicsContext::getAffineCTM):
  42119. (WebCore::GraphicsContext::concatCTM):
  42120. * platform/graphics/wx/PathWx.cpp:
  42121. (WebCore::Path::transform):
  42122. * platform/graphics/wx/TransformationMatrixWx.cpp:
  42123. (WebCore::AffineTransform::operator wxGraphicsMatrix):
  42124. 2010-01-31 Pavel Feldman <pfeldman@chromium.org>
  42125. Reviewed by Timothy Hatcher.
  42126. Web Inspector: [REGRESSION] Breakpoint source line is not displayed
  42127. in the breakpoint manager.
  42128. * inspector/front-end/SourceFrame.js:
  42129. (WebInspector.SourceFrame.prototype._addBreakpointToSource):
  42130. 2010-01-31 Pavel Feldman <pfeldman@chromium.org>
  42131. Reviewed by Timothy Hatcher.
  42132. Web Inspector: Introduce NativeTextViewer.
  42133. This change handles rendering highlighted text, using browser's
  42134. selection/drag/drop/click logic. Breakpoint decorations and
  42135. program counter is working.
  42136. Todo: line numbers are painted 'under' the text when scrolling
  42137. horizontally, search is not yet implemented.
  42138. https://bugs.webkit.org/show_bug.cgi?id=34391
  42139. * WebCore.gypi:
  42140. * WebCore.vcproj/WebCore.vcproj:
  42141. * inspector/front-end/DivBasedTextViewer.js: Added.
  42142. (WebInspector.DivBasedTextViewer):
  42143. (WebInspector.DivBasedTextViewer.prototype._textChanged):
  42144. (WebInspector.DivBasedTextViewer.prototype._createLineDivs):
  42145. (WebInspector.DivBasedTextViewer.prototype._updatePreferredSize):
  42146. (WebInspector.DivBasedTextViewer.prototype._scroll):
  42147. (WebInspector.DivBasedTextViewer.prototype._registerMouseListeners):
  42148. (WebInspector.DivBasedTextViewer.prototype._registerKeyboardListeners):
  42149. (WebInspector.DivBasedTextViewer.prototype._registerClipboardListeners):
  42150. (WebInspector.DivBasedTextViewer.prototype._paintSelection):
  42151. (WebInspector.DivBasedTextViewer.prototype._positionDivDecoration):
  42152. (WebInspector.DivBasedTextViewer.prototype._mouseDown):
  42153. (WebInspector.DivBasedTextViewer.prototype._contextMenu):
  42154. (WebInspector.DivBasedTextViewer.prototype._caretForMouseEvent):
  42155. (WebInspector.DivBasedTextViewer.prototype._paintLine):
  42156. (WebInspector.DivBasedTextViewer.prototype._createSpan):
  42157. * inspector/front-end/Settings.js:
  42158. * inspector/front-end/SourceFrame.js:
  42159. (WebInspector.SourceFrame.prototype.clearMessages):
  42160. (WebInspector.SourceFrame.prototype.sizeToFitContentHeight):
  42161. (WebInspector.SourceFrame.prototype._createEditorIfNeeded):
  42162. (WebInspector.SourceFrame.prototype._addMessageToSource):
  42163. (WebInspector.SourceFrame.prototype.resize):
  42164. * inspector/front-end/TextEditor.js:
  42165. (WebInspector.TextEditor):
  42166. (WebInspector.TextEditor.prototype.setDivDecoration):
  42167. (WebInspector.TextEditor.prototype._registerMouseListeners):
  42168. (WebInspector.TextEditor.prototype._registerKeyboardListeners):
  42169. (WebInspector.TextEditor.prototype._registerClipboardListeners):
  42170. (WebInspector.TextEditor.prototype.reveal):
  42171. (WebInspector.TextEditor.prototype._textChanged):
  42172. (WebInspector.TextEditor.prototype.revalidateDecorationsAndPaint):
  42173. (WebInspector.TextEditor.prototype._updatePreferredSize):
  42174. (WebInspector.TextEditor.prototype.resize):
  42175. (WebInspector.TextEditor.prototype._paintLinesContinuation):
  42176. (WebInspector.TextEditor.prototype._paintLine):
  42177. (WebInspector.TextEditor.prototype._contextMenu):
  42178. (WebInspector.TextEditor.prototype._caretForMouseEvent):
  42179. (WebInspector.TextEditor.prototype._changeFont):
  42180. * inspector/front-end/TextEditorHighlighter.js:
  42181. (WebInspector.TextEditorHighlighter.prototype._lex):
  42182. * inspector/front-end/WebKit.qrc:
  42183. * inspector/front-end/inspector.html:
  42184. * inspector/front-end/textEditor.css:
  42185. 2010-01-31 Benjamin Poulain <benjamin.poulain@nokia.com>
  42186. Reviewed by Eric Seidel.
  42187. [Qt] Enable FAST_MOBILE_SCROLLING on Qt embedded platforms
  42188. https://bugs.webkit.org/show_bug.cgi?id=34168
  42189. Enable FAST_MOBILE_SCROLLING for Qt on Maemo 5, Linux embedded
  42190. and Symbian
  42191. * WebCore.pro:
  42192. 2010-01-31 Yury Semikhatsky <yurys@chromium.org>
  42193. Reviewed by Pavel Feldman.
  42194. Make ScriptState destructor protected since all non-empty
  42195. ScriptStates are managed by GC. Remove obsolete constructor.
  42196. https://bugs.webkit.org/show_bug.cgi?id=34266
  42197. * bindings/v8/ScriptState.cpp:
  42198. * bindings/v8/ScriptState.h:
  42199. 2010-01-30 Simon Fraser <simon.fraser@apple.com>
  42200. Reviewed by Dan Bernstein.
  42201. Use CGGradient on Leopard and later, since it's faster than CGShading
  42202. https://bugs.webkit.org/show_bug.cgi?id=34384
  42203. Use CGGradient on Leopard and later, rather than CGShading, for
  42204. performance.
  42205. * platform/graphics/Gradient.h:
  42206. * platform/graphics/Gradient.cpp:
  42207. (WebCore::Gradient::sortStopsIfNecessary): Utility method to sort stops.
  42208. Did not call this from getColor() to avoid overhead of a function call.
  42209. * platform/graphics/cg/GradientCG.cpp:
  42210. (WebCore::Gradient::platformDestroy): Use CGGradientRelease() post-Tiger.
  42211. (WebCore::Gradient::platformGradient): Create and return a CGGradientRef post-Tiger.
  42212. (WebCore::Gradient::fill): Call new paint() method.
  42213. (WebCore::Gradient::paint): New convenence method that avoids testing
  42214. isRadial() in a bunch of other places.
  42215. * platform/graphics/cg/GraphicsContextCG.cpp:
  42216. (WebCore::GraphicsContext::fillPath): Call the gradient's paint() method.
  42217. (WebCore::GraphicsContext::strokePath): Ditto
  42218. (WebCore::GraphicsContext::fillRect): Ditto
  42219. (WebCore::GraphicsContext::strokeRect): Ditto
  42220. 2010-01-30 Simon Fraser <simon.fraser@apple.com>
  42221. Reviewed by Adele Peterson.
  42222. Do color animations on premultiplied colors
  42223. https://bugs.webkit.org/show_bug.cgi?id=34383
  42224. Convert colors to premultiplied alpha before interpolating them,
  42225. then convert the result back to non-premultiplied. This gives better
  42226. results when animating from transparent colors.
  42227. Test: transitions/color-transition-premultiplied.html
  42228. * page/animation/AnimationBase.cpp:
  42229. (WebCore::blendFunc):
  42230. 2010-01-30 Gustavo Noronha Silva <gns@gnome.org>
  42231. Build fixes needed for make distcheck.
  42232. * GNUmakefile.am:
  42233. 2010-01-29 Mark Rowe <mrowe@apple.com>
  42234. Stop copying an IDL file in to the framework wrapper.
  42235. * WebCore.xcodeproj/project.pbxproj:
  42236. 2010-01-29 Mark Rowe <mrowe@apple.com>
  42237. Sort Xcode projects.
  42238. * WebCore.xcodeproj/project.pbxproj:
  42239. == Rolled over to ChangeLog-2010-01-29 ==